Struts Readonly...

Discussion in 'Java' started by Laverna, Jun 15, 2007.

  1. Laverna

    Laverna Guest

    Hi,

    can anybody tell me, if it's possible to set sturts fields in an jsp
    site to readonly via an action?
    Hope it is understandable what I want, my englisch isn't the best...

    Greetings
    Laverna
    Laverna, Jun 15, 2007
    #1
    1. Advertising

  2. Laverna

    Alan Cui Guest

    You have to set this struts HTML input as readonly within JSP, other
    than in an action.

    Readonly is a status of HTML control. Actions don't deal with such
    kind of things, they only care about the value of each control.

    for example:
    <html:text readonly=""<%=readOnlyValue%>" property="test"/>


    On Jun 15, 5:36 pm, Laverna <> wrote:
    > Hi,
    >
    > can anybody tell me, if it's possible to set sturts fields in an jsp
    > site to readonly via an action?
    > Hope it is understandable what I want, my englisch isn't the best...
    >
    > Greetings
    > Laverna
    Alan Cui, Jun 15, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Katie Wright
    Replies:
    8
    Views:
    4,238
    Andrea Desole
    Jan 7, 2005
  2. Jason Us
    Replies:
    0
    Views:
    984
    Jason Us
    Oct 4, 2003
  3. jc1771
    Replies:
    0
    Views:
    401
    jc1771
    Dec 28, 2003
  4. sin
    Replies:
    3
    Views:
    721
    Sudsy
    Feb 22, 2004
  5. Jonathan Hyatt
    Replies:
    1
    Views:
    1,915
    Jonathan Hyatt
    Jun 8, 2004
Loading...

Share This Page