helpppppppppppppppppppppppppp

hello,

i have a bean in my jsp page which gets the users name and password using two methods called getuser()and setuser() what i have got struck is that i should get this values into a class which has a method like this Geninfo("user" , "pass") ; actually the values which i get from the bean properties should be updated in "user" and "pass" respectively in my class!!! what i succeded is that this class file gets the default values which i specify but the ultimate goal is to get "user" and "pass" whenever it is entered in the jsp page!!!!!

is it simple then tell me how to do it!!

[613 byte] By [siv-viv] at [2007-9-26 3:09:14]
# 1

You've posted this message serveral times, you might want to try clarifying a little more and maybe even assigning some duke dollars to it.

I'm not sure what it is you're getting at.

> which gets the users name and password using two

> methods called getuser()and setuser()

those two methods get the user and set the user respectively I assume.

So try to explain your problem a little better and I'll see if I can help, but posting the same stuff multiple times doesn't get you a response any quicker or better. It's acutally just annoying.

Hope that helps,

Bryan

bryanwclark at 2007-6-29 11:14:45 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

sorry for repeating my posting !!! well i was desperate for a help!! what u assumed is correct fine the bean returns getuser() and getpass() (i have tested it by print stmt on my jsp page) now what i try to do is that i have a class file with method called as genLogin(user , pass) , the parameters user and pass have to be obtained from the bean , in the bean i have set a default value for user = "abc" and pass = "yyy" , so wheni query my jsp page i see that everytime the default value is being taken and not the values what i enter in my jsp page.

well another question is that can i call a normal java class in my jsp page.

siv-viv at 2007-6-29 11:14:45 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
> well another question is that can i call a> call a normal java class in my jsp page.of course you can :)Badr.
zbadr at 2007-6-29 11:14:45 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4

how are you setting the bean values in your page?

<jsp:useBean id="login" class="LoginBean" scope="request">

<jsp:setProperty name="login" property="*"/>

</jsp:useBean>

Make sure you're html is exact to your setUser() and setPass() parameter names.

<input name="user">

<input name="pass">

then you should be able to use those values

<% ClassFile classFile = new ClassFile();

classFile.genLogin(login.getUser(),login.getPass());

%>

Is this what you're trying to do?

Hope that helps,

Bryan

bryanwclark at 2007-6-29 11:14:45 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...