OUPS
sorry, while writing a clean example I've seen that
document.forms.MyForm.elements['echeancier.date'][0] DOES work ...
Thank you for help.
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
If I understand what you're tryin to do, you want your Javascript code to
write JSP scriptlet (?)
Javascript is executed on the client, instead JSP code is executed on the
server. So a scriptlet can dynamicaly generate javascript code, but the
oposite has no sense.
You cannot execute any JSP
You will have to write JavaScript code to repopulate your State-select on
onChange event of your country-select.
Your could define javascript objects to encapsulate the datas (as a
javascript tree), that could be initialized by JSP code from your HashTable.
Hi Oliver,
The main issue here is
In an action, how to forward the user to the input page ?
ActionMapping.findForward(input) doesn't has a ActionForward for this.
I use :
RequestDispatcher rd
= request.getRequestDispatcher(mapping.getInput());
rd.forward(request, response);
Is there a better way ?
--
To
I don't know if it will help, but I had a problem with such syntax :
try
bean:define
id=entitybean
name=RegionForm
property=%= \regions[\ + elementNo + \].region_ent\ %
type=java.util.ArrayList
scope=session/
As property attribute is defined in TLD to be rtexprvalue, it can
[send in copy on Struts-dev list]
In ActionServlet (Struts 1.0.2) you can read that formBean object found in
scope is compared to the form name declared in ActionMapping by testing
class name, not testing it using an isInstance or any other reflection
mecanism that could allow using inheritance
I would like to use an InitServlet that runs before Struts ActionServlet, to
put some datas in application scope.
In the init() method I can get the servletContext using
ServletConfig.getServletContext(), but how to access Application scope ?
--
To unsubscribe, e-mail: mailto:[EMAIL
As I read my question it seems I would have to go to bed early toonight !
ServletContext() IS application scope ...
Excuse me for this mail. I think my mind is filled by French elections
disaster (I'm a french guy).
I would like to use an InitServlet that runs before Struts ActionServlet,
to
html:image src=/images/%=terrbutton1% property=territory1
value=terr1/html:image/TD
I had same problem with Tomcat 3.3.1.
If you look at hte generated HTML code you see
input type=image src=/images/%=terrbutton1% ...
The scriptlet code for src attribute has not been parsed.
So, replace in
JSP tags use XML syntax, so while parsing your code JSP parser sees:
my:tag tag begins
something attribute setted to value bean:message key=
foo.bar attribute without value declaration
You cannot nest jsp:tags into attribute declaration as you did.
You might add an optional key attribute to your
Action classes are only a gateway to your business logic. You would just
have to create and use business objects for your request.
If you need synchronized blocks, it's looks like your Action has some
instance properties that cannot be shared with other requests.
I think this properties would
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
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
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
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
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
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
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:
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
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 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
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
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 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
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
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
Great ! We deliver our application to our customer ... this afternoon !
Perhaps it will be the first Struts 1.1 FINAL application ?
Nico.
- Original Message -
From: Martin Cooper [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, June 30, 2003
Great ! We deliver our application to our customer ... this afternoon !
Perhaps it will be the first Struts 1.1 FINAL application ?
Nico.
- Original Message -
From: Gemes Tibor [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, June 30, 2003 9:47 AM
Subject:
I'm using fileupload too and have difficulties to send errors about file size.
Are you able to send an error message with this code ?
In my application validate method returns errors (I can see it in logs) when file is
too large, but browser does'nt
display error JSP (waintg ...). I thing it is
In fact I've got this strange behaviour :
- Form-bean is validated a first time.
MultipartRequestHandler.ATTRIBUTE_MAX_LENGTH_EXCEEDED is setted and an
ActionError is returned by validate().
- browser go on uploading for a long time ... (5 minutes for 10Mo upload on localhost)
- validate is
I Tried Struts upload example App and it works fine. So browser or tomcat conf are not
responsible.
Do you have any idea what I can look at to discover what works wrong on my app ?
Nico.
Nicolas De Loof wrote:
In fact I've got this strange behaviour :
- Form-bean is validated
That's what I was trying to do and discovered that upload behaviour changes when going
over Struts configured file-size
limit (4Mo in my case)
With a 3Mo file it works fine.
With a 4,4Mo file I get errors on logs but upload goes on in the browser, and after a
long while (3 minutes) I get
others
I'm back with my FileUpload problem ...
Here is what I've done to search the problem :
I added struts-upload example classes and mappings to my app : it works
I migrate it to use my classes (form-bean, actions) : it works
I migrate it to use my JSPs : it works
I migrate it to use my Tiles
De Loof [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, June 30, 2003 3:43 PM
Subject: Re: File Upload size restriction ?? [TilesRequestProcessor ?]
I'm back with my FileUpload problem ...
Here is what I've done to search the problem :
I added struts-upload
time before displaying error messsage
Could someone please make this test on his config ? I'm not sure this troubles
doesn't come from my environment
(tomcat
4.1.24 - eclipse - win2k - IE 6sp1).
Nico.
- Original Message -
From: Nicolas De Loof [EMAIL PROTECTED]
To: Struts
use the scope attribute (it is the same for lot's of struts tags)
logic:equal name=foo scope=session value=bar
...
/logic:equal
http://jakarta.apache.org/struts/userGuide/struts-logic.html#equal
Notice Struts will automatically look in scopes for you if you don't use scope :
page - request -
Struts html:link and HTML link tags are confusing.
html:link is used to create a hyperlink (a tag)
In your layout, you can use this :
link
rel=stylesheet
type=text/css
href=html:rewrite page=/styles/main.css/ /
it use html:rewrite to build the absolute path to your css
You can configure Struts to ad HTTP no-cache headers to every response :
in struts-config.xml :
controller nocache=true/
You can add some HTTP directives to your JSP (or tiles layouts) like this :
head
meta http-equiv=expires content=now
meta http-equiv=pragma content=no-cache
I think this is the correct behaviour since blank fields have to be considered using
the required rule.
You can use both required + minlength rules if field is mandatory.
Nico.
I started using struts validator. I just copied a bunch of stuff from
the struts example and started using that,
-config.xml]
Thanking u
Prashanth
Nicolas De Loof [EMAIL PROTECTED] wrote:
You can configure Struts to ad HTTP no-cache headers to every response :
in struts-config.xml :
You can add some HTTP directives to your JSP (or tiles layouts) like this :
Nico.
Before you send any data
Did you include the taglib definition on JSP header :
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
Look at generated HTML to see if html:rewrite tag has been fully translated by JSP
compiler.
Nico.
Just signed up to the mailing list a few minutes ago so as you would
probably
='/js/calendar.js'
/SCRIPT
Also, I noticed that I get a syntax error on the 2nd /SCRIPT when I load
the page.
Richard
Nicolas De
Loof To: Struts Users Mailing List
[EMAIL PROTECTED]
nicolas.deloofcc
struts-layout is a taglib developped by Improve to help building Struts app.
http://struts.application-servers.com/
It is not currently part of Struts, and was noy included in 1.1rc1. It will not bee
since Improve didn't donate code to
Apache Software Fundation.
Nico.
- Original Message
1.
logic:iterate type attribute is uses to set the java type of a JSP variable set by
the tag for current item. By
default type is java.lang.Object, and if you don't use scriptlets (% java %) or
Runtime Expression (%= java %) you
don't need to use it.
In the case you want to use type attribute,
Perhaps you should try this :
a href=help
onclick=openWindow('html:rewrite page=/myaction.do/?task=doThis');return
false;Help/a
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Yeah, I get the first point !
Are you ready for the next question ?
Nico.
Nicolas obviously types quicker then me :-)
Steve
-Original Message-
From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
Sent: July 3, 2003 11:45 PM
To: Struts Users Mailing List
Subject: Re
/another_subdir/action.do
Nico.
Nicolas,
it works! thank you very much.
Can you explain me the magic of html rewrite tag.
Meissa
Nicolas De Loof [EMAIL PROTECTED]
04/07/2003 09:03
Veuillez répondre à Struts Users Mailing List
Pour : Struts Users Mailing List [EMAIL PROTECTED]
cc
Struts 1.1 has dependencies to some commons projects. First 1.1 pre-release of Struts
used commons-dbcp for the
DataSource functionnality in replacement of GenericDataSource .
Waiting for this commons to get stable before releasing 1.1 final, Struts commiters
agreed to go back to
I promise to let you respond first to the next one ! ;-)
Nico.
Stop doing that! :-)
Steve
-Original Message-
From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
Sent: July 4, 2003 4:15 AM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: GenericDataSource
That should be the reason why my 1.27 pm brain looks so quick ! Don't panic, I'm on
holiday next week, you will have
the whole day to respond to struts-users.
Nico.
It's 4.25am here. My brain is a little bit s - l - o - w .
Steve
-Original Message-
From: Nicolas De Loof [mailto
Something like this ?
Nico.
:o)... well great idea
F.
- Original Message -
From: Adam Hardy [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, July 04, 2003 3:23 PM
Subject: Re: [OT] Does any one know
a bit like Tom when gets an
Oups, mailing list doesn't allow attachements... and my website is down !
Sorry.
Nico.
Something like this ?
Nico.
:o)... well great idea
F.
- Original Message -
From: Adam Hardy [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent:
Moving Struts to commons-ressources is planned for 1.2. I think some struts commiters
where so happy doing it that they
pre-include the jar in RC1, until it is not used.
Nico.
Hi,
I had been using Jakarta-struts-1.1-rc1 version. As the final release has been
done, I wanted to upgrade to
No form-bean is associated with a JSP; Some JSP use html:tags to use form-beans.
I use some constants for form-beans so that form-bean names are duplicated only one
time : in constant definition class
and in struts-config.xml
public class Forms {
public final static String USERFORM =
As your serlvet-mapping is setted to url-pattern//url-pattern every request is
handled by Struts.
Struts RequestProcessor extracts the extension to get the action path to process.
request = /MyWebApp/pages/graphics/MyPicture.gif
When your request is handled, they're is no action-mapping for
You can try this :
bean:define id=constantValue value=%= SystemConstants.VIEW % type=String/
logic:equal name=constantValue property=N
...
If you cahnge VIEW value, be carreful that your will have to force JSP recompilation
because final static (constant)
value will be compiled inline in
as long as lunch :-)
Nicolas, have you or anyone else discovered a
solution/workaround? Thanks!
best,
garthabrindoid
Nicolas De Loof wrote:
That's what I was trying to do and discovered that upload
behaviour changes when going over Struts configured
file-size limit (4Mo in my case
You could look at this :
http://c-jdbc.objectweb.org/
this intermediate JDBC driver allow you to cluster databases. Notice I never used it,
use it at your own risk ;-)
Nico.
Hi,
I am sure that someone here must have worked on a
large website with heavy load using struts and I
wonder if
Please could you send me feedback if you experiment this jdbc-cluster-driver ?
Nico
Nico,
Great! That is exactly what I'm looking for.Maybe I'll
have some hard time to setup a testing environment and
write some code to see what will happen.
Thanks a lot!
Guo Yingshou
--- Nicolas De
Yingshou
--- Nicolas De Loof [EMAIL PROTECTED]
Please could you send me feedback if you
experiment
this jdbc-cluster-driver ?
Nico
Nico,
Great! That is exactly what I'm looking for.Maybe
I'll
have some hard time to setup a testing environment
and
write some code
, it is much like Oracle.
(self-promo: keep me in mind for engineering larger sites, I have some
useful experience with good ROI)
Nicolas De Loof wrote:
No problem, I'll be patient. I just want my boss to stop saying Oracle
replication each time we get
load-ballancing
needs.
Nico
According to MVC pattern ,alway link to action, not to JSP. This way you controler
always knows what the user is doing,
and you can add some logic if needed.
Using a request parameter to addapt action behaviour is a common Struts use (take a
look at DispatchAction).
Nico.
I have a login
action do you use, if any? Cause, it's only the next time the
action is called that the action is going to do real action.
Erez
-Original Message-
From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
Sent: Friday, July 18, 2003 2:24 PM
To: Struts Users Mailing List
Subject: Re: actions
when you want this request to use a formbean and
have validation.
Nico.
Nico, thanks a lot for the prompt answers.
Do you use for that the org.apache.struts.actions.ForwardAction ?
Erez
-Original Message-
From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
Sent: Friday, July
Use this :
bean:size id=size name=myFormBean property=theArrayList /
logic:equal name=size value=...
...
/logic:equal
Nico.
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 9:39 AM
Subject: arrayList size
Hi,
I am using an
Hi all,
I need to produce some browser statistics for a webapp. Do you know some tool or
user-agent database to get this infos ?
I was thinking about using regular expression to put user-agent into categories. Do
you think about any other way to do
this ?
Nico.
in web.xml, struts controller servlet is set with a load-on-startup value.
You can configure another servlet in this file with a load-on-startup value greater
that struts'one. This way your
servlet will load and configure after struts.
Another (better ?) way is to create a struts plugin that
When you want to use Runtime Expression in a JSP tag, the full tag attribute value
must be RTexpression, not just part
of it :
html:text property=%= \person\ + x % value=/
In your case you should think using indexed properties and logic:iterate to display
your datas.
Nico.
- Original
You are missusing logic:equal tag :
logic:equal name=childDetail parameter=rateClassTCSGRTE
- if you want to test a bean property, use name= property=
- if you want to test a request parameter, use parameter=
using name + parameter has no sense.
Nico
I can use the logic:NotEqual tag but I
=childDetail
property=rateClassTCSGRTE value=%=ss%/
System.out.println(THIS ALWAYS RUNS EVEN IF
CONDITION FAILS)
/logic:equal
/logic:iterate
/logic:equal
Yogesh
-Original Message-
From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 14, 2003 2:36 PM
To: Struts
:)
-Original Message-
From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 14, 2003 2:47 PM
To: Struts Users Mailing List
Subject: Re: URGENT :: LOGIC:EQUAL works only with one constant Value ??
Not R epeat Iterations
You're code has a XML error :
property
the name of the form is the name of the form-bean it uses.
Nico.
- Original Message -
From: jagadeesh kumar movva [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 14, 2003 11:59 AM
Subject: why is there no attribute name for html:form in struts???
Hi,
I want to
collection attribute of html:options tag is used to set the name of a bean (in some
scope) that is a collection of the
items off the select-box.
You need to put your Vector into page or request scope to use this tag:
%
request.setAttribute(items, agencyIds);
%
html:select
html:options collection=agencyIds
label=label
value=value /
/html:select
shouldn't the value of collections be items, since that is the key you used.
thanks
cheers
ajay
From: Nicolas De Loof [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL
What html result do you get ?
If generated HTML has bean:write check if you included struts-bean taglig
header in your jsp.
If generated HTML has lt;bgt;hello ... use filter=false on bean:write to disable
HTML markup filtering (active by
default)
Nico.
- Original Message -
You can use the Struts PlugIn mecanism too, but your init code may need some changes.
Nico.
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 15, 2003 2:11 PM
Subject: RE: Converting to Struts, where to put Servlet init() code?
You dont need
Sory if this has allready been proposed, I didn't read this thread from begining.
Did you try something like this :
logic:iterate name=EMPHashMap id=mapEntry
uid = bean:write name=mapEntry property=key
Date of joining = bean:write name=mapEntry property=value.joining
/logic:iterate
contextRelative is used to define a forward that is relative to the application
context and not to the module context
(default).
You cannot redirect to an URL outside your app using struts-config forward. Use a
requestDispatcher in your action and
call sendRedirect(), or create a new JSP with
the solution to my problem!
Thanks
From: Nicolas De Loof [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Newbie questionredirect
Date: Wed, 5 Nov 2003 14:22:47 +0100
contextRelative is used
Here is what happens :
reset() is called before every form population
form population occurs before every struts action url (*.do) is processed.
When an action forwards to another one using forward path=another.do, struts
actionServlet is called to handle this
second URL. FormBean is then
Hi all,
I've read on this list that chaining actions is considered as a design error.
On the project I'm working on, some developers need to make some business validation
on a form before going to the next
page. This validation occurs in an Action class, let's say Action1.
From business
Hello,
If action chaining is a design error, then the struts-example that
comes with struts distributions has a design error, saveSubscription
forwards to editRegistration.do!
Anyway, what I do is keep validation off action classes, by moving
them off to action forms using validator
PROTECTED]
Sent: Friday, November 21, 2003 10:56 AM
To: Struts Users Mailing List
Subject: RE: best practice to avoid chaining actions
-Original Message-
From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
Sent: Friday, November 21, 2003 2:58 PM
To: Struts Users Mailing List
Subject: Re: best
Hello all,
This is'nt a Struts related question, but I know lot's off peoples here are java
experts ;)
My application uses a binary ressource - a gif file - that is loaded from classpath
(the application changes some colors
and put it into response.out)
When testing the code (a simple java
Hi all,
I would like to use the jakarta String-1.0.1 taglib in my app, but tld is packaged
inside jar.
I use tomcat 4.1.27, that is servlet 2.3 compliant so taht should be able to use this
taglib as is, but I don't know
what to set in web.xml as taglib element (especially for taglib-location)
this in your JSP:
%@ taglib prefix=string
uri=http://jakarta.apache.org/taglibs/string-1.0.1; %
Quoting Nicolas De Loof [EMAIL PROTECTED]:
Hi all,
I would like to use the jakarta String-1.0.1 taglib in my app, but tld is
packaged inside jar.
I use tomcat 4.1.27
use this :
bean:define id=foo name=operator property=operatorWeightType/
logic:equal name=element property=weightType value=%= foo %
...
Nico
- Original Message -
From: struts [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, December 18, 2003 11:09 AM
_jspx_th_logic_equal_1.setValue(foo);
^
1 error
Thx !
- Original Message -
From: Nicolas De Loof [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, December 18, 2003 11:12 AM
Subject: Re: Question dynamic value
Assuming imageList contains String taht are absolute (in application context) path to
your images, this should work :
logic:iterate id=item name=imageList
html:image page=%= item %
/logic:iterate
Nico.
- Original Message -
From: gentyjp [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Your first example is invalid :
bean:message key=error.minCharacters
arg0=bean:write name=globals property=minChars / /
A JSP tag cannot be used as attribute value of another tag (XML syntax)
This should work :
bean:define id=minChars name=globals property=minChars type=String/
bean:message
201 - 300 of 333 matches
Mail list logo