Frankely Diaz wrote:If you want divide a html page you should user divs and mark it using css.
Hey thanks Frankely... this is really helpful..!!!
So, line number 1 populates the category object.
In line number 2 categoryId(say categoryId of 'Networking') will determine which books (i.e 1) Network Fundamentals 2) Networking Concepts 3) Network Guide) to fetch from the database and populate the books object.
shivang sarawagi wrote:So that means no matter in how many Servlets I save the username in a session. I just need a single session.getAttribute() to display the username ??
shivang sarawagi wrote:I created a User Registration servlet, saved the username in a session & displayed in the UserHomePage.jsp
by session.getAttribute("username");
Now when I am logging in with the same user credentials by a User Login servlet
I am again saving the username in a session and want to display username in UserHomePage.jsp
So do I have to put session.getAttribute() again in the UserHomePage.jsp ???
Sandy Chatterjee wrote:Sorry but where is the Resolution.
It's the same thing I have written.
Sandy Chatterjee wrote:
You are trying to say you will click on category id i.e. hyperlink and then a action should be called to fetch books from that category?
Thanks for your reply.
categoryNo is not the hyperlink.
When the jsp is loaded the category object is also loaded.
Somewhat like this:
And my problem is I am not able to fire an Action in line number 2.
still not able to figure out your problem... what are you displaying on this jsp is list of categories or directly list of books ? abd if books then of which category? and if category then why do you need to fire action class at line 2? you can give a submit button and then trigger action.
Regards,
Sandy
Akhilesh Trivedi wrote:I have a class
I use this class to access "connection", there are times where connection might be closed, and performing any operation gives me "connection already closed" error.
is there anything like,
So that I can check it in advance before performing the operation?
Any suggestions are welcome. Thanks!