Solved

Stripes

Posted on 2006-06-21
3
403 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
  • 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Run the project 5 82
java cigar challenge 58 204
build fail in maven project 11 170
Can't access image with tomcat/html 6 84
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
A procedure for exporting installed hotfix details of remote computers using powershell
This video discusses moving either the default database or any database to a new volume.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

707 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

17 Experts available now in Live!

Get 1:1 Help Now