jQuery in Action, 3rd edition
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
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

what to use html page or a servlet

gaurav chhabra
Ranch Hand

Joined: Jul 24, 2004
Posts: 109
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
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
It's not a secret anymore!