File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes what to use html page or a servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "what to use html page or a servlet" Watch "what to use html page or a servlet" New topic
Author

what to use html page or a servlet

gaurav chhabra
Ranch Hand

Joined: Jul 24, 2004
Posts: 109
sir
i m making a website,as the user enters the user name and password and that will be get checked by a servlet ,if that one is ok then i want that response back him with other page which consist of several buttons...
my confusion is that should that page be of a html page or shpuld i be able to return a page in java with buttons made out in swing.
thank you
gaurav
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
if you need some dynamic page then should be a jsp page, otherwise html would be ok.

Swing! never ever.
Geeta Ramasami
Ranch Hand

Joined: Mar 05, 2003
Posts: 72
In this scenario wherein u r working with website u can go in for html if the page has only static contents or JSP if it has some dynamic contents rather than designing the view with swings.
While designing web applications HTML for static and JSP for dynamic is preferrable.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: what to use html page or a servlet
 
Similar Threads
Checkbox
selecting a row from table using radio buttons
Help with buttons on a JSP page
Servlets to Swing
Forwarding a request from a jsp to servlet or an html page