aspose file tools*
The moose likes JSP and the fly likes second jsp call = empty website Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "second jsp call = empty website" Watch "second jsp call = empty website" New topic
Author

second jsp call = empty website

Lenka Laurincikova
Greenhorn

Joined: Oct 08, 2007
Posts: 3
Hello please help me find what I am doing wrong. This is my requestController.jsp:
<jsp:useBean id="retrieveGroup" class="mt.com.RetrieveGroup" scope="session">
<%
//debugging print
System.out.println("requestController.jsp getParametersValues: " + request.getParameterValues("option"));
if (request.getParameterValues("option")==null) {%>
<jsp:setProperty name="retrieveGroup" property="option" value=""/>
<%} else { %>
<jsp:setProperty name="retrieveGroup" property="option"/>
<% } %>
<jsp:forward page="request.jsp"/>
</jsp:useBean>

Strange behaviour is:
if I first time call it, works OK
http://localhost:8080/helpdeskApp/requestController.jsp?option=HW
if I call it second time with the same:
http://localhost:8080/helpdeskApp/requestController.jsp?option=HW
EMPTY PAGE APPEAR (???)

if you need more information please let me know
thank you


--------------------------------<br />..............\\|//.............<br />..............(o o).............<br />----------oOO--(_)--oOO---------<br />Have a nice day <br />Lenka Laurincikova<br />SCJP<br />--------------------------------
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Whenever I see an empty page, the first thing I do is use the browser's 'view html source' feature to see if the JSP is indeed sending nothing or if the blank screen is the result of an HMTL/Javascript error.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: second jsp call = empty website