File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

second jsp call = empty website

Lenka Laurincikova

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="" 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"/>

Strange behaviour is:
if I first time call it, works OK
if I call it second time with the same:

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

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:
subject: second jsp call = empty website
It's not a secret anymore!