Hi Volker,

I've used result type httpheader and response-status code 204 for a similar 
problem:

<global-results>
            <!-- just does its job and doesn't bother anyone -->
            <result name="nocontent" type="httpheader">
                <!-- response is an http header with no content (!) -->
                <param name="status">204</param>
            </result>
            <result name="silent" type="httpheader">
                <!-- use this for Ajax calls -->
                <param name="status">200</param>
            </result>
</global-results>

HTH,

Joe

Joe Crombie
 
p. 02 6272 5906
e. [EMAIL PROTECTED]
 
Web Application Developer
Business Strategy and Operations
Bureau of Rural Sciences
Canberra,  Australia
 


> -----Original Message-----
> From: Volker Karlmeier [mailto:[EMAIL PROTECTED] 
> Sent: Friday, 19 September 2008 7:14 AM
> To: Struts Users Mailing List
> Subject: Re: Configure result to go back to page I came from....
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi,
> 
> I think I have to explain my problem more clearly:
> 
> I have a page that show some text-fields. These Text-Fields 
> can be filled in different languages.
> To choose the according language, you can click on a button (e.g. 
> english/french etc.) and a method "switchlanguage" is called, 
> which sets a parameter to the language I want to enter.
> As I need this function on various pages, I want to implement 
> it in a superclass of my action class.
> After clicking on a language-button, I need to set the 
> language and go back to the form to enter the text.
> Therefore, I need a way to react on a result called 
> "languageSwitched" 
> which leads to the page I just came from.
> As I do not want to write it in every action but only once in 
> struts.xml, I need a result that goes back to that page 
> without having to specify each time, which page that was.
> Is that possible ?
> 
> ~  Volker
> 
> 
> Paweł Wielgus schrieb:
> | Hi Volker,
> | where it should go when i will open my browser window 
> (blank) and type 
> | Your action url?
> |
> | Best greetings,
> | Paweł Wielgus.
> |
> | 2008/9/18 Volker Karlmeier <[EMAIL PROTECTED]>:
> | Hello Struts-Freaks,
> |
> | I have a quite easy question, I think:
> |
> | how can I configure an action in struts.xml, that does 
> nothing than go 
> | to the page I came from ?
> | Something like <result name="success" /> or so ?
> |
> | Thanks in advance.....
> |
> | ~  Volker
> |
> |
> |>
> |>
> - 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> |>
> |>
> 
> - --
> - -------------------------------
> 
> Volker Karlmeier
> Friedrich-Freye-Str. 61
> 45481 Mülheim/Ruhr
> 
> Tel. :  (+49) 208-7785675
> Mobil:  (+49) 176-21056587
> Mail :  [EMAIL PROTECTED]
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.7 (GNU/Linux)
> 
> iD8DBQFI0sSkaEMQXBIqssERAqkuAJ0U44scceFNB5DJ2PljMdx1Op/0rgCfeahV
> 8TQELRYohqOMGZKsDCo7Jck=
> =yU7g
> -----END PGP SIGNATURE-----
> 
> 


------
IMPORTANT - This message has been issued by The Department of Agriculture, 
Fisheries and Forestry (DAFF). The information transmitted is for the use of 
the intended recipient only and may contain sensitive and/or legally privileged 
material. It is your responsibility to check any attachments for viruses and 
defects before opening or sending them on. 

Any reproduction, publication, communication, re-transmission, disclosure, 
dissemination or other use of the information contained in this e-mail by 
persons or entities other than the intended recipient is prohibited. The taking 
of any action in reliance upon this information by persons or entities other 
than the intended recipient is prohibited. If you have received this e-mail in 
error please notify the sender and delete all copies of this transmission 
together with any attachments. If you have received this e-mail as part of a 
valid mailing list and no longer want to receive a message such as this one 
advise the sender by return e-mail accordingly. Only e-mail correspondence 
which includes this footer, has been authorised by DAFF 

------


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

Reply via email to