What Matt suggested *should* work as I have the following in one of my pages
and it works without fault:

#tag( TextField "label='Client Name:'" "name='name'" )

Does your action class have a getter method for the 'username' parameter?

ie.
public String getUsername() {...}



> ----- Original Message ----- 
> From: "Matt Ho" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, February 19, 2004 9:40 PM
> Subject: Re: [OS-webwork] Webwork2 tags not working on velocity
> 
> 
> > >     #tag( TextField "label=Username" "name=username" )
> >
> > This should be
> >
> >       #tag( TextField "label='Username'" "name='username'" )
> >
> > The issue is that at a previous point, not all the attributes of webwork
> > tags were evaluated.  Currently, they are.  I've updated the wiki so it
> > should be correct now.
> 
> Matt,
> 
>     Thanks for the help, but that didn't work either. Is there anything else
> that could be wrong? web.xml configuration? Some JAR missing? It is still
> displaying an error:
> 
> Invalid arg #0 in directive #tag at line 31, column 1 in template
> /admin/login.vm
> 
>     I tried:
> 
> #tag( TextField "label='textfield test'" "name='textfieldName'"
> "value=scalar" "size=50" )
> 
>     and
> 
> #tag( TextField "label='Username'" "name='username'" )
> 
>     Neither worked.
> 
>     What's wrong? I'm using webwork-2.0 and xwork-1.0 (the first non-beta
> release).
> 



Wayland Chan
email: wchanATtrekspaceDOTcom

----------------------------------------------------------
Get your free email account from http://www.trekspace.com
          Your Internet Virtual Desktop!


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to