I have added this line to my jsp (which works fine without it):
html:javascript formName=typeMyForm dynamicJavascript=true
staticJavascript=true/
When I add the validation line, the javascript code is generated in the
source without any surrounding script/script tags and is visible on
the page?
Im not sure how to do this in struts, although you could use JSTL to
print out only the values for 'print' version and the actual inputs, etc
for the live version...
Very simple example:
c:choose
c:when test=${myValue=='print'}
${myValue}
/c:when
c:otherwise
html:text name=name
I have some code that access a collection from the bean using
request.getAttribute(myAttributeName);
I'd like to access it using the form directly or jstl and then iterate
over it.
Whats the bets way to do this?
-
To
I am not understanding what you mean by this (encompassing* CSS), or
perhaps I am not familiar with some technique, can you elaborate or
provide an example? I am intrigued..
* By encompassing', I mean no formatting is used directly in the JSP
where it can be deferred to a style.
Ok, If I am understanding the question correctly, you should be
populating your array list in your bean with a objects of whatever
represents a table row (such as an employee object), this object should
have the attributes (name, id, address) you would like to render in the
columns.
Each object
: Swapnil Patil [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 02, 2005 11:13 AM
To: Johnson, Kaerstin
Subject: Can u help me...I have a problem related to struts.
Hi Johnson,
I am vary sorry for mailling on your personal email address.I had
posted my problem on the mailing list but till now don't get
. This is
standard.
I have had problems in the past with having uppercase variable names.
This
is due to the reflection that Struts uses to find associated getters
and
setters.
Johnson, Kaerstin [EMAIL PROTECTED]
Johnson, Kaerstin [EMAIL PROTECTED]
08/02/2005 11:34 AM
Please
You could use JSTL if you'd like to check for whether you should print
the column out - something like:
c:if test=${myParameter==true}tdprint my stuff here/td
/c:if
Im not sure how to do it with just struts, someone else might know that.
-Original Message-
From: news
We use cewolf - an open source tag library to render our graphs in our
struts app. (basically generates an image map). Im not sure how to
create graphs using struts itself. But cewolf is easy and is built on a
larger API, so you can get pretty fancy.
-Original Message-
From: Rajesh
When I call up some of my jsps, occasionally I get an error, that it
cannot find a field in XXXFormBean. However, it is the wrong bean that
its looking at?
Somehow a different frame bean is being held/cached and my jsp is
looking at it, instead of looking at its correct form bean.
Any ideas
I have an application that I get sporadic struts errors when I submit
the jsp page forms. The application is using struts tiles and also a
couple jsp includes, and some of the pages have two different forms
(each with different form beans) on one page.
The intermittent error says no property
DDL statements to create the tables
Tack,
Martin-
- Original Message -
From: Johnson, Kaerstin [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Wednesday, July 13, 2005 3:32 PM
Subject: sporadic no property found error
I have an application that I get
12 matches
Mail list logo