![]() |
| ||
| Accessing a array through a servlet and outputting info in a JSP? I have researched and have not come up with any examples and no answer as to how to do this. Please help... The molecular2.java does all the computation. I will only include a snippet of it. This file is like this because I needed to return multiple items and could not find another way to do it. public String getResult(String mw) I want to pass the information hat I get here to a servlet that looks like this and is called MoleCalc.java public class Molecalc extends javax.servlet.http.HTTPServlet implements javax.servlet.Servlet {Could someone please tell me how to implement the array into this code? I have tried everything that I can imagine but it is not working. I am figuring that for the jsp, which is MoleCalc.jsp, that I would just do a couple of foreach statements. <form name = "moleformula" method="get" action="MoleCalc.java" onsubmit = "return vInputMoleformula(this);"> I am not a student working on an assignment for school and trying to weasle answers out of you all. I am terribly lost and am in desperate need of some suggestions as to how to attack this problem. Any help would be great.... Thanks! |
| ||
| Re: Accessing a array through a servlet and outputting info in a JSP? If you check this tutorial you should be able to find answer to your question |
| All times are GMT -4. The time now is 2:24 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC