Solved

Stripes

Posted on 2006-06-21
3
413 Views
Last Modified: 2008-02-01
Hi,
Just in case someone have been using stripes:
It is easy to refer to a button(<input.....name="myButton"...> ) on jsp page from  StripesActionBean.java class using getter and setter for the button's name,
but what if i have a link? Let's say <a href="/myStripeAction.action?pageId=val" >MY LINK</a>
0
Comment
Question by:komlaaa
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 35

Accepted Solution

by:
TimYates earned 125 total points
ID: 16951554
You'd have to send a parameter in the URL at a guess...

I've had a look at Stripes but gone no further as yet (though I did like what I saw)

What you are doing there, is bypassing the form post, and going straight to an action...

So you won't get any variables from the form filled in I wouldn't have thought...

Javascript could help you out...  ...maybe

Tim

0
 

Author Comment

by:komlaaa
ID: 16996900
"myAction.action" being the StripeActionBeanClass
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function popUp(URL, value){
day = new Date();
id = day.getTime();
completeUrl = URL + "?viewPageEvent=&srcPageId=" + value;
eval("page" + id + " = window.open(completeUrl, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=600,height=500,left = 400,top = 250');");
}
</script>
</HEAD>

and in the body, i call this like:

<BODY>

<A HREF="javascript:popUp('myAction.action',assignmentForm.pageId.options[assignmentForm.pageId.selectedIndex].value)">View assignments</A>
</BODY>
0
 

Author Comment

by:komlaaa
ID: 16996904
Then yeah u r right. JavaScript did 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!

Question has a verified solution.

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

Article by: Justin
In light of the WannaCry ransomware attack that affected millions of Windows machines, you might wonder if your Mac needs protecting. Yes, it does and here is how to do it.
This article outlines some of the reasons why an email message gets flagged as spam on a recipient's end.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

690 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