How to handle data validation in a JSP page.

From: Rich Hajinlian (mynewsmail_at_datasystemsintegration.com)
Date: 01/31/04


Date: Sat, 31 Jan 2004 13:36:13 GMT


 I'm wondering how folks handle field validation on jsp pages? I have a jsp
page and the
form variables need to be checked for proper values (numbers only, Date
format's and users not entering required info).

I have a bean managed entity bean and I was wondering how people
implement this type of validation logic. I'm sure it's not to be
implemented in the
.jsp page and should be checked in a session/entity bean? Another
question.......Is a session bean even necessary or should my entity bean
handle communications with the jsp pages?

Thanks for any help in advance.

J2EE newbie :-)



Relevant Pages

  • Re: put application on server ??!!!!
    ... > I am new to web service programming and I just start to learn jsp. ... > make my application into a bean? ... separate those two pieces into separate code bases with published APIs ... Have forms submit to servlets. ...
    (comp.lang.java.programmer)
  • Show a bean property in jsf....its so difficult?????
    ... I have a jsf application and i have to show a bean value into a jsp ... public String[] getarraylinee{ ... catch (NullPointerException exc) { ...
    (comp.lang.java.programmer)
  • Re: How to handle data validation in a JSP page.
    ... >I have a bean managed entity bean and I was wondering how people ... >implemented in the .jsp page and should be checked in a session/entity bean? ... .jsp already. ... >handle communications with the jsp pages? ...
    (comp.lang.java.programmer)
  • Re: EJB 3.0, JSF, JBoss....
    ... die dann in der JSP als Bean angesprochen wird. ... dependency injection allerdings habe ich das nicht hinbekommen. ... weis einer weiter? ...
    (de.comp.lang.java)
  • Re: Passing sql value to a bean from jsp???
    ... actually suspected spamers' email addresses. ... extra characters past my max allowed. ... >> I have a jsp page that displays some information stored in a MySQL ... >> the values of the column and pass them to my bean for some reformatting. ...
    (comp.lang.java.programmer)