dbrownell83
asked on
How to redirect in Stripes, without using a <form>
Hi experts,
this has been bugging me... I am using Stripes, and i need to write some code to redirect to another jsp.
I know on the code side, to use the RedirectResolution,
but on the jsp side, how can i call the code in my redirect bean without using a form?
Or rather, what is the syntax, to call my MyActionBean.redirect() method, when all i have to work with is some javascript code to be executed, and it's not contained within a <form></form>?
thanks
Daniel
this has been bugging me... I am using Stripes, and i need to write some code to redirect to another jsp.
I know on the code side, to use the RedirectResolution,
but on the jsp side, how can i call the code in my redirect bean without using a form?
Or rather, what is the syntax, to call my MyActionBean.redirect() method, when all i have to work with is some javascript code to be executed, and it's not contained within a <form></form>?
thanks
Daniel
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
if it accepts GET requests you should be able to use a link (or set window location via js)
ASKER
thanks,
i can't use a link because it's all in javascript, because i'm using some widget.
And i don't even think i can use window.location=...
because its a stripes action bean that i'm calling.
i will try find a way around it.
i can't use a link because it's all in javascript, because i'm using some widget.
And i don't even think i can use window.location=...
because its a stripes action bean that i'm calling.
i will try find a way around it.
ASKER
I need to load specific information based on java cgi parameters (a primary key),
so I will have to handle it server side...
the problem is that the primary key is taken from a click on a row in this 'XSLDataGrid'.
Since this is completely contained within the javascript in the <head></head>, it's not really within a <form></form> block.
Is there a way to call an actionBean directly without being within a form?