I've finally got struts taglibs and a few Actions working in my jsp pages,
but I'd like to be able to populate some EJB's with the model data from the
ActionForms. I'm not sure how to do this. I've got a session bean which
operates on an entity bean which I will then send to another machines java
FWIW,
the SYSTEM DTD issue is a twofold problem:
a) The classloader returns a null for the URL provided
b) Struts doesn't check a null for the inputstream.
One of these days, I'll send a patch in for b)
I'll try a simple app to test the getResource* issues, and file a PMR,
early next week.
Hi all,
I have a html form on a jsp page. This form has a table generated by the
logic iterate tag.
In each table row, there are two fields, one a checkbox and the other a
text field.
What I want is when the user clicks 'submit' all the values are sent to
an action form for storing and then
Since Struts is a framework, there a number of inter-related parts that
work together, the error handling is a good example of that.
When you detect an error in your Action, you need a way to display it to
the user. Since most Actions are not designed to be "views", this is a
problem.
Struts
I finally have my struts tags working. Next step. My app has jsp pages that
populate ActionForms. I now have to populate my entity beans, but one step
at a time, so I'm trying to instantiate session beans from my Action classes
(which will later operate on the entity beans) and I'm not sure how
Hi,
This is my situation:
I have a collection(Vector) of buddyListForm as session attribute.
So, in my JSP,
logic:iterate id="buddylist" property="buddylist" scope="session" !--
vector being iterated --
!--Now, I have the individual bean, how do I iterate the properties--
logic:iterate
I've now got the logic:iterate ... tag to work, but I'm confused about how it
works with the collection attribute. I've seen examples for people where they
have
logic:iterate id="bean" collection="%= someObject.getValues() %"
... do something with bean ...
You've found a documentation bug, which I have just submitted to the bug
database.
As you discovered, you need to use an expression (e.g. %= value %) rather
than a scriptlet (e.g. % method(); %) because the value needs to be
returned so that it can be used in the attribute.
--
Martin Cooper
Hey,
I had some hard nights fighting with exactly this problem and got a solution
wich is not very elegant but works...
html:form action="/formAction.do"
table border="1" width="100%"
// some headings for the table
% int i = 0; %
logic:iterate name="Bean" property="beanItems" id="anything"
On Sun, 25 Mar 2001, Jim Richards wrote:
I've now got the logic:iterate ... tag to work, but I'm confused about how it
works with the collection attribute. I've seen examples for people where they
have
logic:iterate id="bean" collection="%= someObject.getValues() %"
10 matches
Mail list logo