File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Help for JavaScript, JSP, JavaBean for sample Application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Help for JavaScript, JSP, JavaBean for sample Application" Watch "Help for JavaScript, JSP, JavaBean for sample Application" New topic
Author

Help for JavaScript, JSP, JavaBean for sample Application

munish gupta
Greenhorn

Joined: Feb 21, 2012
Posts: 6
For Knowledge of JSP, Servlets, Java script and CSS i am trying to build a sample application.

Application Brief :

There are 5 gaming stores. Every Store has different products.
The store's list and Product's list are to be read from a property file. [ Hard coded as of now ]
The attributes of products have to be saved in JAVA BEAN.
The StoreWise product's list is stored in HashMap.

Depending on the store selected the product list should gets populated on same page without refreshing the page.

While selecting the store, I am getting the index of selection.
But i am struct while passing this index [ JavaScript variable ] to HashMap [JAVA variable] to get
the storewise list of products.
e.g.
hashmap has key value like
HASHMAP <0> , LIST<a,b,c,d>
<1>,<LIST<e,r,t,y>
<2>,<LIST<e,r,t,y>

LIST is list of products
0,1,2 are indexes of stores


Could you please help regarding same if I can use something else.
Can I use Someother JAVA technology [AJAX or else] for same.

Thanks
Munish.
Paul Strachan
Greenhorn

Joined: Oct 24, 2004
Posts: 10
Yes, an ajax request (if you don't want to refresh the page)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help for JavaScript, JSP, JavaBean for sample Application
 
Similar Threads
Tomcat madness!
Having troubles with iFrame and JSP
Searching and displaying results in a multi-dimensional array.
June Newsletter Puzzle
Searching and displaying results in a multi-dimensional array.