hi ,,
I have two lists, when I select an item from the first
list, the second list will be populated based on the
selected item.
in the first list there are cities when the user selects a city the schools in that city should be added to the second list from the database ... the first list not...
what i mean is that i have a table of products each record is hyperlinked .. when the user clicks on the link he gets the details of that product in another page ..
in asp there is something called Query string
how i can do the same in jsp ??
<a href="mateDetails.jsp?h=<%=rs.getString("regis_id")%>">
id = Request.querystring ("h")
sessions are working perfectly
now .. if am using teh session in other pages ..
i want to give the variable strUser teh value of the session ... how i can do it ?
i tried this:
String strUser = session.setAttribute( "userName" );
and tried this:
String strUser =...
hi again
session.setAttribute( "theName", name );
what is the ( "theName", name ); ??
where should the value be .. and where is the session name ?
i want to have if condition after this query .. this condition is if there is no record found the session should be "" and error msg else the session = the username of the record found (actually this code for checking the login)
//////////...
hi ,
what shall i write in the url to open my page
am trying to open my jsp page which is in the path(
D:\Tomcat 4.1\ClassMate\mates.jsp)
but i get this error
///////////////
HTTP Status 404 - /catalina_home/classmate/mates.jsp...
hi everyone,,
am new with jsp .. i need to know if we can retrive data using jsp ... also .. can we insert, delete, update from the database using jsp ,,, if yes .. where i can find examples of the codes ? ..
thanks,
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.