aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Hello  c: out 's  default attribute not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Hello  c: out Watch "Hello  c: out New topic
Author

Hello c: out 's default attribute not working

Srinivasan thoyyeti
Ranch Hand

Joined: Feb 15, 2007
Posts: 557
Hi Ranchers,

Please let me know anybody got output welcoming Guest with the following.

Hello <c : out value="${user.username}" default="Guest"/>!

Am i missing anything here ???


where as this one working
<c : out value="${user.username}">Guest</c : out>
[ August 18, 2007: Message edited by: Srinivasan thoyyeti ]

Thanks & Regards, T.Srinivasan
SCWCD 1.4(89%), SCJP 5.0(75%)
Srinivasan thoyyeti
Ranch Hand

Joined: Feb 15, 2007
Posts: 557
I have forgotten the this,

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>



Michael Ku
Ranch Hand

Joined: Apr 20, 2002
Posts: 510
When I copied and pasted the line of code it gave me some unneeded spaces.


Hello <c : out value="${user.username}" default="Guest"/>!


When I removed these 2 spaces that surround the : it worked fine.

While I have my server up and running, is there anything else you want someone to try or verify?
Michael Ku
Ranch Hand

Joined: Apr 20, 2002
Posts: 510
Srinivasan, did my previous post answer your question?
Srinivasan thoyyeti
Ranch Hand

Joined: Feb 15, 2007
Posts: 557
Hi Micheal,

I did that formatting bec'ze

it looks like this > c ut
Michael Ku
Ranch Hand

Joined: Apr 20, 2002
Posts: 510
OK - it worked fine for me...
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

Srinivasan,
When you are posting, you can avoid smilies to be displayed by checking "Disable smilies in this post" at the bottom left of the page.


[My Blog]
All roads lead to JavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hello c: out 's default attribute not working