how can i get myname value as "cikun" in line 17 in mybean servlet . i have changed the value of myname in doGet service method.
i tried by putting this function "setTitle(myname)" in doGet but it didn't solved the problem .
David Newton wrote:I'm really not sure what you're trying to do.
Are you trying to pass data from a servlet to a JSP? Are you trying to create a JavaBean and for some reason extending a servlet?
sorry for late reply
i am supposed to get the value "cikun" in the mybean.jsp page so for this i need to set the value in "setTitle()" method , so how can i get the value of "myname" which i have changed as "cikun" in doGet.i hope i have explained right this time
actually i am setting a value of a variable in the doGet method , so using beans i was trying to pass the value to the jsp page .
i should be shot for trying to merge beans & servlet , ok trying now .
thanks for pointing the mistake