Sarah ss

Greenhorn
+ Follow
since Jul 28, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sarah ss

Hey guys


This is the issue I have.

I have several apps running on different context.

Like the start pages would be :

http://localhost:8080/music/songs/start.do
http://localhost:8080/movies/startMovie.do

Now whenever I try to forward, it is always relative to the context.

Like from start.do, if I forward, it will always look inside
http://localhost:8080/music/songs/

Similarly from startMovie.do, if I forward, it will look in
http://localhost:8080/movies/

But what if I want to forward to a resource at the root level
http://localhost:8080/error.html

I know I can do something like this from StartAction (start.do)

ActionForward forward = new ActionForward();
forward.setPath("../../error.html");
forward.setRedirect(true);
return forward;

And from startMovie.do
ActionForward forward = new ActionForward();
forward.setPath("../error.html");
forward.setRedirect(true);
return forward;

But this wont work. Because I wont know whether to use a ../ or a ../../

Isnt there a simple way to forward from the root level.

Thanks
Sarah
17 years ago
hey merill
thanks for your suggestion. I tried that but i'm getting error



i think we can access only properties like that and selected is not a property of ImageButtonBean.

Appreciate your input
thanks
sarah
17 years ago
Hey guys

I've spend the last 4 hours trying this out - but no luck. If someone can help me out, I would really really appreciate it.

I have a simple page with two buttons.
searchByZipButton and searchByStateButton.

They are defined in my ActionForm as ImageButtonBean type.
I use the isSelected method to determine which button was clicked.

Now in validation.xml


I dont know how to specify the condition that check if zip code is entered only when searchByZipButton is clicked. Similarly check if state is entered only when searchByStateButton is clicked.

These are image button beans. So I dont know how to call their isSelected method in validation.xml.

Please help
Thanks
Sarah
17 years ago