RE: Iterate Tag Implementation

2002-12-23 Thread Beeson, Ashley
This will create something like

script
arrayVar[0]=0;
/script
script
arrayVar[1]=1;
/script
script
arrayVar[2]=2;
/script
script
arrayVar[3]=3;
/script

What you probably want is this:

html:form name=myForm action=bla-bla type=bla-bla
script
logic:iterate name=myProperty id=id1 indexId=x
type=java.lang.String[]
arrayVar[bean:write name=x /]=bean:write name=id1 /
/logic:iterate
/script
/html:form

which will produce

script
arrayVar[0]=0;
arrayVar[1]=1;
arrayVar[2]=2;
arrayVar[3]=3;
arrayVar[4]=4;
arrayVar[5]=5;
/script

---
You want some sample code, alright here you go:

html:form name=myForm action=bla-bla type=bla-bla
logic:iterate name=myProperty id=id1 indexId=x 
type=java.lang.String[]
script
arrayVar[bean:write name=x /]=bean:write name=id1 /
/script
/logic:iterate
/html:form
Regards
Puneet

/html:formOn Mon, 23 Dec 2002 Eric C. Hein wrote :
I have a form myForm with a property myProperty that is a 
String array.  I want to set a javascript array to the contents 
of a myProperty.  I think I need to use an iterate tag in 
combination with the bean:write/ tag but I cannot figure out 
 from the javadocs how to do this.

Can anyone post some sample code?

Thanks





--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

This e-mail and any attachment is for authorised use by the intended recipient(s) 
only.  It may contain proprietary material, confidential information and/or be subject 
to legal privilege.  It should not be copied, disclosed to, retained or used by, any 
other party.  If you are not an intended recipient then please promptly delete this 
e-mail and any attachment and all copies and inform the sender.  Thank you.

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Compiled JSPs are different on windows and Solaris

2002-12-19 Thread Beeson, Ashley
Hello
 
We have a problem with deploying our struts application. We develop on
Windows2000 machines running tomcat 4.0.4 and yet when we deploy our war on
our Solaris 8 box we are getting errors which do not appear when we test on
our windows boxes.
 
We know this isn't a data issue as we are using the same database/data. When
looking at the java files created by tomcat in the
/work/Standalone/localhost/blah/ directories they are radically different
despite using the same version of Java (1.4.0.0_01) on both windows and
Solaris
 
We have managed to fix a few of the problems we were having by upgrading
from Tomcat 4.0.4 to Tomcat 4.1.17 on our Solaris box but we are still
getting errors which we do not get on Windows (with Tomcat 4.0.4).
 
Any ideas people?
 
Thanks in Advance
 
Ash Beeson

Ash Beeson - IT Consultant
 


This e-mail and any attachment is for authorised use by the intended recipient(s) 
only.  It may contain proprietary material, confidential information and/or be subject 
to legal privilege.  It should not be copied, disclosed to, retained or used by, any 
other party.  If you are not an intended recipient then please promptly delete this 
e-mail and any attachment and all copies and inform the sender.  Thank you.


RE: Compiled JSPs are different on windows and Solaris

2002-12-19 Thread Beeson, Ashley
Replying to all questions:

Clean installs of 4.1.17 on both windows and Solaris now. Windows versions
work fine, we get varying errors on the Solaris version, one of the most
confusing being 
'org.apache.jasper.JasperException: No getter method for property mdevId of
bean org.apache.struts.taglib.html.BEAN'. This definitely works in the
windows deployment.

The other errors are usually JSP errors caused during compilation (like
variable 'pageContext' may not have been initialised) in code we don't
touch.

I'd like to point out that the errors are consistently on the same pages,
but differences between pages that work and those that don't are minimal
(And they ALL work on windows).

Thanks for the help

Ash

-Original Message-
From: Mark [mailto:[EMAIL PROTECTED]]
Sent: 19 December 2002 15:26
To: Struts Users Mailing List
Subject: Re: Compiled JSPs are different on windows and Solaris


Have you compared the batch files and shell scripts? Have you changed them?

I develop on osx deploy on linux and windows with no problems, but I never
touch the scripts... Upgrades n all..

On 19-12-2002 16:15, James Childers [EMAIL PROTECTED] wrote:

 Write once, debug everywhere. Love Java, but going from one platform to
 another usually involves some effort.
 
 What kind of errors are you getting? Hard to answer this question without
 knowing at least that much.
 
 -= J
 
 -Original Message-
 From: Beeson, Ashley [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 19, 2002 9:06 AM
 To: '[EMAIL PROTECTED]'
 Subject: Compiled JSPs are different on windows and Solaris
 
 
 Hello
  
 We have a problem with deploying our struts application. We develop on
 Windows2000 machines running tomcat 4.0.4 and yet when we
 deploy our war on
 our Solaris 8 box we are getting errors which do not appear
 when we test on
 our windows boxes.
  
 We know this isn't a data issue as we are using the same
 database/data. When
 looking at the java files created by tomcat in the
 /work/Standalone/localhost/blah/ directories they are
 radically different
 despite using the same version of Java (1.4.0.0_01) on both
 windows and
 Solaris
  
 We have managed to fix a few of the problems we were having
 by upgrading
 from Tomcat 4.0.4 to Tomcat 4.1.17 on our Solaris box but we are still
 getting errors which we do not get on Windows (with Tomcat 4.0.4).
  
 Any ideas people?
  
 Thanks in Advance
  
 Ash Beeson
 
 Ash Beeson - IT Consultant
  
 
 
 This e-mail and any attachment is for authorised use by the
 intended recipient(s) only.  It may contain proprietary
 material, confidential information and/or be subject to legal
 privilege.  It should not be copied, disclosed to, retained
 or used by, any other party.  If you are not an intended
 recipient then please promptly delete this e-mail and any
 attachment and all copies and inform the sender.  Thank you.
 
 
 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 
 


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

This e-mail and any attachment is for authorised use by the intended recipient(s) 
only.  It may contain proprietary material, confidential information and/or be subject 
to legal privilege.  It should not be copied, disclosed to, retained or used by, any 
other party.  If you are not an intended recipient then please promptly delete this 
e-mail and any attachment and all copies and inform the sender.  Thank you.

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Compiled JSPs are different on windows and Solaris

2002-12-19 Thread Beeson, Ashley
The getters / setter aren't overloaded for this property. We aren't actually
using BeanUtils in our implementation but all libraries (.jars) are in the
deployed war file and hence there shouldn't be and differences in that area.

We are downloading Sun One Application Server to test the same war file.
Hopefully this will fix the problems. I'll let the list know the results.

Cheers

Ash


 Is it possible that mdevId has overloaded setters and you are using
different versions of BeanUtils on the two   platforms?
 
  
  The other errors are usually JSP errors caused during 
  compilation (like variable 'pageContext' may not have been 
  initialised) in code we don't touch.
 
 Is Tomcat on both platforms using the same compiler?
 
  
  I'd like to point out that the errors are consistently on the 
  same pages, but differences between pages that work and those 
  that don't are minimal (And they ALL work on windows).
  
  Thanks for the help
  
  Ash
 
 Sri 

This e-mail and any attachment is for authorised use by the intended recipient(s) 
only.  It may contain proprietary material, confidential information and/or be subject 
to legal privilege.  It should not be copied, disclosed to, retained or used by, any 
other party.  If you are not an intended recipient then please promptly delete this 
e-mail and any attachment and all copies and inform the sender.  Thank you.

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Form Bean Scope.

2002-12-12 Thread Beeson, Ashley
In the struts config set the scope=session (in the action tag) then you
can refer to any object from that form-bean by referring to its name
specifically. You do have to be careful mind that the form-bean has been
created and populated BEFORE it gets referenced by any other jsp pages.

-Original Message-
From: D, Gopinath (MED) [mailto:[EMAIL PROTECTED]]
Sent: 12 December 2002 08:29
To: Struts Users Mailing List
Subject: Form Bean Scope.


Hi,

I'm new to Struts, needed immediate help.

How to set the scope of formbean to be session, so that it can be called
from other Jsps also. I know i'm not clear. !!

Ok, here is in details.

BasicSearh.jsp(attached to basicSearchBean) submit calls basicSearchAction
and fwds to searchResults.jsp. In searchResults.jsp i'm calling the
basicSearchAction again with different start  end parameters. In this case
basicSearhBean goes as null. Can some one help me out on this fast.

Here is the code.

form-bean  name=basicSearchForm
type=examples.struts.actionform.BasicSearchForm
/form-bean

action path=/basicSearch
type=examples.struts.action.BasicSearchAction
name=basicSearchForm
scope=session
input=/basicSearch.jsp
forward name=success path=/searchResults.jsp/
forward name=failure path=/basicSearch.jsp/
/action

action path=/searchResults
type=com.ge.med.efmea.struts.action.SearchResultsAction
/action

searchResults.jsp has code similar to this.

Page results : A HREF=basicSearch.do?startRecord=11recordsRequired=10
Next /A

Thanks in advance,
Gopi


THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this 
communication is strictly Prohibited. 
If you have received this message by error, please notify us 
immediately, return the original mail to the sender and delete the 
message from your system.


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

This e-mail and any attachment is for authorised use by the intended recipient(s) 
only.  It may contain proprietary material, confidential information and/or be subject 
to legal privilege.  It should not be copied, disclosed to, retained or used by, any 
other party.  If you are not an intended recipient then please promptly delete this 
e-mail and any attachment and all copies and inform the sender.  Thank you.

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: bean:write ' , , ' characters

2002-12-10 Thread Beeson, Ashley
Use filter=false to turn off this behaviour

-Original Message-
From: Duma Rolando [mailto:[EMAIL PROTECTED]]
Sent: 10 December 2002 11:37
To: Struts Users Mailing List
Subject: bean:write  ' , ,  ' characters 


I have a bean property that returns an html tag, but bean:write substitute
the , ,  characters with lt; , gt; etc.
If this is the normal behaviour of the tag, how can I disable it?


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

This e-mail and any attachment is for authorised use by the intended recipient(s) 
only.  It may contain proprietary material, confidential information and/or be subject 
to legal privilege.  It should not be copied, disclosed to, retained or used by, any 
other party.  If you are not an intended recipient then please promptly delete this 
e-mail and any attachment and all copies and inform the sender.  Thank you.

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: [newbie]html:form does not generates proper html

2002-12-05 Thread Beeson, Ashley
your action= paths should be specified WITHOUT the .action, this is added
automatically by struts when the JSP is compiled.

Your actions should be working with your forms pointing to /save, just
remember that it is case sensitive..

-Original Message-
From: Nandkumar Jawale [mailto:[EMAIL PROTECTED]]
Sent: 05 December 2002 11:54
To: Struts Users Mailing List
Subject: Re: [newbie]html:form does not generates proper html


Hi,

Here are contents of my structs-config.xml:

form-bean name=settingsForm
   type=ahf.model.SettingsForm/
..
..
action path =/edit
type =EditAction
name =settingsForm
input=/settings.jsp
validate =false
/action
action path =/save
type =SaveAction
name =settingsForm
input=/settings.jsp
/action

*.action is mapped to ActionServlet. Tried changing from
/save.action to /save in JSP but no use.

Thanks,
Nandu

Mark wrote:

 Your form action should be firing up your action defined in your
 struts-config.xml.

 I think stuts-config.xml is what you have to look at..

 Cheers mark

 On 5-12-2002 12:23, Nandkumar Jawale [EMAIL PROTECTED] wrote:

  Hi,
 
  I am new to struts. Currently I am using struts 1.0.2. I am showing some
  settings for which I have a settings form to store the values and two
  actions. One to edit and one to save. My JSP contains:
  html:form action=/save.action
  ...
  /html:form
 
  I find the html does not contain the action that I specified. What I get
  in html is:
  form name=settingsForm method=POST action=
 
  Am I doing something wrong? Can't find any doc/link that addresses this
  problem. Please help!
 
  Best Regards,
  Nandkumar Jawale
 
  *
  Disclaimer
 
  This message (including any attachments) contains
  confidential information intended for a specific
  individual and purpose, and is protected by law.
  If you are not the intended recipient, you should
  delete this message and are hereby notified that
  any disclosure, copying, or distribution of this
  message, or the taking of any action based on it,
  is strictly prohibited.
 
  *
  Visit us at http://www.mahindrabt.com
 
 
 
 
  --
  To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 
 

 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

*
Disclaimer

This message (including any attachments) contains 
confidential information intended for a specific 
individual and purpose, and is protected by law. 
If you are not the intended recipient, you should 
delete this message and are hereby notified that 
any disclosure, copying, or distribution of this
message, or the taking of any action based on it, 
is strictly prohibited.

*
Visit us at http://www.mahindrabt.com




--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

This e-mail and any attachment is for authorised use by the intended recipient(s) 
only.  It may contain proprietary material, confidential information and/or be subject 
to legal privilege.  It should not be copied, disclosed to, retained or used by, any 
other party.  If you are not an intended recipient then please promptly delete this 
e-mail and any attachment and all copies and inform the sender.  Thank you.

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: forwarding to Actions expecting ActionForm

2002-11-26 Thread Beeson, Ashley
Well if memory usage isn't an issue then you can store your search criteria
on a form-bean with session scope, then the users last search (and
potentially results too - depending on how you have implemented it) will be
available wherever they access it from.

You can always use request.getSession().getAttribute(your bean as defined
in struts-config) to reference a form other than the one passed in via the
Perform method of your action. You need to check that it is not null
(remember it may not have been created) and hence you should also do a
setAttribute() to make sure it (or a new one) is put back to the session.

Then simply do a findForward on a forward which maps to another Action (i.e.
a .do path) which should do what you want it to.

HTHS

Ash

-Original Message-
From: Affan Qureshi [mailto:[EMAIL PROTECTED]]
Sent: 26 November 2002 09:28
To: struts-user
Subject: forwarding to Actions expecting ActionForm


I want to forward the request from my Action to another action which expects
an ActionForm instance for processing. But my current Action does not have
access to that Form. Can I instantiate an ActionForm and store it in the
request/session scope on the fly? 

I have a search page which displays results from where I can view details of
the results. On the details page if I click Cancel I want the user to come
back on the Search Results page but with the same results opened. 

Also if the user clicks on Search Tab from anywhere in the app I want the
specific (last) search results displayed.

Any ideas? Thanks a lot.

This e-mail and any attachment is for authorised use by the intended recipient(s) 
only.  It may contain proprietary material, confidential information and/or be subject 
to legal privilege.  It should not be copied, disclosed to, retained or used by, any 
other party.  If you are not an intended recipient then please promptly delete this 
e-mail and any attachment and all copies and inform the sender.  Thank you.

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Struts-el strange behav.

2002-11-26 Thread Beeson, Ashley
No you don't because they are form elements then the form to which they are
associated is inferred by the action path.

An element will attempt to populate itself with the get method of the form.
Make sure that you either declare the variable and give it a starting value
(even if it just blank - anything but null) or have your getter return a
non-null default value if the variable is currently null.

-Original Message-
From: Karr, David [mailto:[EMAIL PROTECTED]]
Sent: 26 November 2002 16:52
To: Struts Users Mailing List
Subject: RE: Struts-el strange behav.


You need to provide the name of your form bean in the name attribute.

 -Original Message-
 From: kiuma [mailto:[EMAIL PROTECTED]]
 
 hello,
 I'm having the following problem (Furtunately I've found the 
 solution).
 
 if i use
 html-el:hidden property='selectedCode'/
 The container reply with an error
 
 WARNING: Exception for /webappointments/secure/specialitylistview.jsp
 javax.servlet.jsp.JspException: No getter method for property 
 selectedCode of bean org.apache.struts.taglib.html.BEAN

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

This e-mail and any attachment is for authorised use by the intended recipient(s) 
only.  It may contain proprietary material, confidential information and/or be subject 
to legal privilege.  It should not be copied, disclosed to, retained or used by, any 
other party.  If you are not an intended recipient then please promptly delete this 
e-mail and any attachment and all copies and inform the sender.  Thank you.

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Html:select doesn't select correct element..

2002-11-21 Thread Beeson, Ashley
I have a problem with html:select not setting selected=selected for the
correct item in a list of options. The weird thing is that it works fine for
all bar one of my pages.
 
I have checked that the property being passed in exists in the list of
options using a bean:write just above the html:select statement.
channelCommodity has the value of one of the elements 'code' in our
collection. 
 
A snippet of the code I'm using which doesn't work properly:
 
bean:define id=commodities name=CHANNELEDITFORM
property=commodityUnits /
html:select size=1 property=channelCommodity
html:options collection=commodities property=code
labelProperty=display/
/html:select
 
A snippet of the code I'm using which works correctly on another jsp page:
 
bean:define id=statuses name=MEASURINGDEVICEEDITFORM
property=energisationStatuses /
html:select size=1 property=energisation
html:options collection=statuses property=code
labelProperty=display/
/html:select
 
I should point out that there are no errors with the pages displayed apart
from the missing selected=selected for the element that should be
selected.
 
This is using struts 1.0.2 and running on tomcat 4.0.4.
 
Any suggestions?
 
Cheers

Ash Beeson - IT Consultant
email:  mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]
 


This e-mail and any attachment is for authorised use by the intended recipient(s) 
only.  It may contain proprietary material, confidential information and/or be subject 
to legal privilege.  It should not be copied, disclosed to, retained or used by, any 
other party.  If you are not an intended recipient then please promptly delete this 
e-mail and any attachment and all copies and inform the sender.  Thank you.


RE: Html:select doesn't select correct element..

2002-11-21 Thread Beeson, Ashley
Yes, I've checked this by printing out the value in the JSP and cross
referencing it with the html option value=blah in the source
generated. I can only assume that for some reason on that one page the
comparison is failing. I have no idea why.

I've checked that there are no spaces / hidden control characters that might
throw it off as well.

Ash

-Original Message-
From: edgar [mailto:[EMAIL PROTECTED]]
Sent: 21 November 2002 12:57
To: 'Struts Users Mailing List'
Subject: RE: Html:select doesn't select correct element..


Stupid question, is the value supplied by the form exactly equal to one
of the values supplied by the collection?

Edgar
-Original Message-
From: Beeson, Ashley [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, November 21, 2002 7:33 AM
To: '[EMAIL PROTECTED]'
Subject: Html:select doesn't select correct element..


I have a problem with html:select not setting selected=selected for
the correct item in a list of options. The weird thing is that it works
fine for all bar one of my pages.
 
I have checked that the property being passed in exists in the list of
options using a bean:write just above the html:select statement.
channelCommodity has the value of one of the elements 'code' in our
collection. 
 
A snippet of the code I'm using which doesn't work properly:
 
bean:define id=commodities name=CHANNELEDITFORM
property=commodityUnits /
html:select size=1 property=channelCommodity
html:options collection=commodities property=code
labelProperty=display/
/html:select
 
A snippet of the code I'm using which works correctly on another jsp
page:
 
bean:define id=statuses name=MEASURINGDEVICEEDITFORM
property=energisationStatuses /
html:select size=1 property=energisation
html:options collection=statuses property=code
labelProperty=display/
/html:select
 
I should point out that there are no errors with the pages displayed
apart from the missing selected=selected for the element that should
be selected.
 
This is using struts 1.0.2 and running on tomcat 4.0.4.
 
Any suggestions?
 
Cheers

Ash Beeson - IT Consultant
email:  mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]
 


This e-mail and any attachment is for authorised use by the intended
recipient(s) only.  It may contain proprietary material, confidential
information and/or be subject to legal privilege.  It should not be
copied, disclosed to, retained or used by, any other party.  If you are
not an intended recipient then please promptly delete this e-mail and
any attachment and all copies and inform the sender.  Thank you.


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

This e-mail and any attachment is for authorised use by the intended recipient(s) 
only.  It may contain proprietary material, confidential information and/or be subject 
to legal privilege.  It should not be copied, disclosed to, retained or used by, any 
other party.  If you are not an intended recipient then please promptly delete this 
e-mail and any attachment and all copies and inform the sender.  Thank you.

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Changing Form Values

2002-11-08 Thread Beeson, Ashley
Is there a way to change form variables from within a Perform method for a
different type of form?
 
I have a couple of different scenarios where I need to use this:
 
1) After doing a search on the database, one OR many rows of results can be
returned. If one row is returned then it would be desirable to not in fact
return the search results form (with only one result), but instead just go
straight to the details for that one record. The search criteria and lists
of results are stored in one form bean, and due to its complexity the
'details' on another. 
 
Within the Perform action for the search I can identify how many rows are
being returned, but I cannot work out how to mutate the original search
criteria/results form into a details form.
 
2) On the 'details' form there is a text field where the user can enter a
date for the data which they are viewing. If this date is not populated the
Action which populates the form puts the current date into the field. If an
update is performed on the 'details' jsp page it is done with a different
form, but I still need to reset the date on the 'details' form to be blank -
but I am in the Perform method  working with a different form and hence
don't have access to the field!
 
Any Ideas?
 
Thanks

Ash Beeson - IT Consultant
 


This e-mail and any attachment is for authorised use by the intended recipient(s) 
only.  It may contain proprietary material, confidential information and/or be subject 
to legal privilege.  It should not be copied, disclosed to, retained or used by, any 
other party.  If you are not an intended recipient then please promptly delete this 
e-mail and any attachment and all copies and inform the sender.  Thank you.


Bean:Define fails in some instances..

2002-11-06 Thread Beeson, Ashley
I have an issue with a bean define statement causing a NullPointerException
in my application, The specific error is:

java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:386)
at
org.apache.jasper.runtime.PageContextImpl.setAttribute(PageContextImpl.java:
236)
at
org.apache.struts.taglib.bean.DefineTag.doStartTag(DefineTag.java:210)
at
org.apache.jsp.MeterPointTechDetails$jsp._jspService(MeterPointTechDetails$j
sp.java:2603)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
...

The define statement is as follows:

bean:define id=connId name=chanRow property=connId
type=java.lang.String /

The strange thing is that the specific define appears to work fine some of
the time. I suspect that it is failing when connId within chanRow is a blank
string - but I have many other bean:define statements that work fine with
blank strings. 

The bean define is within a logic:iterate tag but I was under the
impression that beans are either created or redefined if a duplicate bean is
defined. But seeing as the times it works there has only been one iteration
is making me think that it might be something to do with re-definition of
the bean.

I'm using Struts 1.02 on Apache Tomcat 4.0.4

Cheers

Ash
__
Ash Beeson - IT Consultant

This e-mail and any attachment is for authorised use by the intended recipient(s) 
only.  It may contain proprietary material, confidential information and/or be subject 
to legal privilege.  It should not be copied, disclosed to, retained or used by, any 
other party.  If you are not an intended recipient then please promptly delete this 
e-mail and any attachment and all copies and inform the sender.  Thank you.

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org