File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Changing a view from a Servlet to Jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Changing a view from a Servlet to Jsp" Watch "Changing a view from a Servlet to Jsp" New topic
Author

Changing a view from a Servlet to Jsp

Peyyety Avinash
Greenhorn

Joined: Mar 25, 2010
Posts: 19
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
Saloon Keeper

Joined: Jul 29, 2008
Posts: 2885
    
  13

"IaM yOgI", please check your private messages regarding an important administrative matter.


Author of ExamLab ExamLab - a free SCJP / OCPJP exam simulator
My Home Page -- Twitter Profile -- JavaRanch FAQ -- How to Ask a Question
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

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

Joined: Mar 25, 2010
Posts: 19
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

Joined: Sep 29, 2008
Posts: 12617

Consider using JSTL rather than scriptlets--get started on the right foot and develop in a more modern, acceptable fashion.
Peyyety Avinash
Greenhorn

Joined: Mar 25, 2010
Posts: 19
Heyy Thanks i will learn soe JSTL.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Changing a view from a Servlet to Jsp
 
Similar Threads
Http 500 and NumberFormatException
exception handling
How to call a servlet from a html
java.lang.IllegalStateException in Servlet
http 500 with stack trace