hi, well, just call the location the jsp is located at. did i get your question right ? karl
Shivanath Yerra
Greenhorn
Joined: Jul 16, 2001
Posts: 8
posted
0
no, I Want to Know How to invoke JSP from a Servlet for example if u want to show a html we use request.redirect(abc.html) similarly how can we invoke a jsp.
karl koch
Ranch Hand
Joined: May 25, 2001
Posts: 388
posted
0
hi, perhaps im stupid and still dont get it.... jsp and html are the same for client. they dont care if it jsp or html since out of the jsp a pure html page is created. so you can call it request.redirect("somejsp.jsp"). right ??? anybody ??? karl
Shivanath Yerra
Greenhorn
Joined: Jul 16, 2001
Posts: 8
posted
0
Hi Now i came to Know how to invoke the jsp from a servlet it is like this
JspFactory jf=JspFactory.getDefaultFactory(); PageContext pc = jf.getPageContext(); pc.include("sample.jsp");