Menu

#37 contact.jsp bean-calls

struts-proposal
open
Views (7)
5
2005-06-20
2005-06-20
No

There's a lot of calles like this:
<jwmabean:contact name="<%=
ContactsGlobals.CONTACT_BEAN %>" scope="request"
property="title"/>

instead of like this:
<%= contact.getTitle() %>

(since the contact-bean is already defined at the top)

I thought that it was intentional first, but at the end
of the file you are using the second way instead, so
you just must have forgotten to change the rest of the
page.

Discussion

  • Dieter Wimberger

    Logged In: YES
    user_id=36782

    Pavel,

    Actually this needs to be cleaned up, but it is not necessarily a bug.
    The bean should not be defined at the beginning, and
    calls should be by bean tags, not by scripts:
    <jwmabean:contact name="<%=
    ContactsGlobals.CONTACT_BEAN %>" scope="request"
    property="title"/>
    and not the script <%= contact.getTitle() %>

    I'll move it to RFE and take a look at it asap. (specifically when knowing
    how to do the history better).

    Regards,
    Dieter

     
  • Dieter Wimberger

    • labels: 104756 --> Views
    • milestone: 385044 --> struts-proposal
    • assigned_to: nobody --> wimpi
     

Log in to post a comment.