<font color=red>Help me to do this</font>
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   sabu_vs
Posted On:   Monday, May 13, 2002 02:29 AM

Hi I have a jsp program that accepts user input[name and email]. In my program I declared the variables name and email. I want to create a bean that validates the user input and assign values to the respective variables.This bean should call like this <% validte() or validte(request) %> Then the bean begins to read the request. if the field " name " has a value then it assign this value to the variable " name " which is declared in the calling jsp page. If there is no curresponding variable then leave that field.    More>>

Hi



I have a jsp program that accepts user input[name and email].


In my program I declared the variables name and email.


I want to create a bean that validates the user input and assign

values to the respective variables.This bean should call like this





<%


validte()

or

validte(request)


%>




Then the bean begins to read the request. if the field " name " has a value

then it assign this value to the variable " name " which is declared

in the calling jsp page. If there is no curresponding variable then leave that field.



But I donot know how to do it.
Does REFLECTION helps to solve this.
Could you pls help me.Could you pls include some sample codes




thanks for your time


sabu

   <<Less

Re: <font color=red>Help me to do this</font>

Posted By:   Dave_Lorde  
Posted On:   Monday, May 13, 2002 06:24 AM

Can you post the code you've got so far? (both JSP and bean code).


It always helps to have all the information to hand when doing other people's assignments.


Alternatively, you could always try reading some basic JSP tutorials (e.g. http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/JSPIntro.html).


Dave

About | Sitemap | Contact