Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!

patriot indian

Greenhorn
+ Follow
since May 20, 2009
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by patriot indian

Hii, I want to know how to populate data from database in my drop down box...MY app first of all asks user to fill a registration Form..In registration Form there are fields like cities,country...Now for this i want to prepare a drop down box but the data for the drop down should be fetched from database....There is a direct <html:link> in my homepage for the registration page...Now i am using Struts but since there is no action Class which is called and no session initialized how will i fetch the data from the database....


Please Help....
11 years ago
I am facing a peculiar problem....I am having an application in which there are 2 different types of users...each shown a different page after logging in...I am chacking at each page whther a user has logged in and if he is not logged in am redirecting him to login page...But the problem is Suppose one user logs in and after sometime he is logging out...Now second user logs in...On pressing back button he is redirected to the pages of the other user and he can do all the stuffs..How to prevent him from accessing that data...
11 years ago
Hey i solved provblem to certain extent instead of jsp:forward i used response.sendRedirect("login.jsp")...but it is not redirecting to the page...Also its not showing any error...What is causing such thing..I am giving my jsp code please help..
.
11 years ago
Hii,,

I am having a problem doing session management in Struts.....After logging out the user has to be directed to login page. and invalidate the session..This i am doing through logoff action class...Also after logging i need to make sure that user cannot see the contents of jsp page rather be directed to login page...here is m login action class..
.

My logoff action class is as follows


In all the action classes i am checking whether the (String)session.getAttribute("loggedin")==true...If not i am redirecting it to login page...This works fine...But in my jsp i am trying the same thing...


Its giving Illegal State Exception....Cannot FORWARD..The response already committedI am using a simple tile template for each of my page...one of the page is






Its giving Illegal State Exception...What is the problem i am unable to understand..I also incresed size of buffer to 256k but still no solution....Please Help as to how to redirect to login page after session is invalidated


Thanks in advance


11 years ago
Hiii,,


I want to know how can we add date picker in Struts 1.1 while making a form with date fields.....

Also i am using struts validator framneowrk for validating my form fields(i am working on STRUTS 1.1)...Here i have two date fields...
How to check whether the date entered is less than present date and also whether the date enteredin second field is greater than that of first field....


Thanks in advance
11 years ago
Hiii...i am facing a problem...
I have to get the data from the database into my jsp page...Initially only few fields of the data should be there...Like Suppose there are 10 users..Then first of all the user sees the data of all 10 users

Serial no Field 1 Field2 Fileld3 Select
User1
User2
.
.
.
.
.
User10

Here Field 1,2 and 3 are containing the field values form the database and nbeneath select is a buttowhich on pressing redirects us to a page where user can see the whole record of the user..like if the user clicks on the select button of user2 he should see all the records of user2 ...How to do this problem...I am getting the data in the above mentioned format but how to get data of only one user based on the click he makes is what is baffling me...any thoughts


Please Help...
11 years ago
Can you show me a bit of working some pseudocode sort of thing so that i can use it..

Thanks in advance....
11 years ago
hey thanks for the quick reply...but can you tell me how to solve this problem ...i need to get the entries from the databse into my jsp page...how exactly we will do that...currently i am able to pass the object into the arraylist...now i need to get the attributes(methods) to display them on the jsp...
11 years ago
Hii,

i am a newbie to struts...currently using 1.1 version...i was trying to retrieve the data from database onto my jsp page but am having trouble...please help me out...i have a database and i have to retirve values form there into my jsp page ...here is what i am doing..
Action Class



The java bean is


and jsp is


On executing this i am getting error
No getter method for property ProposerID of bean collection


Please help me out.....
11 years ago