File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Java
»
JSP
Author
simple JSTL question
Edward Chen
Ranch Hand
Joined: Dec 23, 2003
Posts: 758
posted
Jul 03, 2006 15:03:00
0
If I could output the value using
<c
ut value="${myClass.name}"/>
1. how to use scriptlet <% %> using System.out.println to outpput ?
2. how to trim that value using JSTL , like
<c
ut value="${ myClass.name.trim() }"/> , but this way doesn't work.
Thanks.
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56168
13
I like...
posted
Jul 03, 2006 15:50:00
0
As per forum instructions, please indicate what versions of
JSP
and JSTL you are using.
[
Smart Questions
] [
JSP FAQ
] [
Books by Bear
] [
Bear's FrontMan
] [
About Bear
]
Edward Chen
Ranch Hand
Joined: Dec 23, 2003
Posts: 758
posted
Jul 03, 2006 18:03:00
0
JSTL 1.0 and JSP 2.0
Thanks
Christophe Verré
Sheriff
Joined: Nov 24, 2005
Posts: 14670
11
I like...
posted
Jul 03, 2006 18:40:00
0
2. how to trim that value using JSTL
There is a fn:trim(
string
) function in JSTL, but I don't know if it is in 1.0. Check it.
[My Blog]
All roads lead to JavaRanch
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56168
13
I like...
posted
Jul 03, 2006 22:57:00
0
Originally posted by Edward Chen:
JSTL 1.0 and JSP 2.0
Thanks
Not compatible. You should be using JSTL 1.1.
I agree. Here's the link:
http://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: simple JSTL question
Similar Threads
Nested hashmap tags for dynamic pulldowns
JSTL number formatting
can i call a function of servlet using jstl
Couldn't display Timestamp date
xhtml problem
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter