Please post your message to the users list.
kukudas wrote:
Sorry next time i will post on the user-list section.
Here an example:
My struts.xml Configuration:
<package name="Conf" extends="struts-default" namespace="/conf">
<global-results>
<result name="conf">/ad/conf.jsp</result>
</global-results>
<action name="adconfig" ...">
<result/>
</action>
....
In my Jsp:
conf/adconfig.action Enter
This works fine. In the conf.jsp i can acess Actions like this for example:
save.action without the namespace because it is already in the url.
now when i have another action like this:
<package name="Controll" extends="struts-default">
<action name="back">
<result>/menue.jsp</result>
</action>
....
and i want to call this from the conf.jsp i do it like this(same as ahead):
back.action
if i now want to reenter the conf.jsp site and call the adconfig action
again the namespace is populated
twice in my url because the old namespace is still in there and i get an
exception. basicly what i wanna do is when i use the back action that the
namespace is deleted. i tried add "/" as namespace but it didn't work.
Ralf Fischer-2 wrote:
Hi,
Short answer: This is a question best posted to the struts-user list,
not the dev list.
Long answer: Without any code to look on, especially the JSP code
creating the URLs, there's no way to tell how you end up. Though it's
quite likely, you either didn't add the namespace attribute to the
<s:url /> tag, or you missed the leading dash to the namespace there,
so the namespace set in the url-tag is appended to the current
namespace, being interpreted relative.
Cheers,
-Ralf
On Thu, Jun 12, 2008 at 9:57 AM, kukudas <[EMAIL PROTECTED]> wrote:
i know it's probably a dumb question but i somehow can't manage it im new
and
hope someone can help me.
i'm using a namespace for example "/conf" so when i go into a certtain
area
all actions are running under this namespace. But when i want go back to
my
index and then reenter the certain area or another area i get a error
because the old namespace is still in the url. how can i set the
namespace
back so when i go back its not anymore in the url.
its kinda hard to describe i hope you will understand what i mean if not
don't hestitate to ask. thanks for your help.
kukudas
--
View this message in context:
http://www.nabble.com/Struts-2-namespace-question-tp17794483p17794483.html
Sent from the Struts - Dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]