Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 188
  • Last Modified:

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
0
dbrownell83
Asked:
dbrownell83
  • 2
  • 2
1 Solution
 
objectsCommented:
a redirection can only be handled server side

did u really want a redirect, or did you just want to change the page loaded in the browser?
you can use javascript to change the window loacation to achieve that
0
 
dbrownell83Author Commented:
im not sure.

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?
0
 
objectsCommented:
if it accepts GET requests you should be able to use a link (or set window location via js)
0
 
dbrownell83Author Commented:
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.

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now