• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

JSp-urgent

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all
can anyone please help me to solve my problem..
1)the thing is that i have 'N' no of fields which is generated dynamically by the user..after filling the fields the user submits the data that should be taken to next JSP page(say like page1,page2, etc)..so my values from page + values entered in page passed to the server for further manipulation..this is normal
2)but if my user again goes back to pageno1 & reenters the values then this should also be carried to pageno2 and the changes in the pageno2 must reflect..
..my problem is i can't use hidden values to pass from one page to another b'cos the fields are generated dynamically and also very large in no..say 1000 fields..
..and also if i store the values in an array in JAVASCRIPT..i can't pass this array to the server along with its value..
i have a doubt that if i use a java file in <jsp:use bean>so that my bean collects all the values in an array and stores that value so that whenever needed i can collect that??but from my html fields how to interact with the bean which collects the value from my html fields(again i should go for javascript-which collects the values from the fields and puts in a hidden field..so iam back to score1 where i can't use hidden fields)..so is there any other way to do this???please help me its very urgent
thanx in advance
awaiting for your reply
ram
 
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I wouldn't bother sending any information to a page which isn't needed on that page. Put the rest in your session and just update it when any page submit comes in. When you build the next page, render it from the current session values, without worrying how they got there.
 
Ranch Hand
Posts: 1467
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ram,
I replied to your mail which you sent to yahoo id today. Please take a look.
regds
maha anna
 
when your children are suffering from your punishment, tell your them it will help them write good poetry when they are older. Like this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic