Only 44 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Best Practice - To use Servlet or go directly to JSP  RSS feed

 
Danny Baquilod
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

If you're coming from JSP with data to edit in a table, which is the best practice to do :

1. Use a servlet to "Set"(using bean) data and open another JSP to display data (using Bean) for editing
2. From JSP send parameter to another JSP and display data for editing.

The reason I ask this question is to know the best practive for MVC.

Thanks in advance for your help.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65824
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Submitting to a JSP is a very poor practice.

You might find this article helpful.
 
Danny Baquilod
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:Submitting to a JSP is a very poor practice.

You might find this article helpful.


Thanks. That's the kind if confirmation I want to know from the expert.

Regards,
Danny
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!