Java

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • validate an html:multibox and show messages in the own page

    0 answers - 1010 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Heidy G G wrote:
    Hi
    I'm using the <html:multibox /struts tags.
    I need validate the total of "checked" that have been selected.
    I can do that with java script code, but i need put a var in the session
    scope with the purpose of show the error message later, and that, i can not
    do that with the java script code.
    I'm not sure I understand your question. No, you can't access the
    session from Javascript, since the session lives on the server and the
    Javascript runs in the browser. However, any validation you code in
    Javascript should be backed by server-side validation (in case the user
    has turned Javascript off).
    Your client-side validation can present the error message however it
    likes; your server-side validation can use the standard saveMessages()
    approach.
    L.
    To unsubscribe, e-mail: user-unsubscribe (AT) struts (DOT) apache.org
    For additional commands, e-mail: user-help (AT) struts (DOT) apache.org

Re: validate an html:multibox and show messages in the own page


max 4000 letters.
Your nickname that display:
In order to stop the spam: 1 + 1 =
QUESTION ON "Java"

EMSDN.COM