Is there any way to put my OpenGL application into a html?

Java can do that,but must i use java? I code in c++.

Then look into ActiveX.

if my opengl application can work in a web page just as the flash demo ,it sound exciting…

Only problem is, ActiveX has compatibility issues, forcing you to provide a native control for every platform you wish to support.