• 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
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

passing variable.

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How can I pass vector variable from a bean to a jsp page.
please give some advice about doing this.
payal
 
payal sharma
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Got the answer .I will use usebean in jsp and write a method in bean that will return variable value.
I have got 14 rows in each resultset and 50 values in each row.
I am getting all values of from resultset in to array.And then adding all the array to a vector. And then returning the vector with a method.
Is this approach is ok .
payal
 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If i were you, i would have rather encapsulated the data from resultset into a high level class instead of low-level data structures.
Better to maintain and easier to use in JSP.
cheers,
mpr
 
payal sharma
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
dear manjunath,
I was also told by other person that if i use object class and store the whole resultset in it then it would be easier.If possible how can i work on object class as i have to extract each field at last.
thanks in advance
payal
 
Manjunath Reddy
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
payal,
If you can illustrate what are the fields in the resultset that u need to extract..maybe i can add my 2 cents.
cheers,
mpr
 
No more fooling around. Read this tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic