Comment on Tutorial - DispatchAction in Struts By Grenfel



Comment Added by : Alistair

Comment Added at : 2012-01-14 10:59:52

Comment on Tutorial : DispatchAction in Struts By Grenfel
Following question to this topic:
- when in a dispatch action I am unable to pass a field parameter and it's value within the URL.
-projectID works, teamID does not work
- teamID is entered by the user in the input field

I was trying to get the value via javascript, but I read that the action is evaluated before the javascript.



Here my code:
<input type="text" name="tsid" id="tsid" maxlength="100" />
<li>
<a href="<@s.url action='deleteTeam' value='deleteTeam.jspa'>
<@s.param name="projectID" value="${projectID?c}"/>
<@s.param name="teamID" value="javascript: document.getElementById('tsid').value"/>
</@s.url>">
<@s.text name="delete Team" /></a>
</li>


View Tutorial



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. Your Crystal report viewer showing all the records
View Tutorial          By: Neel at 2013-06-09 15:02:15

2. Okay, this article cleared my two doubts i.e. Use
View Tutorial          By: Shrikrishna Meena at 2010-09-26 12:38:04

3. very informative
View Tutorial          By: santhosh reddy WILLY at 2012-07-06 21:33:39

4. Very nicely explained, especially the step-by-step
View Tutorial          By: Kaushik at 2012-09-20 06:58:45

5. this helps a lot
View Tutorial          By: Ashar at 2010-04-28 04:47:36

6. hello after working with this code i got the follw
View Tutorial          By: Tapaswini Sabat at 2011-11-05 12:43:49

7. Hi , instead of using localhost. I am using a mobi
View Tutorial          By: ashish at 2011-02-28 05:05:49

8. Thanks a ton sir.....
This is very informat

View Tutorial          By: Shailaja at 2009-12-27 10:43:42

9. How can I save the canvas edited by the user from
View Tutorial          By: pavan at 2014-10-14 08:26:55

10. Thank you ... was very helpfull indeed !!
View Tutorial          By: Avinav at 2011-02-09 15:46:37