I declare the app in the weblogic.properties file, thusly:
weblogic.httpd.webApp.myStrutsApp=/home/weblogicInstances/Wls_port/myStrutsA
pp
The web.xml file in myStrutsApp/WEB-INF contains a bunch of weblogic
specific <context-param>s, the Struts action servlet config:
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
... The action servlet mapping:
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
... And some taglib declarations
Is there some way to parameterize the servlet or the struts-config.xml to
get the behaviour I want? I suspect there is not, having looked at the code
of RequestUtils. But hopefully someone else out there has dealt with this?
Thanks,
- Mike
-----Original Message-----
From: Adam Levine [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 12:35 PM
To: [EMAIL PROTECTED]
Subject: RE: When the Struts webapp is not at the root of the server
How did you declare the app context? (in the web.xml, I believe)
From: "Doyle, Michael J" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Subject: RE: When the Struts webapp is not at the root of the server
Date: Wed, 23 Jul 2003 12:29:25 -0400
Still haven't found a solution for this. Any suggestions?
Thanks,
- Mike
> -----Original Message-----
> From: Doyle, Michael J
> Sent: Wednesday, July 09, 2003 9:43 AM
> To: '[EMAIL PROTECTED]'
> Subject: When the Struts webapp is not at the root of the server
>
> Hi,
>
> I have been working on a Struts based web application. Things have been
> going fine developing on http://localhost:7001/myStrutsApp >
<http://localhost:7001/myStrutsApp> . I've discovered a problem when I >
deploy to http://www.somehost.com/somepath/myStrutsApp
> <http://www.somehost.com/somepath/myStrutsApp> .
>
> Struts gets confused with the paths it generates to Actions and rewritten
> URLs. It seems that Struts assumes the web application is always at the >
root of the server, e.g. http://www.somehost.com/myStrutsApp
> <http://www.somehost.com/myStrutsApp> .
>
> It produces
> <form action="/myStrutsApp/myaction.do">
>
> when what I need is
> <form action="/somepath/myStrutsApp/myaction.do">
>
> Thus, the <html:form> <html:base> and any other tag that rewrites the URL
> don't work properly in this configuration. > > Is there a workaround for
this? Perhaps something to do with module > configuration? The web server
is Netscape 3.5.1 and the app server is > Weblogic 5.10 sp13. > > Thanks
for any help, > - Mike > >
_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]