You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ian Hunter <ih...@hunterweb.net> on 2003/04/11 21:18:45 UTC

Pass parameter to action

why doesn't this work?

<html:link action="displayschedule?date=<%=prevMonthStr%>">Prev
Month</html:link>

I know I'm missing something obvious...


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


RE: Pass parameter to action

Posted by Ron Day <ro...@ronday.cc>.
.do  ???

-----Original Message-----
From: Ian Hunter [mailto:ihunter@hunterweb.net]
Sent: Friday, April 11, 2003 2:19 PM
To: Struts Users Mailing List
Subject: Pass parameter to action


why doesn't this work?

<html:link action="displayschedule?date=<%=prevMonthStr%>">Prev
Month</html:link>

I know I'm missing something obvious...


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


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


Re: Pass parameter to action

Posted by Ian Hunter <ih...@hunterweb.net>.
Give the man a cigar!  Thanks much.

----- Original Message ----- 
From: "James Mitchell" <jm...@apache.org>
To: "'Struts Users Mailing List'" <st...@jakarta.apache.org>
Sent: Friday, April 11, 2003 6:41 PM
Subject: RE: Pass parameter to action


> Try this:
> 
> <bean:define id="prevMonth">
>   [Put your month here]
> </bean:define>
> 
> <html:link action="displayschedule" 
>           paramId="date" 
>         paramName="prevMonth">
>   Prev Month
> </html:link>
> 
> 
> --
> James Mitchell
> Software Developer/Struts Evangelist
> http://www.open-tools.org
> 
> 
> 
> 
> > -----Original Message-----
> > From: Ian Hunter [mailto:ihunter@hunterweb.net] 
> > Sent: Friday, April 11, 2003 12:19 PM
> > To: Struts Users Mailing List
> > Subject: Pass parameter to action
> > 
> > 
> > why doesn't this work?
> > 
> > <html:link action="displayschedule?date=<%=prevMonthStr%>">Prev
> > Month</html:link>
> > 
> > I know I'm missing something obvious...
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 

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


RE: Pass parameter to action

Posted by James Mitchell <jm...@apache.org>.
Try this:

<bean:define id="prevMonth">
  [Put your month here]
</bean:define>

<html:link action="displayschedule" 
          paramId="date" 
        paramName="prevMonth">
  Prev Month
</html:link>


--
James Mitchell
Software Developer/Struts Evangelist
http://www.open-tools.org




> -----Original Message-----
> From: Ian Hunter [mailto:ihunter@hunterweb.net] 
> Sent: Friday, April 11, 2003 12:19 PM
> To: Struts Users Mailing List
> Subject: Pass parameter to action
> 
> 
> why doesn't this work?
> 
> <html:link action="displayschedule?date=<%=prevMonthStr%>">Prev
> Month</html:link>
> 
> I know I'm missing something obvious...
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 


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