Thanks -I figured it out.
In my web.xml I had only mapped the struts FilterDispatcher to
*.action, I had to change it to map it to /*.
My old web.xml:
<filter>
<filter-name>struts2</filter-name>
<filter-
class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>*.action</url-pattern>
</filter-mapping>
New, correct web.xml:
<filter>
<filter-name>struts2</filter-name>
<filter-
class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
On Aug 14, 2007, at 11:31 PM, Musachy Barroso wrote:
The file is there(inside the Struts jar file). You don't need to
extract the file, S2 will serve it from inside the jar. If you put the
url by hand on the browser, does it return the js file?
musachy
On 8/14/07, Joel Patton <[EMAIL PROTECTED]> wrote:
I am trying to get the client side validation working in my Struts 2
app using the xhtml theme, but my web page isn't loading
validation.js. I see the outputted HTML as:
<script type="text/javascript" src="/tools/struts/xhtml/
validation.js"></script>
Do I need to copy the template directories out of the struts2-core
jar file into my web content path or should this be loading the JS
directly from the jar file? I didn't see any instructions about
moving files out of the jar, so I'm confused how my app is supposed
to be able to resolve this reference to validation.js when I don't
have a struts/..etc path underneath my web root. Is there a
configuration setting I'm missing somewhere?
Thanks,
Joel
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
"Hey you! Would you help me to carry the stone?" Pink Floyd
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]