Aren't you missing the '/' at the end of the Text Tag?

If your tag is like this:

 <html:text name="nameOfJSPBean"
            property="nameOfPropertyOfJSPBean"
            value="" >

just add an '/' at the end of the tag:

 <html:text name="nameOfJSPBean"
            property="nameOfPropertyOfJSPBean"
            value="" />

Struts tags always needs to be enclosed (Its not like HTML in that aspect).

Regards.

                       Luis Olivares.
           [EMAIL PROTECTED]
   --------------------------------------------------------------
  "Intelligence is the ability to avoid doing
       work, yet getting the work done"
                  --Linus Torvalds--

----- Original Message ----- 
From: "Alf Konrath" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 13, 2001 7:58 AM
Subject: shown variable value in <html:text>-input


> hi struts-users,
> 
> perhaps someone can help me? :-)
> 
> i have a problem with the <html:text>-tag. i dont surely understand what
> i have to put in the value-parameter. it is stated that i can use
> runtime-expressions, but i definitely dont get it running.
> 
> my tag looks something like:
> 
> <html:text name="nameOfJSPBean"
>            property="nameOfPropertyOfJSPBean"
>            value="" >
> 
> i just want to get a text-input, which is filled with the same
> value of my JSPBean, in which the input of the user will be pasted upon
> population.
> 
> so i tried things like:
> (Yeah, i really know, that this can't work  ;)  )
> 
> <html:text name="nameOfJSPBean"
>            property="nameOfPropertyOfJSPBean"
>            value="<%= nameOfJSPBean.getNameOfPropertyOfJSPBean() %>" >
> 
> and the runtime expression thing, explained in the BeanTagDeveloperGuide
> like:
> 
> <html:text name="nameOfJSPBean"
>            property="nameOfPropertyOfJSPBean"
>            value="nameOfPropertyOfJSPBean" >
> 
> but also this doesn't work ... the String "nameOfPropertyOfJSPBean" is
> just interpreted as String.
> 
> can anyone give me a hint, what i am doing wrong and how to solve it?
> thanx for your help in advance!
> 
> best regards,
> alf
> 
> ps: i use VA4J 3.5.3. is it perhaps a bug of that ide???
> 
> 

Reply via email to