Yup..  I realized that right after I sent my last email..  That was the problem 
thank you everyone!

-----Original Message-----
From: Aaron Brown [mailto:aa...@thebrownproject.com] 
Sent: Tuesday, December 14, 2010 2:53 PM
To: Struts Users Mailing List
Subject: Re: Help... My url grows...

After I saw the next chunk of code you posted, it looks like it really
is a namespace problem: you're referring to your action as
"struts/actionName", which will continue to add "struts" subdirectory
to whatever URL you're currently using. Instead, try
"/struts/actionName".

Alternately, and probably cleaner, if you're calling an action in the
same namespace (aka subdirectory) as the current action, you don't
need any prefix at all. You can just say:
  action="actionName"
...and leave it at that.

 - Aaron

On Tue, Dec 14, 2010 at 4:48 PM, Ellson, Jared L <jell...@usbr.gov> wrote:
> Nope... namespace didn't help...  I was thinking it was maybe because I was 
> doing the submit via javascript but it happens when I use the <s:submit> it 
> happens also.
>
>
>
> -----Original Message-----
> From: Aaron Brown [mailto:aa...@thebrownproject.com]
> Sent: Tuesday, December 14, 2010 2:34 PM
> To: Struts Users Mailing List
> Subject: Re: Help... My url grows...
>
> Every time I've had a URL with an extra path element that I didn't
> intend, it was always because I messed up the namespace for the action
> - I have a bad habit of forgetting the leading "/" on my namespaces.
>
> I see you don't have a namespace defined for your package, that's part
> of the stock package tag:
>    namespace="/"
> ...is the typical assignment for the default package. So, something like:
>
> <package name="etasstruts2" namespace="/" extends="struts-default">
>
> See if that helps.
>
>  - Aaron
>
> On Tue, Dec 14, 2010 at 4:24 PM, Ellson, Jared L <jell...@usbr.gov> wrote:
>> Hey anybody have a quick idea what would cause my URL to grow.
>>
>> First time I hit the page:
>>
>> http://localhost:8080/XXXX/struts/locationAssign
>>
>> submit the page then:
>>
>> http://localhost:8080/XXXX/struts/struts/locationAssign
>>
>> then submit again:
>>
>> http://localhost:8080/XXXX/struts/struts/struts/locationAssign
>>
>> Here is my struts.xml:
>>
>> <struts>
>>
>>      <constant name="struts.devMode" value="true" />
>>
>>      <package name="etasstruts2" extends="struts-default">
>>
>>            <action name="test" 
>> class="gov.usbr.etas.web.struts.StrutsTestAction" method="execute">
>>                  <result name="success">/struts/test.jsp</result>
>>                  <result name="input">/struts/test.jsp</result>
>>            </action>
>>            <action name="locationAssign" 
>> class="gov.usbr.etas.web.struts.LocationAssignAction" method="execute">
>>                  <result name="success">/struts/locationAssign.jsp</result>
>>                  <result name="input">/struts/locationAssign.jsp</result>
>>            </action>
>>      </package>
>>
>> </struts>
>>
>> And my web.xml:
>>
>>      <filter>
>>            <filter-name>struts2</filter-name>
>>            
>> <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
>>      </filter>
>>
>>      <filter-mapping>
>>            <filter-name>struts2</filter-name>
>>            <url-pattern>/struts/*</url-pattern>
>>      </filter-mapping>
>>
>> Thank you for your help!!!
>>
>>
>
>
>
> --
> Aaron Brown : aa...@thebrownproject.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>



-- 
Aaron Brown : aa...@thebrownproject.com

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


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

Reply via email to