Solved

How to redirect in Stripes, without using a <form>

Posted on 2006-11-15
4
172 Views
Last Modified: 2010-03-31
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
Comment
Question by:dbrownell83
  • 2
  • 2
4 Comments
 
LVL 92

Accepted Solution

by:
objects earned 500 total points
ID: 17953295
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
 
LVL 1

Author Comment

by:dbrownell83
ID: 17954789
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
 
LVL 92

Expert Comment

by:objects
ID: 17959998
if it accepts GET requests you should be able to use a link (or set window location via js)
0
 
LVL 1

Author Comment

by:dbrownell83
ID: 17960568
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Java / Linux and Regular Expressions 11 71
Java Loop 6 50
diffSum example 4 27
expectj telnet failing 5 26
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now