You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Vivian, Nigel (N.)" <nv...@ford.com> on 2003/04/29 13:32:31 UTC

referencing struts web app in browser problem

Hi all

I've got a problem with an iPlanet v 6.0 webapp - might be common to other
servers but I haven't tested it

if I deploy to a uri like "/something" then everything works OK
if I deploy to "/" then the calls to struts actions fail because the server
name disappears from the URL

i.e. the url in the browser goes from
http://loyaltycard.somewhere.com/index.jsp

to http://callcentrenectarcardnumberentrytiles.do;jsessionid=thesession

rather then
http://loyaltycard.somewhere.com/callcentreloyaltycardnumberentrytiles.do

Has anyone got any ideas?

Is it a struts problem or is our webapp misconfigured?

If it is struts how should it be fixed?

code used is...
struts-config
	<forward name="/enterCardNumber"
path="/callCentreLoyaltyCardNumberEntryTiles.do" />
...
      <action path="/callCentreLoyaltyCardNumberEntryTiles"
 
type="com.somewhere.loyalty.struts.controller.ForwardAction"
        		scope="request">
			<forward name="success"
path=".loyaltyCardNumberEntry" />
	</action>

tiles-defs
    <definition name=".loyaltyCardNumberEntry" extends="callCentreLayout">
    	<put name="title" value="Browse Customer's Account" />
        <put name="navigation"
value="/navigationCallCentreAccountManagement.jsp" />
        <put name="body" value="/callCentreLoyaltyCardNumberEntry.jsp"/>
    </definition>

Nigel Vivian




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org