Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-11-2007, 04:17 PM
Member
 
Join Date: Dec 2007
Posts: 2
piterskiy74 is on a distinguished road
Cannot pass the correct property value to a form
Hi, everyone!

If anyone can assist me, please let me know.

There may be a simple solution to this, or it is just some sort of error I have, but I cannot firure it out for a while now.

Everything seems to be fine.

I have jsp page, I have a struts form. I have action class.

Jsp has form that will do some sort of things: search, edit, add...
Also page has a scrollolling functionality which works!

When performing search, everything works fine: all form's property are assigned values, action gets this values and sends to appropriate business logic and gets back values in the collections.Collection is put into session.

When retrieving values in jsp page I have "edit" button, when it is clicked, I call javascript function with a "key" value as a parameter.
Set the from property to that key and submit it to a particular action.

What happens is the first time when I do that, form's property is successfuly asigned to the "key", action retrieve that property from the form and sends it to a business logic to get searched data.

ALL THIS WORKS THE FIRST TIME WHEN I CLICK "EDIT". When I try to select another data, and click on "edit", the correct values are passed to javascript function, but form still gets the old values.

Moreover, after clicking "next" to go to the next set of records, I'm able to get a different data but for one record only.

IF ANYONE COULD HELP ME, PLEASE, I WOULD REALLY APPRICIATE IT.

Thank you in advance.


Eugene
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pass by ref. A work around? diRisig New To Java 0 02-05-2008 08:25 PM
Is my Pseudocode correct? Clemenza1983 New To Java 0 01-29-2008 05:07 AM
To correct forum Jman Introductions 3 01-18-2008 03:33 AM
how to pass array in java? sivasayanth New To Java 3 01-13-2008 05:33 PM
Struts Form Bean with property Java Tip Java Tips 0 12-27-2007 11:10 AM


All times are GMT +3. The time now is 01:08 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org