vector « Development « JSP-Servlet Q&A

1. Not Serializable Exception

i am trying to create a mock shopping cart for a uni project. im using two java classes Item and shoppingCart, shopping cart uses a vector to store Items and then ...

2. Vector in JSP page

How I can iterate a vector in a JSP page? I have done it:

 Vector value = (Vector) request.getAttribute("status");
 for (Enumeration e = value.elements(); e.hasMoreElements(); )

3. how to get values from vector in JSP

i am developing a website in which it has searching option. after searching from database, it listed certain data in a jsp page and all the data from database are stored ...

4. How to create dynamic vectors in jsp?

Is there any way to create dynamic vectors using jsp. Advance thanks to you all.

5. JSPs and Vectors....

Sure you can (and probably should) provide presentation in another class. As a quick intro, you can send your request (initially) to a Servlet, get it to gather the data then DISPATCH the request somewhere else to take care of the presentation... //-----------------SERVLET ...beginning stuff left out public void doGet(...) throws ... { //read data from request ... //get data from ...

6. Vector

7. Vector

Hi all, I am getting users educational data from the jsp page. He can input more than 1 educational qualification.Only after he says it is enough, I take all these data into the database. Meanwhile,I am storing all the educational details he supplies in a vector.But when the page refreshes only the latest details are there(Suppose he had entered 2 degrees)only ...

9. Handling Vector in JSP

Hi all, Could someone show me how to pass a Vector element from one jsp to another via HREF? I need to pass a cetrtain element upon selection. Here's what I have: % Vector rsVector = (Vector)session.getAttribute("ResultSet"); %> <% Enumeration rsIter = rsVector.elements(); %> ... <% ArrayList personList = (ArrayList)rsIter.nextElement(); ListIterator fieldIt = personList.listIterator(); for (int row = 1;row <= personList.size();row++){ ...

10. How to populate the values of the vector in jsp to the functions of javascript

I have one XML and in jsp i am fatching the values from this now i have the values in a vector(i have done that part). the problem is that i have to populate the values of this vector in to the functions of that i can get the desired result. i have to pass the values that r in ...

11. passing vector from jsp to jsp

12. Sorting a Vector

Hi everybody!, I have two Vectors, one is full of Strings (customer descriptions) the other is full of Customer Numbers. The indexes on them are in sinc so If I call custNum[0] and custDesc[0] I get the customer number and description for the that customer. Here is my problem, boss wants them sorted. How can I sort one vector without having ...

13. Disadvantage of using Vectors

14. vector

15. Why can't I get the Vector value in jsp(ModalDialog)?

Hi everyone: I am writing a E-mail system using javamail and I expect the user can add attachment to their mail.Add client can attach several attachments. So I write two pages,one is jsp: <%Vector v=new Vector();session.setAttribute("allfiles",v);String file=request.getParameter("upfile");if(null!=file){ v.add(file); session.setAttribute("allfiles",v);}for(Enumeration e=v.elements();e.hasMoreElements() {out.println("File:"+e.nextElement().toString());}%>Add Another is html:

select File:

16. vector

18. Can we use Hashtable or Vector in a JSP page?

Yes it legal to use any type of Collection. This is a performance issue. You should think over your application design. Are you fetching Records from Database in these Collections or something else. If you are fetching database records and there a lot of records in the database then obviously it gets slower. Bring the only records from database that you ...

20. How to pass Vector to servlet from a jsp page?

I did a test in my testing jsp: ...(add value to vector)... session.setAttribute( "originalDataList", originalDataList ); session.setAttribute( "newDataList", newDataList ); ... Vector getOrg = (Vector) session.getAttribute( "originalDataList" ); int sizeOfOrg = getOrg.size(); System.out.println("In jsp, org size="+sizeOfOrg); for (int i=0;i The value in vector is
The problem is everytime I ...

34. Using vectors in servlets

35. Hashtable and vector Problem in Servlet

Hi, Thanks but ya I set the attribute using req.setAttribute("vec",vec); I got the remaining two values using vec.elementAt(0) and vec.elementAt(1) But am getting an eception when I use Hashtable hash = new Hashtable(); hash = (Hashtable)tempresult.elementAt(2); Here I am getting an exception.. ava.lang.ClassCastException: org.apache.jsp.datamart.screen3_jsp._jspService( org.apache.jasper.runtime.HttpJspBase.service( javax.servlet.http.HttpServlet.service( org.apache.jasper.servlet.JspServletWrapper.service( org.apache.jasper.servlet.JspServlet.serviceJspFile( org.apache.jasper.servlet.JspServlet.service( javax.servlet.http.HttpServlet.service( code.Results.doPost( javax.servlet.http.HttpServlet.service( javax.servlet.http.HttpServlet.service( Please could u help me out Thanks ...

36. Comparing two vectors in a jsp

38. best way to access the vector in jsp

39. Jfeechart in vector in JSP

40. passing vector from one servlet to other