Re: Forward to original page

2004-05-10 Thread Christian Grobmeier
Hello,

there is a form, which is included in all three templates. It sets the
sort-order for my results. The Problem is, when i change this order i
would like to be forwarded to the page where the form has been submitted.
You could pass the name of the forwarding as a hidden field into the
form. The value of the field is defined in the tile definition of the
actual page template.
You might put  into the page
templates to have access to that page attribute (not sure about this).
Thank you for the hint.
Despite i believe i have not the best solution, i have one.
This is very ugly, but i am under lack of time and have no better idea.

var ref="";

Here i get my body-name in the main-template.
At the end of my sub-template i read this javascript var and put
it into an hidden field.
Problem is, i could not get this value in my sub-template.
Probably it doesn't know about the other templates... i have tried
the import-tag, but this doesnt work.
Well, it worx now, despite it's uglyness :)
If someone can correct me, i am eager to hear. I believe i will have
this problem again sooner or later.
Thanks for your time,
Christian Grobmeier


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


Re: Forward to original page

2004-05-05 Thread Christian Grobmeier
Hello Rüdiger

You could pass the name of the forwarding as a hidden field into the
form. The value of the field is defined in the tile definition of the
actual page template.
You might put  into the page
templates to have access to that page attribute (not sure about this).
Does this work?
This sounds very good to me. Cause of an emergancy :( i must try this 
tomorrow. Thanks for this hint.

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


Re: Forward to original page

2004-05-05 Thread Rüdiger Schulz
Hello Christian Grobmeier,

on 05.05.2004 at 11:52 you wrote:
> I have this pages (Tiles):

> frontend.overview
> frontend.details
> frontend.results

> there is a form, which is included in all three templates. It sets the
> sort-order for my results. The Problem is, when i change this order i
> would like to be forwarded to the page where the form has been submitted.

You could pass the name of the forwarding as a hidden field into the
form. The value of the field is defined in the tile definition of the
actual page template.
You might put  into the page
templates to have access to that page attribute (not sure about this).

Does this work?

-- 
Greetings from Berlin,
Rüdiger Schulz

SkyGate inter|net|working GmbH


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



RE: Forward to original page

2004-05-05 Thread Ashutosh Satyam
What I could infer you want to come back to the 
original page from whereever you posted the request.

In your struts configuration file you need to provide
action-mapping to appropriate tiles definition.

For instance,
 snippet of struts config file

   

 

 tiles definition file

 




 

Remember in your Action class, you will have to redirect to
the same forward path which leads to the same tiles-definition.

Say, first time when this page gets loaded the action class does 
a forward like this - return mapping.findForward("success");

And also after this page is submitted the action class should again
do a forward as mentioned above - return mapping.findForward("success");


Hope it helps.

- Ashutosh Satyam



-Original Message-
From: Christian Grobmeier [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 05, 2004 3:23 PM
To: [EMAIL PROTECTED]
Subject: Forward to original page


Hello all,

i have written an small application with struts. Now i have a problem,
which is easily to solve with such languages as PHP.
But with Struts it seems not to be such easy. I have read all the 
documentation and what i could find in the archives nor in google.

I have this pages (Tiles):

frontend.overview
frontend.details
frontend.results

there is a form, which is included in all three templates. It sets the 
sort-order for my results. The Problem is, when i change this order i 
would like to be forwarded to the page where the form has been submitted.

for example:

frontend.details -> submit the form -> action -> business -> action -> 
forward to frontend.details

The same with all templates.

Do you have any suggestions?
I tried allready such things:
return(mapping.findForward(request.getServletPath()));
altought request.getServletPath isn't giving me a logical name.

Thanks in advance,
Christian
-- 

take a look --> www.pfister.de

Christian Grobmeier
-->> mailto:[EMAIL PROTECTED]
AMAN Media GmbH
network & media
Dorfstrasse 1-4
85235 Unterumbach @ Munich
Germany
fon:   ++49-(0)8134-9100
fax:   ++49-(0)8134-9110
technical support:
mailto:[EMAIL PROTECTED]
http://www.aman.de

~~
Diese eMail enthält vertrauliche und/oder rechtlich geschützte
Informationen. Das unerlaubte Kopieren sowie die unbefugte
Weitergabe/Weiterleitung dieser Mail ist nicht gestattet. Wenn Sie nicht
der richtige Adressat sind oder diese eMail irrtümlich erhalten haben,
informieren Sie bitte sofort den Absender und vernichten Sie diese Mail

This e-mail may contain confidential and/or privileged information. Any
unauthorized copying, disclosure or distribution/forwarding of the
material in this email is strictly forbidden. If you are not the
intended recipient (or have received this e-mail in error) please notify
the sender immediately and destroy this e-mail.

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