File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes problem:Invalid path was requested /RES_userhomepage Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "problem:Invalid path was requested /RES_userhomepage" Watch "problem:Invalid path was requested /RES_userhomepage" New topic
Author

problem:Invalid path was requested /RES_userhomepage

Prakhar Jaiswal
Greenhorn

Joined: May 04, 2011
Posts: 1
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);
}
else{
System.out.println("email : null");
}
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<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>


</head>

<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>
<div id="clearfootercontainer"></div>
</div>
<div id="footercontainer"><struts:insert attribute="RES_footer" /></div>
</body>
</html>


Thanks in advance..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem:Invalid path was requested /RES_userhomepage