*
The moose likes JSP and the fly likes list transferring and output Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "list transferring and output" Watch "list transferring and output" New topic
Author

list transferring and output

Darko Markovic
Greenhorn

Joined: Sep 15, 2013
Posts: 16

So I was making something with JSP, and I used a Struts Action and Form. In the action, I got some information. Every piece of information was put in variables in a class called 'Kolone' (Kolone.kime and Kolone.ifil). I then made a List (List list = new ArrayList();) and filled it with class Kolone objects. I was just wondering what are the different ways I can send the list to the JSP page to use, and what are the different ways I can output the list via table. I have already heard of attributes (I used one for the list) and the only table output I know is using scriptlets and iterators (I want to not use scriptlets, if possible)


One cannot simply use scriptlets in JSP. And also, mycaruba.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60816
    
  65

Scriptlets are obsolete. Use the JSTL and EL.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Darko Markovic
Greenhorn

Joined: Sep 15, 2013
Posts: 16

I already said that. I'm trying to avoid using scriptlets, that's why I'm asking what ways are there (different tags, frameworks, libraries) to accomplish these things.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60816
    
  65

Yes, The JSTL and EL.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: list transferring and output
 
Similar Threads
struts 2 tag accessible data in scriptlet
Display Data from Action class to JSP
Reading XML
Editable table in jsp
Color Rows of a Table