Solved

Stripes

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Running Java Servlet inside Eclipse Luna 6 148
Struts tiles for layout structure along with Angular JS. 4 150
Can't access image with tomcat/html 6 95
java operators 3 110
There are many Password Managers (PM) out there to choose from. PM's can help with your password habits and routines, but they should not be a crutch you rely on too heavily. I also have an article for company/enterprise PM's.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

911 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

15 Experts available now in Live!

Get 1:1 Help Now