Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » Using "${}"
Using "${}" [message #23899] Thu, 20 May 2004 11:47 Go to next message
Eclipse UserFriend
Originally posted by: bbozek.email.hinet.hr

When I'm using display tag "<display:table name="${users.rows}" id="user"
class="list">"
result is empty table (Nothing found to display.).

With following code everything looks fine.
"<display:table name="pageScope.expanses.rows" id="rows" class="list">"

I still can't get rows from table using "value="<c:out
value="${user.firstName}"/>" ".
How I can retrieve "users" using ${user.username} expression.

CODE EXAMPLE
************************************************************ ******
<sql:query var="users" >
select id, username, firstName, lastName
from temp_user order by upper(username)
</sql:query>

<display:table name="${users.rows}" id="user" class="list">
<display:column title="Username">
<input type="text" name="username" style="padding: 0"
value="<c:out value="${user.username}"/>" />
</display:column>
</display:table>

************************************************************ ******

Result for "value="<c:out value="${user.username}" is "${user.username}".

Probably I forget to set something on my JSP page or in web.xml file.
I have spend few day to find solution.
Hope that somebody can help me.

Thanks!
Branko
Re: Using "${}" [message #23982 is a reply to message #23899] Thu, 20 May 2004 15:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sean_dynan.nowhere.com

BBozek wrote:

<snip/>
> Result for "value="<c:out value="${user.username}" is "${user.username}".
>
> Probably I forget to set something on my JSP page or in web.xml file.
> I have spend few day to find solution.
> Hope that somebody can help me.

First things first...the 'display', 'sql' and 'c' taglibs you are using:
are they Expression Language versions? In other words, does this work
as you would expect?

value="<%=user.getUsername();%>"

If it does, that would suggest that your c.tld taglib *isn't* an EL
version. Ditto for your 'display' taglib.

--
Sean Dynan
Re: Using "${}" [message #24106 is a reply to message #23982] Fri, 21 May 2004 07:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bbozek.email.hinet.hr

Code value="<%=user.getUsername();%>" doesn't work.

How I can recognize c.tld taglib EL version?

Thanks

Branko


"Sean Dynan" <sean_dynan@nowhere.com> wrote in message
news:c8j13b$2cg$1@eclipse.org...
> BBozek wrote:
>
> <snip/>
> > Result for "value="<c:out value="${user.username}" is
"${user.username}".
> >
> > Probably I forget to set something on my JSP page or in web.xml file.
> > I have spend few day to find solution.
> > Hope that somebody can help me.
>
> First things first...the 'display', 'sql' and 'c' taglibs you are using:
> are they Expression Language versions? In other words, does this work
> as you would expect?
>
> value="<%=user.getUsername();%>"
>
> If it does, that would suggest that your c.tld taglib *isn't* an EL
> version. Ditto for your 'display' taglib.
>
> --
> Sean Dynan
Re: Using "${}" [message #24119 is a reply to message #24106] Fri, 21 May 2004 10:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sean_dynan.nowhere.com

BBozek wrote:

> Code value="<%=user.getUsername();%>" doesn't work.
>
> How I can recognize c.tld taglib EL version?

(whoops...that semi-colon shouldn't be there)

I use the Apache taglibs. The c.tld descriptor is the EL version,
c-rt.tld is not. And inside the c.tld file the 'out' tag's Java class
is 'org.apache.taglibs.standard.tag.el.core.OutTag', whereas the
c-rt.tld tag is 'org.apache.taglibs.standard.tag.rt.core.OutTag'.

Are you importing the TLD properly in your JSP?

Something like this in your JSP:

<%@ taglib uri="/WEB-INF/c.tld" prefix="c" %>

--
Sean
Re: Using "${}" [message #24222 is a reply to message #24119] Fri, 21 May 2004 11:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bbozek.email.hinet.hr

I am using EL version properly.
I doesn't have "listener" in my application.
Maybe problem is there.


Branko



"Sean Dynan" <sean_dynan@nowhere.com> wrote in message
news:c8l37o$k47$1@eclipse.org...
> BBozek wrote:
>
> > Code value="<%=user.getUsername();%>" doesn't work.
> >
> > How I can recognize c.tld taglib EL version?
>
> (whoops...that semi-colon shouldn't be there)
>
> I use the Apache taglibs. The c.tld descriptor is the EL version,
> c-rt.tld is not. And inside the c.tld file the 'out' tag's Java class
> is 'org.apache.taglibs.standard.tag.el.core.OutTag', whereas the
> c-rt.tld tag is 'org.apache.taglibs.standard.tag.rt.core.OutTag'.
>
> Are you importing the TLD properly in your JSP?
>
> Something like this in your JSP:
>
> <%@ taglib uri="/WEB-INF/c.tld" prefix="c" %>
>
> --
> Sean
Re: Using "${}" [message #24263 is a reply to message #24222] Fri, 21 May 2004 14:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sean_dynan.nowhere.com

BBozek wrote:

> I am using EL version properly.
> I doesn't have "listener" in my application.
> Maybe problem is there.

What's a "listener" ?

--
Sean
Re: Using "${}" [message #24924 is a reply to message #24263] Mon, 24 May 2004 04:43 Go to previous message
Eclipse UserFriend
Originally posted by: bbozek.email.hinet.hr

I saw in web.xml something like this.

<listener>

<listener-class>org.apache.taglibs.standard.examples.startup.Init </listener-
class>
</listener>

Examples I have work fine with ${user.username} expression when they have
above deployment descriptor and class.

Problem can be in <sql:query>. It retrieve table not object.

Branko


"Sean Dynan" <sean_dynan@nowhere.com> wrote in message
news:c8lgqb$7vn$1@eclipse.org...
> BBozek wrote:
>
> > I am using EL version properly.
> > I doesn't have "listener" in my application.
> > Maybe problem is there.
>
> What's a "listener" ?
>
> --
> Sean
Previous Topic:[ANN] MyEclipse 2.8 Beta Release - New RAD Tooling
Next Topic:Lomboz and Licensing question
Goto Forum:
  


Current Time: Sat May 10 15:13:32 EDT 2025

Powered by FUDForum. Page generated in 0.03606 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top