facebook

(JSP-Struts) Problems filling dynamically

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #247843 Reply

    perret
    Member

    Hello 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
    🙂

    #247868

    Riyad Kalla
    Member

    Moving to OT > Soft Dev

    #247870

    perret
    Member

    @support-rkalla wrote:

    Moving to OT > Soft Dev

    My mistake for the wrong forum, i’m sorry 😳

    #247896

    perret
    Member

    I am the only who faced this issue? Please help me 🙁

    #247899

    Riyad Kalla
    Member

    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> 
    
    #247990

    perret
    Member

    @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)

    #249099

    Titanium
    Member

    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 !

    #249105

    Riyad Kalla
    Member

    If Eids is an Integer, try this:

    <html:text property=”eid” value=”<%= Integer.toString(Eids) %>” />

    #249386

    perret
    Member

    @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

    #249407

    Riyad Kalla
    Member

    Glad it’s working now.

    #249448

    perret
    Member

    @support-rkalla wrote:

    Glad it’s working now.

    Thanks to you 😉

Viewing 11 posts - 1 through 11 (of 11 total)
Reply To: (JSP-Struts) Problems filling dynamically

You must be logged in to post in the forum log in