File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

default value for c:out tag in table

 
Sekhar Chand
Ranch Hand
Posts: 73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am facing some problem when i am working with jstl.
i am trying to populate my data by using c:forEach tag and table tag.
If there are any null values in my data,
in explorer table border is not coming clearly.
But in mozilla its coming clearly.
So i want to print the default value in that column,
but in table td tag its not working

Can any body help me on this.

Thanks
sekhar
 
Christophe Verré
Sheriff
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So i want to print the default value in that column

You mean printing " " ?
 
Sekhar Chand
Ranch Hand
Posts: 73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes.
sorry for the late reply
please give me the relevant solution
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64178
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you look in the JSTL Specification for <cut> to see if there are any features of it that can help you?
 
Michael Ku
Ranch Hand
Posts: 510
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear, that was a great suggestion. Even though I did not post this question, I looked at the documentation for the tag and the answer jumped out immediately.
I was not aware of this capability. I will certainly use it in the future.

Thanks for making me find the answer myself :-)
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic