Re: need to create servlet

2008-11-26 Thread Steven Yang
I am guessing its suggesting you have one context root for static content
and another root for your actions and stuff.
for example you might have something like

for actions
http://localhost/actions/login.action

and for static contents

http://localhost/static/login.png

and in your login.action jsp you will have to refer to login.png as



and in the HTTP server you set it to only intercept /static

I am just guessing
see if this helps


RE: need to create servlet

2008-11-26 Thread Fernandes, Filipe
Filipe Fernandes wrote:
> The question is, how do we create a separate server context root for
> *.action in order to get rid of the filter mappings in the web.xml?
Any
> hints would be appreciated...

I forgot to mention that a LaunchServlet example is available in the
following webpage, but the example is far from complete.

http://struts.apache.org/2.x/docs/websphere.html

thanks,
filipe


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



need to create servlet

2008-11-26 Thread Fernandes, Filipe
We're working on a struts 2 application in Websphere and the plan is to
serve static content via the IBM Http Server while all other requests
are forwarded to the application server.

 

We're having trouble forwarding action requests to the app server, but
there's an FAQ that describes what needs to be done.

 

http://www-01.ibm.com/support/docview.wss?rs=177&context=SSEQTJ&dc=DB560
&dc=DB520&uid=swg21315589&loc=en_US&cs=UTF-8&lang=en&rss=ct177websphere

 

 

The question is, how do we create a separate server context root for
*.action in order to get rid of the filter mappings in the web.xml?  Any
hints would be appreciated...

 

thanks,

filipe