aspose file tools*
The moose likes JSP and the fly likes Tag library usage 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 » Java » JSP
Bookmark "Tag library usage" Watch "Tag library usage" New topic
Author

Tag library usage

Jignesh Gohel
Ranch Hand

Joined: Dec 28, 2004
Posts: 276
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


Regards,
Jignesh

The Art Of Life Is To Know When To Be Useless And When To Be Useful - CHUANG TZU
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

Are you sure you want (can?) to do this with custom tags ?
This sounds like more Javascript or server side stuff.


[My Blog]
All roads lead to JavaRanch
Jignesh Gohel
Ranch Hand

Joined: Dec 28, 2004
Posts: 276
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

Joined: Nov 24, 2005
Posts: 14688
    
  16

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

Joined: Dec 11, 2004
Posts: 13410

Tags are used mostly for writing or modifying outgoing text.
Server side validation is generally done in a servlet or bean.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61413
    
  67

You have a misunderstanding of the fundamentals of how jSPs work. Perhaps this article might help.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tag library usage