Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP Application on a simple website.  RSS feed

 
S. S. Diaz
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there...is it advisable to put Java Servlets on a simple website? Like for example, A furniture website (ex. http://www.sauder.com/). Thanks in advance.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As opposed to what?

If you have dynamic content or the need to process HTML form posts, then servlets are a fine choice.

That link points to an app written in MS-ASP. Are you asking us if you should switch? Maybe if you explain your question in a little more detail, we could be more helpful to you.
 
Muhammad Saifuddin
Ranch Hand
Posts: 1325
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There I found two questions in this post.
1) Simple application on JSP
2) Simple application on Servlets

First I would like to tell you that there is no vast difference between JSP & Servlets.
Both can be used for dynamic websites.

JSP are simply the html pages with some Java code encapsulated in special tags. We use them in that case when a smaller part of page is generated dynamically.

Servlets on the other hand, are pure Java classes extended from javax.servlet.http.HttpServlet. They can generate html pages too.

Answer is simply based on your website requirements if you want to create a static, content-based Web application that contains no dynamic elements, such as JSP files or servlets.

Or if you want to create dynamic Web sites like you mansion ( http://www.sauder.com/ ) build on ASP, so you can also use JSP or Servlet to this dynamic websites with much more technologies such as Struts and JavaServer Faces etc...
 
S. S. Diaz
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Very sorry Mr. Ben but I'm not really asking you to switch to ASP. I'm just really asking is about the JSP on a simple page. Hope you understand... . Ok, thank you again.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66208
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Simply repeating a vague question does nothing to make it any clearer.

You'll have to do a better job of explaining what you mean by "simple website" and "simple pages".
 
Richard Green
Ranch Hand
Posts: 536
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there...is it advisable to put Java Servlets on a simple website? Like for example, A furniture website (ex. http://www.sauder.com/). Thanks in advance.

I strongly recommend java servlets, three times a day (before meals). Just kidding! Yeah go ahead man, use servlets for the website.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!