File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Displaying data and making the data a link on a JSP. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Displaying data and making the data a link on a JSP." Watch "Displaying data and making the data a link on a JSP." New topic
Author

Displaying data and making the data a link on a JSP.

Jason Gosingburg
Greenhorn

Joined: Nov 24, 2004
Posts: 8
I'm trying to display data from a table using SQL server. I have a class, servlet, and a JSP page. The data is displaying on the JSP page but I need to seperate the names and make them into links. What i'm trying to do is after they click on one of the names, it will display on another page after clicking on that link. I would appreciate any help. I'm new at Java so try to take it easy on me. Hey at least I got this far.

This is what I have to display the data on the JSP page.

<%

List jalNames = (List)request.getAttribute("Names");

Iterator it = allNames.iterator();

while (it.hasNext())
{
out.println(it.next() + "<br><br>");
}
%>

This will list the 10 names not in the correct order as I have them in the database, Why? Can somebody help me with that also?

Thank You.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61653
    
  67

Jason, please do not cross-post the same question in multiple forums. Please continue any discussion here.

Since the thread that Bear linked to no longer exists, I have reopened this. -- MdQ
[ December 22, 2004: Message edited by: Marilyn de Queiroz ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Displaying data and making the data a link on a JSP.