Results 1 to 2 of 2
  1. #1
    niteangell21 is offline Member
    Join Date
    Sep 2010
    Posts
    40
    Rep Power
    0

    Default creating an object inside jsp using el/jstl

    Guys, I have a jsp page where i want to create a bean instance. Right now, i am using java code which needs to be replace by EL

    This is my current code:
    Java Code:
    <% DatabaseBean data= new DatabaseBean(); %>
    How do i replace this in EL or JSTL whatever it has to be? Also there is no existing session for database bean anywhere, so I cant just call it.

  2. #2
    niteangell21 is offline Member
    Join Date
    Sep 2010
    Posts
    40
    Rep Power
    0

    Default

    never mind, i moved the code to a servlet and then forwarded it to jsp.

Similar Threads

  1. Creating File inside a Directory
    By viswanadh7 in forum AWT / Swing
    Replies: 2
    Last Post: 06-27-2013, 08:18 PM
  2. Iterate over Map object using JSTL
    By syncFool in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 10-21-2010, 07:25 AM
  3. Creating an object and getting a value from it
    By BrownBread in forum New To Java
    Replies: 2
    Last Post: 11-30-2008, 07:08 AM
  4. Replies: 1
    Last Post: 07-26-2008, 06:26 PM
  5. Creating object of Type Object class
    By venkatv in forum New To Java
    Replies: 3
    Last Post: 07-17-2007, 04:33 PM

Posting Permissions

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