Hi,
I am new to Struts2. It seems to provide some of the functionality that I
want in MVC architecture. But I am having difficulties configuring it to
work the way I want. I sure would appreciate some assistance.
OK, lets start at the top. I want a single action class for all URLs
because the
Correction, when the extension is blank, it does not find the image. It
seems that I was getting a cached version.
So, it seems that blank extensions do NOT completely work... That is, they
don't work with other resource types (images, css, etc)
I still would appreciate your response, and still
cture.gif should placed action catalog in your app folder to work.
> If You want to have access to action name in action which is kind of
> pointless normally because You are in this action, then add
> RequestAware or get ActionInvocation object where this info is
> accessible.
>
Thanks for your response Pawel,
I am still having problems, so I have included a sample setup. I am using
Eclipse and GlassFish v3. The files in my WAR are:
/images/logo.gif
/META-INF/MANIFEST.MF
/WEB-INF/classes/com/example/
actions/MainSite.class
/WEB-INF/classes/struts.xml
/WEB-INF
Thanks for your response Pawel,
I am still having problems, so I have included a sample setup. I am using
Eclipse and GlassFish v3. The files in my WAR are:
/images/logo.gif
/META-INF/MANIFEST.MF
/WEB-INF/classes/com/example/
actions/MainSite.class
/WEB-INF/classes/struts.xml
/WEB-INF
7;t forget to not to use realative address for your image file - do
it like this < img src="/images/logo.gif" />
Still, if You want to use one action in struts,
it's pointles to use struts - but that's just my point of view.
Best greetings,
Paweł Wielgus
2010/6
images in /images directory,
don't forget to not to use realative address for your image file - do
it like this < img src="/images/logo.gif" />
Still, if You want to use one action in struts,
it's pointles to use struts - but that's just my point of view.
Best gree
Bummer,
Even with two namespaces, "/" and "/images" it still wants to run the image
file, "/images/logo.gif", as an action under the "/images" namespace, it
complains that there is no action mapped
I also tried a single namespace for "/" and got the same error.
So, I think this is a bug... o
Not sure where to submit an bug report, since the JIRA link seems to be
broken... So, I am posting it here.
Blank Extensions break the normal processing of non-action files.
web.xml:
--
http://www.w3.org/2001/XMLSchema-insta
9 matches
Mail list logo