Solved

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

Posted on 2006-11-15
4
169 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
bunnyEars challenge 6 67
changePi Challenge 15 77
topping2 challenge 13 62
thymeleaf natural templating vs JSP 2 30
For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

746 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

11 Experts available now in Live!

Get 1:1 Help Now