template:put name="title"
direct="true"
bean:message
key="index.title"/
/template:put
-Original Message-From: Jeff Trent
[mailto:[EMAIL PROTECTED]]Sent: 30 April 2001
20:10To: [EMAIL PROTECTED]Subject: How to
embed bean:message within a template
Newbie here. Just
all its properties/values
* as hidden input type html tags.
*
* @author Niall Pemberton
* @version 1.0
*/
public class StoreBeanTag extends TagSupport {
public static String QUOTE = \;
protected String name = null;
protected String property = null;
protected String scope
I haven't used it, but this looks similar to whats been developed in the
jakarta taglibs project - see JDBC taglib.
http://jakarta.apache.org/taglibs/doc/jdbc-doc/intro.html
Niall
-Original Message-
From: Mindaugas Idzelis [mailto:[EMAIL PROTECTED]]
Sent: 07 May 2001 15:06
To:
Sub-class ActionServlet and override the init() method.
Also a good idea to override the destroy() method to clean up allocated
resources. Additionally the reload() method does the destroy and init
actions to re-load the servlet.
public void init() throws ServletException {
I have had other similar issues and I think a very useful enhancement to all
Struts tags would be to make them more granular so that they could be easily
sub-classed and modified. Currently methods such as doStartTag() tend to
have one big lump of code which means if you want to change it
The problem is the CheckBox tag currently sets the HTML name attribute to
the property, so your JSP will produced something like this:
input type=checkbox name=delete
So all the checkbox fields will have the same name.
In order for Struts to populate your Retailer bean with the delete
I'm using MySQL rather than Oracle...
--Struts-congif.xml-
struts-config
data-sources
data-source description=MySQL-test
driverClass=org.gjt.mm.mysql.Driver
url=jdbc:mysql://localhost/test
The problem is the CheckBox tag currently sets the HTML name attribute to
the property, so your JSP will produced something like this:
input type=checkbox name=delete
So all the checkbox fields will have the same name.
In order for Struts to populate your Retailer bean with the delete
been struggling because of basic lack of
information. I
get most of my training from this news group! I'm wondering whether I
should just jack it in and use something else.
Cheers
Tony
From: Niall Pemberton [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject
I think you got the wrong end of the stick. The action elements in
struts-config relate to ActionMapping classes, not the Action class.
You need to sub-class the ActionMapping class and add your properties and
getters/setters to that class.
Then you need to add a init-param element for the
I have a RowTag that does this, it generates tr elements and you can
specify either oddColor/evenColor attributes to generate bgcolor= attributes
or oddStyle/evenStyle parameters to generate class= attributes for CSS.
So the jsp looks like this:
table
logic:iterate id=.. name=..
, if that's
all right.
http://husted.com/about/struts/
Niall Pemberton wrote:
OK, its attached.
The RowTag I wrote uses it - up until 28/04/2001 you couldn't access it
(thats afte 1.0-b1), after that Craig added a getIndex() method.
You can download my RowTag from Ted Husted's site at:
http://husted.com/about/struts/
Niall
-Original Message-
From: David Lieberman
There are quite a few messages in the archive about this:
http://www.mail-archive.com/struts-user%40jakarta.apache.org/
A couple of messages from a recent thread:
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg07656.html
This is an HTML issue.
Lots of discussion in the archives about this:
A recent one:
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg06473.html
Niall
-Original Message-
From: JeanX [mailto:[EMAIL PROTECTED]]
Sent: 15 May 2001 04:00
To: struts-user
Subject: is it a
Attached are tags to do If/Else and Switch/Case logic, based on existing
Struts logic tag classes - the key classes inherit from the Struts
CompareTagBase.
1) IF/ELSE: (IfTag, ThenTag, ElseTag)
The IfTag provides the same functionality as the Equal, NotEqual, LessEqual,
LessThan, GreaterThan,
I don't agree - Actions are part of the controller in MVC and need access to
the servlet API to do thing such as retrieving and storing objects under the
appropriate context. Sounds to me like 1) Your using the wrong tool and 2)
You've put your Model in the Actions.
1) Cactus is a simple test
There are quite a few messages in the archive about this:
http://www.mail-archive.com/struts-user%40jakarta.apache.org/
A couple of messages from a recent thread:
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg07656.html
You can look at the history of changes to Struts throug CVS Web, for
ImageTag:
http://jakarta.apache.org/cvsweb/index.cgi/jakarta-struts/src/share/org/apac
he/struts/taglib/html/ImageTag.java
According to the entries this bug was fixed on 27/02/2001, so you need a
nightly build after that to
Perhaps there are some ideas here that could be used in Struts?
Facilitate form processing with the Form Processing API:
http://www.javaworld.com/jjw/javtut_nl/jw-04-2001/jw-0427-forms.html
Opinions?
Niall
winmail.dat
PROTECTED]]
Sent: 17 May 2001 20:58
To: 'Niall Pemberton '; '[EMAIL PROTECTED] '
Subject: RE: Suggestion:Taking the Servlet out of Action and ActionForm
Hi Niall,
I not sure I agree with you, although you have som good points.
When looking at the MVC pattern we can easily identify two
I don't think its a new feature we do this, just specifiy
path=something.do in the forward for your action.
Niall
-Original Message-
From: Seth Ladd [mailto:[EMAIL PROTECTED]]
Sent: 17 May 2001 22:07
To: [EMAIL PROTECTED]
Subject: Can an Action forward to another Action?
Hello,
successful.
Probably there are more but I hope this will cater for most.
--
Thanks,
Michael Binette
-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 17, 2001 6:06 PM
To: [EMAIL PROTECTED]
Subject: RE: Suggestion:Taking the Servlet out
anything like that or does it sound
reasonable?
--
Thanks,
Michael Binette
-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 17, 2001 6:06 PM
To: [EMAIL PROTECTED]
Subject: RE: Suggestion:Taking the Servlet out of Action and ActionForm
Mikkel
Michael
You need to use a set-property tag is Struts-config.xml
For example:
action path=/this name=myForm type =myPackage.myAction
forward name=success path=/next.jsp/
forward name=fail path=/prev.jsp/
set-property property=processAction value=whatever/
/action
Niall
-Original
1. This was answered before. See following message:
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg05207.html
2. IMHO avoid scriptlets.
Niall
-Original Message-
From: Gregor Rayman [mailto:[EMAIL PROTECTED]]
Sent: 30 May 2001 13:12
To: [EMAIL PROTECTED]
Subject:
I submitted an if/else and switch/case set of tags a couple of weeks ago
under the Struts developer list.
http://www.mail-archive.com/struts-dev@jakarta.apache.org/msg01372.html
It uses three tags If, Then Else (based on existing Struts CompareTagBase
logic)
logic:if op=GreaterThan
I
believe It's calling init() twice because you have two Struts Applications in
your webapps directory - the Struts Example and Admin - both initializing their
own ActionServlet. I went to have a look at Admin because, I only glanced at it
a while back - but couldn't find it so I must have
David,
I see your on the 1.1 ToDo list as a volunteer for Standard Validations
and Client Side Validations - is it likely your validation framework is
going to be adopted for Struts - and if so how close is what you're offering
now to what Struts will have in 1.1?
I'm just wondering whether to
Hans,
Comments in the text below.
Niall
-Original Message-
From: Hans Bure [mailto:[EMAIL PROTECTED]]
Sent: 14 June 2001 17:40
To: [EMAIL PROTECTED]
Subject: Multiple Forwards
Hi all,
I am a relatively new struts user, so if the question I'm asking has been
answered before,
javax.servlet.ServletException: Cannot find bean jas
in scope null
Jiten
-----Original Message-From: Niall Pemberton
[mailto:[EMAIL PROTECTED]]Sent: Wednesday, June 13,
2001 5:18 PMTo: [EMAIL PROTECTED]Subject:
RE: need some help...
"jas"
Title: need some help...
"jas"
is not in "session" scope - the iterator is creating it for each iteration (must
be page scope?) - try it without the "scope":
bean:write name="jas"
property="attr"/
Niall
-Original Message-From:
Jiten Mohanty [mailto:[EMAIL PROTECTED]]Sent: 14
Rather than storing the message key in a bean, can't you convert the key to
a message and store the message in the bean - then you cna just do a
bean:write.
If thats not appropriate - write your own tag to do it.
Niall
-Original Message-
From: Torsten Terp [mailto:[EMAIL PROTECTED]]
Title: alternate color support in iterate or subtag
I
wrote a tag to do this - you can dowload it from Ted Husted's site
http://www.husted.com/about/struts/resources.htm#contributions
Niall
-Original Message-From: Steve Salkin
[mailto:[EMAIL PROTECTED]]Sent: 18 June 2001
None taken.
I dont have a feel for the overhead - could you expand more.
Niall
-Original Message-
From: Wong Kok Wai [mailto:[EMAIL PROTECTED]]
Sent: 25 June 2001 06:41
To: [EMAIL PROTECTED]
Subject: Re: Contribution: 1) IF, AND, OR, THEN, ELSE, ELSEIF tags 2)
SWITCH, CASE,
Wait for dynamic properties to arrive in Struts (might be a while) or do it
yourself.
There are messages in the archive discussing how people have done this.
Niall
-Original Message-
From: Gangadharappa, Kiran [mailto:[EMAIL PROTECTED]]
Sent: 28 June 2001 00:52
To: '[EMAIL
ActionServlet does not actually load the messages when it starts up. It just
uses whatever MessageResources factory it is configured for to create a
MessageResources - Struts have provided default concrete implementations of
these classes (PropertyMessageResources and
I
wouldn't put them anywhere in your code - I'd use some kind of deployment script
to concatenate them and copy them to the appropriate
directory.
Niall
-Original Message-From: Jonathan
[mailto:[EMAIL PROTECTED]]Sent: 27 June 2001 16:57To:
[EMAIL PROTECTED]Subject:
I have had no problems doing this - what does your sub-class look like?
If you are overriding the init() method, you need to call super.init() to
make sure the application resources are initialized.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 27 June
Either write your own tag which generates a HTML hidden field from a message
resource key.
or
input type=hidden value=bean:message key='TEST'/ name=something
Niall
-Original Message-
From: Michael Skariah [mailto:[EMAIL PROTECTED]]
Sent: 27 June 2001 18:55
To: [EMAIL PROTECTED]
I dont
think html:text was designed to take a body - in the tld file for the
html:hidden tag the body parameter is set to empty and they both extend
the same parent class (BaseFieldTag).
BaseFieldTag is a child of BaseHandlerTag which extends
BodyTagSupport and BaseFieldTag returns
Your referring to a bean of name indexPage but the only thing in the code
you've shown named indexPage is a forward. This will not create a bean named
indexPage - try setting up an ActionForm and doing something along the
follwoing lines:
logic:equal name=myForm property=action scope=request
Dave Hay has modified Struts tags to generate names appropriately.
You can download his tags from Ted Husted's site:
http://www.husted.com/about/struts/resources.htm#extensions
Niall
-Original Message-
From: Patrick van Leuveren [mailto:[EMAIL PROTECTED]]
Sent: 28 June 2001 11:57
You can use request scope by storing the values in hidden fields using the
html:hidden tag - that way the values you are not showing get re-populated
back into your form when submitted.
Additionally to what John said about the default scope - I agree it is
session but Struts also supplies two
To: '[EMAIL PROTECTED]'
Subject: RE: Generic handling of properties
Hi Niall,
I am kind of new to this mailing list. Any idea where I can find the
archives?
regards
Kiran
-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 28, 2001 4:08 AM
Hey thats what this list is for - your headaches as valid as anyone elses,
keep sending them until you get a result.
Post all the bits of code in an email - your action form and/or bean(s) and
the jsp - plus when is throwing the Null pointer exception, - in the jsp,
before your page is
The index of the parameter to retrieve
*/
public SapValidParameter getParameter(int index)
{
return (SapValidParameter)parameterList.elementAt(index);
}
-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 28, 2001 5:40 PM
try
and use the tag, and check that you have copied the struts-html.tld into
your
directory too?
Let me know if you still have probs.
Dave
PS Don't worry about asking the qu's - can all be quite confusing to
start
with!!
Niall Pemberton [EMAIL PROTECTED]
on
06
?
-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 28, 2001 2:35 PM
To: [EMAIL PROTECTED]
Subject: RE: beans and scope
You can use request scope by storing the values in hidden
fields using the
html:hidden tag - that way the values you are not showing
You need to do two things.
First, you need to generate appropriate names for your input fields. If you
use the current Struts tags then all the occurances of your two fields in
the example below will generate names of firstName and lastName. What
you want is to generate names in the format
You
cant do that with the struts NotEqualTag you can however with the
IF/THEN/ELSE tags I wrote which Ted Husted has posted on his
site:
http://www.husted.com/about/struts/resources.htm#extensions
logic:if name="myForm"
property="property1" op="NotEqual" value ="xxx"
logic:and
Rama,
Cant you use paramProperty?
html:link page=/target.cm paramId=value paramName=myCollectionElement
paramProperty=idclick here/html:link
Niall
-Original Message-
From: Rama Krishna [mailto:[EMAIL PROTECTED]]
Sent: 05 July 2001 20:10
To: [EMAIL PROTECTED]
Subject: html:link
ActionServlet is a plain Servlet you can extend it and override the init()
method (make sure you call super.init(), so that the standard Struts init(0
stuff is done.
Niall
-Original Message-
From: Andreas Schildbach [mailto:[EMAIL PROTECTED]]
Sent: 06 July 2001 18:02
To: [EMAIL
It doesn't - they will go when the session ends, or you have to explicitly
remove them.
Niall
-Original Message-
From: Jerome Jacobsen [mailto:[EMAIL PROTECTED]]
Sent: 06 July 2001 20:09
To: [EMAIL PROTECTED]
Subject: session form beans
Hi,
In what cases does the Struts
The bean:message tag uses RequestUtils to find a message - this looks for
a locale stored in session scope under the key Action.LOCALE_KEY.
The usual way for the locale to be stored under this key is using the
html:html locale=true/ tag - if you dont use that, then struts will
always use the
Cameron,
Does the Action that is run when you submit the form have CourseList
associated with it?
If that sorts out the issue with not finding CourseList then I think
CourseList should look like this:
public final class CourseList extends ActionForm
{
private ArrayList courseList = new
problem
Niall ,
does it work for multiple param's??? or if not how do i tackle multiple
params??
thanks,
rama.
- Original Message -
From: Niall Pemberton [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 05, 2001 4:39 PM
Subject: RE: html:link problem
Rama
Rama
I tried what you wrote below and the jsp ,didnt compile.
This did though, and worked :-)
% int row=0; %
logic:iterate ...
logic:iterate ... length=1 offset='%= +row %'
% row++; %
/logic:iterate
/logic:iterate
Also an alternative would be to use the indexId of
Jerzy,
Looking at the code of BaseHandlerTag (from which most of the html:...
tags inherit) everything looks in place to handle this attribute (it was
added on June 13th). I suggest you change your copy of the struts-html.tld
to include this attribute and see if it works.
Niall
-Original
Action has a number of methods for transaction tokens [saveToken(),
isTokenValid(), resetToken()] and the example shows use of them (look at
EditRegistration.java and SaveRegistration.java).
You can also specify a transaction=true attribute on the LinkTag so that
the transaction token is
Have you defined the struts-logic.tld at the top of your jsp?
-Original Message-
From: Moons Manuel [mailto:[EMAIL PROTECTED]]
Sent: 09 July 2001 13:43
To: '[EMAIL PROTECTED]'
Subject: iterate problem
Hello everyone.
I am currently having some problems with iterating over an
You need to compile the tags and drop the class files into the appropriate
directory, install the tld file (or modify the strust-logic.tld).
Examples of using them are:
http://husted.com/about/struts/logic-niallp.htm
Niall
-Original Message-
From: Dudley Butt@i-Commerce
What scope is your ActionForm in - request or session?
If its in session scope - no problem, if its request you need to make sure
your array is set up with all the beans it requires (empty ones will do).
Niall
-Original Message-
From: Frank Ling [mailto:[EMAIL PROTECTED]]
Sent: 12
Either set a value=xyz or a name/property pointing to a bean with the
initial value on the html:select tag.
Niall
-Original Message-
From: DHarty [mailto:[EMAIL PROTECTED]]
Sent: 12 July 2001 15:35
To: Struts User
Subject: html:select/options
Is there a way to dictate which
I believe Dave Hays tags were included in the nightly builds in the last
week or so. So if you download that you should be OK.
Niall
-Original Message-
From: Nathan Coast [mailto:[EMAIL PROTECTED]]
Sent: 30 July 2001 15:38
To: Struts-User (E-mail)
Subject: Indexed tags - Dave Hays
The third wayif the Struts tags dont do what you want then write your
own. Then you dont have to use scriptlets, you have a re-useable bit of
functionality, the web designers are happy and you dont have to use
Velocity.
Niall
-Original Message-
From: Tim Colson [mailto:[EMAIL
: RE: some comparision between JSP/struts and velocity
Niall Pemberton suggested
...if the Struts tags dont do what you want then write your
own. Then you dont have to use scriptlets, you have a re-useable bit of
functionality, the web designers are happy and you dont have to use
Velocity
I'm sure you can do something more intelligent than duplicating the whole
set of jsps for each different language. If the problem is that you need
different images for different languages then write your own tag to generate
the path for the image based on the localle.
IMHO I wouldn't resolve
I didn't understand the first question.
You can forward in a jsp using the struts forward tag:
logic:forward name=sessionexpired/
Niall
-Original Message-
From: Yaman Kumar [mailto:[EMAIL PROTECTED]]
Sent: 12 March 2002 23:04
To: Struts Users Mailing List; [EMAIL PROTECTED]
I saw this thread and thought...great, flame war..., but you guys are too
nice.
IMHO I suggest you learn from the guru before trying this next time:
http://www.IamMarkGalbreath.org/FlameWar/HowTo/AnnoyTheHellOutOfEveryone
Niall
P.S. 'old (35?) mainframe programmers' on this list must have
!
Jerry
-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 11:51 AM
To: Struts Users Mailing List
Subject: RE: Struts Design/construction process. question
I saw this thread and thought...great, flame war..., but you guys are
too
nice
Alternatively, you could sub-class the struts PresentTag and override the
doStartTag() method to output the nbsp; if the condition is not true (I
haven't tested it, but see below example).
Then use in the same way as the struts PresentTag ... how clear is that?
logic:presentNbsp name=theForm
You don't have to have a web server to run struts - you do need a servlet
container such as Tomcat. I don't know anything about Windows ME, but I used
to run Tomcat of Windows 98 at home, before I upgraded to Win2000.
Niall
-Original Message-
From: Ballard [mailto:[EMAIL PROTECTED]]
I have a set of tags based on If that includes AND/OR, which can be
downloaded from Ted husted's site (reference is shown under Contributor
Taglib on the strust site):
http://jakarta.apache.org/struts/userGuide/resources.html
http://husted.com/about/struts/logic-niallp.htm
However this was
Have you defined an initialization parameter for the resource bundle?
From the User Guide:
---
When you configue the controller servlet in the web application deployment
descriptor, one of the things you will need to define in an initialization
parameter is the base name of the
Jon,
http://jakarta.apache.org/velocity/ymtd/ymtd.html
I read your comparison of Turbine/Velocity and Struts/JSP and although you
state it your aim to be "fair and unbiased", I think you failed since most
of your examples, although sytanctically correct, were poor examples of the
use of Struts
Your're right, my mistake, but I'm wasn't criticising your aim, just the
acutal guts of the comparison, the aim's a good one :-)
Niall
-Original Message-
From: Jon Stevens [mailto:[EMAIL PROTECTED]]
Sent: 04 March 2001 21:47
To: Niall Pemberton
Cc: [EMAIL PROTECTED]
Subject: Re
rd;
import org.apache.struts.action.ActionMapping;
import java.lang.reflect.Method;
import java.lang.reflect.InvocationTargetException;
/**
* @author Niall Pemberton
* @version 1.0
*/
public abstract class StandardAction extends Action {
public ActionForward perform(ActionMapping mapping,
Johan,
I'm using Tomcat Version 3.2.1 and the readme document had the following
information
on Tomcat versions. There isn't info about 3.2.2 3.3 there but probably if
you
download those versions there will be a readme explaining the changes.
Besides the differences in functionality the other
I have the same problem - form fields embedded in an iterate tag.
Would it be possible to change tags such as CheckboxTag and BaseFieldTag so
that they detect when they are embedded in the "iterate" tag and format the
name attribute appropriately.
I tried changing these two tags replacing the
Have you included the bean TLD in your jsp?
%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %
-Original Message-
From: Troy Hart [mailto:[EMAIL PROTECTED]]
Sent: 27 March 2001 17:52
To: [EMAIL PROTECTED]
Subject: Re: using titles from an application resource file in
When you say struts:message do you mean the 0.5 struts TLD, if so I don't
know. I'm using struts 1.0 beta and you can do the following:
html:link page="/something.do"bean:message key="x."//html:link
-Original Message-
From: JeanX [mailto:[EMAIL PROTECTED]]
Sent: 27 March 2001
This issue has come up quite regularly in the list. I got round this by
taking my own copies of struts tags and modifying them so that they check if
they are contained in an "IterateTag". If they are then I generate the name
appropriately using the property from the IterateTag, the current index
t
would contain 0. Struts is failing to generate the proper getter calls as
far as I can tell.
To:
[EMAIL PROTECTED]
"Niall Pemberton" cc: (bcc:
Will Spies/Towers Perrin)
niall.pemberton@btInt
properties is coming back null. I didn't think so
though. What build are you using?
To:
[EMAIL PROTECTED]
"Niall Pemberton" cc: (bcc:
Will Spies/Towers Perrin)
niall.pemberton@btInt
oyeeName;
public EmplBean(String name) {
EmployeeName = name;
}
public String getEmployeeName() {
return EmployeeName;
}
public void setEmployeeName(String name) {
EmployeeName = name;
}
}
-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROT
Brilliant :-)
It was the substance I was concentrating on.
-Original Message-
From: Matthew O'Haire [mailto:[EMAIL PROTECTED]]
Sent: 10 April 2001 02:17
To: '[EMAIL PROTECTED]'
Subject: RE: POSTing arrays in struts
One problem I did have was I had to change the above from
class has something
to do with it ( yes, it's public )?
To:
[EMAIL PROTECTED]
"Niall Pemberton" cc: (bcc:
Will Spies/Towers Perrin)
niall.pemberton@btIntSubject:
How
about implementing a getSize() method in your bean which returns the size, then
you can use the tags such as bean:write
-Original Message-From: Thai Thanh Ha
[mailto:[EMAIL PROTECTED]]Sent: 10 April 2001 08:43To:
[EMAIL PROTECTED]Subject: How to display the size of
an
No, you still need to change Struts to do this.
Currently I believe they are on a feature freeze for 1.0. The following
entry is on the 1.1 TODO list which I believe is the same issue. However
there is no volunteer currently against this entry on the web Site and how
it is implemented may be
We are currently building the following:
1) GenericActionForm with dynamic properties
2) Override ActionServlet to populate the GenericActionForm
3) Provide type validation conversion mechanisms in the GenericActionForm
4) Provide mechanism to unload the GenericActionForm into GenericBeans
Our
pta [mailto:[EMAIL PROTECTED]]
Sent: 13 April 2001 13:32
To: [EMAIL PROTECTED]
Subject: RE: Action Forms And Model objects
How do you store or manage your validation rules since your
GenericActionForm could be validating fields types of forms?
--- Niall Pemberton [EMAIL PROTECTED] wrote:
Ni
for the form validate the the form input. Regardless, it
is good idea definetly worth pursuing with a purpose of reducing the
number of classes required in the application implementation.
Rajan Gupta
--- Niall Pemberton [EMAIL PROTECTED] wrote:
I'm still developing/debugging
etly worth pursuing with a purpose of reducing the
number of classes required in the application implementation.
Rajan Gupta
--- Niall Pemberton [EMAIL PROTECTED] wrote:
I'm still developing/debugging it at the moment so its fairly
rudimentary at
the moment. I'm still considering how I co
Strut's tags could easily generate names of the format array[0].property
if a tag is embedded in an IterateTag. This would cause the appropriate bean
array to populate automatically - I have customised Struts to do this and it
works fine.
I have suggested this a couple of times but this has been
I know its not that elegant, but generate an array of page numbers in your
ActionForm based on the count
private int pageCount;
public String[] getPages() {
String[] pages = new String[pageCount];
for (int i = 0; i pageCount; i++) {
int j = i + 1;
pages[i] = +j;
}
return
I think your solution below should be a last resort - I would look first at
trying to cure the performance problem you have and only after lots of
effort consider the route you're proposing.
How many messages do you have in each of your four properties files?
Is the performance problem just the
LoadLocale is in the PropertyMessageResources class - it doesn't trap an
error if it doesn't find your file.
You could copy this class (MyMessageResources) and put out some messages
showing the file name its trying to load and whether its sucessful. Also
copy the PropertyMessageResourcesFactory
This gives an example of how to integrate SSL into a Web App, using Struts
as an example.
http://www.javaworld.com/javaworld/jw-02-2002/jw-0215-ssl.html
winmail.dat
Description: application/ms-tnef
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
I haven't used poolman, but isn't the problem with it that it is no longer
being developed?
Niall
-Original Message-
From: hemant [mailto:[EMAIL PROTECTED]]
Sent: 01 April 2002 23:12
To: struts
Subject: Struts Basic/Pooling DataSource Vs Poolman
I currently use poolman in my
1 - 100 of 257 matches
Mail list logo