Legolas Woodland ha scritto:
Hi
Thank you for reading my post
when i click on some of my links in the web application
The server return an exception like :
java.lang.IllegalArgumentException: Path http://www.mysite.com/ does not
start with a "/" character
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1062)
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
....
String myPath="/welcome.jsp";
if
((request.getHeader("Referer")!=null)&&(request.getHeader("Referer")!=""))
try{
myPath=request.getHeader("Referer");
myPath=StringUtils.substringAfter(myPath,request.getContextPath());
if
((request.getHeader("Referer")!=null)&&(request.getHeader("Referer")!="")){
if(myPath=="/" || StringUtils.contains(myPath,"Locale"))
myPath="/welcome.jsp?la="+language;
myForward= new
ActionForward("lastPath",myPath,false,false);
return myForward;
}
}
...
Sorry, my request was useless... Actually I don't see anything wrong in
your code but I cannot see it in execution. What I'm guessing is that
"myPath" assumes a value that you don't expect. You should go debugging
to see what exactly is its value.
HTH
Antonio
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]