Results 1 to 7 of 7
  1. #1
    Join Date
    Apr 2008
    Posts
    64
    Rep Power
    0

    Default Problem is getting the data to browser(JSTL)

    Hi,
    below is my problem,(using Spring framework)
    I have 3 arraylist set in the formbean.. They are,
    1.) Title_array
    2.) Content_array
    3.) Database_array
    When i print it in the console i get this,

    [Cancer Web, eSupport- Virtual Universe]//Title_array
    [Cancer Web is a website which gives details about the sites that tells about cancer. It also contains the name of the sites that tells about the cure of cancer., Login ID
    Password
    Toll Free : 1800-30-22222 (728926) Alternate No : 040-30-22222 (728926)]//Content_array
    [CancerWeb, World]//Database_array

    All i want is to display in my browser as below,

    Title:Cancer Web
    Content:Cancer Web is a website which gives details about the sites....(etc.,)
    Database: CanerWeb

    Title:eSupport- Virtual Universe
    Content:Login ID
    Password
    Toll Free: 1800-30-22222(728926) ...(etc.,)
    Database:World

    I know i must use for each:...... But donno how to go with it exactly.......
    Do anyone know how to go about.........?

    Regards

  2. #2
    Join Date
    Apr 2008
    Posts
    64
    Rep Power
    0

    Default

    Hi people,
    Can anyone help me in this?? I'm in need of help in this badly..

  3. #3
    Join Date
    Apr 2008
    Posts
    64
    Rep Power
    0

    Default

    Fine.. Now let me put this question in other words..

    Imagine i have a List like below,
    [freddie,maize,software profession,likes India,karina,chopra,software profession, likes cooking]

    Now i wanna display it as,

    freddie
    maize
    software porfession
    likes India

    karina
    chopra
    software profession
    likes cooking

    i used the below code,
    Java Code:
     <core:forEach var="result" items="${searched.result_list}">
     <tr><td> <core:out value="${result.xxxxxx}" /></td></tr>
      <tr><td> <core:out value="${result.xxxxxx}" /></td></tr>
    </core:forEach>
    if my list was like [firstname=freddie,lastname=Maize............]
    i'd have used firstname and lastname instead of xxxxxx

    But the case now is different... can any one suggest me a solution....

  4. #4
    Join Date
    Apr 2008
    Posts
    64
    Rep Power
    0

    Default

    Or atleat suggest me some good sites where i can learn JSTL tags..
    Thanks a lot.........

  5. #5
    Nicholas Jordan's Avatar
    Nicholas Jordan is offline Senior Member
    Join Date
    Jun 2008
    Location
    Southwest
    Posts
    1,018
    Rep Power
    7

    Default

    Introduction to Programming Using Java.
    Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor

  6. #6
    fishtoprecords's Avatar
    fishtoprecords is offline Senior Member
    Join Date
    Jun 2008
    Posts
    571
    Rep Power
    6

    Default

    JSP pages are driven by Servlets, and are just HTML with some tags. You can do anything you want with the generated HTML. You can even skip JSP and output pure HTML if you want.

    There are arguments and religous debates over the "best" way to do it, but you can do anything you want, and none of it is hard.

    I strongly recommend starting with the example programs in Netbeans. They make it easy

  7. #7
    Nicholas Jordan's Avatar
    Nicholas Jordan is offline Senior Member
    Join Date
    Jun 2008
    Location
    Southwest
    Posts
    1,018
    Rep Power
    7

    Question Is it working yet?

    Quote Originally Posted by fishtoprecords View Post
    ....I strongly recommend starting with the example programs in Netbeans. They make it easy
    Did they get jstl working.
    Introduction to Programming Using Java.
    Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor

Similar Threads

  1. Problem is getting the data to browser
    By freddieMaize in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 05-26-2008, 02:49 PM
  2. problem with fetching data
    By payal.mitra86 in forum JDBC
    Replies: 0
    Last Post: 05-24-2008, 01:29 PM
  3. getting the default browser+MIME data
    By waleed_cs2000 in forum Networking
    Replies: 1
    Last Post: 04-08-2008, 01:31 PM
  4. querying russian data from db problem
    By mr_empty in forum JDBC
    Replies: 0
    Last Post: 03-04-2008, 07:56 AM
  5. Problem using jstl and displaytags
    By NikhilSrivastava in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 02-18-2008, 11:01 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •