I'm a little confused as to how I would go about doing this. I have successfully made a menu on my J2ME application which can do various things to a database. However, I'd like each section to call a specific Servlet designed for the job. How can I do this?
At the moment I have the URL declared at the beginning pointing to the correct place, and the web.xml file set to load the correct servlet. But how do I tell the application to load a different file from before, depending on which menu option was picked.
i.e. if Option 1 was chosen, then it will load the servlet to querry the DB. But if Option 2 was chosen, then I would want to load a servlet to add to the DB.
Hope that makes some sense. Thanks for any tips!
At the moment I have the URL declared at the beginning pointing to the correct place, and the web.xml file set to load the correct servlet. But how do I tell the application to load a different file from before, depending on which menu option was picked.
i.e. if Option 1 was chosen, then it will load the servlet to querry the DB. But if Option 2 was chosen, then I would want to load a servlet to add to the DB.
Hope that makes some sense. Thanks for any tips!
