• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

second jsp call = empty website

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic