RE: Searching the mailing list

2003-07-17 Thread Sri Sankaran
Try using http://marc.theaimsgroup.com/?l=struts-user instead.

Sri


-Original Message-
From: Gregory F. March [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 17, 2003 9:42 AM
To: Struts Users Mailing List
Subject: Searching the mailing list


Hi.

It seems that searching using this link (from jakarta/struts website):

http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]

is not working.  Searching for anything is returning Text search not
available for this list.

Does anyone know what's up or who to contact?

Thanks!

/greg

--
Gregory F. March-=-http://www.gfm.net:81/~march-=-AIM:GfmNet

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


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



RE: 2 iterators on one page problem

2003-07-15 Thread Sri Sankaran
Download the jar http://www.keyboardmonkey.com/downloads/km-nested-v2.03.jar and add 
it to your classpath.  See if that does the trick.  This jar patches some bugs with 
the nested classes included with Struts.

Sri

-Original Message-
From: Mykola Ostapchuk [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 15, 2003 2:58 PM
To: [EMAIL PROTECTED]
Subject: 2 iterators on one page problem

Hi,
I have a problem placing 2 logic:iterate.. with nested tags on one jsp.
When I put any of iterations below - they work fine. But when I put them
together, one after another, I receive an error:

org.apache.jasper.JasperException: No getter method for property projects of
bean projectsID

Strange, bean projectsID doesn't have 'projects' property at all...
Any suggestions?



1st  iteration

logic:iterate id=projectsID name=projectsBean scope=request
type=com.iprs.core.test.Project indexId=i
   nested:root name=projectsID

   nested:iterate id=pers type=com.iprs.core.test.Person
property=persons
 bean:write name=pers property=firstname ignore=true/nbsp;
/nested:iterate

  /nested:root
/logic:iterate


2nd  iteration

logic:iterate id=personsID name=personsBean scope=request
type=com.iprs.core.test.Person indexId=i
   nested:root name=personsID

   nested:iterate id=proj type=com.iprs.core.test.Project
property=projects
 bean:write name=proj property=title ignore=true/nbsp;
   /nested:iterate

/nested:root
/logic:iterate


Regards,
Mykola Ostapchuk


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


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



RE: retention of the ActionForm values for display only fields

2003-07-11 Thread Sri Sankaran
Since the name fields are non-form fields they are not submitted and hence are not 
part of the request.  Therefore, when validation fails, there is nothing to send back 
to the browser.

Sri

-Original Message-
From: Brahme, Supriya (ENJ) [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 11, 2003 10:23 AM
To: [EMAIL PROTECTED]
Subject: retention of the ActionForm values for display only fields

Hi all
I have a scenario where I am displaying user profile details on the page
using UserProfileForm which extends ValidateForm. I am displaying all
the personal details like address, phone, credit card etc as editable
fields using html: text tag. While only user name appears as display
only field. The problem comes when user submits erroneous data  I have
server side validation displaying error message (javascript is turned
off here). When this happens, I can see that , if user has modified 6 of
the form text fields , assuming 1 is wrong, all are retained on the
form. i.e including erroneous value. But I lose the name. I see
blanks(null) for the first name  last name fields since they are
non-text fields, ie. used html:write tag. Can anyone explain the way to
retain these values without changing scope to session? I have this
ActionForm in request scope  it works fine except this issue.
Thanks
Supriya
*** Confidentiality Notice ***
This email, its electronic document attachments, and the contents of its website 
linkages may contain confidential health information.  This information is intended 
solely for use by the individual or entity to whom it is addressed.  If you have 
received this information in error, please notify the sender immediately and arrange 
for the prompt destruction of the material and any accompanying attachments.



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



RE: retention of the ActionForm values for display only fields

2003-07-11 Thread Sri Sankaran
If you really want to stay with request scope, a (hacky) way around it would be to 
have the names as hidden form fields as well.

Sri

-Original Message-
From: Sri Sankaran [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 11, 2003 10:49 AM
To: Struts Users Mailing List
Subject: RE: retention of the ActionForm values for display only fields

Since the name fields are non-form fields they are not submitted and hence are not 
part of the request.  Therefore, when validation fails, there is nothing to send back 
to the browser.

Sri

-Original Message-
From: Brahme, Supriya (ENJ) [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 11, 2003 10:23 AM
To: [EMAIL PROTECTED]
Subject: retention of the ActionForm values for display only fields

Hi all
I have a scenario where I am displaying user profile details on the page
using UserProfileForm which extends ValidateForm. I am displaying all
the personal details like address, phone, credit card etc as editable
fields using html: text tag. While only user name appears as display
only field. The problem comes when user submits erroneous data  I have
server side validation displaying error message (javascript is turned
off here). When this happens, I can see that , if user has modified 6 of
the form text fields , assuming 1 is wrong, all are retained on the
form. i.e including erroneous value. But I lose the name. I see
blanks(null) for the first name  last name fields since they are
non-text fields, ie. used html:write tag. Can anyone explain the way to
retain these values without changing scope to session? I have this
ActionForm in request scope  it works fine except this issue.
Thanks
Supriya
*** Confidentiality Notice ***
This email, its electronic document attachments, and the contents of its website 
linkages may contain confidential health information.  This information is intended 
solely for use by the individual or entity to whom it is addressed.  If you have 
received this information in error, please notify the sender immediately and arrange 
for the prompt destruction of the material and any accompanying attachments.



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


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



RE: need help with nested:iterate tag -- NullPointerException

2003-07-11 Thread Sri Sankaran
This subject is addressed by Arron in an earlier message 
(http://marc.theaimsgroup.com/?l=struts-userm=103848775020380w=2).

Sri

-Original Message-
From: Wes Rood [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 11, 2003 12:15 PM
To: [EMAIL PROTECTED]
Subject: need help with nested:iterate tag -- NullPointerException

Hi

I was trying to convert a logic:iterate into a nested:iterate and I'm 
getting a NullPointerException.

First off, the Action is adding a List to the request like this:

  request.setAttribute(courseProviderList, theList);

and the JSP is successfully iterating through the objects using 
logic:iterate:

logic:iterate id=element name=courseProviderList 
type=com.CourseProvider
  bean:write name=element property=oid /
  ... etc
/logic:iterate

But when I tried nested:iterate:

nested:iterate name=courseProviderList type=com.CourseProvider
  nested:write property=oid/
/nested:iterate

I get the following exception:

java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:380)
at 
org.apache.jasper.runtime.PageContextImpl.setAttribute(PageContextImp
l.java:234)
at 
org.apache.struts.taglib.logic.IterateTag.doStartTag(IterateTag.java:
367)
at 
org.apache.struts.taglib.nested.logic.NestedIterateTag.doStartTag(Nes
tedIterateTag.java:116)
at 
org.apache.jsp.listCourseProviders_jsp._jspService(listCourseProvider
s_jsp.java:88)
... etc
 
---

I can get it to work if I define a FormBean, and use it as follows:

   ((ListCourseProvidersForm)form).setCourseProviders(theList);

with:

nested:iterate name=ListCourseProvidersForm property=courseProviders
nested:write property=oid /
.. etc
/nested:iterate

But shouldn't it also work when the collection is directly an attribute 
of the request object?

Thanks,
Wes




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


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



RE: [FRIDAY] Burnt Ashes

2003-07-10 Thread Sri Sankaran
Funny story but a hoax.  See http://www.snopes.com/crime/clever/cigarson.asp.

Sri

-Original Message-
From: Joel Wickard [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 10, 2003 9:23 PM
To: Struts Users Mailing List
Subject: Re: [FRIDAY] Burnt Ashes



This is a true story and was the 1st place winner in the recent Criminal
Lawyers Award Contest. ONLY IN AMERICA


Shane Mingins
Analyst Programmer
Assure NZ Ltd
Ph 644 494 2522


  

Do you have any supporting documentation that it's a true story, I 
looked for newspaper articles, but all I came up with was that this 
story was published on numerous lawyer jokes sites, and they said 
nothing about it bieng a true story.


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


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



RE: NestedIterateTag won't let go of collection

2003-07-09 Thread Sri Sankaran
Disabled pooling.  No cigar :(

Sri

-Original Message-
From: Edgar Dollin [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 09, 2003 7:06 AM
To: Sri Sankaran; '[EMAIL PROTECTED]'
Subject: RE: NestedIterateTag won't let go of collection

There is a known bug if the collection is passed in directly (i.e.
%=myCollection%).  If the collection is passed in as a bean in the
session, at least certain tags handle it correctly.  The other thing to try
is to disable tag pooling ($TOMCAT_HOME/conf/web.xml --
enablePooling=false).

Edgar

 -Original Message-
 From: Sri Sankaran [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, July 08, 2003 10:32 PM
 To: '[EMAIL PROTECTED]'
 Subject: NestedIterateTag won't let go of collection
 
 
 Using: Struts 1.1
 Servlet Container: Tomcat 4.1.24
 
 In the process of studying the memory footprint of my 
 application, I found that certain objects were not getting 
 garbage collected even though there were no apparent 
 references.  The biggest culprit was a rather large 
 collection that was being displayed using nested:iterate.  
 
 I am mentioning *how* it is being displayed only because 
 JProbe revealed that the reason the collection isn't getting 
 free'd is because the associated NestedIterateTag object was 
 maintaining a reference to it - even after the user session 
 was invalidated.  
 
 I realize that this may not be Struts-issue per se but one of 
 how Tomcat manages (reuses) tags.  Have you seen such 
 behavior and is there a way to coerce tag to free the 
 application object?
 
 Thanks
 
 Sri
 

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



RE: NestedIterateTag won't let go of collection

2003-07-09 Thread Sri Sankaran
Got disabling of tag pooling to work.  I had to force a re-compilation of the JSPs.

Sri

-Original Message-
From: Sri Sankaran [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 09, 2003 10:55 AM
To: Edgar Dollin; [EMAIL PROTECTED]
Subject: RE: NestedIterateTag won't let go of collection

Disabled pooling.  No cigar :(

Sri

-Original Message-
From: Edgar Dollin [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 09, 2003 7:06 AM
To: Sri Sankaran; '[EMAIL PROTECTED]'
Subject: RE: NestedIterateTag won't let go of collection

There is a known bug if the collection is passed in directly (i.e.
%=myCollection%).  If the collection is passed in as a bean in the
session, at least certain tags handle it correctly.  The other thing to try
is to disable tag pooling ($TOMCAT_HOME/conf/web.xml --
enablePooling=false).

Edgar

 -Original Message-
 From: Sri Sankaran [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, July 08, 2003 10:32 PM
 To: '[EMAIL PROTECTED]'
 Subject: NestedIterateTag won't let go of collection
 
 
 Using: Struts 1.1
 Servlet Container: Tomcat 4.1.24
 
 In the process of studying the memory footprint of my 
 application, I found that certain objects were not getting 
 garbage collected even though there were no apparent 
 references.  The biggest culprit was a rather large 
 collection that was being displayed using nested:iterate.  
 
 I am mentioning *how* it is being displayed only because 
 JProbe revealed that the reason the collection isn't getting 
 free'd is because the associated NestedIterateTag object was 
 maintaining a reference to it - even after the user session 
 was invalidated.  
 
 I realize that this may not be Struts-issue per se but one of 
 how Tomcat manages (reuses) tags.  Have you seen such 
 behavior and is there a way to coerce tag to free the 
 application object?
 
 Thanks
 
 Sri
 

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


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



NestedIterateTag won't let go of collection

2003-07-08 Thread Sri Sankaran
Using: Struts 1.1
Servlet Container: Tomcat 4.1.24

In the process of studying the memory footprint of my application, I found that 
certain objects were not getting garbage collected even though there were no apparent 
references.  The biggest culprit was a rather large collection that was being 
displayed using nested:iterate.  

I am mentioning *how* it is being displayed only because JProbe revealed that the 
reason the collection isn't getting free'd is because the associated NestedIterateTag 
object was maintaining a reference to it - even after the user session was 
invalidated.  

I realize that this may not be Struts-issue per se but one of how Tomcat manages 
(reuses) tags.  Have you seen such behavior and is there a way to coerce tag to free 
the application object?

Thanks

Sri

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



RE: Using Nested Extension

2003-04-03 Thread Sri Sankaran
I have used it extensively with no problems.  Simply get the necessary 
nested_tags_10.jar from http://www.keyboardmonkey.com/next/index.jsp, add it to your 
application's classpath and you are good to go.
 
Sri

-Original Message-
From: Ritesh Singhal [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 03, 2003 9:05 AM
To: Struts Users Mailing List
Subject: Using Nested Extension


Hi All,
 
Has anybody used Sruts Nested Extension with Struts 1.0.2. If yes, please let me know 
what all I need to configure to start using this nested extension.
 
Regards
Ritesh



RE: checkbox

2003-04-03 Thread Sri Sankaran
All this is fine and dandy but isn't form-submission typically a POST operation?  If 
you use html:form the default is POST.

Sri

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 03, 2003 6:34 AM
To: Struts Users Mailing List
Subject: RE: checkbox


Thanks for clarrifying that.
URL limitations are a micro$oft 'feature' eh?
Why am I not surprised? ;-

-Original Message-
From: Gemes Tibor [mailto:[EMAIL PROTECTED]
Sent: Thursday, 3 April 2003 19:16
To: Struts Users Mailing List
Subject: Re: checkbox


Andrew Hill írta:

I was under the impression the max length of a get url was much lower 
(as far as the spec goes - although I believe IE and Mozilla both 
support
longer
ones than the minumum the spec mandates). Dont have the figures though 
:-(


Ok I looked it up:

The HTTP 1.1 (RFC2068) does not explicitly limit the length of the URL to anything. 
The length of a URL is unbounded.

Most versions of Internet Explorer have a well defined hard limit of 2083 characters 
for the length of the URL.

Tib



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


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


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



RE: [OT] Re: A bean:define question

2003-04-02 Thread Sri Sankaran
snip/

 I've always been 
 confused by people 
 who ask things like, Does IDE X support JSP debugging?.  
 Well, if you need 
 to debug your JSP, you've got way too much logic in there and 
 no IDE will 
 save you.

Not necessarily.
  
JSP debugging is definitely handy when you are working with a not-yet-mature tag 
library.  I have -- on more than one occasion -- found the bug to be in the tag than 
in the application logic.

In lieu of JSP debugging, I use the generated Java code to debug; definitely more 
tedious -- but it works.

 
 David

Sri

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



RE: [OT] Re: A bean:define question

2003-04-02 Thread Sri Sankaran


 -Original Message-
 From: Gemes Tibor [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, April 02, 2003 9:09 AM
 To: Struts Users Mailing List
 Subject: Re: [OT] Re: A bean:define question
 
 
 Sri Sankaran írta:
 
 JSP debugging is definitely handy when you are working with a 
 not-yet-mature tag library.  I have -- on more than one 
 occasion -- found the bug to be in the tag than in the 
 application logic.
   
 
 I prefer using unit test cases for this purpose...
 

You mean unit test cases for the tags?  Sure.  But these aren't tags *I* have 
developed.

 Tib
 

Sri

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



RE: web.xml DTD for Servlet 2.3 Struts 1.1

2003-04-02 Thread Sri Sankaran
http://java.sun.com/dtd/

-Original Message-
From: Wei, Robert (MAN-Corporate) [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 02, 2003 4:35 PM
To: 'Struts Users Mailing List'
Subject: web.xml DTD for Servlet 2.3  Struts 1.1


I am using struts 1.1 and need to config filters for my web app. Anyone knows where I 
amy locate the web.xml DTD for Servlet 2.3  Struts 1.1?

Thanks,
Robert Wei

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


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



RE: How to do ORing using struts:logic Tag

2003-04-01 Thread Sri Sankaran
Your two options are:

Option 1:
  logic:equal name=user_role value=guest
%-- do something --%
  /logic:equal
  logic:equal name=user_role value=temp
%-- do same thing --%
  /logic:equal

Option 2:
  Write a method in your form bean that returns true iff the value
  of user_role is guest or temp.  Then, in your JSP,
  logic:equal name=form-bean-name 
  property=role-tester-method
  value=true
%-- do something --%
  /logic:equal


Sri
-Original Message-
From: Rajendra Kadam [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 31, 2003 4:05 PM
To: Struts-User
Subject: How to do ORing using struts:logic Tag


Hi,
 
I'm using struts 1.0.
 
Here is the case that I want to do OR two conditions. 
 
For Eg. like this
 
If ( user_role.equal(guest) || user_role.equals(temp) )
{
then do something
}
 
How should I do it.
 
if I try to use struts:logic tag, I'm unable to make it.
Doing this -
logic:equal name=user_role value=guest
 logic:equal name=user_role value=temp
...
/logic:equal
   /logic:equal
 
This gives me AND conditions.
 
Is there any way I can OR  the conditions ?
 
Pls help me out in this case.
 
raju

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



RE: [OT] Taglib reference and IntelliJ

2003-03-28 Thread Sri Sankaran
I have had that happen to me in the past.  After verifying that the TLDs are indeed at 
c:\jakarta-tomcat-4.0.4\webapps\test\WEB-INF\tlds, I suggest re-starting IDEA.  I 
think that's what fixed it for me.

Sri

-Original Message-
From: Steve [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 28, 2003 1:08 PM
To: Struts Users Mailing List
Subject: [OT] Taglib reference and IntelliJ


I am having probems resolving my taglib uri reference in my .jsp Can anyone that uses 
IntelliJ shed some light on this for me? I am running 3.0.2 build #696. I have enabled 
web support with the document root as:

C:\jakarta-tomcat-4.0.4\webapps\test

and the snip from my web.xml is :

taglib
taglib-uri/WEB-INF/tlds/struts-bean.tld/taglib-uri
taglib-location/WEB-INF/tlds/struts-bean.tld/taglib-location
/taglib

Now from my .jsp I have the following:

%@ taglib uri=/WEB-INF/tlds/struts-bean.tld  prefix=bean %

The reference is not resolving in the IDE and therefore my .jsp (however the page does 
ultimately working as expected)appears with error flags. Can anyone point me in the 
right direction. Thanks.

steve


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


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



RE: [OT] Taglib reference and IntelliJ

2003-03-28 Thread Sri Sankaran
Have you re-started the editor since adding web support?

Sri

-Original Message-
From: Steve [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 28, 2003 1:38 PM
To: 'Struts Users Mailing List'
Subject: RE: [OT] Taglib reference and IntelliJ


Thanks Sri. Unfortunately they are there. Its seems so straightforward I figured I was 
missing something obvious. Any other suggestions?

Steve


-Original Message-
From: Sri Sankaran [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 28, 2003 1:32 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: [OT] Taglib reference and IntelliJ


I have had that happen to me in the past.  After verifying that the TLDs are indeed at 
c:\jakarta-tomcat-4.0.4\webapps\test\WEB-INF\tlds, I suggest re-starting IDEA.  I 
think that's what fixed it for me.

Sri

-Original Message-
From: Steve [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 28, 2003 1:08 PM
To: Struts Users Mailing List
Subject: [OT] Taglib reference and IntelliJ


I am having probems resolving my taglib uri reference in my .jsp Can anyone that uses 
IntelliJ shed some light on this for me? I am running 3.0.2 build #696. I have enabled 
web support with the document root as:

C:\jakarta-tomcat-4.0.4\webapps\test

and the snip from my web.xml is :

taglib
taglib-uri/WEB-INF/tlds/struts-bean.tld/taglib-uri
taglib-location/WEB-INF/tlds/struts-bean.tld/taglib-location
/taglib

Now from my .jsp I have the following:

%@ taglib uri=/WEB-INF/tlds/struts-bean.tld  prefix=bean %

The reference is not resolving in the IDE and therefore my .jsp (however the page does 
ultimately working as expected)appears with error flags. Can anyone point me in the 
right direction. Thanks.

steve


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


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



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


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



RE: reset method not being called for DynaValidatorForm

2003-03-26 Thread Sri Sankaran
So I guess you have extended the DynaValidatorForm.  Let me ask the obvious question:  
is your type attribute of this form-bean element the fully qualified name of this 
class?  'Cause if you don't Struts will invoke DynaValidatorForm's reset functionality.

Sri

-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 24, 2003 7:36 PM
To: Struts Users Mailing List (E-mail)
Subject: reset method not being called for DynaValidatorForm



I have the age-old how to un-check the checkbox problem.  The only twist is that 
this is a DynaValidatorForm.

I've tried putting various things into the 'reset' method of my Form, but nothing 
works:  public void reset( ActionMapping mapping, HttpServletRequest request )
   {
  log.debug( ClearanceRequestForm.reset );
  if ( request.getParameter( returningFromResolution ) == null ) {
 // set( plannedGiftFlag, Boolean.FALSE );
 // getMap().put(plannedGiftFlag,Boolean.FALSE);
 initialize(mapping);
  }
   }

(I have to control whether the reset happens since I have a workflow that involves 
going off to another form temporarily and then coming back to this
one.)

Looking in the log file, I never see that log message, so I think that reset is not 
being called.

Ian Hunter, you were asking about this in mid-March, did you ever find a solution?

I searched Bugzilla but did not find anything, but I may have done it wrong.

Isn't reset supposed to be called before the form is populated from the values in the 
request?

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management

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



RE: How to get the label[] and the value[] both from a select box?

2003-03-26 Thread Sri Sankaran
Instead of two String[]s build a form-bean with a collection of LabelValueBeans 
(http://jakarta.apache.org/struts/api/org/apache/struts/util/LabelValueBean.html).  

You can find sample implementations in html-select.jsp which is in the 
struts-exercise-taglib application that ships with Struts.

Sri

-Original Message-
From: Jain, Shilpi [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 25, 2003 11:34 PM
To: Struts Users Mailing List
Subject: How to get the label[] and the value[] both from a select box?


I am using a multiple select box in my application. I have a problem with that one. 

For my multiple select box I have 2 separate String[] one representing the labels of 
the options and another for value. The problems that I am facing are following:

1. The html:options tag has property and labelProperty tags associated with this 
multiple select list box but when the form is submitted the corresponding String[] are 
not updated for the new values in the UI(These values were changed on the UI using 
java script). 

 

2. The property of string[] associated with the html:select tag was getting updated 
but only for the selected value so I explicitly selected all values in the list box 
before submitting the jsp. But this itself had another problem. The values coming in 
the select property String[] were that of the labels in the list box not values!

In my form beans I have setters for both the array and the arrayelement with the same 
name but of-course with different arguments

Can anyone help me. This is really really urgent.

 

Thanks

Shilpi

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


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



RE: pre-selected values in multi-select box not working?

2003-03-26 Thread Sri Sankaran
The property attribute for the html:select is promptValues but the property in 
your form bean is _promptValues.  Hopefully you have getPromptValues().

Assuming all that is ok, how are you populating the values.  Is the form-bean being 
created before the page is loaded?

Sri

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 26, 2003 12:08 PM
To: Struts Users Mailing List
Subject: RE: pre-selected values in multi-select box not working?



Okay, here's the code (thought I could get away with just another qu, but was looking 
at the wrong code!!).

in my form bean:
 String[] _promptValues = new String[0];

in my jsp:
 html:select size=5 multiple=true styleId=multiSelect name =promptForm
  property =promptValues
   html:options name=Prompt property=comboValues/
  /html:select

Obviously have appropriate get/setters for promptValues.  In my action, I set 
promptValues to those that Strings I want selected, but nothing happens when the page 
is loaded.

This *should* work, right?

Cheers,

David




Sri Sankaran [EMAIL PROTECTED] on 03/25/2003 09:33:26 PM

Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]

To:Struts Users Mailing List [EMAIL PROTECTED]
cc:
Subject:RE: pre-selected values in multi-select box not working?


I don't know what value you are referring to; the default selection(s) are 
predicated by the value of the property attribute.  To repeat my original response, 
please post relevant portions of your form-bean and JSP.

If you are disinclined to do so, the example to which I referred you should help.

Sri

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 25, 2003 5:58 PM
To: Struts Users Mailing List
Subject: RE: pre-selected values in multi-select box not working?



Hi Sri / Mohan,

Does the value need to be a String or a String[] if multiple=true is set, for value 
to be pre-selected?

Many thanks,

David




Sri Sankaran [EMAIL PROTECTED] on 03/24/2003 09:53:13 PM

Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]

To:Struts Users Mailing List [EMAIL PROTECTED]
cc:
Subject:RE: pre-selected values in multi-select box not working?


Need more information.  Please post relevant portions of your form-bean and JSP.

Have you taken a look at the html-select.jsp in the struts-exercise-taglib application 
that ships with Struts?

Sri

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, March 24, 2003 5:36 PM
To: [EMAIL PROTECTED]
Subject: pre-selected values in multi-select box not working?


Hi.

Can anyone tell me if this is working please?  I have a String[] which holds the 
values selected in a multi-select box.  The submission part works fine, but 
pre-selecting the values does not.  ie if I populate the String[] with values that 
should show up already selected when the page is displayed, nothing happens.

Please help!

Many thanks,

David





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


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









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


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









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


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



RE: pre-selected values in multi-select box not working?

2003-03-26 Thread Sri Sankaran
Well then, the only thing I can think of is that the values returned by 
getPromptValues do not match any of the values returned by getComboValues().

Sri
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 26, 2003 1:02 PM
To: Struts Users Mailing List
Subject: RE: pre-selected values in multi-select box not working?



Hi,

Yep, got getPromptValues(), and yep, I call action to populate form before forwarding 
on success to page.

Cheers,

David




Sri Sankaran [EMAIL PROTECTED] on 03/26/2003 12:53:15 PM

Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]

To:Struts Users Mailing List [EMAIL PROTECTED]
cc:
Subject:RE: pre-selected values in multi-select box not working?


The property attribute for the html:select is promptValues but the property in 
your form bean is _promptValues.  Hopefully you have getPromptValues().

Assuming all that is ok, how are you populating the values.  Is the form-bean being 
created before the page is loaded?

Sri

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 12:08 PM
To: Struts Users Mailing List
Subject: RE: pre-selected values in multi-select box not working?



Okay, here's the code (thought I could get away with just another qu, but was looking 
at the wrong code!!).

in my form bean:
 String[] _promptValues = new String[0];

in my jsp:
 html:select size=5 multiple=true styleId=multiSelect name
 =promptForm
  property
   =promptValues
   html:options name=Prompt property=comboValues/
  /html:select

Obviously have appropriate get/setters for promptValues.  In my action, I set 
promptValues to those that Strings I want selected, but nothing happens when the page 
is loaded.

This *should* work, right?

Cheers,

David




Sri Sankaran [EMAIL PROTECTED] on 03/25/2003 09:33:26 PM

Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]

To:Struts Users Mailing List [EMAIL PROTECTED]
cc:
Subject:RE: pre-selected values in multi-select box not working?


I don't know what value you are referring to; the default selection(s) are 
predicated by the value of the property attribute.  To repeat my original response, 
please post relevant portions of your form-bean and JSP.

If you are disinclined to do so, the example to which I referred you should help.

Sri

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 25, 2003 5:58 PM
To: Struts Users Mailing List
Subject: RE: pre-selected values in multi-select box not working?



Hi Sri / Mohan,

Does the value need to be a String or a String[] if multiple=true is set, for value 
to be pre-selected?

Many thanks,

David




Sri Sankaran [EMAIL PROTECTED] on 03/24/2003 09:53:13 PM

Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]

To:Struts Users Mailing List [EMAIL PROTECTED]
cc:
Subject:RE: pre-selected values in multi-select box not working?


Need more information.  Please post relevant portions of your form-bean and JSP.

Have you taken a look at the html-select.jsp in the struts-exercise-taglib application 
that ships with Struts?

Sri

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, March 24, 2003 5:36 PM
To: [EMAIL PROTECTED]
Subject: pre-selected values in multi-select box not working?


Hi.

Can anyone tell me if this is working please?  I have a String[] which holds the 
values selected in a multi-select box.  The submission part works fine, but 
pre-selecting the values does not.  ie if I populate the String[] with values that 
should show up already selected when the page is displayed, nothing happens.

Please help!

Many thanks,

David





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


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









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


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









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


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









-
To unsubscribe, e

RE: question about ActionForm parameter of Action.execute() metho d

2003-03-26 Thread Sri Sankaran
Yes

Sri

-Original Message-
From: Kevin HaleBoyes [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 26, 2003 1:31 PM
To: Struts Users Mailing List
Subject: RE: question about ActionForm parameter of Action.execute() metho d



--- Wendy Smoak [EMAIL PROTECTED] wrote:
 Kevin wrote:
  Can the ActionForm parameter of the Action.execute method be null?  
  Under what circumstances will it be null and when will it be 
  not-null?
 
 If there is no form bean associated with the action in 
 struts-config.xml, then the ActionForm parameter will be null.

And this association is done using the 'name' attribute of action to refer to a 
form-bean element?

Thanks for your help,
Kevin.


__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! 
http://platinum.yahoo.com

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


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



[TILES] Passing attributes to tiles

2003-03-25 Thread Sri Sankaran
Using Struts 1.1b3

Consider a simple page layout comprised of two tiles, a body and a (wizard-like) 
navigation bar.  I would like to conditionally disable certain navigational buttons on 
some pages.  I am trying to use the tiles:put and tiles:useAttribute to no avail.

Here's a sample tile definition

definition name=tile.1 path=tile-1.jsp
  put name=hideButton value=yes/
  put name=body value=tile-1-body.jsp/
  put name=nav value=tile-1-nav.jsp/
/definition

I find that I can access hideButton in tile-1.jsp but not in tile-1-nav.jsp.  

In other words, the following works in tile-1.jsp

tiles:useAttribute 
  id=hide 
  name=hideButton 
  classname=java.lang.String/

Hide value is %=hide%

But not in any of tile-1-body.jsp or tile-1-nav.jsp.

Is this expected behavior?  Do you have any suggestions on how I can achieve what I am 
trying?  The one workaround I have is to use a bean:define in tile-1.jsp and 
reference that bean in tile-1-nav.jsp.

Sri




RE: struts: JSP expression not evaluated

2003-03-25 Thread Sri Sankaran

snip/
!-- the link won't read blah.do?arg=1 --
 html:link href=blah.do?arg=%=var%
 Link
 /html:link
 /body
 /html

The href attribute must either *entirely* be a run time expression (%=..%) or 
*entirely* a literal. Hence the one below works

 
 This works:
 
 
 %
 int var = 1;
 String href = blah.do?arg= + var;
 %
 html:link href=%=href%
 

You can alternatively write:

  href=%=blah.do?arg=+var%

Or you can use the paramId etc properties of html:link to avoid all this mess!

Sri

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



RE: [TILES] Passing attributes to tiles

2003-03-25 Thread Sri Sankaran
Answering my own question.

In tile-1.jsp when I define an attribute (tiles:useAttribute) with request scope, I 
can reference it any of the contained tiles just like any other Java bean.

Sri

-Original Message-
From: Sri Sankaran [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 25, 2003 1:12 PM
To: Struts Users Mailing List
Subject: [TILES] Passing attributes to tiles


Using Struts 1.1b3

Consider a simple page layout comprised of two tiles, a body and a (wizard-like) 
navigation bar.  I would like to conditionally disable certain navigational buttons on 
some pages.  I am trying to use the tiles:put and tiles:useAttribute to no avail.

Here's a sample tile definition

definition name=tile.1 path=tile-1.jsp
  put name=hideButton value=yes/
  put name=body value=tile-1-body.jsp/
  put name=nav value=tile-1-nav.jsp/
/definition

I find that I can access hideButton in tile-1.jsp but not in tile-1-nav.jsp.  

In other words, the following works in tile-1.jsp

tiles:useAttribute 
  id=hide 
  name=hideButton 
  classname=java.lang.String/

Hide value is %=hide%

But not in any of tile-1-body.jsp or tile-1-nav.jsp.

Is this expected behavior?  Do you have any suggestions on how I can achieve what I am 
trying?  The one workaround I have is to use a bean:define in tile-1.jsp and 
reference that bean in tile-1-nav.jsp.

Sri



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



RE: pre-selected values in multi-select box not working?

2003-03-25 Thread Sri Sankaran
I don't know what value you are referring to; the default selection(s) are 
predicated by the value of the property attribute.  To repeat my original response, 
please post relevant portions of your form-bean and JSP.

If you are disinclined to do so, the example to which I referred you should help.

Sri

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 25, 2003 5:58 PM
To: Struts Users Mailing List
Subject: RE: pre-selected values in multi-select box not working?



Hi Sri / Mohan,

Does the value need to be a String or a String[] if multiple=true is set, for value 
to be pre-selected?

Many thanks,

David




Sri Sankaran [EMAIL PROTECTED] on 03/24/2003 09:53:13 PM

Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]

To:Struts Users Mailing List [EMAIL PROTECTED]
cc:
Subject:RE: pre-selected values in multi-select box not working?


Need more information.  Please post relevant portions of your form-bean and JSP.

Have you taken a look at the html-select.jsp in the struts-exercise-taglib application 
that ships with Struts?

Sri

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, March 24, 2003 5:36 PM
To: [EMAIL PROTECTED]
Subject: pre-selected values in multi-select box not working?


Hi.

Can anyone tell me if this is working please?  I have a String[] which holds the 
values selected in a multi-select box.  The submission part works fine, but 
pre-selecting the values does not.  ie if I populate the String[] with values that 
should show up already selected when the page is displayed, nothing happens.

Please help!

Many thanks,

David





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


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









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


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



RE: Declaration of the Struts tag librairies

2003-03-24 Thread Sri Sankaran
Looking at the documentation for the web.xml, it reads:

taglib-uri:
  The taglib-uri element describes a URI, relative to the 
  location of the web.xml document, identifying a Tag 
  Library used in the Web Application.
taglib-location:
  the taglib-location element contains the location (as a 
  resource relative to the root of the web application) 
  where to find the Tag Libary Description file for the 
  tag library. 

So, for example, if your web.xml has

taglib
  taglib-urihttp://www.acme.com/logic/taglib-uri
  taglib-location/WEB-INF/tlds/struts-logic.tld/taglib-location
/taglib

you can place the taglib directive

%@ taglib uri=http://www.acme.com/logic; prefix=logic %

in your JSP.  The web.xml taglib provides a level of indirection thereby allowing 
you to say, move your tlds or use a newer version without having to update all your 
JSPs.

I *do* have every taglib that I use in my application declared in the web.xml.

Sri

-Original Message-
From: Heligon Sandra [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 24, 2003 4:20 AM
To: '[EMAIL PROTECTED]'
Subject: Declaration of the Struts tag librairies 



I develop a web application with Tomcat4.0.1 and the Struts framework.
In the web.xml there is an optional taglib element. I don't understand very 
well the aim of this element. 
In the beginning of the development I added the following libraries:

taglib 
taglib-uri/WEB-INF/struts-bean.tld/taglib-uri 
taglib-
location/WEB-INF/tld/struts-bean.tld/taglib-location
/taglib 
taglib 
taglib-uri/WEB-INF/struts-html.tld/taglib-uri   

taglib-location/WEB-INF/tld/struts-html.tld/taglib-location 
/taglib 
and in the JSP that use these libraries I added in the header: 
%@ taglib uri=/WEB-INF/tld/struts-bean.tld prefix=logic % 
%@ taglib uri=/WEB-INF/tld/struts-html.tld prefix=logic %
 In the continuation of my developments I used new libraries which I did not 
declare in web.xml 
But in the JSP that use these new libraries I wrote a line 
%@ taglib uri=/WEB-INF/tld/struts-logic.tld prefix=logic % and it works, 
why ?
Is it with the fact that the two directives are identical? 
I do'nt understand well which is the aim of the taglib element ? Do I must 
declare each library used in the
Struts application in the web.xml file ? 




As of February 12th, 2003 Thomson unifies its email addresses on a worldwide basis. 
Please note my new email address: [EMAIL PROTECTED] 

http://www.thomson.net/ 


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



RE: Form not populating from post to struts.

2003-03-24 Thread Sri Sankaran
So, what *are* you seeing?  That 

* the action is called without the form being populated?
  * is the form being *created*?
* form-bean isn't created and action isn't called?
* ...

Sri

-Original Message-
From: Simon Kelly [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 24, 2003 9:18 AM
To: Struts Users Mailing List
Subject: Form not populating from post to struts.


Hi all,

Cannot for the life of me spot the problem here.

Could someone check the following and see if there is an obvoius error that would mean 
struts wouldn't populate the form.

Cheers

Simon

Form, stripped from the html:

[snip]
form name=signalSelectForm 
action=/strutscx/signal.do;jsessionid=8AF18163C316123869B5EFBFAD6BC912
method=post
[snip]
input value=fp1v1 name=tables type=checkbox
[snip]
input value=fp1v1.eg1_hv_01 name=signals type=checkbox - eg1_hv_01br input 
value=fp1v1.eg1_mag_01 name=signals type=checkbox - eg1_mag_01br input 
value=fp1v1.eg1_mag_02 name=signals type=checkbox - eg1_mag_02br [snip] 
input value=submit type=submit


Form and action-mapping from struts-conf.xml:  [snip] 
form-bean name=signalSelectForm 
type=com.katrin.presentation.actionform.SignalSelectForm
/form-bean
[snip]
action path=/signal
name=signalSelectForm
scope=request
validate=false
type=com.katrin.presentation.action.SignalSelectAction
forward name=success path=/StrutsCXServlet / /action

Form:
=

public class SignalSelectForm extends ActionForm{

private ArrayList tables = new ArrayList();
private String startDate;
private String endDate;
private String dateSearchType;
private ArrayList signals = new ArrayList();

public void setTables(String newtable) {
this.tables.add(newtable);
}

public void setStartDate(String date) {
this.startDate = new String(date);
}

public void setEndDate(String date) {
this.endDate = new String(date);
}

public void setDataSearchType(String type) {
this.dateSearchType = new String(type);
}

public void setSignals(String newsignal) {
this.signals.add(newsignal);
}

public ArrayList getTables() {
return this.tables;
}

public String getStartDate() {
return this.startDate;
}

public String getEndDate() {
return this.endDate;
}

public String getDataSearchType() {
return this.dateSearchType;
}
public ArrayList getSignals() {
return this.signals;
}

public void reset() {
this.tables.clear();
this.startDate = new String();
this.endDate = new String();
this.dateSearchType = new String();
this.signals.clear();
}
}

Institut fuer
Prozessdatenverarbeitung
und Elektronik,
Forschungszentrum Karlsruhe GmbH,
Postfach 3640,
D-76021 Karlsruhe,
Germany.

Tel: (+49)/7247 82-4042
E-mail : [EMAIL PROTECTED]


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


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



RE: One tag in other tag's attribute's value

2003-03-24 Thread Sri Sankaran
Try

bean:define id=foo name=row property=id/
html:link
  action=%=/Delete.do?id=+foo%Delete
/html:link

Sri
-Original Message-
From: Navjot Singh [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 24, 2003 9:45 AM
To: Struts Users List
Subject: One tag in other tag's attribute's value


geeks,

I need to have something like this

html:link action=/Delete.do?id=bean:write name=row 
property=id/Delete/html:link

I might not be thinking in right direction. Any comments are welcome.

thx in advance
-navjot



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


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



RE: [OT] Estimating a Struts-based project

2003-03-24 Thread Sri Sankaran
W-H-A-A-T?  I can't hear you.  Can you speak up?!

-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 24, 2003 12:39 PM
To: Struts Users Mailing List
Subject: RE: [OT] Estimating a Struts-based project


I usually triple them, but there's the damage to my hearing to take into account from 
listening to managers scream when they see my estimates.

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: Monday, March 24, 2003 11:31 AM
To: 'Struts Users Mailing List'
Subject: RE: [OT] Estimating a Struts-based project


Okay, now double your estimate and you have a starting figure.

-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]
Sent: Monday, March 24, 2003 12:21 PM
To: Struts Users Mailing List
Subject: RE: [OT] Estimating a Struts-based project




-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]
Sent: Monday, March 24, 2003 11:18 AM
To: Struts Users Mailing List
Subject: Re: [OT] Estimating a Struts-based project

snip

Did you factor in the time for writing/maintaining tests?

I'm hurt that you even felt you had to ask! ;-)

Yes. As far as is possible, I have people write unit tests for
code (before
if possible) and we are in the process of selecting further 
testing tools
for good stuff like functional testing, load testing and performance
testing.

Simon

-
Simon P. Chappell [EMAIL PROTECTED]
Java Programming Specialist  www.landsend.com
Lands' End, Inc.   (608) 935-4526

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




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



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


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



RE: Where to place lookup val logic when not using an Action Form?

2003-03-24 Thread Sri Sankaran
All the information needed for the JSP must be available in the collection of user 
objects.  So, the action -- that invokes the call to the database -- is also 
responsible for setting the stage as needed by the JSP by get the role names for all 
the role ids.

Sri

-Original Message-
From: White, Joshua A (CASD, IT) [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 24, 2003 1:30 PM
To: 'Struts Users Mailing List'
Subject: Where to place lookup val logic when not using an Action Form?


Hello all,

I have a page which list users.  The page is displayed by requesting the listUsers 
action.  This action queries the database  and places a Collection of user objects 
into the request for the listUsers.jsp page to display (Using the iterate tag).

For conversation sake, say this user object has a roleId.  Where would the logic be 
placed to translate this roleId into its corresponding roleName? Because this page is 
for display, there is no action form.  I don't want to put any data access code in the 
jsp.  Could someone provide a suggestion?

Regards,

Joshua


This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If 
you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all copies.


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


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



RE: pre-selected values in multi-select box not working?

2003-03-24 Thread Sri Sankaran
Need more information.  Please post relevant portions of your form-bean and JSP.

Have you taken a look at the html-select.jsp in the struts-exercise-taglib application 
that ships with Struts?

Sri

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 24, 2003 5:36 PM
To: [EMAIL PROTECTED]
Subject: pre-selected values in multi-select box not working?


Hi.

Can anyone tell me if this is working please?  I have a String[] which holds the 
values selected in a multi-select box.  The submission part works fine, but 
pre-selecting the values does not.  ie if I populate the String[] with values that 
should show up already selected when the page is displayed, nothing happens.

Please help!

Many thanks,

David





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


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



RE: Problem in invoking Action Class

2003-03-23 Thread Sri Sankaran
Is your input attribute value (/OrderMediaMain.jsp) refer to the same location as you 
are trying to submit?  

Look at the Root Cause portion of your stack trace; it reads:

Can't find bundle for base name etc.ebusiness, locale en_US

Does etc.business mean anything to you?

Sri

-Original Message-
From: Divyanand_Gupta [mailto:[EMAIL PROTECTED] 
Sent: Saturday, March 22, 2003 9:40 AM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Problem in invoking Action Class


Hi All ,
 I am getting problem in instantiating FormBean.
My UI is having one select box and when user select somthing and press continue it 
invoke an action . But it is not going to action . 
Here is my struts-config.xml setting .

form-bean name=orderMediaFormBean 
type=com.gecs.apollo.wkst.bean.OrderMediaFormBean/

action
path=/OrderMediaSelectAction
type=com.gecs.apollo.wkst.action.OrderMediaSelectAction
  scope=request
input=/OrderMediaMain.jsp
name=orderMediaFormBean
validate=false

forward name=OrderMediaSalesCreditSlipMain
path=/OrderMediaSalesCreditSlipMain.jsp  redirect=false/
forward name=OrderMediaInStorePaymentMain
path=/OrderMediaInstorePaymentMain.jsp  redirect=false/
forward name=OrderMediaApplicationMain 
path=/OrderMediaApplicationMain.jsp  redirect=false/

/action

Error is 
2003-03-22 19:26:47 StandardWrapperValve[action]: Servlet.service() for servlet action 
threw exception
javax.servlet.ServletException: Servlet execution threw an exception
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:386)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:530)
at java.lang.Thread.run(Thread.java:479)
- Root Cause -
java.lang.ExceptionInInitializerError: java.util.MissingResourceException:
Can't find bundle for base name etc.ebusiness, locale en_US
at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:7
07)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:678)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:541)
at
com.silknet.ebiz.util.SafeProperties.loadKanaProperties(SafeProperties.java:
150)
at
com.silknet.ebiz.util.SafeProperties.init(SafeProperties.java:33)
at

RE: Question : Turning off logging for Struts in Tomcat

2003-03-20 Thread Sri Sankaran
Setting

log4j.logger.org=warn

in my log4j.properties does it for me.  Of course, as you know, this silences all logs 
from any org.* packages.  You can get more fine-grained control if you have some org.* 
packages in which you *are* interested.

Sri

-Original Message-
From: Henry Voyer [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 20, 2003 3:19 PM
To: [EMAIL PROTECTED]
Subject: Question : Turning off logging for Struts in Tomcat



Hi fellow programmers
is there a way to shut up Struts internal console logging?

im using log4j for my own logging system and struts keeps printing his 
internal operations in the console.

thanks

_
Help STOP SPAM with the new MSN 8 and get 2 months FREE*   
http://join.msn.com/?page=features/junkmail


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


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



RE: bean:write question

2003-03-19 Thread Sri Sankaran
That can be elegantly handled with JSTL as

c:out value=${user.address.city} default=help!/

Sri

-Original Message-
From: teknokrat [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 19, 2003 10:35 AM
To: [EMAIL PROTECTED]
Subject: Re: bean:write question


[EMAIL PROTECTED] wrote:
hello

i have a class wich contains another class
like class user which contains a class adress in a
 
 response.
 
i'd like to write the properties in a jsp
 

 
 
bean:write name=user property=address.city /
hth,
Tib
 
 
 
 thanks
 couldn't have been more simple !
 -
 SPECIAL ADSL
 L'ADSL à partir de 15,95 EUR/mois et le modem ADSL offert ?  C'est en exclusivité 
 chez Tiscali !
 Pour profiter de cette offre, cliquez ici: http://register.tiscali.fr/adsl/
 Offre soumise à conditions.


Ok - but what happens if address is null - then you get NPE. Is there a 
way stop the NPE and have the field set to nothing i.e. empty

thanks



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


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



RE: Beginner question

2003-03-19 Thread Sri Sankaran
I would shy away from chaining actions.

When the user submits a request to add a new item, the action that handles this 
request should 
(a) call the necessary business layer methods that in turn update
the database
(b) load object(s) needed by the next view (JSP) in the request or
session
(c) forward to the JSP

Sri
-Original Message-
From: White, Joshua A (CASD, IT) [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 19, 2003 8:00 AM
To: Struts Users Mailing List
Subject: Beginner question


I have two struts actions:

insertIt - adds an item to the database.  When successful, this action 
forwards to the viewIt action putting the newly inserted items itemId into the 
request.
viewIt - views an item by itemId (retrieves itemId from request)

When insertIt successfully completes, It forwards to viewIt without a redirect.  
As many of you know, if the user then refreshes the page, the insert action is 
performed again.

To solve this problem, I changed the redirect attribute to true.  The refresh 
problem disappears.  However, the request variable itemId gets lost because of the 
redirect.  

I know this is something every struts developer has worked through.  Could someone 
suggest a pattern for this type of transaction?  

Regards,

Joshua


This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If 
you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all copies.


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


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



RE: Using different actionform types before and after a display page.

2003-03-19 Thread Sri Sankaran
What do you mean by does not seem to work?  Do you get null values? NPE?

Is your ActionFormA still in scope (available) in SetupActionB?  In other words, can 
you get a non-null value for either of

  request.getAttribute(ActionFormA.key);

or
 
  session.getAttribute(ActionFormA.key);

Sri
-Original Message-
From: Susan Bradeen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 18, 2003 3:23 PM
To: [EMAIL PROTECTED]
Subject: Using different actionform types before and after a display page.


I normally use the same *type* of action form before and after my jsp 
pages, but what if the jsp submits to an action that uses a different type 
of action form, but contains a few of the same fields that I'd like to use 
in that second action? Can I retrieve the submitted values (coming from 
one action form type) to use in an action with a different action form 
type?

Too confusing? :-)

If I have ... 
   SetupActionA, using its ActionformA, to display A.jsp
and ... 
   SetupActionB, using its ActionformB, to display B.jsp

Now say that my A.jsp contains a form that submits to SetupActionB. 

If the ActionformA and the ActionformB contain a few identical fields, is 
it correct that the parameters submitted from A.jsp can be retrieved and 
used by my ActionformB in the SetupActionB? 

public class SetupActionA extends Action {
public ActionForward execute(...) throws Exception {
ActionformA formA = (ActionformA) form;
   formA.setMyID(someID);
   formA.setMyName(someName);
  ... etc
   }
}
 
public class SetupActionB extends Action {
public ActionForward execute(...) throws Exception {
ActionformB formB = (ActionformB) form;
   formB.setMyID(*** get this from the A.jsp parameters ***);
   formA.setMyName(*** get this from the A.jsp parameters ***);
  ... etc
   }
}

My tests so far have been unsuccessful, especially for html:hidden field 
values. I know that I can use request.getParameter(myID), for values 
submitted by the html form, but this does not seem to work for 
html:hidden fields. 

I think I am getting tripped up by an elementary Struts concept 
(ActionForm instances?), but my brain seems to be up against a brick wall 
at the moment. 

Thanks for any clarification.

Susan Bradeen
 

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


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



RE: struts tools, generators or dev aids for IntelliJ

2003-03-19 Thread Sri Sankaran
Struts console www.jamesholmes.com/struts

-Original Message-
From: Butt, Dudley [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 19, 2003 12:37 PM
To: '[EMAIL PROTECTED]'
Subject: struts tools, generators or dev aids for IntelliJ


Hi,

Was just wondering if anyone out there knows of any such tools etc that we can use to 
ease our Struts dev process? Looking for stuff like Struts front end, or code 
generators etc...


NOTICE: 

This message contains privileged and confidential information intended 
only for the person or entity to which it is addressed. 
Any review, retransmission, dissemination, copy or other use of, or 
taking of any action in reliance upon this information by persons or 
entities other than the intended recipient, is prohibited. 

If you received this message in error, please notify the sender 
immediately by e-mail, facsimile or telephone and thereafter delete the 
material from any computer. 

The New Africa Capital Group, its subsidiaries or associates do not 
accept liability for any personal views expressed in this message.

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


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



RE: [Q] why bean:write can't be used without NAME as html:text can?

2003-03-19 Thread Sri Sankaran
Probably because unlike html:text, bean:write doesn't *have* to inside a form and 
so a bean isn't guaranteed?

Sri

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 19, 2003 1:58 PM
To: [EMAIL PROTECTED]
Subject: [Q] why bean:write can't be used without NAME as html:text can?


Hello,

from html:text about Attribute name - If not specified, the bean associated with the 
form tag we are nested within is utilized. why bean:write can't does the same? to be 
consistant. or Am I missing anything? tnx Best Regards. Michael.




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


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



RE: Are action forms reused?

2003-03-18 Thread Sri Sankaran

 
 I am using struts 1.1. What I would like to know is whether a 
 new form 
 bean is created in the following situation:
 
 An action sets a form bean as an attribute and passes it for 
 display to 
 the appropriate jsp page and its contents displayed. This form is 
 updated and submitted to a different action. Now, is the form 
 bean that 
 submitted the second time the same as the first form or has a 
 new form 
 bean been created and its fields re-populated.
 

Firstly, the page that displays the form uses the version that was saved by the first 
action only if its under the same key.  For example, if the first action saved the 
form-bean to the session under the key foobean, then this instance will be used only 
if 

* you refer to it by the key foobean on the page
* it is the form-bean associated with (the) html:form on this
  page and respective action mapping's name attribute is foobean

Otherwise, a new instance of this bean will be created (in the second case).  Another 
issue to be careful with is forwarding versus redirecting.  If the first action above 
persists the bean to the *request* and you redirect to the JSP, the bean is lost 
(since redirect results in a new request object).

Hope this helps

Sri

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



RE: Nested tags and recursion (Arron tree example)

2003-03-17 Thread Sri Sankaran

  I was trying to visualize/interact with a tree structure 
 using Struts, and looking through the archives I found 
 references to using Nested tags, which at that moment were an 
 extension provided by Arron Bates (http://www.keyboardmonkey.com).
 
  As I believe, since Struts 1.1, Nested Tags are part of the 
 main branch (correct if I'm wrong), so there's no further 
 need to use the .jar provided by Arron at his home page: 
 Struts 1.1 rc1 provides the tag libraries for using Nested Tags.

You are correct.  Nested tags are part of the Struts 1.1 distribution.  However, Arron 
has made some updates to it and they won't be reflected in the Struts distribution 
until rc2.  So, in the meantime, I would recommend getting the jar at 
http://www.keyboardmonkey.com/downloads/km-nested-v2.03.jar. Simply place the jar file 
in the same location as your struts jar.  The classes in this jar file will then be 
loaded.

 
  That seems to be true, as I've successfully tried Arron's 
 examples with Struts 1.1 rc1... All but the recursive ones. 
 That's why:
 
 1) I'd like to know if Struts 1.1 rc1 provides Nested Tags, 
 and so recursion, and if they work for other people.
 

Yes, and yes.

 2) Has somebody tried Arron's tree examples with 1.1 rc1 
 tags, and worked?
 

Arron reported success with all his tests.

Sri

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



[OT] Using the NDC while logging

2003-03-17 Thread Sri Sankaran
I would welcome your opinion on the proper use of the Nested Diagnostic Context (NDC) 
when logging using log4j.

As you know in a multi-threaded servlet environment, the NDC provides valuable 
contextual information to help make sense of otherwise hopelessly interleaved messages 
in the log device.  What is the correct procedure for setting up the NDC?  It seems 
like every log message must be sandwiched by a push() and a pop().  For example:

  NDC.push(something);
  log.debug(The message being logged);
  NDC.pop();

What is the overhead of changing all log statements to this format?  Especially 
requiring consideration is the fact that the something that uniquely identifies a 
context isn't always readily available and may require some computation to obtain.  
For example, the unique identifier may be the userid which is (probably) stashed away 
in the session, so the above three line segment is really:

  NDC.push((String)session.getAttribute(user.key));
  log.debug(The message being logged);
  NDC.pop();

This not only adds to the latency (?) it also necessitates the -- otherwise 
unnecessary -- passing of the session object around.  It also muddies logging in the 
business layer that has no notion of sessions.

Further, can't a session's processing get preempted between the push() and the actual 
logging resulting in something like:

John: The message being logged
null: The message being logged

Or am I missing something?

Your thoughts?

Sri


RE: How to create table in struts?

2003-03-14 Thread Sri Sankaran
While Struts provides a tag library, formatting of data is left to the user.  It is up 
to you to present the data in a tabular format.  

That being said, the display tag library may come of help.  You can find it at 
http://edhill.its.uiowa.edu/display-0.8/.  Some folks on this list have continued work 
on it; you can find developments at http://sourceforge.net/projects/displaytag.

Sri

-Original Message-
From: Anand M S [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 14, 2003 3:13 PM
To: Struts Users Mailing List
Subject: How to create table in struts?


Hi,
 I have a collection, from this collection I have to create table to show the results 
to user, is there any way to create a table with struts with out manually constructing 
the table?

Thanks,
Anand


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


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



RE: Issues with unsubscribing

2003-03-13 Thread Sri Sankaran

snip/

  I have 
 filters for most to reduce the pain.  I dread the day that I 
 go on a week-long vacation ;-)


Why not set up filters that'll just delete the messages?
 
 Matt

Sri

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



RE: Nested Radio Buttons + Mutual Exclusion

2003-03-13 Thread Sri Sankaran

 
 Does anybody know how to use the nested:radio button 
 component so That you can have mutually exclusive sets of 
 radio buttons?
  
I think you are referring to radio button groups when you mutually exclusive sets.  
Going on that premise, radio buttons with the same name are grouped by the browser.  
And in the Struts (or Nested) world, the property attribute provides the radio button 
its name.  Therefore

nested:radio 
  property=fruit 
 value=apple
  Apple
/nested:radio
nested:radio 
  property=fruit 
 value=banana
  Banana
/nested:radio

will form the fruit group -- meaning only one of Apple or Banana can be selected.  
You can have any number of such groups in a page.  So the above page could include 
another (totally unrelated) group such as 

nested:radio 
  property=weather 
 value=cloudy
  Cloudy
/nested:radio
nested:radio 
  property=weather 
 value=sunny
  Sunny
/nested:radio
nested:radio 
  property=weather 
 value=partly
  Partly Sunny
/nested:radio

Hope that answers your question.

 Jon.

Sri

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



RE: html:messages/ not displaying messages

2003-03-13 Thread Sri Sankaran

snip/

 html:messages id=msg property=messages message=true
   c:out value=${msg}/
 /html:messages
 
 

Can you do that?  Don't you have to use html-el:messages if you want to use c:out?  
Have you tried 

html:messages id=msg property=messages message=true
  bean:write name=msg/
/html:messages

Sri

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



RE: Where to find more about Struts JSF - Server Faces?

2003-03-12 Thread Sri Sankaran
Have you tried http://java.sun.com/j2ee/javaserverfaces/?

Sri

-Original Message-
From: niksa_os [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 12, 2003 6:16 AM
To: Struts Users Mailing List
Subject: Where to find more about Struts JSF - Server Faces?


Can I use it in real development or this (Struts JSF and SUN JSF) is just big beta?

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


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



RE: servlet reference in form bean in null?

2003-03-12 Thread Sri Sankaran
I think he means the getServlet() method of ActionForm.

Sri

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 12, 2003 4:26 PM
To: 'Struts Users Mailing List'
Subject: RE: servlet reference in form bean in null?


Might have if you posted the code to which you are referring.

Mark

-Original Message-
From: White, Joshua A (CASD, IT) [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 12, 2003 4:16 PM
To: [EMAIL PROTECTED]
Subject: servlet reference in form bean in null?


Hello all,

I am having trouble determining why the servlet reference in my formbean is null.  I 
have created a class BaseForm which extends ActionForm.  Any ideas?  

Joshua


This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If 
you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all copies.


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



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


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



RE: Web sites using struts

2003-03-10 Thread Sri Sankaran
Check out http://marc.theaimsgroup.com/?l=struts-userm=104627418203266w=2.

Sri

-Original Message-
From: Damm, Gary [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 10, 2003 12:35 PM
To: [EMAIL PROTECTED]
Subject: Web sites using struts


I know this has been asked before but I'm getting errors when searching the archive.  
I need some examples (links) of sites currently using struts.

Any help appreciated,
Gary

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


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



RE: basic question

2003-03-08 Thread Sri Sankaran

 1)The question I have is where will the JSP's reside.
 will they be deployed on the web-server or the
 application server.
 

JavaServer Pages (JSPs) help build the HTML that will be rendered on the client 
(browser).  Since one person's application server is not in another's lexicon, let me 
say that JSPs must reside in the environment of a servlet container (such as Tomcat).  

A plain web-server (such as IIS or Apache) wouldn't know that to do with them.  A 
web-server deals only with HTML artifacts.  JSPs on the other hand can be comprised of 
HTML tags, specialized tags and Java code.  Everything get converted (I am glossing 
over the details here) into HTML before getting routed back to the client.  Some 
servlet engines (such as Tomcat) serve dual roles -- as web-server and as a servlet 
engine.

 2)where will struts reside,I think anwser to the first
 question should answer this.
 

Needs a servlet container.

 Thanks
 Gopi
 

Sri

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



RE: nested:checkbox fail to set the property to false

2003-03-08 Thread Sri Sankaran


 -Original Message-
 From: Joao Araujo [mailto:[EMAIL PROTECTED] 
 Sent: Friday, March 07, 2003 10:33 PM
 To: [EMAIL PROTECTED]
 Subject: nested:checkbox fail to set the property to false
 
 
 Hi,
 
   I am using nested:checkbox for  a boolean property.
   Unfortunately, struts is not setting the property of 
 the formbean
   to false when I unchecked it on the screen. On the other hand
   when I check the box , struts set the property 
 correctly. Any clue?
 

A value for a checkbox is sent by the browser to the server only when it is checked.  
This is how HTTP works and has nothing to do with Struts.  Please read the docs at 
http://jakarta.apache.org/struts/userGuide/struts-html.html#checkbox for how to handle 
checkboxes (nested:checkbox is just an extension of html:checkbox).

 
   ENVIRONMENT.
   1. Struts 1.1b2
   2. Tomcat 4.1.12
 
   Thanks a lot for the attention provided.
 
 Joao, 
 

Sri

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



RE: [Repost] Cannot Cast to Map

2003-03-07 Thread Sri Sankaran
Jerry:
  If the only thing that's changed is the version of Struts you are using, we can 
safely (?) assume that there is no need to dig through the JSP.

  We can take a few gumshoe steps.  One at a time:

* Use 1.1rc1 but remove the nested classes from the jar and place
  the (extracted) nested classes from 1.1b3 in your WEB-INF/lib.
  In this manner you are using 1.1b3 version of nested but 1.1rc1
  for everything else.
* Place the updated nested jar that Arron had posted 
  http://www.keyboardmonkey.com/downloads/km-nested-v2.03.jar
  I don't know if this has made it into any of the recent nightlies.
  If you use this jar, you can simply put it along with the struts.jar
  in the WEB-INF/lib.  This jar will be loaded first (since k  s)
* Last, but not least, I don't know if there have been any *feature*
  enhancements since 1.1b3, and even if there *are*, if you are
  interested in them.  If push comes to shove -- as I sense it
  is -- just stick with what works: 1.1b3

  Hope this gets you going.

Sri

-Original Message-
From: Jerry Jalenak [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 07, 2003 8:58 AM
To: '[EMAIL PROTECTED]'
Subject: [Repost] Cannot Cast to Map


begging
I'm in dire need of some help on this.  I can't seem to figure out what has 
changed.  This worked with a mid-Feb build of 1.1b3, but has quit working since I 
swapped in the 1.1rc1 build from both 03/05 and 03/06. Please?  Anyone?

/begging

repost

I'm getting the following message from the nested tags following conversion to the 
1.1rc1 nightly build from 3/5:

[ServletException in:/WEB-INF/tiles/membersolutions/menu.jsp] Cannot cast to 
Map for name=Authenticated_UserKey property=null scope=null' 

The jsp looks like

%@ taglib uri=/bean  prefix=bean   %
%@ taglib uri=/display   prefix=display%
%@ taglib uri=/html  prefix=html   %
%@ taglib uri=/logic prefix=logic  %
%@ taglib uri=/nestedprefix=nested %
%@ taglib uri=/tiles prefix=tiles  %
%@ page language=java %
nested:root name=Authenticated_UserKey
table align=left border=0 cellpadding=0 cellspacing=0 width=100%
nested:iterate property=menu
tr
td align=left valign=middle
html:img align=absmiddle border=0 
src=/images/navButton.jpg/
/td
td align=left valign=middle
nbsp;span class=bodytextboldnested:write
property=applicationMenuHeading//span
nested:define id=lobName property=lobName/
/td
/tr
nested:iterate property=applicationMenu
nested:define id=urlValue property=url/
nested:define id=urlDescription property=description/
tr
td align=left valign=middlenbsp;/td
td align=left valign=middle
nbsp;
nested:link forward=%= urlValue % paramId=lob 
paramName=lobName styleClass=bodytextsmall title=%= urlDescription %
nested:write property=name/
/nested:link
/td
/tr
/nested:iterate
trtd colspan=2 height=15/td/tr
/nested:iterate
/table
/nested:root


Any ideas?

/repost

TIA.

Jerry Jalenak
Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496
[EMAIL PROTECTED]

This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at the following email 
address: [EMAIL PROTECTED]



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


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



RE: [Repost] Cannot Cast to Map

2003-03-07 Thread Sri Sankaran
The first test below 

  ...place the (extracted) nested classes from 1.1b3 
  in your WEB-INF/lib...

should read

  ...place the (extracted) nested classes from 1.1b3 
  in your WEB-INF/classes...

Sri
-Original Message-
From: Sri Sankaran 
Sent: Friday, March 07, 2003 10:24 AM
To: Struts Users Mailing List
Subject: RE: [Repost] Cannot Cast to Map


Jerry:
  If the only thing that's changed is the version of Struts you are using, we can 
safely (?) assume that there is no need to dig through the JSP.

  We can take a few gumshoe steps.  One at a time:

* Use 1.1rc1 but remove the nested classes from the jar and place
  the (extracted) nested classes from 1.1b3 in your WEB-INF/lib.
  In this manner you are using 1.1b3 version of nested but 1.1rc1
  for everything else.
* Place the updated nested jar that Arron had posted 
  http://www.keyboardmonkey.com/downloads/km-nested-v2.03.jar
  I don't know if this has made it into any of the recent nightlies.
  If you use this jar, you can simply put it along with the struts.jar
  in the WEB-INF/lib.  This jar will be loaded first (since k  s)
* Last, but not least, I don't know if there have been any *feature*
  enhancements since 1.1b3, and even if there *are*, if you are
  interested in them.  If push comes to shove -- as I sense it
  is -- just stick with what works: 1.1b3

  Hope this gets you going.

Sri

-Original Message-
From: Jerry Jalenak [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 07, 2003 8:58 AM
To: '[EMAIL PROTECTED]'
Subject: [Repost] Cannot Cast to Map


begging
I'm in dire need of some help on this.  I can't seem to figure out what has 
changed.  This worked with a mid-Feb build of 1.1b3, but has quit working since I 
swapped in the 1.1rc1 build from both 03/05 and 03/06. Please?  Anyone?

/begging

repost

I'm getting the following message from the nested tags following conversion to the 
1.1rc1 nightly build from 3/5:

[ServletException in:/WEB-INF/tiles/membersolutions/menu.jsp] Cannot cast to 
Map for name=Authenticated_UserKey property=null scope=null' 

The jsp looks like

%@ taglib uri=/bean  prefix=bean   %
%@ taglib uri=/display   prefix=display%
%@ taglib uri=/html  prefix=html   %
%@ taglib uri=/logic prefix=logic  %
%@ taglib uri=/nestedprefix=nested %
%@ taglib uri=/tiles prefix=tiles  %
%@ page language=java %
nested:root name=Authenticated_UserKey
table align=left border=0 cellpadding=0 cellspacing=0 width=100%
nested:iterate property=menu
tr
td align=left valign=middle
html:img align=absmiddle border=0 
src=/images/navButton.jpg/
/td
td align=left valign=middle
nbsp;span class=bodytextboldnested:write
property=applicationMenuHeading//span
nested:define id=lobName property=lobName/
/td
/tr
nested:iterate property=applicationMenu
nested:define id=urlValue property=url/
nested:define id=urlDescription property=description/
tr
td align=left valign=middlenbsp;/td
td align=left valign=middle
nbsp;
nested:link forward=%= urlValue % paramId=lob 
paramName=lobName styleClass=bodytextsmall title=%= urlDescription %
nested:write property=name/
/nested:link
/td
/tr
/nested:iterate
trtd colspan=2 height=15/td/tr
/nested:iterate
/table
/nested:root


Any ideas?

/repost

TIA.

Jerry Jalenak
Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496
[EMAIL PROTECTED]

This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at the following email 
address: [EMAIL PROTECTED]



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


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


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



RE: error in action

2003-03-07 Thread Sri Sankaran
Are you saying that you have a problem with:

public execute(...) {
 .
 .
 return mapping.getInputForward();
}

Sri
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 07, 2003 8:16 AM
To: Struts Users Mailing List
Subject: error in action


Hi, if i've an a page that call an action if in this action i've an error how i return 
to page that invoked the action? i try to use mapping.getInputForward(), but this 
return me the path of my action...i try to save the url but have a problem (see my 
preavious mail Problem mapping/url)...there is an method like 
javascript:history.go(-1)?? sorry for my stupid question,thanks. Ale


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


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



RE: Search result page with logic:iterate

2003-03-07 Thread Sri Sankaran
Look at the display tag library at http://edhill.its.uiowa.edu/display-0.8/.  Some 
folks on this list have continued work on it; you can find developments at 
http://sourceforge.net/projects/displaytag.

I'm sure this should help with your pagination needs.

Sri

-Original Message-
From: Renato Romano [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 07, 2003 4:19 AM
To: 'Struts Users Mailing List'
Subject: Search result page with logic:iterate


The logic:iterate tag has attributes offset and length that defines the starting 
element and the maximum number of elements to iterate; I'd like to use those 
attributes to display the X results per page navigation style of a search, but i'm 
looking for an easy way to dynamically generate those values, and also adding links 
for previous and next page, or maybe (better) something like Previous 1 2 
3 ... Next like in search engine result pages... I'm sure there something ready to 
do the work. Thanks

Renato


Renato Romano
Sistemi e Telematica S.p.A.
Calata Grazie - Vial Al Molo Giano
16127 - GENOVA

e-mail: [EMAIL PROTECTED]
Tel.:   010 2712603
_



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


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



RE: crazy error

2003-03-07 Thread Sri Sankaran
Remove the 'name' and 'type' attribute out of your html:form.  Why?  

* They are deprecated (in Struts 1.1)
* If the name doesn't exactly match what you have in your config, 
  it'll result in a new instance of the bean
* You don't need it -- you action mapping definition
  for the allocationAction should handle it

Sri

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 07, 2003 12:10 PM
To: [EMAIL PROTECTED]
Subject: crazy error


Hi,

 I have a action calls which populates the formbean and forward to JSP where I can see 
the values but when I submit the jsp back to the same action the values or lost.

 the jsp code is ( from the javasript I can see the values I print in the
alerts) and I get the value I set to actionstr in the action servlet but none of the 
other values like product_id or period_end_date.  What is wrong??

Regards
Rajesh J
function cancelr()
{
  allo.actionstr.value=cancel;
  alert(allo.period_end_date.value);
  alert(allo.product_id.value);
  allo.submit();
}

/script
/head

body topmargin=0 leftmargin=0
html:form action=allocationAction
   name=allocationActionForm
   type=lam.mffs.form.AllocationActionForm
   styleId=allo
   scope=session
html:hidden property=actionstr styleId=actionstr/
table border=0 width=100% height=922 cellspacing=0 cellpadding=0
  tr
td width=100% height=72 bgcolor=#66 style=color: #FF 
nbsp;strongfont size=8 face=ATSackLightRomNoBallshtml:img width=61 
height=45 src=images/top.bmp border=0/MFFS/font/strong/td
  /tr
  tr
td width=100% height=20 bgcolor=#E3 style=color: #FF nbsp;/td
  /tr
  tr
td width=100% height=823 style=color: #FF valign=middle align 
=centernbsp;
  table border=1 width=652 cellpadding=0 cellspacing=1 bordercolor 
=#00 bordercolorlight=#00 bordercolordark=#00
tr
td style=BACKGROUND-color: #e0ebf5 width=312 bordercolor=#FF 
bordercolorlight=#FF bordercolordark=#FF align=right nowrap
  Period End Datenbsp;nbsp;/td
  td style=BACKGROUND-color: #e0ebf5 width=324 bordercolor= #FF 
bordercolorlight=#FF bordercolordark=#FF
  html:text tabindex=1 property=period_end_date styleId 
=period_end_date size=10/
  /td
/tr
tr
td style=BACKGROUND-color: #e0ebf5 width=312 bordercolor=#FF 
bordercolorlight=#FF bordercolordark=#FF align=right nowrap
  Product IDnbsp;nbsp;/td
  td style=BACKGROUND-color: #e0ebf5 width=324 bordercolor= #FF 
bordercolorlight=#FF bordercolordark=#FF
  html:text tabindex=2 property=product_id styleId=product_id 
size=10/
  /td





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


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



RE: [OT] How to make a method deprecated

2003-03-06 Thread Sri Sankaran
Use the @deprecated Javadoc tag.

Sri

-Original Message-
From: Chiming Huang [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 06, 2003 11:27 AM
To: [EMAIL PROTECTED]
Subject: [OT] How to make a method deprecated



Hi,

In java, I would like to make a method deprecated.  So that javac will complain if a 
program uses the deprecated method.  What should I do?

Thanks in advance.

Chiming



-
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, and more

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



RE: html:multibox and bean:write

2003-02-28 Thread Sri Sankaran
You cannot emded a tag inside another tag.  You can achieve what you are trying as 
follows

  value=%=styleData.getKey()%

Sri

-Original Message-
From: shashi_struts [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 28, 2003 7:23 AM
To: Struts Users Mailing List
Subject: html:multibox and bean:write


hi

hi i am using multibox and in the value i want a data comes from the logic:iterate and 
write through the bean:write

but it gives a problem
 logic:iterate id=styleData name=style property=styleData indexId=index
 tr
td valign=middle width=83
  html:multibox name=style property=styleID value= bean:write 
name=styleData property=key//
  /td
   td width=167 br
bean:write name=styleData property=value//td
  /tr
/logic:iterate
-

this is my code
please consider this and help me

Shashi


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



RE: one more prepopulate question

2003-02-28 Thread Sri Sankaran
Here's what you are trying to do

  index.jsp 
- redirects to
  index.do
- needs to build a bunch'o forms
- forwards to
  home.jsp

Am I understanding you correctly?

The action corresponding to the path index can create any number of form-beans and 
persist them in any scope before forwarding to home.jsp.  Now home.jsp, has several 
html:forms; which implicitly means that it expects several form-beans.  These are 
available courtesy the aforementioned action.

Where are you running into a problem?

Sri

-Original Message-
From: Dan Allen [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 26, 2003 7:52 PM
To: [EMAIL PROTECTED]
Subject: one more prepopulate question


I know that the prepopulate question has been beaten into the ground around here and 
the answer on the FAQ page is complete in answering most questions I have about the 
concept.  But I just want to run something by this list, see if I am going about it in 
the right way.

When you are designing an application, and the index page has several mini-forms (such 
as a limited search, a login and maybe a site index) the first page has to be a *.do 
page.  So I figured, make an index.jsp page with

logic:redirect page=/index.do/

Then my /index action would prepare the forms and display /home.jsp. The FAQ talks 
about putting the form population in the Action class for the /index action, which 
works great...

...except, how would you populate more than one form?  Seems like in the cast you 
limit yourself to the form defined in the action mapping.  Would it be necessary to 
just set up an action chain?

Dan

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Daniel Allen, [EMAIL PROTECTED]
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Real programmers just hate to get up in the morning, and 
contrary to Ordinary People, they're in better shape as 
it gets closer to nighttime.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

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


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



RE: action form error messages

2003-02-28 Thread Sri Sankaran
There are a few possibilities

* your bean (form-bean or other) does not have a property called
  seriesnumber.  Case is very important.  Struts is looking for a
  method named getSeriesnumber().  Make sure you have such a 
  method and that it is public
* the tag that is causing this error isn't specifying the 'name'
  attribute

Can you post the pertinent section of the JSP and ActionForm?

Sri

-Original Message-
From: Alex McLintock [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 28, 2003 12:54 PM
To: [EMAIL PROTECTED]
Subject: action form error messages


Hi folks,

I am using traditional action forms rather than DynaActionForms and when I 
get it slightly wrong (eg by missing out get/set methods) I get the 
following error

No getter method for property seriesnumber of bean 
org.apache.struts.taglib.html.BEAN

Why is it telling me the problem is within the class 
org.apache.struts.taglib.html.BEAN and not within my ActionForm.

Cheers.

Alex


Available for java/perl/C++/web development in London, UK or nearby. Apache FOP, 
Cocoon, Turbine, Struts,XSL:FO, XML, Tomcat, JSP http://www.OWAL.co.uk/


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


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



RE: [update] nested tags...

2003-02-28 Thread Sri Sankaran
Arron:
  Can you please re-build the jar?  Tomcat 4.1.18 throws a

java.util.zip.ZipException: invalid END header (bad central directory offset)

Error.  Methinks, well I'll just unzip it and put it in WEB-INF/classes; 
unfortunately, Winzip too has problems with it.

not.lazy
  I don't want to change too many things at once and so am trying to stick with Struts 
1.1b3 than move to the nightly.
/not.lazy

Sri

-Original Message-
From: Arron Bates [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 28, 2003 12:53 AM
To: [EMAIL PROTECTED]
Subject: [update] nested tags...


Peoples,

Important changes just committed into CVS for the nested tags.

1) Copyright date in the header license is updated to include 2003!
2) The internal changes to get them dancing with Tomcat 4.1.18  more.

For those too lazy to get the entire distrib of the next nightly, you can get just the 
nested tags from...

http://www.keyboardmonkey.com/downloads/km-nested-v2.03.jar

   ...the ony diff between this and the last jar I posted, is it's more reliable in 
using more than one root tag on the same page, using different root tags within the 
nesting itself (docco on this to come), and a bug fix for the two tags which like to 
play differently (nested:options  nested:link).

If people were just about to raise bugs on my last jar of these tags which have 
anything to do with what's just mentioned (multiple root tags, link and options tags), 
can you have another run with this jar to see if they go away.

Docco on the additional stuff this rejig of the tags can do is in the works.

For those who care, enjoy.
For those who don't, as you were.

Thanks again.


Arron.


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


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



RE: one more prepopulate question

2003-02-28 Thread Sri Sankaran
 action path=/setupMultipleForms
 type=foo.bar.SetUpFormsAction
 name=form1
 scope=request
 validate=false
 
 forward
 name=continue
 path=/severalFormsOnAPage.jsp/
 /action
 
 So now in the SetUpFormsAction you can easily put Form1 into scope by:
  
 Form1 form1 = (Form1)form;
 form1.setFoo(hello);
 request.setAttribute(mapping.getAttribute(), form1 );

Actually, unless you are going (back) to a page that contains a form with action of 
setupMultipleForms you can't use this strategy.

What you actually need to know is the name attribute of the action mapping 
corresponding to the page to which the user is being directed *next*.  However, this 
isn't the end of the world; you can programmatically figure the name of the form-bean 
etc as follows:

  ApplicationConfig appConfig = (ApplicationConfig)
request.getAttribute(Globals.APPLICATION_KEY);
  ActionConfig actionConfig = appConfig.findActionConfig(/foo);
  String name = actionConfig.getName(); // Form bean name
  String attribute = actionConfig.getAttribute(); // Attribute to store under
  String scope = actionConfig.getScope(); // Scope to store in
  FormBeanConfig fbConfig = appConfig.findFormBeanConfig(name);

Now you've got all the metadata you need to dynamically instantiate the
appropriate form bean, and store it under the appropriate attribute in the
appropriate scope, without hard coding any of this stuff.

This is a snippet that Craig wrote up in response to an earlier post. 


Sri

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



RE: html:form WITHIN a logic:iterate tag

2003-02-27 Thread Sri Sankaran
Couple of things to note:

* The attribute value for a tag must either be *entirely* a
  literal or *entirely* a JSP expression.  In other words you can't
  have foo=bar%=baz.getXYZ()%
* The name attribute of an html:form is deprecated in Struts 1.1

I would recommend simply using your hidden variable and configuring a single action to 
process the user request.

Sri
-Original Message-
From: Ian Hunter [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 27, 2003 8:47 AM
To: Struts Users Mailing List
Subject: html:form WITHIN a logic:iterate tag


I looked through the archive before posting this, but there was just so much stuff in 
there about forms and select that my eyes glazed over and I gave up.

What I want to do is have a series of items from a database appear on a page, in a 
table, each one to a row.  At the end of the row, in one column, I want to have edit 
and delete buttons that refer to the specific item by primary key.  I can do this in 
other scripting languages by doing stuff like

% for variable = 1 to whatever %
form name=editItem%=variable.loopcounter% action=editpageinput type=submit 
value=Edit/form % next/loop/end/whatever pick your scripting language %

but with struts/JSP if I say

logic:iterate id=bulletin type=BulletinForm name=bulletinVector tr
td class=bulletindatejsp:getProperty name=bulletin 
property=datePosted//td
tdjsp:getProperty name=bulletin property=message//td
td valign=center align=right
html:form name=editBulletinForm%=bulletin.getId()%
action=editbulletin type=BulletinForm
html:hidden property=id value=%=bulletin.getId()%/
html:submit value=Edit/
/html:form
html:form name=deleteBulletinForm%=bulletin.getId()%
action=deletebulletin type=BulletinForm
html:hidden property=id value=%=bulletin.getId()%/
html:submit value=Delete/
/html:form
/td
/tr
trtd colspan=3hr width=100%//td/tr /logic:iterate

That doesn't fly because %=bulletin.getIds()% doesn't get expanded within the 
html:form tag.

SURELY someone has done this with struts.  Help?


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


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



RE: html:form WITHIN a logic:iterate tag

2003-02-27 Thread Sri Sankaran
Another option is to provide a radio button for each row and then only one Edit and 
one Delete button is required.

Sri

-Original Message-
From: Ian Hunter [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 27, 2003 9:40 AM
To: Struts Users Mailing List
Subject: Re: html:form WITHIN a logic:iterate tag


I was having formatting problems with the form tag (that I was able to get around 
with CSS style=margin-bottom: 0px;), and I was under the impression that having 
multiple forms on one page with the same name would make it ambiguous as to which form 
was being submitted, but it seems to be working.

Becky -- good suggestion re: anchor tag, I was just trying to figure out the best way 
to handle that and still use a button.  Never mind, though...

- Original Message -
From: Geeta Ramani [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, February 27, 2003 9:14 AM
Subject: Re: html:form WITHIN a logic:iterate tag


 Ian:

 Since you already have the info about the id in your hidden varaible
id, why
 do you also have to hav eit coded within the name of the form?  Iow, 
 why
can't
 you keep it simple, as in:

 html:form name=editBulletinForm action=editbulletin
type=BulletinForm
 html:hidden property=id name=bulletin property=id/
 html:submit value=Edit/
 /html:form

 Am I missing something?
 Geeta

 Ian Hunter wrote:

  I looked through the archive before posting this, but there was just 
  so
much
  stuff in there about forms and select that my eyes glazed over and I
gave
  up.
 
  What I want to do is have a series of items from a database appear 
  on a page, in a table, each one to a row.  At the end of the row, in 
  one
column,
  I want to have edit and delete buttons that refer to the specific 
  item
by
  primary key.  I can do this in other scripting languages by doing 
  stuff
like
 
  % for variable = 1 to whatever %
  form name=editItem%=variable.loopcounter% 
  action=editpageinput type=submit value=Edit/form % 
  next/loop/end/whatever pick your scripting language %
 
  but with struts/JSP if I say
 
  logic:iterate id=bulletin type=BulletinForm 
  name=bulletinVector tr
  td class=bulletindatejsp:getProperty name=bulletin 
  property=datePosted//td
  tdjsp:getProperty name=bulletin property=message//td
  td valign=center align=right
  html:form name=editBulletinForm%=bulletin.getId()%
  action=editbulletin type=BulletinForm
  html:hidden property=id value=%=bulletin.getId()%/
  html:submit value=Edit/
  /html:form
  html:form name=deleteBulletinForm%=bulletin.getId()%
  action=deletebulletin type=BulletinForm
  html:hidden property=id value=%=bulletin.getId()%/
  html:submit value=Delete/
  /html:form
  /td
  /tr
  trtd colspan=3hr width=100%//td/tr /logic:iterate
 
  That doesn't fly because %=bulletin.getIds()% doesn't get expanded
within
  the html:form tag.
 
  SURELY someone has done this with struts.  Help?
 
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


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



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


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



RE: Session Problems

2003-02-27 Thread Sri Sankaran
Can you summarize the form bean you are using for the first page?  What are its 
properties?  How is the Collection maintained?  How is the bean being created?

Sri

-Original Message-
From: JONATHAN PHILIP HOLLOWAY [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 27, 2003 12:01 PM
To: Struts Users Mailing List
Subject: Session Problems


Hi,

I'm curerntly having problems with sessions in Struts.

I have two JSP's both of which point to the same action.

In my first JSP I have a number of basic properties and a list of addresses as shown 
below:

*Name:  Bill Blah
*Age:  23

* Addresses (list)
23 Glamorgan Street  |  ER34 5RT  | Edit | Delete
13 Glamorgan Street  |  ER34 6TT  | Edit | Delete

The addresses are simply displayed using a logic:iterate tag.  

I also supply a link on this page to add an address in a seperate page, this JSP 
allows a user to add an address to the list in the first page. 
When the page is submitted it is simply added to in the actionform.

Once I've entered the new address using this second page I'm returned tot he first 
page where the new address is shown in the list of addresses. the problem I have is 
that when I add a second address it removes the first address and only the second 
address is shown here as:

* Addresses (list)
13 Glamorgan Street  |  ER34 6TT  | Edit | Delete

instead of 

* Addresses (list)
23 Glamorgan Street  |  ER34 5RT  | Edit | Delete
13 Glamorgan Street  |  ER34 6TT  | Edit | Delete

I'm assuming this is a problem with the session, could somebody please explain to me 
why this happening.  I have set the scope to session for both JSP pages and both JSP 
pages use the same action form so why is this happening?

Many thanks,
Jon.


*-*
 Jonathan Holloway,   
 Dept. Of Computer Science,   
 Aberystwyth University, 
 Ceredigion,  
 West Wales,  
 SY23 3DV.
  
 07968 902140 
 http://users.aber.ac.uk/jph8 
*-*

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



RE: multi page forms and action mappings

2003-02-27 Thread Sri Sankaran
Can you define an action mapping each for the various steps each of which (possibly) 
uses the same Action class.  This will allow you to specify distinct  input 
attributes.

Sri

-Original Message-
From: Ryan Kennedy [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 27, 2003 2:09 PM
To: Struts User (E-mail)
Subject: multi page forms and action mappings


I'm using Struts 1.1 with the Validator plugin on a form with multiple steps. Is there 
a way in the action mapping to have the input attribute of the action be based 
upon which step the request is coming from? If I specify input=step1, then form 
validation failures on step2 go back to the step1 page.

I didn't see anything in the Validator documentation or in the list archives, but I 
can't imagine this is a new problem.

Ryan Kennedy
Software Engineer
Jel, Inc.
tel. 916.447.5463 ext. 133
fax. 916.447.5465
web. www.jel.net

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


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



RE: Session Problems

2003-02-27 Thread Sri Sankaran
Is the addAddress() method of your PersonForm simply a cover for the ArrayList's add 
method?  In other words, is it simply doing addresses.add(object-to-add)?

Can you test the size of the list in the getter to see if data is indeed being 
clobbered?

Sri

-Original Message-
From: Jonathan [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 27, 2003 7:20 PM
To: 'Struts Users Mailing List'
Subject: RE: Session Problems


The form bean is simply a standard action form, when its created It simply does the 
following in the constructor

public PersonForm() {

addresses = new ArrayList(20);  
}

To get the addresses and iterate through them I simply have:

/**
 * Get Addresses
 */
public Object[] getAddresses() {
return (this.addresses.toArray()); 
}

When the second form is submitted the following method is called In the 
AddAddressAction via the lookup dispatch action:

public ActionForward addAddress(ActionMapping mapping, 
  ActionForm form, 
  HttpServletRequest request, 
  HttpServletResponse response) throws 
Exception {



//Check that the token is valid, if it is then reset it
if(isTokenValid(request)) {

System.out.println(Token is valid, resetting
the request);
resetToken(request);
}   
else {
System.out.println(Token is invalid);
}


//Get the action form
PersonForm personForm = (PersonForm)form;   

int addressId = (personForm.getNumberOfAddresses() + 1);

System.out.println(New id is  + generatedId);

//Create the question option from the buffered values
Address address = new Address (generatedId, new String(address));




//Add the question option to the action form
personForm.addAddress(address);  


//Save a token for this request to prevent automatic refreshing
//from submitting the request again
System.out.println(Saving the token);
saveToken(request);

 //Now the address has been added return to the add person page

return (mapping.findForward(addPerson));
}   

The address is added but the next time I try to add an address to old one Is 
overwritten..

Jon.



-Original Message-
From: Sri Sankaran [mailto:[EMAIL PROTECTED] 
Sent: 27 February 2003 18:54
To: Struts Users Mailing List
Subject: RE: Session Problems

Can you summarize the form bean you are using for the first page?  What are its 
properties?  How is the Collection maintained?  How is the bean being created?

Sri

-Original Message-
From: JONATHAN PHILIP HOLLOWAY [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 27, 2003 12:01 PM
To: Struts Users Mailing List
Subject: Session Problems


Hi,

I'm curerntly having problems with sessions in Struts.

I have two JSP's both of which point to the same action.

In my first JSP I have a number of basic properties and a list of addresses as shown 
below:

*Name:  Bill Blah
*Age:  23

* Addresses (list)
23 Glamorgan Street  |  ER34 5RT  | Edit | Delete
13 Glamorgan Street  |  ER34 6TT  | Edit | Delete

The addresses are simply displayed using a logic:iterate tag.  

I also supply a link on this page to add an address in a seperate page, this JSP 
allows a user to add an address to the list in the first page. 
When the page is submitted it is simply added to in the actionform.

Once I've entered the new address using this second page I'm returned tot he first 
page where the new address is shown in the list of addresses. the problem I have is 
that when I add a second address it removes the first address and only the second 
address is shown here as:

* Addresses (list)
13 Glamorgan Street  |  ER34 6TT  | Edit | Delete

instead of 

* Addresses (list)
23 Glamorgan Street  |  ER34 5RT  | Edit | Delete
13 Glamorgan Street  |  ER34 6TT  | Edit | Delete

I'm assuming this is a problem with the session, could somebody please explain to me 
why this happening.  I have set the scope to session for both JSP pages and both JSP 
pages use the same action form so why is this happening?

Many thanks,
Jon.


*-*
 Jonathan Holloway,   
 Dept. Of Computer Science,   
 Aberystwyth University, 
 Ceredigion

RE: populating textbox with bean property

2003-02-26 Thread Sri Sankaran
Just like you did with the bean:write.

html:text
  name=system
  property=name
  size=50/

Or am I missing something from your question?

Sri

-Original Message-
From: Chonalal, Anil (Contractor) [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 26, 2003 9:02 AM
To: '[EMAIL PROTECTED]'
Subject: populating textbox with bean property


Hi, I am new to struts and just trying to find out how to populate a textbox with a 
bean property, for example I have the following:

bean:write name=system property=name /

and would like the textbox value to be the name of the system:

tdhtml:text property= size=50//td

does anyone know how to do this?

Cheers.

Anil

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


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



RE: Action without FormBean

2003-02-26 Thread Sri Sankaran
Yes, you *must* have a name attribute if you are going to use an html:form.

Here's a snippet from the docs for html:form

If the name and type attributes are not specified, then the form bean will be located, 
and created if necessary, based on the form bean specification for the associated 
ActionMapping

By the way, this is the default operation since name and type are deprecated.

Sri

-Original Message-
From: Chen, Gin [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 26, 2003 1:05 PM
To: 'Struts Users Mailing List'
Subject: Action without FormBean


I set up the following:

action path=/myAction type=com.ui.action.MyAction parameter=userAction/

//myJsp.jsp

html:form action=/myAction
/html:form

Thats it nothing in between the form tags and I get exception can not access formbean 
null.

Well I dont want a formbean.
Is this not a legal form?

I do this all the time from anchor hrefs but this is the first time I've tried it in 
html:form style. I can't find anywhere in the docs that says that a html:form MUST 
have a related formbean. Is this just an implied rule?

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


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



[OT] DTD URL in web.xml

2003-02-26 Thread Sri Sankaran
Does the servlet container actually access the location specified for the DTD in the 
DOCTYPE statement of the web.xml?

Couple of reasons for this question:
* JRun 3.1 is having heartache with my app that I just ported 
  to Struts 1.1.  It throws a ServletException with the message
  External entity not found: http://java.sun.com/dtd/web-app_2_3.dtd;.
* This seems un-necessary and circuitous.  One would think the 
  container would maintain a copy of the DTD

The odd thing is that it works for the Struts 1.0 web.xml.

Sri



RE: [OT] DTD URL in web.xml

2003-02-26 Thread Sri Sankaran
Well, I just had a D'Oh-moment!

While upgrading to Struts 1.1, I had upgraded my web.xml gleefully using the example 
apps as inspiration.  Therein lies the rub -- the example apps assume that you are on 
a Servlet 2.3 container.  However JRun 3.1 is not; it is downright prehistoric.

(I have since (re)updated my web.xml to use the old DTD)

Now I have a different problem.  The ServletException message is:

Could not instantiate org.apache.struts.action.ActionServlet
[1]java.lang.NullPointerException

I was hoping that updating my application code base would be all I had to do;  I guess 
not :(

Sri
P.S.
I *have* seen the earlier posts on this subject such as 
http://marc.theaimsgroup.com/?l=struts-userm=103643076609041w=2

-Original Message-
From: Sri Sankaran 
Sent: Wednesday, February 26, 2003 3:17 PM
To: Struts-User
Subject: [OT] DTD URL in web.xml


Does the servlet container actually access the location specified for the DTD in the 
DOCTYPE statement of the web.xml?

Couple of reasons for this question:
* JRun 3.1 is having heartache with my app that I just ported 
  to Struts 1.1.  It throws a ServletException with the message
  External entity not found: http://java.sun.com/dtd/web-app_2_3.dtd;.
* This seems un-necessary and circuitous.  One would think the 
  container would maintain a copy of the DTD

The odd thing is that it works for the Struts 1.0 web.xml.

Sri


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



RE: Action input

2003-02-26 Thread Sri Sankaran
If your intent is to re-use the same action class you can simply create an action 
mapping for each usage.  The only thing that has to be unique is the path.  Each 
action mapping can, of course, define it's own input attribute; effectively providing 
the dynamism you seek.

Sri

-Original Message-
From: harish krishnaswamy [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 26, 2003 8:30 PM
To: [EMAIL PROTECTED]
Subject: Action input


Is there a way of providing the action input in a
dynamic fashion? In other words, if I had the same
action being submitted from multiple pages/forms, how
would I go back to the page/form I came from?

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/

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


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



RE: Nested:Checkbox

2003-02-26 Thread Sri Sankaran
Nothing obvious jumps out.  However, have you tried the updated nested jar that Arron 
made available a few days ago?  See 
http://marc.theaimsgroup.com/?l=struts-userm=104600916205585w=2.

Sri

-Original Message-
From: Chen, Gin [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 26, 2003 8:11 PM
To: 'Struts Users Mailing List'
Subject: Nested:Checkbox


1.1b3 Bug?
I have 
nested:iterate id=assoc property=associates
nested:checkbox name=assoc property=selected/
/nested:checkbox
  /nested:iterate

Where associates is the collection in my formbean with each bean in something like: 
//interface only

AssociateVO
  private boolean selected;
  public boolean getSelected();
  public void setSelected( boolean selected );

And I keep getting this.
[ServletException in:/jsps/selectAssociates.jsp] No getter method for property 
associates[0].selected of bean assoc' I had it as isSelected but I thought the error 
was related to that so I changed it to get.

Yet when I simply do:
nested:iterate id=assoc property=associates
html:checkbox name=assoc property=selected/
/html:checkbox
  /nested:iterate

It works just fine.

Is something wrong with my nested setup?
I've used the before in older versions so I don't think thats what it is but its 
getting late and I might be blind. _

-Tim


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


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



RE: [Q] can I use ArrayList type for http:multibox property ?

2003-02-26 Thread Sri Sankaran
Quoting the docs

..Renders an HTML input element of type checkbox, whose checked status is 
initialized based on whether the specified value matches one of the elements of the 
underlying property's array of current values...

I'd guess it must be an Object[].  I have used it only with String[]s.

Sri

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 26, 2003 5:40 PM
To: [EMAIL PROTECTED]
Subject: [Q] can I use ArrayList type for http:multibox property ?


Hello,

what types allowed for http:multibox  property ?

Best Regards.
Michael.


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


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



RE: [Q] what is right way to display list of checkbox(es) in two or three columns?

2003-02-25 Thread Sri Sankaran
Management of layout must be handled by yourself.  The tags don't get involved in this 
process.  If using Struts tags you might have to resort to scriptlets in conjunction 
with the iteration index to manage your layout.  

Or if scriptlets are anathema, you can use JSTL or Struts-EL.  Still you'll have to 
manage the layout.

Sri

P.S.

RE: Multibox -- It is handy if you have to display several checkboxes in your 
iteration.

RE: logic:iterate -- It is one way to loop through your collection

Neither does anything for the layout.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 25, 2003 3:14 AM
To: [EMAIL PROTECTED]
Subject: [Q] what is right way to display list of checkbox(es) in two or three columns?


Hello,

I have a list that needs to be displayed in two or three columns something like that 
format :

tr
td /td
td /td
/tr
tr
td /td
td /td
/tr
tr
td /td
/tr

is html:multibox tag and logic.iterate only one way?
is any other ways to do it?

tnx

Best Regards.
Michael.


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


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



RE: Reporting an Exception message in a JSP.

2003-02-25 Thread Sri Sankaran
You can still use the fact that argument to the constructor of an ActionError is the 
key to resource.  You could set up your app resources with

some.key=Could not proceed because of {0} error

Then you can create the ActionError as

  new ActionError(some.key, exception.getMessage());

Sri

-Original Message-
From: ROSSEL Olivier [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 25, 2003 10:03 AM
To: '[EMAIL PROTECTED]'
Subject: Reporting an Exception message in a JSP.


I want to display the error message of an SQLException
in my JSP.

At first, I tried to set an ActionError with this message and to display it via 
html:errors/. It does not work because ActionError accepts as an input string the 
key of a property.

So what's the nicest way to show to the user the error message that I get from my 
SQLException ?


---cut here---


This e-mail is intended only for the above addressee. It may contain privileged 
information. If you are not the addressee you must not copy, distribute, disclose or 
use any of the information in it. If you have received it in error please delete it 
and immediately notify the sender. Security Notice: all e-mail, sent to or from this 
address, may be accessed by someone other than the recipient, for system management 
and security reasons. This access is controlled under Regulation of Investigatory 
Powers Act 2000, Lawful Business Practises.

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


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



RE: multibox?

2003-02-25 Thread Sri Sankaran
Have you looked at html-multibox.jsp that is in the struts-exercise-taglib application 
that ships with Struts?

Sri

-Original Message-
From: Jobe, Mike [EESUS] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 25, 2003 10:46 AM
To: '[EMAIL PROTECTED]'
Subject: multibox?


Can anyone send me an example of a Multibox by any chance?

Thanks,
Mike

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



RE: Searching the Archive

2003-02-25 Thread Sri Sankaran
Are you asking how to make the default selection of an html:select the first option? 
 As you have pointed out you can set the property attribute of the html:select equal 
the value of the first option.

Alternatively, *I think* if you leave the property blank, HTML rules indicate that the 
first item be shown.  Note that in the case of a html:select with multiple 
selections, this *may not* result in any item being selected; in this case your only 
choice to set the property attribute of the html:select.

Sorry if I completely misunderstood your question.

Sri

-Original Message-
From: Ray Madigan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 25, 2003 2:22 PM
To: Struts Users Mailing List
Subject: Searching the Archive


I was searching the Struts Archive and got the following error:

javax.servlet.ServletException: Error initializing Velocity: 
java.lang.ArrayIndexOutOfBoundsException
at org.apache.velocity.servlet.VelocityServlet.initVelocity(VelocityServlet.jav
a:236)

I was trying to locate some help in html:select.
I only want to select the first element - It seems like I need an object with a 
property that will be used to match the property used in the options tag.  This seems 
like a bunch of work to simply select the first element of the options list.

Thanks
Ray Madigan


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


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



RE: Searching the Archive

2003-02-25 Thread Sri Sankaran
Using your example,

html:select property=foo
   html:options collection=bar property=name/ 
/html:select

The short answer is that the value that will be shown selected is the value from the 
collection that matches the value returned by getFoo() on the form-bean.  So if foo is 
'apple' and the collection contains 'apple' then that item will be shown as selected.  

What I was saying was if want to always have the first item in the list shown as 
selected you *could* try to leave the value of foo blank.  The sure-fire way is to set 
the value of foo to be the value of the first item in the collection.

I should also point out that the usage you have shown above doesn't seem to be 
correct.  I have always used it as follows

html:select property=foo
   html:options collection=bar 
   property=name
  labelProperty=label/ 
/html:select

If you refer to the docs for html:options it reads (for the collection attribute):

Name of the JSP bean (in some scope) which is itself a Collection of other beans, each 
of which has properties named by the property and labelProperty attributes that 
are used to retrieve the value and label for each option, respectively. (RT EXPR) 

Hope that gets you going in the right direction.

Sri


-Original Message-
From: Ray Madigan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 25, 2003 2:49 PM
To: Struts Users Mailing List
Subject: RE: Searching the Archive


I thought html:select worked as follows:

property is the name of the request parameter where the answer is placed. name is the 
name of a bean that is consulted to set the selection value is the property of the 
bean identified by name to get the comparison

if I use
html:select property=foo
   html:options collection=bar property=name/ /html:select

will create a select with the values from the bean in attribute bar with value getName 
( )

But select comes up with no selection?

I just want the first item.  I don't want to have to set an attribute with the first 
element of the collection in my action class.

I will, but - i don't wanna!



-Original Message-
From: Sri Sankaran [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 11:36 AM
To: Struts Users Mailing List
Subject: RE: Searching the Archive


Are you asking how to make the default selection of an html:select the first option? 
 As you have pointed out you can set the property attribute of the html:select equal 
the value of the first option.

Alternatively, *I think* if you leave the property blank, HTML rules indicate that the 
first item be shown.  Note that in the case of a html:select with multiple 
selections, this *may not* result in any item being selected; in this case your only 
choice to set the property attribute of the html:select.

Sorry if I completely misunderstood your question.

Sri

-Original Message-
From: Ray Madigan [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 2:22 PM
To: Struts Users Mailing List
Subject: Searching the Archive


I was searching the Struts Archive and got the following error:

javax.servlet.ServletException: Error initializing Velocity: 
java.lang.ArrayIndexOutOfBoundsException
at org.apache.velocity.servlet.VelocityServlet.initVelocity(VelocityServlet.jav
a:236)

I was trying to locate some help in html:select.
I only want to select the first element - It seems like I need an object with a 
property that will be used to match the property used in the options tag.  This seems 
like a bunch of work to simply select the first element of the options list.

Thanks
Ray Madigan


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


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


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


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



RE: HELP - SOS - Single Form Bean Problem

2003-02-24 Thread Sri Sankaran
A possible cause of this symptom is that you are referring to the bean by a different 
name in the various locations.  When using a form-bean 'fruit', Struts looks in the 
request/session for an object with key 'fruit'.  If you want the same instance to be 
reused it has to be referred to as 'fruit'.
 
Sri  

-Original Message-
From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 24, 2003 6:34 AM
To: Struts Users Mailing List
Subject: HELP - SOS - Single Form Bean Problem


Has anyone used a single form bean for multiple jsps?
I am trying to use it and have set form scope as session in my action declaration in 
config-struts file
worst part is, for every jsp itz creating a new form bean ?
 
whatz the catch, can anyone help me in this ?
 
Regards
Chetan
___
|  
| The trouble with being punctual 
|  is that nobody's there to appreciate it.
| 
| 
|___


 



RE: html:select multiple problems

2003-02-24 Thread Sri Sankaran

The example referenced by Jörg Maurer is available in Struts 1.0.2 as well.  It 
includes the following

  tr
th align=rightMultiple Select Allowed:/th
td align=left
  html:select property=multipleSelect size=10 multiple=true
html:options name=multipleValues labelName=multipleValues/
  /html:select
/td
  /tr

which is identical to what you are trying to accomplish.  

As you are probably aware, the property multipleSelect here (ids in your case) 
holds the selected values while multipleValues  is the collection of available 
options.  However the snippet you have sent in one of your emails has

html:select property=ids multiple=true
html:options property=ids/
/html:select

Looking at your form bean definition I think what you are trying to do is display 
Zero, One but have the values 0 and 1 submitted.  What you have to do is to 
set up LabelValueBeans with the necessary name and value.  I *think* LabelValueBeans 
are part of Struts 1.0.2; if not simply create a JavaBean with name and value 
properties and make a collection of them.  Look at the docs for html:options on how 
to use it.

Also, ensure that your html:select is inside a html:form

Sri

-Original Message-
From: Ian Hunter [mailto:[EMAIL PROTECTED] 
Sent: Sunday, February 23, 2003 11:03 PM
To: Struts Users Mailing List
Subject: Re: html:select multiple problems


OK.  Let me narrow down my question somewhat.

In Struts 1.0.2, what method in an ActionForm is called after an input JSP containing 
an html:select multiple=true property=ids tag, assuming the property ids is a 
String[]?

Does it look like

public void setIds(Object[] ids)
or
public void setIds(String[] ids)
or
public void setIds(ArrayList ids)
or what?

Seems like no matter what setter method I provide, it doesn't get called.

- Original Message -
From: Ian Hunter [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Sunday, February 23, 2003 9:20 PM
Subject: html:select multiple problems


 RGH

 I would give one of my legs right now for a working example of an 
 html:select multiple=true usage that populates an array in an 
 ActionForm.

 Help?


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



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


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



RE: html:select multiple problems

2003-02-24 Thread Sri Sankaran

 So I have to create Collection-type classes to hold the 
 values so that the select tag can populate them?  That 
 doesn't make sense, when with a non-multiple select I can 
 just refer to a single String property.  

First let me explain the need for a LabelValueBean.  I will then tell you why (it 
looks like) you don't need them.
Typically, each option in a selection list requires a pair of values.  One to display 
(a.k.a.. the label) -- Zero, One, etc, in your case -- and one that is the actual 
(codified) value -- 0, 1, etc in your case.  How can to achieve this with a scalar?  
Hence the need for a LabelValueBean.  For example:

  new LabelValueBean(Zero, 0)

You'd build your collection will a bunch of such LabelValueBeans.  Then your 
html:options would look like

  html:options
   collection=theCollectionOfLabelValueBeans
labelProperty=label
 property=value/

You can step around creating LabelValueBeans if you don't need to hide the actual 
value that is submitted.  In other words if you want the users to see 0, 1, etc 
instead of Zero, One, etc.  In fact, that is what you see in the example 
application.

I looked at the 
 example and I still don't have an answer to my original
 question:  What method(s) in the ActionForm class get called 
 to set the values from a multiple select box, if the JSP 
 looks like this:
 
 html:form name=attendanceForm action=postattendance 
 type=AttendanceForm html:select property=ids 
 html:option value=0Zero/html:option html:option 
 value=1One/html:option html:option 
 value=2Two/html:option /html:select /html:form
 
 Surely html:select can handle hard coded options?  I just 
 can't figure out which setter method profile would get 
 called here,

The value being set is the collection of ids, so Struts will look for a setIds.

 and the example code
 (TestBean.java) has SO many different getter/setter things 
 going on that I can't figure which goes with what from the JSP.

While testing I have found it useful to create a new application (using struts-blank) 
and use the code from struts exercises as a starting point.  For example, take the 
html-select.jsp and remove everything except the case in which you are interested.  
Similarly edit TestBean.

Hope that helps

Sri

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



RE: [ANN?] New Nested Tags -or- Nesters, lend me your containers...

2003-02-24 Thread Sri Sankaran
Alrighty, I know how to make it crash (don't fret Arron, I don't believe 'tis a 
nested issue)

When I went a-sleuthing I noticed that the usage in my real app is slightly different 
from the two nested:root sections in my demo; instead, it is like this:

nested:root name=x
  nested:write 
property=something-from-x/
/nested:root

html:form action=foo
  nested:write 
property=something-from-the-form-bean/
/html:form

When I plugged modified my demo app to use this format lo-and-behold it blew chunks.

That's when I noticed that I was using an html:form and not a nested:form which is 
what I needed for the stuff inside the form.  I changed it to use nested:form and 
now both the demo and the real app are humming mellifluously.  Woohoo!

So, in summary, the above format will not work.  Haven't looked at the innards of 
nested:write to see how it interprets things when it is inside an html:form.

Sri

 -Original Message-
 From: Arron Bates [mailto:[EMAIL PROTECTED] 
 Sent: Sunday, February 23, 2003 6:39 PM
 To: Struts Users Mailing List
 Subject: RE: [ANN?] New Nested Tags -or- Nesters, lend me 
 your containers... 
 
 
 You had me going there for a bit. Even made another test war 
 to do exactly what your snippet prescribed, but as long as 
 it's working.
 
 Hope the other app turns out to be not my issue too... :P 
 Waitin for the word...
 
 Arron.
 
 
  Never mind...
  
  I had updated the WEB-INF/lib of ap-1 and tested ap-2
  
  My test app works with the new nested jar in place.  However I am 
  still
 having problems with the real application; I will take a 
 closer look at it 'morrow and keep you posted.
  
  Sri
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



RE: [ANN?] New Nested Tags -or- Nesters, lend me your containers...

2003-02-23 Thread Sri Sankaran
Arron:
  Still having the problem reported in bug # 16916.  Following is the test 
configuration:

OS: Windows XP Professional
Container: Tomcat 4.1.18
Struts: 1.1b3 + km-nested-v2.jar

  You can confirm with a simple application in support of the JSP:

% taglib uri=/tags/struts-nested prefix=nested%

nested:root name=fruit
  nested:write property=color/
/nested:root

nested:root name=person
  nested:write property=age/
/nested:root

-- End of JSP ---

The bean represented by fruit has the properties
  - name
  - color
while a person has the properties
  - name
  - age

Please let me know if you need a war of this app.  Didn't want to flood you with more 
than what you need.

Sri

-Original Message-
From: Arron Bates [mailto:[EMAIL PROTECTED] 
Sent: Sunday, February 23, 2003 9:06 AM
To: [EMAIL PROTECTED]
Subject: [ANN?] New Nested Tags -or- Nesters, lend me your containers... 


Avid Nesters,
(you know who you are,
no need to lie to yourself)


Tomcat 4.1.18 is now on the radar!...

The nested tags internals have been re-written primarily to fix the problem with them 
not working in the new tomcat 4.1.18 jasper engine. It also allows them to be a little 
more flexible (can define other tags in the nesting), but more on that later...
  
For now, I need to know that they work on all your current nested apps which are 
working. I've run my own tests, but according to feedback, some of you guys have a 
different take on using the nested tags than I do, so I need your help.

It's also important for those of you using other containers, possibly never intending 
to use tomcat, to try them out, as it is intended to get merged into the Struts main 
line as soon as possible to help out those with the can only use released product 
woes, or just trying to get onto a faster JSP engine that's free (gotta love the 
economics, but the new jasper engine does move. The recursive tree app example now 
hums along akin to the speed of Resin. sweet).


To get the new classes, there's a jar at...

http://www.keyboardmonkey.com/downloads/km-nested-v2.jar

  ...just throw it into the WEB-INF/lib directory, your classloader should pick them 
up before struts.jar. If not, delete the tags from struts.jar and give it another bash.


Anyways, I'm really seeking your feedback on this update (email direct or to the list, 
I'm not fussed). The source is in the Jar if you want to simply say my code's badly 
formatted (which it isn't, but anyways :P )...

Thanks again, and happy nesting.


Arron.




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


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



RE: [ANN?] New Nested Tags -or- Nesters, lend me your containers...

2003-02-23 Thread Sri Sankaran
Never mind...

I had updated the WEB-INF/lib of ap-1 and tested ap-2

My test app works with the new nested jar in place.  However I am still having 
problems with the real application; I will take a closer look at it 'morrow and keep 
you posted.

Sri

-Original Message-
From: Sri Sankaran 
Sent: Sunday, February 23, 2003 10:05 AM
To: Struts Users Mailing List
Subject: RE: [ANN?] New Nested Tags -or- Nesters, lend me your containers... 


Arron:
  Still having the problem reported in bug # 16916.  Following is the test 
configuration:

OS: Windows XP Professional
Container: Tomcat 4.1.18
Struts: 1.1b3 + km-nested-v2.jar

  You can confirm with a simple application in support of the JSP:

%@ taglib uri=/tags/struts-nested prefix=nested%

nested:root name=fruit
  nested:write property=color/
/nested:root

nested:root name=person
  nested:write property=age/
/nested:root

-- End of JSP ---

The bean represented by fruit has the properties
  - name
  - color
while a person has the properties
  - name
  - age

Please let me know if you need a war of this app.  Didn't want to flood you with more 
than what you need.

Sri

-Original Message-
From: Arron Bates [mailto:[EMAIL PROTECTED] 
Sent: Sunday, February 23, 2003 9:06 AM
To: [EMAIL PROTECTED]
Subject: [ANN?] New Nested Tags -or- Nesters, lend me your containers... 


Avid Nesters,
(you know who you are,
no need to lie to yourself)


Tomcat 4.1.18 is now on the radar!...

The nested tags internals have been re-written primarily to fix the problem with them 
not working in the new tomcat 4.1.18 jasper engine. It also allows them to be a little 
more flexible (can define other tags in the nesting), but more on that later...
  
For now, I need to know that they work on all your current nested apps which are 
working. I've run my own tests, but according to feedback, some of you guys have a 
different take on using the nested tags than I do, so I need your help.

It's also important for those of you using other containers, possibly never intending 
to use tomcat, to try them out, as it is intended to get merged into the Struts main 
line as soon as possible to help out those with the can only use released product 
woes, or just trying to get onto a faster JSP engine that's free (gotta love the 
economics, but the new jasper engine does move. The recursive tree app example now 
hums along akin to the speed of Resin. sweet).


To get the new classes, there's a jar at...

http://www.keyboardmonkey.com/downloads/km-nested-v2.jar

  ...just throw it into the WEB-INF/lib directory, your classloader should pick them 
up before struts.jar. If not, delete the tags from struts.jar and give it another bash.


Anyways, I'm really seeking your feedback on this update (email direct or to the list, 
I'm not fussed). The source is in the Jar if you want to simply say my code's badly 
formatted (which it isn't, but anyways :P )...

Thanks again, and happy nesting.


Arron.




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


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


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



RE: [OT] What's your IQ?

2003-02-23 Thread Sri Sankaran
Too early for *beer*?  

Is that possible?

-Original Message-
From: Ray Madigan [mailto:[EMAIL PROTECTED] 
Sent: Sunday, February 23, 2003 11:17 AM
To: Struts Users Mailing List
Subject: RE: [OT] What's your IQ?


I'll go for the Microsoft bashing - it is only 8:16 - a little too early for a beer.  

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED] Behalf Of James Mitchell
Sent: Sunday, February 23, 2003 8:13 AM
To: 'Struts Users Mailing List'
Subject: RE: [OT] What's your IQ?


Alexandre, I'm also a Veteran of the United States Army.

I don't think anyone here appreciates these kinds of comments on a list that has 
ABSOLUTELY NOTHING to do with Politics.

So, let's all get back to more serious topics, like bashing Microsoft or chatting 
about Beer :)


--
James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org/

Beer is the reason we get up each afternoon.
-- Ray McNeill 



 -Original Message-
 From: Michael C. Lee Jr. [mailto:[EMAIL PROTECTED]
 Sent: Sunday, February 23, 2003 1:15 AM
 To: Struts Users Mailing List
 Subject: Re: [OT] What's your IQ?
 
 
 What are you doing on a struts email list? There are a lot of
 evil American
 contributors to struts. Go launder some terrorist money and leave the
 anti-American/Capitalist politics off the list. I'm guessing 
 your on this
 list because you work at an evil company that wants to use 
 struts and make
 profits. Hypocrite.
 Michael Lee
 Software Architect
 Former: 12B Combat Engineer, United States Army
 
 
 - Original Message -
 From: alexj [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Saturday, February 22, 2003 5:34 PM
 Subject: Re: [OT] What's your IQ?
 
 
  What can I said, American people think they
  know all the truth about how to manage the world.
 
  (it's not only my opinion)
 
  The world is really not an industry like IBM, I think
  some american guys have to think about that.
 
  If a coutry didn't believe in the pseudo american dream, you 
  really nedd to attak them ?
 
  In my (little one) country we didn't only care about how to make 
  benefits but we care how to people from this country can take profit 
  about that.
 
  I'm a young man (22 years old) from Switzerland but US
 people need to
  care about how people whi lived in this countries.
 
  Fuck Wars !!!
  Fuck guys who only care about theire own profits !!
 
  --
  Alexandre Jaquet
 
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.456 / Virus Database: 256 - Release Date: 2/18/2003
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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


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


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



RE: html select problem, help me please

2003-02-23 Thread Sri Sankaran
What is the error?

-Original Message-
From: Buics [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 21, 2003 10:08 PM
To: Struts Users Mailing List
Subject: html select problem, help me please


I have a collection named code1data, in logic:iterate it works fine, but when I apply 
this to html:select it goes wrong. Anybody could help me in html:select tag.

here's my script ..

TABLEtbody
logic:iterate id=mydata collection=%=code1data %
tr
  td nbsp;/td
  td
   nbsp;bean:write name=mydata property=cd/
  /td
  td 
   nbsp;bean:write name=mydata property=descrip/
  /td
 /tr
 /logic:iterate
 /tbody
/TABLE


html:select property=classification size=1
html:options collection=%=code1data %  property=cd 
labelProperty=descrip/ /html:select






--
It's good to be slow and steady; but it's better to be fast and reliable.



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



RE: bean:message

2003-02-21 Thread Sri Sankaran
http://jakarta.apache.org/struts/userGuide/struts-bean.html

-Original Message-
From: Cohan, Sean [mailto:[EMAIL PROTECTED]] 
Sent: Friday, February 21, 2003 7:54 AM
To: 'Struts Users Mailing List'
Subject: RE: bean:message


Thanks guys.  I wasn't aware of the formatKey property.  And I'm not aware of what 
docs to look at to find out more.  I looked in Taglib Documentation and scanned the 
JavaDocs.  If there's an obvious place where I should have found this, please 
enlighten me.  I'd like to know more. 

Thanks again.

-Original Message-
From: Sri Sankaran [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 20, 2003 1:52 PM
To: Struts Users Mailing List
Subject: RE: bean:message


Because I am competing for the Rube Goldberg award:)

Thanks for reminding me to read the docs.

Sri

 -Original Message-
 From: James Mitchell [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 20, 2003 1:50 PM
 To: 'Struts Users Mailing List'
 Subject: RE: bean:message
 
 
 Why don't you just use formatKey?
 
 bean:write name=hwa 
 property=placedOnHWATs 
formatKey=date.digit.format/
 
 
 
 --
 James Mitchell
 Software Engineer/Struts Evangelist http://www.open-tools.org/
 
 The man who does not read good books has no advantage over
 the man who cannot read them.
   - Mark Twain (1835-1910)
 
 
 
  -Original Message-
  From: Sri Sankaran [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, February 20, 2003 1:38 PM
  To: Struts Users Mailing List
  Subject: RE: bean:message
  
  
  You can't nest as you have shown.  Here's an alternative:
  
  bean:define id=foo
bean:message key=date.digit.format/
  /bean:define
  
  bean:write 
name=hwa
property=placedOnHWATs
  format=%=foo%/
  
  Sri
  
   -Original Message-
   From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, February 20, 2003 1:39 PM
   To: Struts (E-mail)
   Subject: bean:message
   
   
   Is it possible to nest a bean:message tag within a bean:write 
   tag?  I want to get the format property out of the 
   application.resources file, but I get an
   jsp.error.unterminated.tag error.

   Here's how I'm trying to do it:

   bean:write name=hwa property=placedOnHWATs bean:message 
   key=date.digit.format/ /

   and in the resource file I have:

   date.digit.format=format=MM/dd/


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

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

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


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




RE: ActionForm fields blank

2003-02-21 Thread Sri Sankaran
It is recommended that you use only String type for your form-bean properties.  You 
can then translate them into your business objects.  

For one thing, using the actual data type of the field -- such as int -- would make 
difficult the process of validation and reproduction of erroneous user entry back to 
the user.

Sri
-Original Message-
From: Victor Batista [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, February 20, 2003 10:03 PM
To: [EMAIL PROTECTED]
Subject: ActionForm fields blank


Hello,
When I display forms, how can I leave blank, fields which correspond to int, 
long,...types?
The form always show the initialization value for the variable, but how can I 
avoid this and force the form fields to be empty?
Thanks in advance,
Victor Batista


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


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




RE: Bean Style

2003-02-21 Thread Sri Sankaran
Form bean fields should be maintained as Strings.  Remember that the sole purpose of 
the form-bean is to help with the presentation.  You can transfer the data to its 
actual type in your business object beans.  See the response from Craig to a related 
question at http://marc.theaimsgroup.com/?l=struts-userm=104490884625879w=2.

Hope that helps

Sri

-Original Message-
From: Richard Raquepo [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, February 20, 2003 9:15 PM
To: Struts Users Mailing List
Subject: Bean Style


Hi!

Is there a general rule for creating view beans...

I mean should i use Integer instead of int? If so, Why?

Thanks.

-richard

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




RE: Where are my ActionForm's changes?

2003-02-21 Thread Sri Sankaran
Get rid of the 'name' and 'type' attributes from the html:form.  The reasons?

* they are deprecated.  See
  http://jakarta.apache.org/struts/userGuide/struts-html.html#form
* they are not necessary
* in your case the action mapping is referring to the form-bean
  by the name 'myForm' and the html:form's 'name' attribute is
  indicating that a form named 'updateOrderForm' be used.  These
  will result in two instances of the same class.  Not what you
  want

Hope that helps

Sri

-Original Message-
From: MarwanSalam [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, February 20, 2003 3:58 PM
To: [EMAIL PROTECTED]
Subject: Re: Where are my ActionForm's changes?


Hi Sri,

You got it right.

This is the code from my Action class that checks for the changes and 
forwards the request to the same page again(I tried to forward to a 
view-only page(showorderdetails.jsp) for testing purposes and the 
changes still were not reflected).


UpdateOrdersAction.java
-
UpdateOrderForm updateOrderForm = (UpdateOrderForm) form;

if (updateOrder.equalsIgnoreCase(action))
{
 List parametersList = updateOrderForm.getParameterList();

 int size = parametersList.size();

 for (int i = 0; i  size; i++)
 {
  OrderDetailModel model = ((UpdateOrderForm) form).getOrderDetail(i);
  logger.debug(Form model is:  + model);
 }

 Iterator iter = parametersList.iterator();
 if (logger.isDebugEnabled())
 {
  while (iter.hasNext())
  {
  OrderDetailModel orderDetail = (OrderDetailModel)iter.next();
  logger.debug(orderDetail.toString());
  }
 }

 logger.debug( Forwarding to 'edit' page);
 NDC.pop();
 return (mapping.findForward(edit)); 
// this will take you back to the same page
}



Here is an excerpt from updateorder.jsp:
-
html:form action=updateOrder name=updateOrderForm 
type=mypackage.UpdateOrderForm scope=session
html:hidden property=action value=updateOrder / logic:iterate id=parameter 
name=updateOrderForm 
property=parameterList
tr
tdbean:write name=parameter property=orderLineNumber //td tdbean:write 
name=parameter property=itemName //td tdbean:write name=parameter 
property=quantityOrdered //td tdhtml:text name=parameter 
property=quantityCancelled 
indexed=true size=3 maxlength=3//td
tdhtml:text name=parameter property=status indexed=true 
size=3 maxlength=3//td
/tr
/logic:iterate
html:submit/
/html:form

I appreciate your help.

Marwan


--- In [EMAIL PROTECTED], Sri Sankaran [EMAIL PROTECTED] 
wrote:
 What I have gleaned so far, is
 
 * the user is viewing JSP-1
 * the user updates the data and submits (invoking the action
   mapping you have shown (path=/updateOrder)
 
 Questions:
 * Are you detecting the updated data value(s) in your action?
 * Where is the user being directed?
   If showorderdetails.jsp or updateorder.jsp what is mapping for 
   those pages?
 * Where are you noticing problems?
 
 Remember that if you go to new page and it uses a form-bean of the
same class but referred to by a different name, a new instance will 
be used.
 
 Sri
 
 -Original Message-
 From: MarwanSalam [EMAIL PROTECTED] [mailto:marwansalam@y...]
 Sent: Thursday, February 20, 2003 1:55 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Where are my ActionForm's changes?
 
 
 Thanks Sri for the quick reply.
 
 The first of two assumptions you mentioned below are not true but I
 am not sure about the third one: forwarding to an action that is 
re- initializing the form.
 
 My ActionForm.reset() is as follows:
 
 public void reset(ActionMapping mapping, HttpServletRequest
request) {
   action = null;
 }
 
 And here is my action-mapping:
 
 action path=/updateOrder
 type=MyAction
 name=myForm
 scope=session
 validate=false
 input=/updateorder.jsp
   forward name=update path=/showorderdetails.jsp/
   forward name=edit path=/updateorder.jsp/
 /action
 
 
 The reset method does not have any code that initializes the form
 parameters so I don't know why this is happening.
 
 Marwan
 
 
 --- In [EMAIL PROTECTED], Sri Sankaran [EMAIL PROTECTED]
 wrote:
  I'm not sure I understand completely.  Are you returning to the
 same page after the form is submitted?  What are you doing in the
 reset() and Action?
  
  That notwithstanding, here are some possibilities:
  
  * The text fields are not within a form
  * You are re-directing to the page and not forwarding
  * You are forwarding (or redirecting) to an action that is
re-initializing the form.
  
  Will need to see the necessary action mappings too.
  
  Sri
  
   -Original Message-
   From: MarwanSalam [EMAIL PROTECTED] [mailto:marwansalam@y...]
   Sent: Thursday, February 20, 2003 1:09 PM
   To: [EMAIL PROTECTED]
   Subject: Where are my ActionForm's changes?
   
   
   Hi,
   
   I am using the login:iterate tag to display a collection of
   objects. The objects have attributes that some can
   be edited by the user. After the user changes

RE: Where are my ActionForm's changes?

2003-02-21 Thread Sri Sankaran
Are the debug statements in the action showing the updated values?

Can you check the source of the generated HTML and ensure that the name of the form 
matches the value of the 'name' attribute of your action mapping?

Sri

-Original Message-
From: MarwanSalam [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Friday, February 21, 2003 11:22 AM
To: [EMAIL PROTECTED]
Subject: Re: Where are my ActionForm's changes?


I removed name and type attributes from my html:form tag. I 
also changed the name of the form in action-mappings but still the 
same problem. Is there a bug in Struts that the nested tags don't 
work with objects?

Thanks,
Marwan



--- In [EMAIL PROTECTED], Sri Sankaran [EMAIL PROTECTED] 
wrote:
 Get rid of the 'name' and 'type' attributes from the html:form.
The reasons?
 
 * they are deprecated.  See
   http://jakarta.apache.org/struts/userGuide/struts-html.html#form
 * they are not necessary
 * in your case the action mapping is referring to the form-bean
   by the name 'myForm' and the html:form's 'name' attribute is
   indicating that a form named 'updateOrderForm' be used.  These
   will result in two instances of the same class.  Not what you
   want
 
 Hope that helps
 
 Sri
 
 -Original Message-
 From: MarwanSalam [EMAIL PROTECTED] [mailto:marwansalam@y...]
 Sent: Thursday, February 20, 2003 3:58 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Where are my ActionForm's changes?
 
 
 Hi Sri,
 
 You got it right.
 
 This is the code from my Action class that checks for the changes
and 
 forwards the request to the same page again(I tried to forward to a
 view-only page(showorderdetails.jsp) for testing purposes and the 
 changes still were not reflected).
 
 
 UpdateOrdersAction.java
 -
 UpdateOrderForm updateOrderForm = (UpdateOrderForm) form;
 
 if (updateOrder.equalsIgnoreCase(action))
 {
  List parametersList = updateOrderForm.getParameterList();
 
  int size = parametersList.size();
 
  for (int i = 0; i  size; i++)
  {
   OrderDetailModel model = ((UpdateOrderForm) form).getOrderDetail
(i);
   logger.debug(Form model is:  + model);
  }
 
  Iterator iter = parametersList.iterator();
  if (logger.isDebugEnabled())
  {
   while (iter.hasNext())
   {
   OrderDetailModel orderDetail = (OrderDetailModel)iter.next();
   logger.debug(orderDetail.toString());
   }
  }
 
  logger.debug( Forwarding to 'edit' page);
  NDC.pop();
  return (mapping.findForward(edit));
 // this will take you back to the same page
 }
 
 
 
 Here is an excerpt from updateorder.jsp:
 -
 html:form action=updateOrder name=updateOrderForm
 type=mypackage.UpdateOrderForm scope=session
 html:hidden property=action value=updateOrder / 
logic:iterate id=parameter name=updateOrderForm 
 property=parameterList
 tr
 tdbean:write name=parameter property=orderLineNumber //td
tdbean:write name=parameter property=itemName //td 
tdbean:write name=parameter property=quantityOrdered //td 
tdhtml:text name=parameter property=quantityCancelled 
 indexed=true size=3 maxlength=3//td
 tdhtml:text name=parameter property=status indexed=true
 size=3 maxlength=3//td
 /tr
 /logic:iterate
 html:submit/
 /html:form
 
 I appreciate your help.
 
 Marwan
 
 
 --- In [EMAIL PROTECTED], Sri Sankaran [EMAIL PROTECTED]
 wrote:
  What I have gleaned so far, is
  
  * the user is viewing JSP-1
  * the user updates the data and submits (invoking the action
mapping you have shown (path=/updateOrder)
  
  Questions:
  * Are you detecting the updated data value(s) in your action?
  * Where is the user being directed?
If showorderdetails.jsp or updateorder.jsp what is mapping for 
those pages?
  * Where are you noticing problems?
  
  Remember that if you go to new page and it uses a form-bean of the
 same class but referred to by a different name, a new instance will
 be used.
  
  Sri
  
  -Original Message-
  From: MarwanSalam [EMAIL PROTECTED] [mailto:marwansalam@y...]
  Sent: Thursday, February 20, 2003 1:55 PM
  To: [EMAIL PROTECTED]
  Subject: Re: Where are my ActionForm's changes?
  
  
  Thanks Sri for the quick reply.
  
  The first of two assumptions you mentioned below are not true but
I
  am not sure about the third one: forwarding to an action that is
 re- initializing the form.
  
  My ActionForm.reset() is as follows:
  
  public void reset(ActionMapping mapping, HttpServletRequest
 request) {
action = null;
  }
  
  And here is my action-mapping:
  
  action path=/updateOrder
  type=MyAction
  name=myForm
  scope=session
  validate=false
  input=/updateorder.jsp
forward name=update 
path=/showorderdetails.jsp/
forward name=edit path=/updateorder.jsp/
  /action
  
  
  The reset method does not have any code that initializes the form 
  parameters so I don't know why this is happening.
  
  Marwan
  
  
  --- In [EMAIL PROTECTED], Sri Sankaran [EMAIL PROTECTED]
  wrote

RE: Where are my ActionForm's changes?

2003-02-21 Thread Sri Sankaran
Sorry; nothing jumps out from what you have sent.

Sri

-Original Message-
From: Marwan [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Friday, February 21, 2003 12:08 PM
To: [EMAIL PROTECTED]
Subject: Re: Where are my ActionForm's changes?


Hi Sri,

Below is the generated HTML source. It indicates the correct form 
name updateOrderForm.

The debug statements are all over the place and they do not indicate 
any updated value from my form. That's the weired thing. Nothing is 
changed inside the form and nothing is changed in the Action either.

form name=updateOrderForm method=post 
action=/supplyWeb/updateOrder.do
input type=hidden name=action value=updateOrder

Thanks,
Marwan


--- In [EMAIL PROTECTED], Sri Sankaran [EMAIL PROTECTED] 
wrote:
 Are the debug statements in the action showing the updated values?
 
 Can you check the source of the generated HTML and ensure that the
name of the form matches the value of the 'name' attribute of your 
action mapping?
 
 Sri
 
 -Original Message-
 From: MarwanSalam [EMAIL PROTECTED] [mailto:marwansalam@y...]
 Sent: Friday, February 21, 2003 11:22 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Where are my ActionForm's changes?
 
 
 I removed name and type attributes from my html:form tag. I
 also changed the name of the form in action-mappings but still 
the 
 same problem. Is there a bug in Struts that the nested tags don't
 work with objects?
 
 Thanks,
 Marwan
 
 
 
 --- In [EMAIL PROTECTED], Sri Sankaran [EMAIL PROTECTED]
 wrote:
  Get rid of the 'name' and 'type' attributes from the html:form.
 The reasons?
  
  * they are deprecated.  See
http://jakarta.apache.org/struts/userGuide/struts-html.html#form
  * they are not necessary
  * in your case the action mapping is referring to the form-bean
by the name 'myForm' and the html:form's 'name' attribute is
indicating that a form named 'updateOrderForm' be used.  These
will result in two instances of the same class.  Not what you
want
  
  Hope that helps
  
  Sri
  
  -Original Message-
  From: MarwanSalam [EMAIL PROTECTED] [mailto:marwansalam@y...]
  Sent: Thursday, February 20, 2003 3:58 PM
  To: [EMAIL PROTECTED]
  Subject: Re: Where are my ActionForm's changes?
  
  
  Hi Sri,
  
  You got it right.
  
  This is the code from my Action class that checks for the changes
 and
  forwards the request to the same page again(I tried to forward to
a
  view-only page(showorderdetails.jsp) for testing purposes and the
  changes still were not reflected).
  
  
  UpdateOrdersAction.java
  -
  UpdateOrderForm updateOrderForm = (UpdateOrderForm) form;
  
  if (updateOrder.equalsIgnoreCase(action))
  {
   List parametersList = updateOrderForm.getParameterList();
  
   int size = parametersList.size();
  
   for (int i = 0; i  size; i++)
   {
OrderDetailModel model = ((UpdateOrderForm) form).getOrderDetail
 (i);
logger.debug(Form model is:  + model);
   }
  
   Iterator iter = parametersList.iterator();
   if (logger.isDebugEnabled())
   {
while (iter.hasNext())
{
OrderDetailModel orderDetail = (OrderDetailModel)iter.next();
logger.debug(orderDetail.toString());
}
   }
  
   logger.debug( Forwarding to 'edit' page);
   NDC.pop();
   return (mapping.findForward(edit));
  // this will take you back to the same page
  }
  
  
  
  Here is an excerpt from updateorder.jsp:
  -
  html:form action=updateOrder name=updateOrderForm 
  type=mypackage.UpdateOrderForm scope=session html:hidden 
  property=action value=updateOrder /
 logic:iterate id=parameter name=updateOrderForm
  property=parameterList
  tr
  tdbean:write name=parameter
property=orderLineNumber //td
 tdbean:write name=parameter property=itemName //td
 tdbean:write name=parameter property=quantityOrdered //td 
 tdhtml:text name=parameter property=quantityCancelled 
  indexed=true size=3 maxlength=3//td
  tdhtml:text name=parameter property=status indexed=true 
  size=3 maxlength=3//td /tr
  /logic:iterate
  html:submit/
  /html:form
  
  I appreciate your help.
  
  Marwan
  
  
  --- In [EMAIL PROTECTED], Sri Sankaran [EMAIL PROTECTED]
  wrote:
   What I have gleaned so far, is
   
   * the user is viewing JSP-1
   * the user updates the data and submits (invoking the action
 mapping you have shown (path=/updateOrder)
   
   Questions:
   * Are you detecting the updated data value(s) in your action?
   * Where is the user being directed?
 If showorderdetails.jsp or updateorder.jsp what is mapping
for 
 those pages?
   * Where are you noticing problems?
   
   Remember that if you go to new page and it uses a form-bean of
the
  same class but referred to by a different name, a new instance
will
  be used.
   
   Sri
   
   -Original Message-
   From: MarwanSalam [EMAIL PROTECTED] [mailto:marwansalam@y...]
   Sent: Thursday, February 20, 2003 1:55 PM
   To: [EMAIL PROTECTED]
   Subject: Re: Where are my

RE: Understanding the Iterate Tag

2003-02-21 Thread Sri Sankaran
Specify the 'type' attribute for the logic:iterate.  The value should be the fully 
qualified class name of each 'result' object.

Sri

-Original Message-
From: Brian Hart [mailto:[EMAIL PROTECTED]] 
Sent: Friday, February 21, 2003 3:31 PM
To: [EMAIL PROTECTED]
Subject: Re: Understanding the Iterate Tag


Your Example still Failed.  I received a no 'getter' method found for property 
Description.  As suggested I found the user guide and the logic below seems to be the 
proper equilvalent syntax of the scriptlet loop sample.  Does anyone else have further 
insight on the appropriate way to return a set of JavaBeans?  I am using JavaBeans to 
represent the Model and often want to return an array of them.  I don't use the 
ActionForm beans for this purpose as best practices indicate that you should not use 
the actionform as your model which makes perfect sense.  I was just confused as to the 
most efficient mechanism for passing the model back to the JSP page to render.  
Currently most of my business logic is design to bringback Javabean[] arrays when sets 
of data (not SQL Data, but various search engine results being consolidated into one 
searchResultBean)  are involved

%
SearchResultBean[] c = (SearchResultBean[]) session.getAttribute(results);

for (int x = 0; x  c.length; x++){
  out.println(c[x].getDescription());
  
}
%

logic:iterate collection=results id=result
   bean:write name=result property=description/ /logic:iterate

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




[OT] Welcome back Eddie (Was RE: ASP == STRUTS)

2003-02-20 Thread Sri Sankaran
Eddie Bush...now *that's* a name I hadn't heard in a while.  Welcome back...

Sri

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, February 20, 2003 10:32 AM
To: Struts Users Mailing List
Subject: Re: ASP == STRUTS


You're not likely to have much success with doing that -- unless you 
have a Servlet container running behind IIS.  Apache Tomcat (a servlet 
container) can be run under MS IIS using a special driver -- and I 
believe that is supposed to work quite well.  I would imagine other 
vendors of servlet containers also provide a mechanism by which you 
could run their servlet container under IIS -- seeing as how M$ is used 
a lot (but less than Apache! :-P)

I can't vouch for how the ASP stuff would work in conjunction with your 
JSP stuff, but my guess is that they are not something that would play 
well together.  You couldn't manipulate one with the other very well I 
wouldn't think.  The one way around this I can think of would be through 
standard request/response mechanisms -- where you would perhaps send 
data, via a HTTP request, to one from the other -- everything is 
compatible at that level.

Priyank Johri wrote:

Hello,

Has anyone experimented with Struts on some application server, but 
ASPs on IIS ?

Priyank

-- 
Eddie Bush




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


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




RE: Form bean null

2003-02-20 Thread Sri Sankaran
Usually an indication that your setup is incorrect -- no name attribute for a mapping 
that uses html:form etc.

Please take a look at the archives for previous references to the problem for hints.  
You can search using various tools.  Take your pick of :

http://marc.theaimsgroup.com/?l=struts-user
http://nagoya.apache.org/eyebrowse/SearchList?[EMAIL PROTECTED]
http://www.mail-archive.com/struts-user%40jakarta.apache.org/

Sri

-Original Message-
From: Curley, John [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, February 20, 2003 9:32 AM
To: '[EMAIL PROTECTED]'
Subject: Form bean null



Hi, 

I'm new to Struts.  I am trying to use an exsiting jsp file in a new project and 
received the following error when trying to display it:

[ServletException in:/jsps/addAssociate.jsp] Cannot retrieve definition for form bean 
null' 

Anyone know where I should look to fix this?  General info on what makes this occur?

Thanks,
John

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


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




RE: Help on MultiBox !

2003-02-20 Thread Sri Sankaran
Have you tried experimenting with html-multibox.jsp that's in the 
struts-exercise-taglib application that ships with Struts?

Sri

-Original Message-
From: Nandakumar Subramaniam [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, February 20, 2003 4:35 AM
To: 'Struts Users Mailing List'
Subject: Help on MultiBox !



Hi,

I am stuck with using multi box in my jsp page.
I tried using the example provided in Ted Husted site. But when i try it, I get null 
pointer exceptions related to getHashMap() ... Can any one please help with some 
sample code on how to correctly implement it.

Thanks,
S.Nandakumar.

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


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




RE: Where are my ActionForm's changes?

2003-02-20 Thread Sri Sankaran
I'm not sure I understand completely.  Are you returning to the same page after the 
form is submitted?  What are you doing in the reset() and Action?

That notwithstanding, here are some possibilities:

* The text fields are not within a form
* You are re-directing to the page and not forwarding
* You are forwarding (or redirecting) to an action that is
  re-initializing the form.

Will need to see the necessary action mappings too.

Sri

 -Original Message-
 From: MarwanSalam [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, February 20, 2003 1:09 PM
 To: [EMAIL PROTECTED]
 Subject: Where are my ActionForm's changes?
 
 
 Hi,
 
 I am using the login:iterate tag to display a collection of 
 objects. The objects have attributes that some can
 be edited by the user. After the user changes some values and submits 
 back to the Action class, the values that were changed in the JSP are 
 not reflected in the form. I know that because I tried to iterate 
 through the collection and displayed the values retained from both 
 the ActionForm.reset() and from the Action class. No changes are 
 retained; only the original values. I am using Struts 1.1-b3.
 
 Here is my ActionForm:
 
 private List parameterList = new ArrayList();
 public List getParameterList()
 {
   return parameterList;
 }
 
 public void setParameterList(List parameterList)
 {
   this.parameterList = parameterList;
 }
 
 public MyObject getMyObject(int index)
 {
   return (MyObject) parameterList.get(index);
 }
 
 What's wrong?
 
 Marwan
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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




RE: html:hidden

2003-02-20 Thread Sri Sankaran
The hidden field is just a

input type=hidden...

So, do what you'd normally do with one of those.  A field doesn't voluntarily collect 
data; JavaScript is the agent that can be used to populate the field.

It's still a form-bean field and so is accessible on the server.

Did I completely miss your question?

Sri

 -Original Message-
 From: Ray Madigan [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, February 20, 2003 11:07 AM
 To: Struts Users Mailing List
 Subject: html:hidden
 
 
 In the documentation for html:hidden the property attribute 
 is the name of the bean property that loads the value of the 
 hidden field on the form. What i would like to know is how do 
 u go the other way.  I want the hidden field to collect data 
 through javascript, and then be available  through the bean 
 in the action.  How do i set up the html:hidden to work in this mode?
 
 Thanks in advance
 Ray Madigan
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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




RE: bean:message

2003-02-20 Thread Sri Sankaran
You can't nest as you have shown.  Here's an alternative:

bean:define id=foo
  bean:message key=date.digit.format/
/bean:define

bean:write 
  name=hwa
  property=placedOnHWATs
format=%=foo%/

Sri

 -Original Message-
 From: Cohan, Sean [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, February 20, 2003 1:39 PM
 To: Struts (E-mail)
 Subject: bean:message
 
 
 Is it possible to nest a bean:message tag within a 
 bean:write tag?  I want to get the format property out of 
 the application.resources file, but I get an  
 jsp.error.unterminated.tag error.
  
 Here's how I'm trying to do it:
  
 bean:write name=hwa property=placedOnHWATs bean:message 
 key=date.digit.format/ /
  
 and in the resource file I have:
  
 date.digit.format=format=MM/dd/
  
  
 Thanks.
 

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




  1   2   3   4   5   >