This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tag library usage

 
Jignesh Gohel
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have some textfields in my html page & i want to validate that fields for blank values or for wrong values using custom tags built by me in jSP.

So please tell me how it would be possible??

Thanks,
Jignesh
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you sure you want (can?) to do this with custom tags ?
This sounds like more Javascript or server side stuff.
 
Jignesh Gohel
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Thanks for reply.

Actually i have implemented that validations in javascript but now i want to do that validations using my own tags so is it possible or there is some problem in doing that??


Regards ,
Jignesh
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that tags will act at response time,
but you want to check the validity of the field at request time.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tags are used mostly for writing or modifying outgoing text.
Server side validation is generally done in a servlet or bean.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64692
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have a misunderstanding of the fundamentals of how jSPs work. Perhaps this article might help.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic