The sequence of events would look like this:
1)User is in catalogue
2)User submits purchases via form
3)HTML file calls .JS file to grab values for further use
4)User confirms order in a JSP page, user inputs id and password to submit order
5)Another JSP will call values from .JS file in order to execute a database Update for the order
I hope this was clear. Thank you very much for your help.