Antonio Petrelli wrote:
Legolas Woodland ha scritto:
The server return an exception like :
java.lang.IllegalArgumentException: Path http://www.mysite.com/ does not
start with a "/" character
...
forward="forwarder";
return mapping.findForward( forward );
}
}
Please post your action mapping, in particular the mapping for
"forwarder" forward.
Ciao
Antonio
Hi
Thank you for your reply.
i defined the forwarder in global forward section , as you can see in
the code snippet
<global-forwards>
<forward name="welcome" path="/welcome.jsp">
</forward>
<forward name="changeLang" path="/ChangeLocale.do?Lang=fa" >
</forward>
<forward name="forwarder" path='/forwarder.jsp'>
</forward>
</global-forwards>
<action-mappings>
<action path="/ChangeLocale" type="org.actions.ChangeLocaleAction"
name="Locale" scope="session">
<forward name="welcomeFromChangeLocale" path="/welcome.jsp" >
</forward>
<forward name="forwarderFromChangeLocale"
path="/forwarder.jsp" >
</forward>
....
</action-mappings>
and source code for forwarder is like :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<html:html>
<HEAD>
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<META name="GENERATOR" content="IBM Software Development Platform">
<TITLE></TITLE>
</HEAD>
<BODY>
<html:errors />
<logic:present name="Location">
<SCRIPT language="JavaScript">
document.location='<bean:write name="Location" /> '
</SCRIPT>
</logic:present>
<logic:present name="LastPage">
<logic:redirect page="<%=session.getAttribute("LastPage").toString()
%>" />
</logic:present>
<logic:present name="LastPageInclude">
<jsp:include
page='<%=session.getAttribute("LastPageInclude").toString() %>'
flush="true"/>
</logic:present>
</BODY>
</html:html>
thank you for looking at my codes :-) . it is my first application so ,
the codes may looks ugly for you
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]