File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

second jsp call = empty website

 
Lenka Laurincikova
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic