Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Himai Minh

problem:Invalid path was requested /RES_userhomepage

Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please help me with the code..
The web-app was running good couple of months ago but now when I try deploying it..
on logging I get this error :Invalid path was requested /RES_userhomepage
I thought something could be wrong with the struts-config or tiles-defs file but, I could not spot the error..
Please help me.

Struts-config.xml file as in my app:

tiles-defs.xml file as in the app:

Here is the JSP page RES_start.jsp

<%@taglib uri="/WEB-INF/struts-tiles.tld" prefix="struts"%>
HttpSession login_session = request.getSession(false);
if(login_session != null)
System.out.println("session exists");
String email = (String)login_session.getAttribute("email");
if(email != null){
System.out.println("email id exists");
String role = (String)login_session.getAttribute("role");
RequestDispatcher rd = request.getRequestDispatcher("/RES_"+role+"");
rd.forward(request, response);
System.out.println("email : null");
<html xmlns="">
<title> Home</title>
<link rel="stylesheet" type="text/css" href="indexcss.css" title="main" />
<link rel="stylesheet" type="text/css" href="leftcontent.css" title="main" />
<link rel="stylesheet" type="text/css" href="userhomepage.css" title="main" />
<link rel="stylesheet" type="text/css" href="searchcss.css" title="main" />
<script type="text/javascript" src="searchproperties.js"></script>


<body onunload="{window.location.href='RES_logout.jsp';}">
<div id="allexceptfooter">
<div id="headercontainer"><struts:insert attribute="RES_header"/></div>
<div id="bodycontainer">
<struts:insert attribute="RES_left"/>
<struts:insert attribute="RES_body" />
<div id="clearfootercontainer"></div>
<div id="footercontainer"><struts:insert attribute="RES_footer" /></div>

Thanks in advance..
please buy my thing and then I'll have more money:
Free, earth friendly heat - from the CodeRanch trailboss
    Bookmark Topic Watch Topic
  • New Topic