Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Changing a view from a Servlet to Jsp  RSS feed

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Heres the 'Controller' Servlet: The request dispatcher: reqDispServlet.java


Heres the 'View' servlet- to where the redirect happens : page4.java



I want to replace the 'View' servlet to a Jsp 'View': something like this:- (this is incomplete)



How do i do the redirect to a jsp from the controller servlets 'get' method ?
 
Marshal
Posts: 5923
874
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"IaM yOgI", please check your private messages regarding an important administrative matter.
 
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So forward to the JSP--what, specifically, are you having an issue with?
 
Peyyety Avinash
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

So forward to the JSP--what, specifically, are you having an issue with?


I figured it now...hoe the expression syntax of jsp works to get attributes...and made this view jsp.


Thanks !!
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Consider using JSTL rather than scriptlets--get started on the right foot and develop in a more modern, acceptable fashion.
 
Peyyety Avinash
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Heyy Thanks i will learn soe JSTL.
 
You have to be odd to be #1 - Seuss. An odd little ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!