• Post Reply Bookmark Topic Watch Topic
  • New Topic

problem:Invalid path was requested /RES_userhomepage  RSS feed

Prakhar Jaiswal
Posts: 1
  • Mark post as helpful
  • send pies
  • 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+"homepage.do");
rd.forward(request, response);
System.out.println("email : null");
<html xmlns="http://www.w3.org/1999/xhtml">
<title>properties.com- 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..
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!