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.
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.
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
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
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
When you use a form in HTML, you set a method attribute. This method can
be GET or POST:
POST puts form parameters in HTTP body (you cannot see them in URL)
GET add parameters to the URL (?parameter=value)
You can change your form action in javascript :
document.form.MyForm.action =
Your code doesn't show any html:form tag. This tag is used by struts to
set the targeted action, and so the associated bean in some scope.
You can use html:text without html:form by setting it's name attribute
(name=user in your case). But if your HTML form has to be commited to a
Struts action,
I do have html:form action=action/editUser in the code I just did not
included in the email.
I also have the following in my jsp:
jsp:useBean id=user scope=request
class=com.basf.plasticsportal.data.User
jsp:setProperty name=user property=* /
/jsp:useBean
thanks,
Diego.
You don't
bean:write name=links property=url//a
bean:write only print your bean property value in JSP outputStream. You
should look at data type used for your url property, and it's toString()
method.
Nico.
-
To unsubscribe,
Is there any difference between teh template tags and the Tiles tag
lbraries
?
They seem to be very similar in their usage.
Cheers,
Naggi
They're is a major difference IMHO : you will find more support for Tiles on
this list than for template !
Nico.
You can iterate over any Collection (or javaBean that as a property that is
a Collection) stored in some scope (request / session / application).
For example I used to put List in application scope for allowed values of
select inputs.
Nico.
If i want to use logic:iterate (or something
Perhaps Rational XDE ? ;)
Nico.
-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 10, 2003 9:30 AM
There is no alternative to Rose.
-Original Message-
From: Durham David Cntr 805CSS/SCBE
Sent: Monday, February
10, 2003 10:04 AM
logic:interate
http://jakarta.apache.org/struts/doc-1.0.2/struts-logic.html#iterate
- An array of Java objects (but not primitive data types such as int)
- An implementation of java.util.Collection, including ArrayList and Vector.
- An implementation of java.util.Enumeration.
- An implementation
And http://www.objecteering.com/
(Not tried myseld, but a colleague of mine tells us since 6 months it's
great)
Nico.
You're very welcome.
Oh yea, there is MagicDraw too :-)
- Robert
Durham David Cntr 805CSS/SCBE wrote:
Thank you.
-Dave
-Original Message-
From:
You could create a servlet (or an action) that uses user Locale object to
put the localized image in HttpResponse (a binary stream). Doing so you
would have to define a mapping in web.xml (/images/localized/*.gif -
LocalizedImageServlet) as I don't think browser will accept image without
good
I think what you're looking for is request whithout response, aren't you ?
If you want to use HTTP using an URLConnection you have to use HTTP syntax
in the string you send to the server :
open a connection on http://www.otherserver.com; (this will be like a
telnet session on this server on port
check your web.xml Deployment Descriptor for *.do mapping. It should map to
struts ActionServlet.
Nico.
- Original Message -
From: Jefferson Magno [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, February 04, 2003 1:27 PM
Subject: RE: AW:
Could you give us
- your JSP code (the part where input fields are included)
- your formbean (setters method for not initialized your properties)
Nico.
Hi,
Values from my JSP are not getting initialized properyt to my Form
bean.
Is there any place which could go wrong
The values are
When validation send you back your request scope is empty as you have
submited a new request ! Your test attribute will be present in your
formbean, because formbean population has occured. For beeing able to
display back your JSP you will have to use session scope beans or use
formbean
completely off and stand corrected?
Vinh
-Original Message-
From: Nicolas De Loof [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 03, 2003 8:54 AM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: Getting Request Parameters After validate()
When validation send you
IMHO request scope should be used to put volatile datas, such as error
messages or computation result. A JSP that uses validation should be able to
display back without preprocessing, I mean needed datas should be present
as properties of the formbean (or other session scoped bean).
Using
What you call a macro is simply a JSP custom Tag. You can create tag for
your application to add the behaviour you need, such as searching some scope
for XXX and adding it to the message that you can get the way MessageTag
does (you can grab struts MessageTag code for this !)
Nico.
Is there a
JSP tags attribute must be String or Object (toString method is used). You
are using an int as value attribute, so just convert it to String :
html:option value=%= String.valueOf(i) %
%= getMonthName (i) %
/html:option
Nico.
Hi,
I'm having trouble with the following piece of
You typed % =myint % instead of %= myint % !
I used this a lot of time :
logic:equal name=topicsList
property=topicid
value=%= MyClass.CONSTANT_VALUE %
foo
/logic:equal
Nico.
Hi,
I'm using Struts 1.1b and want to use logic:equal to compare values
and I'm
Here is a quick and dirty solution :
In your JSP you can add a form with an origine hidden field :
form action=/changeLocale.do method=post
input type=hidden name=origine value=%= request.getRequestURL()
%
Language : select.../select
input type=submit value=translate
/form
This way,
You just have to add at begining of your JSP :
%@ taglib uri=/WEB-INF/struts-loigc.tld prefix=logic%
Without that, you can see that logic:xx tags appears in resulting HTML not
beeing interpreted by JSP parser.
Nico.
My JSP:
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean%
%@ taglib
That is what I understood.
The localeform is sugested can be added in every JSP (that is able to
redisplay fine). It has to take as parameter the locale selected and the
incoming JSP page, to be able to set Locale and to redisplay the JSP.
You can get a JSP URL when rendering using
Tag, then he says:
org.apache.jasper.JasperException: Cannot find bean person in any scope
What is Tomcat's problem ? I think he don't know what he want !
thanks, Fredy
-Ursprüngliche Nachricht-
Von: Nicolas De Loof [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 23. Januar 2003
What version of tomcat are you using ?
Nico.
That's really stupid ;-)
But now there's the next error:
I think the use Bean Tag is wrong, because the Error ist:
It is a bug in tomcat 4.1.10 afaik. Upgrade to 4.1.18.
Tib
--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional
1. Struts find the formbean on scope or creates a new one
2. formbean.reset() is called to set all properties to default values
3. formbean is populated from request parameters
4. formbean.validate() is called (if configured)
5. formbean is passed to action
reset() is used to set all property to
Could you please add this dump code in your JSP, replacing your bean:write
so that we could see what logic:iterate has done with your person.
(Please post resulting HTML)
Nico.
h3PAGE_SCOPE/h3
% for (java.util.Enumeration e = pageContext.getAttributeNamesInScope(
A long time ago, someone suggested to add a control
in the struts-config.xml so the reset() is not always mandatory
but can be disabled in the struts-config.xml.
May be it sounds like an anti-pattern from the gurus,
but to me, it sounds like a very interesting option,
for real-life apps.
I think Value Object is the J2EE BluePrint name of Data transfer objects
design pattern. This is a way to transfert multiple datas as a simple bundle
(so you doesn't need to make multiple getter calls, especially on remote
obects).
Data Access Objects (DAO) is a pattern to encapsulate ressource
JSP Tags use a XML style syntax, so you can't use a tag as attribute of
another tag.
bean:define can help you, as it creates a script variable :
bean:define id=imageSrc scope=application name=myImage/
html:image property=submit src=%= imageSrc %/
Nico.
html:image property=submit src=bean:write
It seems that this limitation has been changed in JSP 1.2,
and now it is possible to flush from inside a custom
tag only if this tag extends IteratedTags.
I presume that the implementation of nested:iterate
I use (Struts-1.1b2) does not extend IteratedTags.
You would like some
In fact, logic:iterate extends BodyTags and implements IterateTag.
So for a newbie like me, everything looks ok.
Of course, I misunderstand all the problem.
That's why I ask for additionnal informations.
tiles:insert is using JSP include mecanism. In JSP 1.1, include MUST use
the flush
Reading tiles tld, I've seen they're is a flush attribute, that can be
optionaly set to false, so that no flush is done.
On a JSP 1.2 compliant container this should allow you to use tiles:insert
into your nested:iterate tag.
It should be great for tiles not to flush if a JSP 1.2 container is
ServletContext = application scope !
bean:write ... scope=application /
Nico.
Hi,
Does Struts provide any tag to access attributes set in a
ServletContext?
Thanks,
Suresh
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL
Waaa !
It took us 2 years to come to struts + log4j. I'm trying to promote tomcat
and eclipse as test/development platform... for 2004 ?
Perhaps Linux and PostgreSQL in 2020.
Nico.
Suddenly my life doesn't look so bad. :)
When I first started working for my company we were using Websphere
JSP custom tags use a XML-compliant syntax, so attribute value of a Tag
cannot contain another JSP tag. The only way to dynamicaly set attribute
value is using expression (scriptlet).
bean:define tag can help you doing this :
bean:define id=page_url
tiles:getAsString name=tbl_1/
/bean:define
* Use with collection :
html:select property=selected_item
html:options
collection=itemAllowedValues
property=value
labelProperty=label
html:select
itemAllowedValues is a Collection in some scope that contains beans with
value and label property for selectable values
It looks like your JSP doesn't include tiles taglib def :
%@ taglib uri=/WEB-INF/struts-tiles.tld prefix=tiles %
Nico.
%
String tiles =/tiles:getAsString name=\tbl_1\/;
%
unfortunately the value of tiles var is
/tiles:getAsString name=\tbl_1\/
--
To unsubscribe, e-mail:
If I've understand your formBean is NOT a DynaActionForm or subclass of
DynaActionForm. If I'm right, form-property will have no effect on struts
configuration (they are used only for dynabeans, see DTD)
form-bean dynamic=false name=MyActionForm
I think I allready read this question somewhere
http://jakarta.apache.org/struts/faqs/helping.html#release
Nico.
When is the next release coming out?
-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 17, 2003 11:01 AM
1.1 beta 3
--
perform() method in any action MAY return an ActionForward, but CAN return
null if it has build the response for the client browser. This is commonly
used for PDF or Excel generation, where they're is no need for a JSP.
I don't understand why you cannot directly use the PDF-generator servlet, by
Servlet API doesn't allow you to write request attributes (parameters,
headers...)
You can try to forward to a new ActionForward object, build with the mapping
to your another action, adding needed parameter with GET syntax :
...
return new ActionForward( NEXT_ACTION_URL + ?param= + paramValue );
It writes the binary value(pdf) into the response.getOutputStream,
with content-Type application/pdf und with content-length set.
But in the browser nothing can be seen, even though the pdf that gets
created correctly,
and the browser is loading the pdf-plugin.
Any ideas ?
marcus
I
Is there a taglib in struts which would allow me to compare a value of a
variable with a value of another variable. I went thru struts docs and
found
only constants can be compared with logic:equal tag
-Hari
Try this :
bean:define id=variable1_value name=variable1 property=value /
I never set content-length when generating response (PDF or not).
Perhaps
you have a mistake in length calculation and browser waits for EOF ? Try
without.
Nope. I know it works as it works without Struts.
So, why don't you just add a mapping in web.xml for your PDF-maker servlet ?
Can't you just have the action that fronts the PDF servlet return a
forward
that represents the path to that servlet?
web.xml:
servlet-mapping
servlet-namepdfServlet/servlet-name
url-pattern/pdf/url-pattern
servlet-mapping
You could also include a security-constraint element to
You can use a bean as a flag this user has allready been count. Let's call
it user.
Your welcome page should be a struts URL (welcome.do). Corresponding
WelcomeAction would look for user in session.
If not found, it does increment user counter, create user bean and put it in
session, so that
You can use struts framework without formbean, without validation, without
error handling ...
But doing so, struts will be a less powerfull framework.
You can begin with just a mapping, an Action that does what you want and a
JSP.
Adding a formbean will allow you see that Struts maintains data
?
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
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() {
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
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
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
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
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
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
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
Page scope does only exist during the execution of your JSP page (compiled
as a Servlet). As your action is called by ActionServlet,
JspFactory.getDefaultFactory(); returns a pageContext for the ActionServlet
(that has not been generated from a JSP file, so it's strange to call this
method from a
JSP tags use XML syntax and so they cannot be nested as attribute values
this way. You can use scriptlet notation to define tags attributes at run
time :
html:hidden property=id value='%= myData % /
So you just have to define a scripting variable to handle your datas
bean:define id=myData
Hello,
I would like to know if Struts (1.0.2) uses Servlet API 2.3 or 2.2
definition of pageContext.removeAttribute(String) behaviour:
in 2.2, javadoc only says remove the object reference associated with the
specified name
(no precision about scopes)
in 2.3 Remove the object reference
Hi,
My application (based on Struts 1.0.2) uses the context greco, and I have
some Actions with forward defined like this with a redirect flag :
action path=/oneAction
type=greco.webapp.MyAction
name=MyForm
scope=request
same behaviour ...
What happens if you take the slash out of the path? ie path
=otherAction.do
Nicolas De Loof [EMAIL PROTECTED] on 05/29/2002 06:28:35 AM
Please respond to Struts Users Mailing List
[EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
cc
Hello,
I noticed Struts custom tags use some code like this one to get the user
session :
HttpSession session = pageContext.getSession();
if (session == null))
session =
((HttpServletRequest) pageContext.getRequest()).getSession();
if (session == null)
return (null);
notice the
I have Traditional Chinese and English resource files in my web
application.
Everything worked fine at first. I could switch between these two
languages
without difficulties.
But it was found that when there were certain Chinese characters in the
Chinese resource file, error Unmatched
Hi,
This doesn't looks like a Struts question, but please help.
Conforming to a question I asked on this list last week, I defined an
environment entry in my web.xml to configure some properties my client has
to set when installing the application.
I tested this successfully on tomcat.
This
I remember such an error reported on this list some weeks ago, the
explanation was that JavaBean spec defines some special behaviour with
upper-case properties.
To build getter method names conforming to this behaviour, BeanUtil looks at
the two first charcacters of a property name and, if
Hello,
I will have to deploy a webapp (on WAS4) using a war file, but I'm not sure
on how to let my client set some configuration datas that are placed in
propertie files (in WEB-INF/classes), or update the
ApplicationResource.propertie to change application texts.
I would like it to be simple
I've tested struts-example successfully with websphere 4 fixpack 2 (with
no-changed struts 1.0.2 binary distrib) on IBM AIX
Perhaps you would have to upgrade to fixpack 2 (websphere 4.0.2) ?
Nico
Do I need to make change to the struts source and rebuild it to deploy on
WebSphere 4.0? I would
Thanks Nicolas for the quick response. I will try with the fixpack 2.
Did u get any special struts.jar or used the onle from binary
distribution?
I used the web-application war files (in struts 1.0.2 bin distrib) and so
the included struts.jar.
Nico
--
To unsubscribe, e-mail:
Could you please insert in your action class the line :
System.out.println(form.getClass().getName());
(or another logging method)
so we can have more infos about what's happening with your form ?
and please give us the complete java source code of your FormBean as
attachement
Nico
Im
)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(Unknown Source)
at weblogic.socket.MuxableSocketHTTP.execute(Unknown Source)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)
_form:
Do Mai 16 12:42:51 CEST 2002:E WebAppServletContext-det Servlet
failed with
Exception
Nicolas De Loof wrote:
Could you
I think you just have to use:
logic:iterate collection=memberBeans id=memberBean
So iteratetag will look into scopes for a memberBeans object that should
be a Collection.
What you do is tell iterate tag to look for a Collection named ...
the result of
,
before the iterate tag, to have the memberBeans object in the scope
?
Pierre
-Original Message-
From: Nicolas De Loof [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 15 May, 2002 11:27
To: Struts Users Mailing List
Subject: Re: Problem with iterate tag
I think you just have to use
Your myVector object is placed in request scope, so it is not present
anymore in the next request, when the user submits the form. To display the
JSP after validation error detection you need to put this object in session
scope.
using jsp:useBean id=myVector class=java.util.Vector scope=request
logic:match tag looks for value substring in it's body or in bean setted
by name and optionnaly property (using toString() for non String
objects).
Your index is an Integer, and this tag uses toString() value, taht is
decimal view of your index. So 0 and 10 and so on have the 0 substring
and
Please give us your mapping (struts-config) for this StrutsAction.
hi there ...
i always get a class cast excpetion when trying to cast the form-class
is there anybody who is able to tell me what is wrong in my form-class
public class StrutsAction extends Action{
public
Your struts-config:
message-resources
key=org.apache.struts.action.MESSAGE
name=ApplicationResources.properties /
I'm using Struts 1.0.2, so I cannot test it, but i think your message
ressource bundle should be declared in struts-config with a parameter
attribute without the .properties
Hi
I use struts-blank application as a canvas for a new struts 1.1 application,
and so looked into included struts-config.xml.
I'm surprised to see that administrative actions (like AddFormBeanAction or
ReloadAction) are not any more in struts 1.1 b1 distribution (zip), but are
referenced by
indexId defines the name of the Integer stored in page scope AND the name of
a scripting variable created in your JSP.
so in example you can use
bean:write name=inx/
or
%= inx %
You can so use the first html:link syntax
Second one is illegal because JSP tag cannot be used as attribute value of
If /foo is mapped to FooForm bean, you can use
bean:write name=FooForm property=xxx /
without changes to your html:form. bean:write will look in scopes for an
object called FooForm. This has no effect with using html:form or not -
assuming FooForm is in session or request scope !
If you've
logic:iterate id='element'
name='attribute'
scope='page' type='java.lang.String' indexId='index'
bean:write name='MAP_STATE_KEY'
property='mapController.dataConnection.attributeNames[%= index %]'
scope='session'/
Correct your bean:write tag
That's pretty weird, considering an ArrayList has an initial capacity of
10
and grows automatically. Are you sure you are re-instantiating the List
after (I assume) dereferencing it in reset()?
This grows automatically part is something that I think is not
completely right. If you
201 - 300 of 333 matches
Mail list logo