That was an oversight on my part .. I just changed the type to redirect. Instead of the URL I send the action a request.getRequestURI + request.getQueryString (if any) and that now works good as a champ.

-Mufaddal.


On Jan 9, 2008, at 9:23 AM, Dave Newton wrote:

--- Mufaddal Khumri <[EMAIL PROTECTED]> wrote:
<struts>
   <package name="authentication" namespace="/authentication"
extends="mypackage">

<action name="login" class="com.mypackage.authentication.LoginAction">
            <result name="success" type="freemarker">${originalUrl}</result>
        </action> 
                
   </package>

</struts>

In this case the LoginAction received the original url as: http://
localhost/mypackage/cr/test.action

When I execute this code I get an exception:

java.io.FileNotFoundException: Template /authentication/http://
localhost/mypackage/cr/test.action not found.

You've defined a FreeMarker result; it's going to try to get a template with the original URL as a name. This is almost certainly not what you want.

Wouldn't you want a "redirect" result?

d.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to