I suggest you to reference your resource file(js, image, css and so
on) in this way:
<script type="text/javascript" src="<s:property value="contextPath"
/>/path/filename.js"></script>
The [<s:property value="contextPath" />] part will
render the contextPath where the web application
is deployed.
The [contextPath] is a property defined in Action:
public String getContextPath() {
return
ServletActionContext.getServletContext().getContextPath();
}
I put this property in the supper class of all of the Action classes
so i can reference this property in all the pages
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]