I understand that something is wrong with either the "<link href="<s:url value="/css/main.css"/>" rel="stylesheet" type="text/css"/>" command or perhaps with the main.css itself?
Yes, the main.css is in the css folder. -smiles-
Any tips on how to fix it are highly appreciated!
Thanks
Please put your code in code tags; it's much, much easier to read.
It appears as though you're not accessing the page through an action, but instead directly accessing the URL. The use of S2 custom tags implies the presence of a value stack, which implies that they'll always be accessed through an action.
This is good design anyway; exposing JSP pages/fragments directly to users is not usually recommended when using a web app framework.
Alia Huss
Ranch Hand
Joined: Feb 13, 2009
Posts: 63
posted
0
Sorry about that, I'm new to forums aswell -smiles-
I managed to fix the problem with some help from a friend.
He told me to put a filtermapping in the web.xml, and it worked.
Thank you very much for your help anyway!
Ravi Jagtap
Greenhorn
Joined: May 23, 2006
Posts: 10
posted
0
Hi Alia,
I am getting the same error, could you please tell how you solved the problem and for how you added the filtermapping in web.xml
Thanks
Alia Huss
Ranch Hand
Joined: Feb 13, 2009
Posts: 63
posted
0
It was a while ago, but here's a copy of my web.xml
Only works with struts2-core-2.1.3.jar or newer (I use Struts2-core-2.1.6.jar)