- This topic has 10 replies, 3 voices, and was last updated 19 years, 3 months ago by
perret.
-
AuthorPosts
-
perretMemberHello everybody 🙂
I’m facing a weird issue today. I really hope you will be able to help me because i can’t find any logic to this!
I’m trying to fill dynamically a html:text form, which receive a variable from a bean:
<TD>Arrival date:</TD> <TD><html:text property="date_arrivee" value="<%out.print(date);%>" > </html:text> <html:errors property="date_arrivee" />
The form is filled with <%out.print(date);%> instead of what’s inside de variable. This code should work, i don’t understand… Did I something wrong? Because when i change the html:text with a html:select its working:
<TD>Arrival date:</TD> <TD><html:select property="date_arrivee" value="<%out.print(date);%>" > <OPTION><%out.print(date);%></OPTION> </html:select> <html:errors property="date_arrivee" />
Any ideas? Thanks for the help
🙂March 7, 2006 at 7:10 am #247868
Riyad KallaMemberMoving to OT > Soft Dev
March 7, 2006 at 7:13 am #247870
perretMemberMarch 7, 2006 at 10:10 am #247896
perretMemberI am the only who faced this issue? Please help me 🙁
March 7, 2006 at 11:06 am #247899
Riyad KallaMemberSorry, I meant to, just needed to get the time. The problem is that you are misunderstanding how these things work, the quick answer is change to this:
<html:text property="date_arrivee" value="<%= date.toString() %>" > </html:text>
March 8, 2006 at 2:21 am #247990
perretMember@support-rkalla wrote:
Sorry, I meant to, just needed to get the time. The problem is that you are misunderstanding how these things work, the quick answer is change to this:
<html:text property="date_arrivee" value="<%= date.toString() %>" > </html:text>
Hello Riyad,
I am really sorry for this, tough you hadn’t notice my topic. Thanks one more time for your help, your forum is one of the strenght of MyEclipse, hope you will keep on going this way 🙂
Have a good day. 8)
March 22, 2006 at 10:46 am #249099
TitaniumMemberSorry for bothering but i face the same probleme u had… could not resolve it with the indication they gave u. Was wondering if u solved your problem? if yes you or someone can give me a hint on how u can do this…
thanks for the help !ps: i`m trying to do this in Jsp, strut
<TH>EID</TH>
<TD><html:text property=”eid” value=”<%=Eids%>” /></TD>EIds is an int, i have the following error:
JspCompile : La méthode setValue(java.lang.Integer) n’est pas définie pour le type org.apache.struts.taglib.html.TextTag.
(well i know it`s french… i`m a frenchie ! 🙂 ) In english it gives:
method setValue(java.lang.Integer) not defined in the type org.apache.struts.taglib.html.TextTag.Thank you !
March 22, 2006 at 11:24 am #249105
Riyad KallaMemberIf Eids is an Integer, try this:
<html:text property=”eid” value=”<%= Integer.toString(Eids) %>” />
March 27, 2006 at 7:38 am #249386
perretMember@Titanium wrote:
Sorry for bothering but i face the same probleme u had… could not resolve it with the indication they gave u. Was wondering if u solved your problem? if yes you or someone can give me a hint on how u can do this…
thanks for the help !ps: i`m trying to do this in Jsp, strut
<TH>EID</TH>
<TD><html:text property=”eid” value=”<%=Eids%>” /></TD>EIds is an int, i have the following error:
JspCompile : La méthode setValue(java.lang.Integer) n’est pas définie pour le type org.apache.struts.taglib.html.TextTag.
(well i know it`s french… i`m a frenchie ! 🙂 ) In english it gives:
method setValue(java.lang.Integer) not defined in the type org.apache.struts.taglib.html.TextTag.Thank you !
hello!
Sorry for the delay, i didn’t notice the mail for the post alert!
Indeed, i succeed in filling my textfield thanks to rkalla 😀
Thanks one more time
March 27, 2006 at 11:42 am #249407
Riyad KallaMemberGlad it’s working now.
March 28, 2006 at 2:04 am #249448
perretMember -
AuthorPosts