AW: How to realize forward to the same page?

2003-08-14 Thread Dirk Behrendt
Hello!

Ok, but I dont now the current page. If I use forward name=success
path=/login.jsp/ ,it works fine for login.jsp. But not for all other
jsp-sites



-Ursprüngliche Nachricht-
Von: Rohit Aeron [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 6. August 2003 14:09
An: Struts Users Mailing List
Betreff: RE: How to realize forward to the same page?

Try putting forward as the same page.

Regards
Rohit





-Original Message-
From: Dirk Behrendt [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 06, 2003 5:13 PM
To: [EMAIL PROTECTED]
Subject: How to realize forward to the same page?

Hello!

I want, that the user can switch the language from a drop down menu at
runtime. When he chose a language, an action class is called and sets
the locale.

I want, that there is no forward to another page. The current page
should be maintained. When I do it without the forward tag, an empty
page came as a result. But I want the same page. 

example:
The user switches the language

before switch   after switch
/login.jsp  -- /login.jsp
/someJSP.jsp-- /someJSP.jsp

What I have to add to the struts-config.xml?

Dirk


struts-config.xml
-

actionpath=/language 
   type=sample.LanguageAction
   name=languageForm
   scope=request
   
  
/action


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



*--
This message and any attachment(s) is intended only for the use of the
addressee(s) and may contain information that is PRIVILEGED and
CONFIDENTIAL. If you are not the intended addressee(s), you are hereby
notified that any use, distribution, disclosure or copying of this
communication is strictly prohibited. If you have received this
communication in error, please erase all copies of the message and its
attachment(s) and notify the sender or Kanbay postmaster immediately.

Any views expressed in this message are those of the individual sender
and not of Kanbay.

Although we have taken steps to ensure that this e-mail and any
attachment(s) are free from any virus, we advise that in keeping with
good computing practice the recipient should ensure they are actually
virus free.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: How to realize forward to the same page?

2003-08-06 Thread Dirk Behrendt
...I have tried this and now I get an internal server error
Do I have to add something to my struts-config.xml??


java.lang.NullPointerException
at
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestPr
ocessor.java:441)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
279)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)



-Ursprüngliche Nachricht-
Von: Yansheng Lin [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 6. August 2003 17:46
An: 'Struts Users Mailing List'
Betreff: RE: How to realize forward to the same page?


return new ActionForward(mapping.getInput()); will return you to where
you came
from.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: August 6, 2003 5:43 AM
To: [EMAIL PROTECTED]
Subject: How to realize forward to the same page?


Hello!

I want, that the user can switch the language from a drop down menu at
runtime. When he chose a language, an action class is called and sets
the locale.

I want, that there is no forward to another page. The current page
should be maintained. When I do it without the forward tag, an empty
page came as a result. But I want the same page. 

example:
The user switches the language

before switch   after switch
/login.jsp  -- /login.jsp
/someJSP.jsp-- /someJSP.jsp

What I have to add to the struts-config.xml?

Dirk


struts-config.xml
-

actionpath=/language 
   type=sample.LanguageAction
   name=languageForm
   scope=request
   
  
/action


-
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]