I'm not entirely sure what you're after - do you mean get a string with
the contents populated by another jsp - independent from the current
request being served?
I created a test jsp in tomcat containing a jsp:include / tag, ran it
and looked in tomcat's work folder at the servlet code generated
There's also jakarkta commons-httpclient
http://jakarta.apache.org/commons/httpclient/
-Original Message-
From: Qureshi, Affan [mailto:[EMAIL PROTECTED]
Sent: 25 March 2004 17:04
To: Struts Users Mailing List
Subject: RE: html inside an action
HttpUnit is also a neat tool which might
I guess your first place to look would be DynaActionForm - this base
class dynamically creates FormAction objects setting the properties from
the struts-config file.
http://jakarta.apache.org/struts/api/org/apache/struts/action/DynaAction
Form.html
DynaValidatorActionForm adds validator support
:05, Brendan Richards wrote:
I guess your first place to look would be DynaActionForm - this base
class dynamically creates FormAction objects setting the properties
from
the struts-config file.
http://jakarta.apache.org/struts/api/org/apache/struts/action/
DynaAction
Form.html
shouldn't be a problem.
On 19 Mar 2004, at 11:58, Brendan Richards wrote:
I've seen many posts on Not pre-populating action forms. This seems
to
be a design decision as action forms are only for validating input.
However, in most applications I write I don't want to only input data
that.
Don't worry - I've realised the error of my ways and am moving my code
into actions where it belongs =)
-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: 19 March 2004 14:58
To: Struts Users Mailing List
Subject: RE: Database backed forms
From: Brendan Richards
What about if you move the javascript to below the form in the page?
Unless the javascript is being called by an onload in the body tag, it
will need to be below the form elements for them to exist when the
javascript executes.
-Original Message-
From: Colm Garvey [mailto:[EMAIL
at the source, the code is indeed below the form. I'd
like
to attach it to an body onload event trigger, but that's going to
require
extending the struts classes and I'm trying not to digress too much from
the
norm.
Any other suggestions?
Colm
-Original Message-
From: Brendan Richards
Populating the select objects via javascript isn't too scary - just make
sure you do a thorough cross-browser test (which you should be doing
anyway)
Javascript:
var theForm = document.forms['formName'] gets you the form object.
theForm.mySelectBox - gets you the select box object
These tutorials are good:
Frames Basics:
http://hotwired.lycos.com/webmonkey/96/31/index3a.html?tw=authoring
Linking Between Frames:
http://hotwired.lycos.com/webmonkey/96/36/index2a.html?tw=authoring
short synopsis:
when you create a frameset, every frame gets a name. Any link can be
made to
I'm looking at using validwhen for a complex validation.
I've got a value that can either be ignored when another parameter is
set or is valid when it's a date.
A simple date validation would be something like this:
field property=date depends=required,date
arg0 key=myForm.date/
You could have as many parameters as you want
I thought you could only use up to four (arg0 to arg3).
The dtd for validaton.xml only contains these elements.
Or can you use more when creating a message in code rather than through
validation.xml ?
-Original Message-
From: Wiebe de
Add the following headers to your js/staticJavascript.jsp file to tell
your browser not to cache it:
%
response.addHeader(Cache-Control, no-store, no-cache,
must-revalidate); // HTTP/1.1
response.addHeader(Pragma, no-cache);
response.setDateHeader (Expires, 0); //prevents caching at the proxy
%
I think your forward will have to have redirect=true. Otherwise it
will still be the same http request and therefore the same protocol.
Using redirect=true causes a http redirect header to be sent causing
the browser to fire a new request.
I'm not sure on any of the above. Please correct me if
What makes a checkbox unusual is that it only submits a value when
checked - when unchecked nothing is submitted.
You should therefore be able to validate that it's been checked with a
standard required validator.
-Original Message-
From: Morowitz, Michael [mailto:[EMAIL PROTECTED]
to
fields of type checkbox. I suppose I could modify the javascript, but
I want both server side and client-side validation.
-M
-Original Message-
From: Brendan Richards [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 17, 2004 10:52 AM
To: Struts Users Mailing List
Subject: RE: Single
An easy way could be to use
html:option key=please select value=/
with the minLength validation, using your own custom error message:
in validation xml:
field property=foo depends=required, minlength
varvar-nameminlength/var-namevar-value1/var-value/var
msg name=required
If the sole purpose of your link is to call the client side javascript
function submit() do you really need to use html:link ? It ads no
functionality for you and just wastes server side processing time
converting the html:link tag to the final output a href=.
html:link/ is hugely useful to
Hi,
I'm getting exactly this problem posted last year.
I've seen many posts on validator resource bundles including this patch:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10868
But have not found THE universally adopted solution.
Just to restate the problem:
I have a resource
19 matches
Mail list logo