Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Changing a view from a Servlet to Jsp

 
Peyyety Avinash
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 ?
 
Devaka Cooray
ExamLab Creator
Marshal
Pie
Posts: 4682
333
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.
 
David Newton
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic