Link to home
Start Free TrialLog in
Avatar of komlaaa
komlaaa

asked on

Stripes

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>
ASKER CERTIFIED SOLUTION
Avatar of TimYates
TimYates
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of komlaaa
komlaaa

ASKER

"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>
Avatar of komlaaa

ASKER

Then yeah u r right. JavaScript did it.