Reply To: Rewrite with Struts2

Splash Forums Rewrite Users Rewrite with Struts2 Reply To: Rewrite with Struts2

#25796

rahulsoni
Participant

Thanks Christain Sir,

But I’m having one MAJOR Problem while implementing URL Rewrite with Struts2 and that is my Struts Actions are invoking properly but the normal Anchor links that are being redirected as per Configuration RULE are generating following Error:

Links: <s:a href="/My_Struts2/abcd">ABCD</s:a>
Rule: .addRule(Join.path("/abcd").to("/radioUI.jsp"))

Error:
HTTP Status 500 – The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the associated filter. Struts tags are only usable when the request has passed through its servlet filter, which initializes the Struts dispatcher needed for this tag.

How can i make URL Rewrite and Struts2 Actions work together ?????

I’ve added URL Rewrite Filter before Struts Filter.

Thanks in advance ……