Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2006

Tip: Looking for answers? Try searching our database.

validazione lato server Struts

Thread view: 
Rino - 24 Jan 2006 09:31 GMT
utilizzo Struts con la validazione dei campi di un form sia lato
client(javascript) che lato server (attraverso il validator).
Ora dovendo rendere l'applicazione accessibile mi trovo nella
situazione che i controlli lato client con javascript non possono
essere utilizzati in quanto se l'utente ha disabilitato gli script non
vengono eseguiti.
L'impatto di javascript sulla mia applicazione e' notevole e vorrei una
soluzione abbastanza veloce per non dover riscrivere tutti i controlli
javascript per doverli portare lato server
Qualcuno ha da suggerirmi qualcosa?
p.s.ho letto che il javascript con un determinato Validator puo' essere
portato lato server includendo nella classe e facendo vedere da
validator-rules.xml..la domanda che mi pongo e' ..
se gli script sono disabilitati sul client con questo controllo lato
server cosa succede?

Grazie x le copiose risposte

Rino
Roedy Green - 24 Jan 2006 19:19 GMT
>utilizzo Struts con la validazione dei campi di un form sia lato
>client(javascript) che lato server (attraverso il validator).
[quoted text clipped - 15 lines]
>
>Rino

here is a rough translation:

I use Struts where the validation of the fields in a form is done on
the client side with Javascript and on the server side  using through
the Validator.

If the customer has disabled client-side scripting[for valid security
reasons], our validation code does not work.  I need a solution I can
implement quickly  in order not to have to rewrite all the Javascript
controls for  server side.

Does anyone have any suggestions?

P.S. .[I can't make sense of the next sentence. Something about
Validator-rules.xml on the server side.] If the scripts are disabled
on the client  with this sort of server side control, what would
happen? Many thanks for you generous answers.

Rino
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.