You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "PADALA, SANDHYA (SBCSI)" <sp...@sbc.com> on 2004/05/25 22:47:08 UTC

tag

  I am trying to generate <a href> using <html:link> tag. I need to
append a query string at the end of the URL

What I want to achieve is <A href="/index.do?firstname=john">LINK</A>
Using <html:link page="/index.do" paramId="firstname"
paramProperty="john">LINK</html:link>


Can someone give me an example on how to use <html:link> tag using
paramID attribute.

Thanks for any assistance
Sandhya


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Validator question

Posted by Joe Germuska <Jo...@Germuska.com>.
At 5:15 PM -0500 5/25/04, Peter Martin wrote:
>I have a select list that I want to validate the user picked one of the
>values.  The options in the select list are as follows:
>
>option[0]    value = ""     label = "Please Select"
>option[1]    value = "P"   label = "Probation"
>option[2]    value = "T"   label = "Trial"
>option[3]    value = " "    label = "None"
>
>option[1], option[2], or option[3] where option[3] is one blank are valid
>selections.  I know that I can't use "required" because required will not
>except option[3] since it is blank.  I tried using a mask of [ TP].  That
>worked for the JavaScript validation, but failed in the validate method of
>the ValidatorActionForm.
>
>Any thoughts?

Make the value for "None" a non-empty string (maybe the word 'none'), 
and translate it in the action before passing it into your 
application core.

Joe

-- 
Joe Germuska            
Joe@Germuska.com  
http://blog.germuska.com    
       "Imagine if every Thursday your shoes exploded if you tied them 
the usual way.  This happens to us all the time with computers, and 
nobody thinks of complaining."
             -- Jef Raskin

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Validator question

Posted by Peter Martin <pe...@comcast.net>.
I have a select list that I want to validate the user picked one of the
values.  The options in the select list are as follows:

option[0]    value = ""     label = "Please Select"
option[1]    value = "P"   label = "Probation"
option[2]    value = "T"   label = "Trial"
option[3]    value = " "    label = "None"

option[1], option[2], or option[3] where option[3] is one blank are valid
selections.  I know that I can't use "required" because required will not
except option[3] since it is blank.  I tried using a mask of [ TP].  That
worked for the JavaScript validation, but failed in the validate method of
the ValidatorActionForm.

Any thoughts?



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: tag

Posted by Robert Taylor <rt...@mulework.com>.
http://jakarta.apache.org/struts/userGuide/struts-html.html#link

> -----Original Message-----
> From: PADALA, SANDHYA (SBCSI) [mailto:sp4835@sbc.com]
> Sent: Tuesday, May 25, 2004 4:47 PM
> To: user@struts.apache.org
> Cc: PADALA, SANDHYA (SBCSI)
> Subject: <html:link> tag
> 
> 
>   I am trying to generate <a href> using <html:link> tag. I need to
> append a query string at the end of the URL
> 
> What I want to achieve is <A href="/index.do?firstname=john">LINK</A>
> Using <html:link page="/index.do" paramId="firstname"
> paramProperty="john">LINK</html:link>
> 
> 
> Can someone give me an example on how to use <html:link> tag using
> paramID attribute.
> 
> Thanks for any assistance
> Sandhya
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org