I am new in programming and this question may really be stupid but I still want to ask because I don’t know what practices are possible and what are not. You see, right now I am studying basic J2EE. Our assignment is to make a web-based application using JSP and servlets. One of my problems is doing the forms.
I know that HTML is the best practice in making the forms in JSP because almost all people are using it(based on the examples on the books/internet). But Java also have its own forms which is the Swing, AWT and it all worked by using the events. If i don’t want to use HTML, can I use Java’s Swing/AWT or is it for the desktop applications only? Aside from what I’ve mentioned, what else can I use?
Yes java has many Components in Swing and AWT.
And both Swing and AWT Components support Event Handling.
But I never have heard of JSwing.
Swing and AWT are for the desktop application only.
But as Orbit said
You can definetly use Swing components on an applet and then embed the applet on your JSP page.
Using HTML will be a lot easier than using Applet to make a form
As Andrew said