There is nothing wrong with Javascript in general - when used judiciously. 

The problem with Javascript (in this particular situation) is that if
Javascript is disabled or unavailable for any reason, the user will not be
able to submit the request - this is a major accessibility no-no.

IIRC the OP was interested not because the the URL was too long but to hide
the information being sent - potentially a security issue - hence the POST
suggestion initially.

-Rod

-----Original Message-----
From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 07, 2007 14:42
To: Struts Users Mailing List
Subject: RE: pass parameters to action

> > 
> > <a href="javascript:document.myform.submit()">Submit the form</a>
> 
> Oh, the humanity!
> 
> Seriously, I hate seeing this kind of code. First of all, it 
> requires javascript.

What's wrong with javascript?

> Second, it merely converts a GET request into a POST request. 
> Who really cares whether the URL is long or not?

OP did. That was the point of her original post.

And it can be important if you're trying to control how your user steps
through your application.


--
Tim Slattery
[EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to