?
Solved

Stripes

Posted on 2006-06-21
3
Medium Priority
?
414 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 375 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

New style of hardware planning for Microsoft Exchange server.
In today's business world, data is more important than ever for informing marketing campaigns. Accessing and using data, however, may not come naturally to some creative marketing professionals. Here are four tips for adapting to wield data for insi…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses
Course of the Month13 days, 21 hours left to enroll

800 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