You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Ellson, Jared L" <je...@usbr.gov> on 2010/12/14 22:24:29 UTC
Help... My url grows...
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!!!
Re: Help... My url grows...
Posted by Dave Newton <da...@gmail.com>.
On Tue, Dec 14, 2010 at 4:24 PM, Ellson, Jared L wrote:
> Hey anybody have a quick idea what would cause my URL to grow.
>
Excitement.
Dave
Re: Help... My url grows...
Posted by piyush kumar <al...@gmail.com>.
sorry, even this would not work without keeping the form's action attribute
simply as the name of the action.
On Wed, Dec 15, 2010 at 1:40 PM, piyush kumar <al...@gmail.com>wrote:
> I think following would also do, though I haven't tried it yet....
>
> <package name="xxxx" namespace="/struts" extends="struts-default">
>
> <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>
>
> On Wed, Dec 15, 2010 at 3:35 AM, Ellson, Jared L <je...@usbr.gov>wrote:
>
>> Yup.. I realized that right after I sent my last email.. That was the
>> problem thank you everyone!
>>
>> -----Original Message-----
>> From: Aaron Brown [mailto:aaron@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 <je...@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:aaron@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 <je...@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 : aaron@thebrownproject.com
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> > For additional commands, e-mail: user-help@struts.apache.org
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> > For additional commands, e-mail: user-help@struts.apache.org
>> >
>> >
>>
>>
>>
>> --
>> Aaron Brown : aaron@thebrownproject.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>
Re: Help... My url grows...
Posted by piyush kumar <al...@gmail.com>.
I think following would also do, though I haven't tried it yet....
<package name="xxxx" namespace="/struts" extends="struts-default">
<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>
On Wed, Dec 15, 2010 at 3:35 AM, Ellson, Jared L <je...@usbr.gov> wrote:
> Yup.. I realized that right after I sent my last email.. That was the
> problem thank you everyone!
>
> -----Original Message-----
> From: Aaron Brown [mailto:aaron@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 <je...@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:aaron@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 <je...@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 : aaron@thebrownproject.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
>
>
>
> --
> Aaron Brown : aaron@thebrownproject.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
RE: Help... My url grows...
Posted by "Ellson, Jared L" <je...@usbr.gov>.
Yup.. I realized that right after I sent my last email.. That was the problem thank you everyone!
-----Original Message-----
From: Aaron Brown [mailto:aaron@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 <je...@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:aaron@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 <je...@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 : aaron@thebrownproject.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
--
Aaron Brown : aaron@thebrownproject.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Help... My url grows...
Posted by Aaron Brown <aa...@thebrownproject.com>.
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 <je...@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:aaron@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 <je...@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 : aaron@thebrownproject.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
--
Aaron Brown : aaron@thebrownproject.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: Help... My url grows...
Posted by "Ellson, Jared L" <je...@usbr.gov>.
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:aaron@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 <je...@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 : aaron@thebrownproject.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Help... My url grows...
Posted by Aaron Brown <aa...@thebrownproject.com>.
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 <je...@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 : aaron@thebrownproject.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: Help... My url grows...
Posted by "Ellson, Jared L" <je...@usbr.gov>.
Here you go:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="t" tagdir="/WEB-INF/tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<t:MinimalHeader pageTitle="Assign locations to Correctors and Controllers" pageName="Assign locations to Correctors and Controllers" />
<s:form action="struts/locationAssign">
<s:select name="locationAssignForm.userRole" label="Please Select Role"
list="locationAssignForm.userRoles" onChange="this.form.submit()"/>
<s:select name="locationAssignForm.currentUser" label="Please Select User"
list="locationAssignForm.usersInRole" listKey="email" listValue="fullName" headerKey="1"
headerValue="-- Please Select --" onChange="this.form.submit()" />
<s:textarea name="locationAssignForm.usersLocations" label="User Locations" rows="6"/>
<s:submit formFilter="formFilter" value="Save"/>
</s:form>
<t:MinimalFooter/>
-----Original Message-----
From: Biesbrock, Kevin [mailto:Biesbrock.Kevin@aoins.com]
Sent: Tuesday, December 14, 2010 2:28 PM
To: Struts Users Mailing List
Subject: RE: Help... My url grows...
Let's see your location assign jsp as well.
Beez
> From: Ellson, Jared L
> Sent: Tuesday, December 14, 2010 4:24 PM
>
> 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.StrutsPrepareAndEx
ecuteFilter</filter-class>
> </filter>
>
> <filter-mapping>
> <filter-name>struts2</filter-name>
> <url-pattern>/struts/*</url-pattern>
> </filter-mapping>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: Help... My url grows...
Posted by "Biesbrock, Kevin" <Bi...@aoins.com>.
Let's see your location assign jsp as well.
Beez
> From: Ellson, Jared L
> Sent: Tuesday, December 14, 2010 4:24 PM
>
> 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.StrutsPrepareAndEx
ecuteFilter</filter-class>
> </filter>
>
> <filter-mapping>
> <filter-name>struts2</filter-name>
> <url-pattern>/struts/*</url-pattern>
> </filter-mapping>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org