Just in case someone have been using stripes:
It is easy to refer to a button(<"myButton"...> ) on jsp page from 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>
Who is Participating?
TimYatesConnect With a Mentor Commented:
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


komlaaaAuthor Commented:
"myAction.action" being the StripeActionBeanClass
<!-- Begin
function popUp(URL, value){
day = new Date();
id = day.getTime();
completeUrl = URL + "?viewPageEvent=&srcPageId=" + value;
eval("page" + id + " =, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=600,height=500,left = 400,top = 250');");

and in the body, i call this like:


<A HREF="javascript:popUp('myAction.action',assignmentForm.pageId.options[assignmentForm.pageId.selectedIndex].value)">View assignments</A>
komlaaaAuthor Commented:
Then yeah u r right. JavaScript did it.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.