• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Expression Language

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I'm unable to get the output. I'm using expression language.

Example: ${employee.pet.name} -> Using WebLogic 8.1 -> Do I have to include any jar file to it. 'weblogic.jar' is already included in it. ID - Eclipse

When I used Tomcat it's working perfectly. ID - NetBeans

Below is the code

<jsp:useBean id="employee" class="com.useBeanModel.example.Emp" scope="request"/>
Employee Name: <jsp:getProperty name="employee" property="name" /><BR>
Pet Name: <jsp:getProperty name="employee" property="pet" /><BR>
<%= ((com.useBeanModel.example.Emp)request.getAttribute("employee")).getPet().getPname() %><BR>
Scriptless EL code: ${employee.pet.pname}


output
Employee Name: TIS
Pet Name: com.useBeanModel.example.Pet@12e4e8c
TIS
Scriptless EL code: ${employee.pet.pname}


Cheers
Ravinder

[ April 26, 2005: Message edited by: Ravinder S Edhan ]
[ April 27, 2005: Message edited by: Ravinder S Edhan ]
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Since this issue is Weblogic-specific, I've moved this to the Weblogic forum.
 
drifter
Posts: 1364
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Looks like another JSP 2.0 feature that WLS 8.1 doesn't support, see other post:

Topic: Tag Files.... help!

Did you try something like this <c:out value="${user.firstName}"/>
[ April 27, 2005: Message edited by: Carol Enderlin ]
 
Ravinder S Edhan
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Carol,

How to use taglig directive?
What should I put in uri="" in following:-

<%@ taglib prefix="c" uri="" %>

Cheers
Ravinder.
 
Carol Enderlin
drifter
Posts: 1364
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Google on "taglib directive jsp", found one that mentions jsp 1.2,

JSP Syntax
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic