Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JSP
Search Coderanch
Advance search
Google search
Register / Login
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
Forum:
JSP
Fill the table with the image instead of text ( jsp..jstl)
Tatiana Schineider
Greenhorn
Posts: 16
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
I am writing the code below, using
JSP
and JSTL, but I stopped at a condition below
Next line shows the values of a select, but sometimes this blank (null)
.. <td><c:out value="${row.filial eq null ? ' filial' : row.filial} "/> </td>" ...
I would like to display an image instead of a text!?
thanks
Is it possible?
thanks
Bear Bibeault
Sheriff
Posts: 67746
173
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Of course it is. JSP is just a way of creating HTML -- so how would you place an image there instead of text with HTML?
[
Asking smart questions
] [
About Bear
] [
Books by Bear
]
Tatiana Schineider
Greenhorn
Posts: 16
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
yes,
show an image instead of text
Bear Bibeault
Sheriff
Posts: 67746
173
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
So what is your problem? Do you know HTML? I'm not sure what this question has to do with JSP at all.
[
Asking smart questions
] [
About Bear
] [
Books by Bear
]
William Brogden
Author and all-around good cowpoke
Posts: 13078
6
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
When faced with any problem like this, first create a plain HTML page with fake data that displays like you want, then figure out how to get JSP to generate HTML like that. Really much faster than just flailing about with JSP.
Bill
Tatiana Schineider
Greenhorn
Posts: 16
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
..
Hi,
I managed to solve by applying the following line:
.. <c:if test="${row.filial == 'x'}"> <img src="../cliente/img/filial.jpeg" width="40" height="25"/> </c:if> ..
thanks
Bear Bibeault
Sheriff
Posts: 67746
173
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
src="../cliente/img/filial.jpeg"
Relative page addressing in JSPs are a problem waiting to happen.
You should
be using server-relative URls -- ee the JSP FAQ for more information.
[
Asking smart questions
] [
About Bear
] [
Books by Bear
]
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
html table to excel problem
Jstl not reflecting values back to servlet
Displaying the right details of a resource taken from a JSP results page
Getting null values in table even after the input
Html Lists CSS Query
More...