?
Nicolas De Loof
--
To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
What developpement tool are you using ?
I know that Visual Age can export your code as java byte code (classes),
whenever it has compilation errors. It gived me such errors as .class is
invalid and cannot be instanciated by ClassLoader.
Nico.
- Original Message -
From: Dinesh
You have to use the html:form tag : it's role is to find the formbean in
some scope or create a new one. It allows your HTML form to display values
that are stored in the formbean. Struts uses the html:form action
attribute to get the ActionMapping, and so get the formBean name and scope
(as
They're is no conflict since apache packages are in java org.apache.*
namespace and biojava in org.biojava.*. The same way you could have
org.anything.* packages added. You only have conflicts if two jars have
sames classes with different versions, and then the first jar in classpath
order is
To explain David's response :
You can't use a JSP custom tag as input to another JSP custom tag's
attributes.
In JSP, HTML tags are just plain text (no matter how they are nested with
JSP code), but JSP tags must be nested as XML style.
Nico.
but i was able to use the struts tag within a html
Just declare your formbean as session scoped, so it will be avaible to
build another view (another JSP)
Nico.
Hi,
I think I need to make it clearer. I need to cache the response
so
I can give the user the option to represent the data in another format
other than the one in the
Here is what I undersand :
1. your action puts some beans into request scope
2. it forwards to a JSP, let's say A.jsp
3. A.jsp defines a framest, containing B.jsp
4. B.jsp looks in request for the bean.
As frameset is the response your browser gets from the 1. request, it has to
make a second
bean:write name=person property=personinfo.lastName/
this assumes you have getter and setters in your beans
see more in
http://jakarta.apache.org/struts/doc-1.0.2/api/org/apache/struts/taglib/bean
/package-summary.html#package_description
Nico.
how to i display my bean using the tags
method for name.
public void setName(String name){ this.name = name; }
public String getName(){ return name; }
- Original Message -
From: Nicolas De Loof [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, February 19, 2003 4:01 PM
Subject: Re: Displaying
BlankCan you be a little bit more specific ?
What is in your JSP ?
Did you include logging to detect the JSP code generating this error ?
What bean are you trying to get in your JSP ?
Nico.
- Original Message -
From: Chetan Sahasrabudhe
To: Struts Users Mailing List
Sent:
This is the way I set default values to my JPSs, so that I never need
scriptlet code to initialyze them and keep them as simple as possible.
I suggest using this workflow :
HTTP request
- struts populate formbean
- action (does some business logic, puts some beans in request/session)
-
I don't understand what you need.
If you want to have 2 HTML forms that post to 2 urls - only associated
inputs will be submited - you can do it well (with or without struts).
If you want the 2 urls to get ALL input fields as request parameters, you
will need hidden inputs and some javascript.
It looks like your html:select is not in the body of a html:form tag
html:form puts the formbean in page scope under
org.apache.struts.taglib.html.BEAN for others html:xxx to use it.
Nico.
anybody could help me this one,
it takes me 2 days to figure this out and wheeeww 'til now I dont have
Having your formBean prepopulated in some scope (by a previous action),
let's say you use foo property whith multiple getters :
pulic String[] getFoo()
pulic String getFoo(int index)
You just need a html:select with html:option (or html:options) in your
JSP - NOT select or option that are HTML
Hmm...
I have this currently :
String recipients [] ;
public String [] getRecipients() {
return this.recipients ;
}
I am using the html:select, which tells me the corresponding property
has to be a array of any supported data type, then if you use the
I suggest you to use a shell (.login ?) to build CLASSPATH from the content
of a /lib directory. This way you can easyly maintain your jars.
Nico.
- Original Message -
From: David Graham [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 21, 2003 3:54 PM
Subject: Re:
Here is what we used for a Weblogic 5.1 user (in .login) :
# add all needed Java libraries
foreach JAR ( ${HOME_APPLI}/lib/*.jar )
setenv CLASSPATH ${CLASSPATH}:${JAR}
end
# zip for Oracle classes12.zip
foreach JAR ( ${HOME_APPLI}/lib/*.zip )
setenv CLASSPATH ${CLASSPATH}:${JAR}
end
Nico.
use html:image
http://jakarta.apache.org/struts/doc-1.0.2/struts-html.html#image
Nico.
- Original Message -
From: Shabbir Khadir Mohammed [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, February 24, 2003 9:15 AM
Subject: How to Show gif image instead of
This should work too :
bean:define id=localImage type=String
bean:message key=images.buttons.url/
/bean:define
html:image page=%= localImage % property=submit/
and this is browser-indepentend. as far as i know input type=image...
is
IE-specific.
input type=image is HTML 3.2, not browser
bean:define id=localImage type=String
bean:message key=images.buttons.url/
/bean:define
html:image page=%= localImage % property=submit/
1. Might be. dont know.
but you should avoid using scriptlets in your code.
and this is scriptlet.
Not scriplet !
JSP scriptlet is :
%
i have this tag:
bean:size id=size name=useraccounts/
now how can i display the value of size? what the getter method for the
bean:size?
thanks
bean:size id=size name=useraccounts/
bean:write name=size /
Nico.
-
tag ?
you should, you should...
don't forget... philosophical purity should always yield to pragmatism
Nicolas De Loof wrote:
1. Might be. dont know.
but you should avoid using scriptlets in your code.
and this is scriptlet
Try this :
bean:define id=myVariable type=String
bean:message key=propmt.welcome/
/bean:define
You can then use myVariable as a script variable or a bean in page scope.
Nico.
Hi All,
I want to assign the value of a key from my Application Resources file to a
Java variable
in a JSP Page.
'define' requires that the body be empty.
probably occurred due to an error in /jsp/Welcome.jsp line 6:
bean:define id=myVariable type=String
-Amit
-Original Message-
From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
Sent: Monday, February 24, 2003 4:30 PM
To: Struts Users Mailing List
read INSTALL in your struts distrib
If you encouter some specific problems you can ask this list...
Nico.
- Original Message -
From: joseph agunpopo [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 24, 2003 2:40 PM
Subject: Struts Installation
Hi
Can anyone tell me
I think you have set validate to true for this path, and not setted
input attribute, so struts is not able to forward to input JSP when
validation errors occurs.
Nico.
I keep getting:
no input attribute found for path ...
Everything looks good in my config files...
what causes this error?
This was exactly what I was looking for although I
don't quite understand how it works.
Doesn't bean:message../ write the value to the jsp
writer?
tag write to the current ouputstream. Nested inside another tag, they
write to the bodycontent buffered ouputstream. This way parent tag can use
in struts-config.xml, input attribute of a path element defines the JSP
(or ohter ressource) that can be used to display errors and let the user
update it's submited (and erronous) datas
In general use, input value is the JSP that submitted to this path.
Nico.
- Original Message -
From:
reset is allways called in processPopulate().
Nico.
If I'm right, reset is not called by ActionForms with scope session.
How can I then reset my checkboxes?
--
Zsolt
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Firstly, I have the following snippet in one of my forms (user_add.jsp):
!-- tr
thContract User/th
td
html:checkbox property=contractUser/
/td
/tr
Your right, formbean just get request parameter for you. But they
are doing this too:
- allow syntax validation, programatically or by rules (via
validator.xml)
- allow dotted and indexed syntax (like property1.property2[3]),
and so a realy objet-oriented formbean design
- can be dynabeans (so
Struts doesn't create coockies, J2EE servlet container does (tomcat).
When you use request.getSession() in your code, J2EE server will a
coockie (or a request parameter if URL rewriting is used, see your
server config) to get the session ID.
If no ID is set, it will generate a new session ID and
i am trying to give servletmapping for the following URL
http://localhost:8080/context/test/0/struts-action
in the above URL '0' is going to be changed dynamically depending
on the
link the user select.how i can give a servlet-mapping for such type
of URL
for the ActionServlet.
is this
I well understand now that Sessions (object on the web server) are
used either cookies or URL writing (in the client side).
In the struts application I have to make changes if I want to
use URL rewriting.
But what I still do not understand (I am sorry to be also insistent)
is
why/or how each
://www.thomson.net/videochain
Original Message-
From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
Sent: 06 March 2003 10:32
To: Struts Users Mailing List
Subject: Re: Association between Session object and Cookies/URL
rewriting
I well understand now that Sessions (object on the web
LINK rel=stylesheet
href=html:rewrite page=/css/stileForm.css /
type=text/css
Nico.
Does anyone knows how to render a
LINK rel=stylesheet href=../stileForm.css type=text/css
With struts ??
Thanks a lot.
Renato
Renato Romano
Sistemi e
(with request.getRequestURI() )i obtain /index.jsp and not
homeA.do
getRequestURI() should return the exact address the client
requested,
minus query string. Perhaps you set redirect to true? But then the
address displayed in the browser should have been updated to
index.jsp
as well.
(Sorry for previous empty message : too quickly clicked !)
On tomcat, websphere and Weblogic I get CURRENT servlet (and JSP) URI
when using
request.getRequestURI(). API Javadoc says :
Returns the part of this request's URL from the protocol name up to
the query string in the first line of the
Hi,
Reading Hibernate doc, I discovered xPetstore
(http://xpetstore.sourceforge.net/index.html), an implementation of
SUN java pet store with xDoclet.
In fact, they're is 2 implementations :
- one based on Struts EJB
- the other based on WebWork Hibernate.
As I don't know about Webwork
bean:define id=prop1 name=bean1 property=someProperty /
logic:equals name=bean2 property=anotherProperty value=%= prop1
%
...
/logic:equals
Nico.
Does anyone knows how to compare two beans (or beans properties)
using
logic:equal or logic:greaterThan tags ?In the docs it is said that
the
Ok can somebody clarify this, I have one JSP that uses two actions,
If I use Action A exclusively then only one session will be used but
if
I try to use Action B from the same JSP will a new session be
created?
Jon.
Do you mean JSP has two forms (with different action) ?
In any case, if a
All scr= HTML tags does submit a new request (images, link to css or
included javascript).
With servlet API you will get a new request object (and context) for
every request.
For into, HTTP 1.1 browser can ask server to keep the connection
alive, so that it can reuse the 1st connection for a new
What do you want to do whith your city ? You can do :
bean: name=UserVO property=adress.city
Nico.
Ok,
Imagine I have an object User (package test.UserVO) which contains
another
object Address (package test.AddressVO)which has a String property
city.
User and Address are both java
Could you please send us the rendered HTML ? They should be some silly
think you've not seen.
Nico.
Have you checked if you are doing redirection somewhere in your
action
class? Or you have forward with redirect=true for that action?
Are the parameters you have on your URL same as one you
Sory, I tried it on my struts-app (adding a /find path and a dynabean)
and not have the problem you expose.
I don't understand what happens to your app...
Nico.
- Original Message -
From: Jamesey [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 12, 2003 10:55 AM
Subject:
For info I used IE6 SP1 / Win2k / Tomcat 4.1.18
Nico.
ok nico... thanks for trying...
i'll see what happens when i migrate to live..
Nicolas De Loof [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Sory, I tried it on my struts-app (adding a /find path and a
dynabean
if you use html:select with html:option or html:options, the
option that equals the formbean property value will be automaticaly
selected.
(formbean initialized with name=foo)
html:select property=name
html:option value=foofoo/html:option
html:option value=barbar/html:option
If you put it in session, why would it be in request ?
try to log in your JSP request.getSession().getAttributeNames()
Nico.
I have an action declared as scope=request
i perform request.getSession().setAttribute(blah,object)
i have debug to list all attribute names in my action class (and
If I understand your problem, your JSP generates some
img src=...
or script scr=...
and you get 404 broken link or something like this for this
ressources.
Perhaps you use relative path to your images and scripts
(src=../../images/foo.gif).
You should use absolute path with html:rewrite
Sory, I didn't well understand what you're looking for.
You can create a servlet that looks for authentified user's session,
user pathInfo to find the name of a ressource, looks for it in
WEB-INF, and put it's content as binary in the response.
Add a mapping to this servlet like /images/* -
You can try this :
form name=myLink
action=html:rewrite page=/index.jsp/
method=POST
input type=hidden name=in value=...
/form
a href=javascript:document.forms.myLink.submit()home/a
Notice the (not visible) HTML form will add a visual line break in
browser. You can avoid it by
You don't need an ActionForm (but you can).
You can use request.getParameter(in) in your action, you can use a
dynaForm too if you don't wan't to create a formBean for this.
As you can read in the code I sent, I did not used html:form, so
action form definition is not needed. This beeing said,
You need a formbean only if you user html:xxx tags. you can use a
HTML form by using :
form action=html:rewrite page=/action.do/
input type=reset
/form
I you want to use struts tags, you can use a bynabean to set a
formbean without having to code a javabean for it.
Nico.
Hi!
I have an
Be carreful, submiting your forms this way you will submit N request,
and only the last one will get a response. If others one have
validation or processing errors, you will not get them.
I would suggest you to set a new form with hidden fields, and
javascript to copy values. On submit, submit
Something like this :
public class PoweredSelectTag extends SelectTag {
/**
* Add a sumbit button after the select list
*/
public int doEndTag() throws JspException {
... (code taken from other tags, like SubmitTag) ...
}
}
Nico.
- Original Message -
As you cannot inherit two classes, I don't think you can re-use this
two existing tags code. You could create a new SumitTag instance to
get it's code running from your tag, calling it's setters and
doStart/doEnd methods, but I really don't think it's a good idea (I
sometimes have very bad ideas).
You should use this (notice html:rewrite tag):
script language=JavaScript
document.write(trtd height='200'p class='enterLink'Welcome to
XML-OPbra href='html:rewrite page=/xml-op/Login.do/'
class='enterLink'Click here to log in/a/p/td/tr)
/script
My link is created as follows:
script
set-property is used when using a class that extends ActionForward
(using className=) to set it's properties, without having to extend
ActionServlet or change struts DTD.
If you want to pass some datas to another action, you can
- use servlet context to put a javaBean
- add (or overwrite) a
As user can edit them, you should set all actionform fields as string.
You can use Collection, arrays and references to obects with String
fields.
This way you can build a formbean model that has the same look as
your business object model (or data transfert objects). You can the
use
You can register a new converter for your data types
http://jakarta.apache.org/commons/beanutils/api/org/apache/commons/bea
nutils/ConvertUtils.html#register(org.apache.commons.beanutils.Convert
er, java.lang.Class)
You will need to build a RoleConverter, that has access to your Role
objetcs,
Early implementation of Java Server Face component using Struts
framework
http://www.mail-archive.com/[EMAIL PROTECTED]/msg62211.ht
ml
Nico.
what is struts faces?
-Original Message-
From: Alexandre Jaquet [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 19, 2003 12:48 AM
To:
I have some pages on my system who can be called
from different
places. The local from where they was called will
determine the next
page to show.
One example of this is the login action. It can be
called when the
user press the login link on a application page. On
this case after
use 3 actionMapping and 1 formBean with custom validate() :
submit - /action1.do (validate form1 parameters) input=page1
- forward to
/action2.do (validate form2 parameters) input=page2
- forward to
/action3.do (validate form3 parameters) input=page3
/action1
De Loof [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 20, 2003 10:39 AM
To: Struts Users Mailing List
Subject: Re: Multipage Validation - Show errors on page where first
action occurs
use 3 actionMapping and 1 formBean with custom validate() :
submit - /action1.do (validate form1
If I understand your case you have something like this :
you want some XML to be processed by xsltags:style Tag, and produce
some JSP code with html:xxx Struts tags.
This fails because JSP compiler works this way :
- scriptlets and JSP tags (that are declared by a %@ taglib %) are
used to build
You can use logic:iterate to get the content of your Vector, and then bean:write
to get properties from your bean :
logic:iterate id=data name=sample
bean write name=data property=foo
/logic:iterate
Nico.
Hi All,
I want a help from you guys. I have created a sampleAction.class
logic:iterate id=data name=sample
City : bean write name=data property=address.city
State : bean write name=data property=address.state
Country : bean write name=data property=address.country
/logic:iterate
Nico.
Hai Nicolas
Thanx for your reply. My problem is that bean propery
If you wan't the user to edit some datas, you should build a form-bean, put your model
datas into it (use
common-beanutil copyProperties, or an Adapter class) and use it in your JSP.
When user submits, get the form-bean back with all updated datas inside it.
What do you wan't to do (not
Do you want your JSP to look different depending getAllowed() value
or do you want your Action to get some checkbox or hidden value from HTML form ?
Can you tell me what you want to do, not as technical but as application usage. I
could so understand what you're
looking for.
Nico.
That is
You should use the html:select tag with html:options
Define a form-bean that will have a contry property, and two collections that will
maintain labels and values for your
options.
Look at tag doc :
http://jakarta.apache.org/struts/doc-1.0.2/struts-html.html#options
This way you will have
html:button is used when you want some HTML Form to have more than one submit
button, and want to know witch one the
user clicked. Property is used to define the form-bean property that will be set (to
button value) whe the button is
clicked.
If you only need a submit button, use html:submit,
Attachement are removed on this mailing list. Paste your file in message body
Nico.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
HttpRequest - (Struts) ActionServlet
- RequestProcessor
- create form-bean in request scope
- call reset()
- populate
- call validate()
- your Action
- forward to servlet [not redirect]
-
I suppose RequestSignalsDelegate is looking for datas in request as
StrutsCXConstants.CURRENTFORM
and
request.setAttribute(StrutsCXConstants.CURRENTFORM, currentForm);
is used to set formbean as datas. I don't know how RequestSignalsDelegate can NOT get
form from request after that.
You
You should ALWAYS use an action to display a page. I know lot it looks simplier to use
JSP URL instead of defining a new
action in struts-config... But in your case you see that not using the controler
brings you to duplicate submit
problems.
Nico.
I'm trying to prevent the user from
!
-Original Message-
From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
Sent: mardi 25 mars 2003 15:45
To: Struts Users Mailing List
Subject: Re: using Tokens with Tiles
You should ALWAYS use an action to display a page. I know lot it
looks simplier to use JSP URL instead of defining
It seems you use struts standard html taglib. use html-el taglib (in the contrib
directory of struts RC1 distrib).
standard taglib is only JSP1.1 compliant and doesn't compute JSP1.2 Expression
Language.
Nico.
I have the JSTL/Struts code:
c:import url=sample.xml varReader=xmlSource
You just have to put a Locale object in session scope :
session.setAttribute(Globals.LOCALE_KEY, new Locale(...));
Struts will use associated messagesRessources.
Nico.
This might be a tricky way, but our users should select the language at
startup.
Our login.jsp has this part:
If your boss can read french, be carreful he doesn't find this link:
http://www.application-servers.com/comments.do?reqCode=readCommentssid=2003-03-23-22:17:22
To find good arguments, we have to know what you should use if NOT using struts :
- nothing but J2EE (lots of servlets and JSP build for
You don't need jsp:useBean as struts tags look into scope themself. (usebean create
a scriptlet variable from a bean)
Your code looks fine. Look at objB code, getter should not be well formed.
- be carreful about uppercase beginig properties
- be carreful not to have mulitple setters with
-
From: Nicolas De Loof [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 11:27
Subject: Re: Using JSP struts tag logic:iterate
You don't need jsp:useBean as struts tags look into scope themself.
(usebean create a scriptlet variable from
is performed but
it works
Thanks for your help.
- Original Message -
From: Nicolas De Loof [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 12:24
Subject: Re: Using JSP struts tag logic:iterate
YOu can read this on struts-logic
I think you don't have defined an action-mapping for path insertUser.
html:form looks for the form-bean name in mappings that comes with the path that is
set by action attribute. It find
nothing so null is the name of the current bean that it is looking for, and you get
this exception.
Nico.
I use WSAD,
it has some prety functionalities, but need a well powered PC (I've got a
P3-500/256Mo and it goes very sloow !). My opinion is it is a too heavy
environment for current PCs generation. You will need 512Mo as WSAD process
uses 150Mo for itself...
I used to make my development
Property of the FormBean that is used by jsp tags to build HTML input
fileds.
if your JSP uses :
html:form ...
...
html:errors property=birthdate/
html:text property=birthdate /
...
/html:form
if validation failed on birthdate property, error will be displayed just
before this text field
Nico
You can't.
Tags can generate Output or skip body content from output, but they're is no
java parsing of resulting output.
Nico
Hi all
Can I include a file with java-code into a jsp with a taglib???
bean:include ???
cello/
--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For
Hi,
the selectedItems property of your formbean should be an indexed property
(array/collection) containing all preselected qcTransMaster1.msQCStageId
values.
Struts multibox tag will compare its value attribute (or body content) with
values from this array/collection. If one is equal, checkbox
As bean:define tag sets a context bean + a script variable, I use this:
logic:iterate indexId=count
bean:define id=counter name=count
html:text ... /
html:button ... onclick='%= aaa( + counter +) %' /
/logic:iterate
Nico
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For
A cleaner (IMHO) way for generating such select in HTML would be :
html:select property=monthstosave
html:options collection=monthstosaveValues
property=value
labelProperty=label/
/html:select
... where monthstosaveValues is a collection of objects that
Hi
I have prob:
I need to dynamically update the options in the 2nd html:select box based on
the value selected in the first html:select box.
I have the all possible values of 2nd box in same JSP.
Can any one help me
thx in advance
gnan
Solution 1:
use javascript to add/remove values to
As expected, simply add quotes !
bean:message key=%=messageKey% /
Nico
Hi All, I'm trying to use the Application Resources as in the following:
%
String messageKey = dbListForm.getErrorMessage();
%
tr
tdbean:message key=%=messageKey%//td
/tr
The
For displaying error messages, you should use html:errors / and
saveErrors() in your Action class. If so, don't forget to set errors.header
and errors.footer in your ApplicationRessources.properties. (@see
html:errors documentation)
Nico
Hi All, I'm trying to use the Application Resources as
Message-
From: Nicolas De Loof [ mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] ]
Sent: Tuesday, June 25, 2002 10:30 AM
To: Struts Users Mailing List
Subject: Re: using ApplicationResources dynamically
For displaying error messages, you should use html:errors / and
saveErrors() in your
Hi
If you don't want to get to the server to update your 2d select box content,
everything needs to be handled by javascript on client.
What I sugested in 3d solution is that your action repopulates the 2d select
depending on 1st selected item (this would be the pure MVC way : let the
controler
Really interesting !
thank you for links.
Nico
Subject: Re: Dynamic updation of a selection box based on other select box
From: Matt Raible [EMAIL PROTECTED]
===
How about a solution where you can use populate the second box with out
ever
leaving the page!? It's called Javascript Remote
only id is required.
id set the name of the scripting variable AND context objet that tag will
define for you.
toScope set the scope to define the context object (PAGE by default)
If you specify name and/or property, bean:define will look for this
object/property in scope (or in all scopes if
Here is an example of sending an HTML message via javaMail :
Properties props = new Properties();
props.put(mail.smtp.host, SMTPHost);
Session session = Session.getDefaultInstance(props,
new Authenticator() {
protected PasswordAuthentication getPasswordAuthentication() {
Unjar the archive to a temp directory. Select the needed files an create a new jar
with it. Use an explicit name so
that you will remember what is inside, like xmlparserv2-without-org_w3_dom.jar !
You can use winzip for this as .jar and .zip are compatible formats.
Nico.
Nope. Didn't work,
I think you can use something like this in a request scoped form-bean :
protected List item;
public void setItem(int index, Object obj) {
if (this.item == null) {
this.item = new ArrayList(index);
} else {
this.item.ensureCapacity(index);
}
this.item.add(index,
Reading my own post I realize this code will throw an IndexOutOfBoundsException
You need to put 'empty' datas on the List as needed :
protected List item;
public void setItem(int index, Object obj) {
if (this.item == null) {
this.item = new ArrayList(index);
}
for (int i =
1 - 100 of 333 matches
Mail list logo