Q: Validator - query properties

2002-10-04 Thread gernot . pfingstl

If a html input field is required I use the validator plugin and put 
...depends=required... in my validation.xml file. This works great!
In the jsp pages I mark required fields with a *, until now I
hardcode the * in my jsps, so if I change a field to required I had
to put the * in the jsp and to change the validation.xml.
My intend is to write a jsp tag, which parses the validation.xml
and put the * automatically, if the filed is required.

e.g. bean:write key=xyvalidator:required key=xyhtml:text
property=xy

Had I to parse the validation.xml manually or is there a api
call to query validation properties? Due to the fact that dependencies could
depend on the locale, it would be nice to have a api and not to parse it
manually.

Thanks, Gernot

-- 
+++ GMX - Mail, Messaging  more  http://www.gmx.net +++
NEU: Mit GMX ins Internet. Günstige DSL-  Modem/ISDN-Tarife!


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




Problem with Populate utility

2002-10-04 Thread Sriram Hariharan

I've a form and a corresponding value object (vo). Things work fine when I 
populate the form with value object (vo).

BeanUtils.populate(form, BeanUtils.describe(vo));

But it doesnt work the other way around

BeanUtils.populate(vo, BeanUtils.describe(form));

and throws an exception- java.lang.IllegalArgumentException: argument type 
mismatch.

Any thoughts?

Thanks, SRIRAM...

_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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




Re: Tiles and Internationaliation

2002-10-04 Thread Cedric Dumoulin


   Yes it is.
   On the inserted page you will need to do:
tiles:importAttribute name=title /

bean:message name=title/

   Cedric





Vincent PROSPER wrote:

 Hi,
 
 I am quite new to tiles stuff (only 1 and an half day experience, 
switching
 from Struts templates...)
 
 For the moment, I am just trying to insert internationalized messages in
 tiles and the only way I found to do this is:
 
   tiles:insert definition=portal.mainMenu
   tiles:put name=title
   valuebean:message key=help.stateProv.name//value
   /tiles:put
   /tiles:insert
 
 which doesn't satisfy me... I would like to be able to write instead:
 
   tiles:insert definition=portal.mainMenu
   tiles:put name=title value=help.stateProv.name/
   /tiles:insert
 
 Could you please tell me if this is possible?
 
 Thanks in advance for your answer.
 
 Vince
 
 
 
 --
 To unsubscribe, e-mail: 
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]
 
 
 
 



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




BeanUtils getPropertyDescriptor error

2002-10-04 Thread Daniel Haynes

Hi,

Having gone live with our webapp (and changed the logging) an error stated
to appear in our logs. However the app is functioning fine. Is this error a
problem ? The error occurs with submitions from jsps which contain radio
buttons. In our action class we extract the request parameters to establish
the state(s) of the radio buttons to process the request.

Is all this ok or am I missing something here ?

(We are using Struts 1.1)


2002-10-03 17:03:35,765 DEBUG [BeanUtils]
BeanUtils.populate(com.rule.approve.ApproveForm@c18e99,
{detailsList[5].qualityID=[Ljava.lang.String;@fba68,
detailsList[10].qualityID=[Ljava.lang.String;@970991,
detailsList[6].qualityID=[Ljava.lang.String;@f53870,
detailsList[11].qualityID=[Ljava.lang.String;@4c4ac9,
detailsList[7].qualityID=[Ljava.lang.String;@c1e333,
detailsList[8].qualityID=[Ljava.lang.String;@2b3574,
detailsList[9].qualityID=[Ljava.lang.String;@c27081,
action=[Ljava.lang.String;@685be9,
detailsList[0].qualityID=[Ljava.lang.String;@6a1fbe,
detailsList[1].qualityID=[Ljava.lang.String;@4a0fe1,
detailsList[2].qualityID=[Ljava.lang.String;@589d3d,
detailsList[3].qualityID=[Ljava.lang.String;@bb1bc4,
detailsList[4].qualityID=[Ljava.lang.String;@1bfefb})
2002-10-03 17:03:35,765 DEBUG [BeanUtils]
name='detailsList[5].qualityID', value.class='[Ljava.lang.String;',
value='[Ljava.lang.String;@fba68'
2002-10-03 17:03:35,781 DEBUG [BeanUtils] getPropertyDescriptor
java.lang.NoSuchMethodException: Unknown property 'detailsList'
at
org.apache.commons.beanutils.PropertyUtils.getIndexedProperty(PropertyUtils.
java:416)
at
org.apache.commons.beanutils.PropertyUtils.getIndexedProperty(PropertyUtils.
java:363)
at
org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(PropertyUti
ls.java:770)
at
org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:501)
at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:952)
at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j
ava:795)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:244)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at com.rule.common.filters.TimerFilter.doFilter(TimerFilter.java:36)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:213)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:528)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at

Re: Tiles and Internationaliation

2002-10-04 Thread Cedric Dumoulin


  Yes it is.
  On the inserted page you will need to do:
tiles:importAttribute name=title /

bean:message name=title/

  Cedric





Vincent PROSPER wrote:

Hi,

I am quite new to tiles stuff (only 1 and an half day experience, switching
from Struts templates...)

For the moment, I am just trying to insert internationalized messages in
tiles and the only way I found to do this is:

   tiles:insert definition=portal.mainMenu
   tiles:put name=title
   valuebean:message key=help.stateProv.name//value
   /tiles:put
   /tiles:insert

which doesn't satisfy me... I would like to be able to write instead:

   tiles:insert definition=portal.mainMenu
   tiles:put name=title value=help.stateProv.name/
   /tiles:insert

Could you please tell me if this is possible?

Thanks in advance for your answer.

Vince



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


  



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




Re: about ArrayList and the BeanUtils.populate() exception ?

2002-10-04 Thread Martin Grebac

Hi,
 could you send pieces of your code? It still doesn't work for me ;O(
Thanks,
  Martin

Vincent Berruchon wrote:

 No exception if you replace your ArrayList by a String[] (for the 
 properties used by the select tag).


 Vincent Berruchon wrote:

 I get a BeanUtils.populate() exception when a form with a multiple 
 select is posted (with struts 1.0.2, Martin reported this Bug a few 
 days ago - bugzilla bug id #: 13075) :
 javax.servlet.ServletException: BeanUtils.populate
 at 
 org.apache.struts.util.RequestUtils.populate(RequestUtils.java:774)
 ...

 I don't know if it can have a link, but I'm not sure to understand 
 this warning about the select tag ( in 
 webapps/struts-documentation/struts-html.html#select):
 -
 WARNING: In order to correctly recognize cases where no selection at 
 all is made, the ActionForm bean associated with this form must 
 include a statement resetting the scalar property to a default value 
 (if multiple is not set), or the array property to zero length (if 
 multiple is set) in the reset() method.
 -

 So in my formBean, in the reset() method I've put:
  this.selectedValues = new ArrayList(); 
 instead of
 this.selectedValues = null; 

 But I'm not sure it really respect the warning??
 What mean a zero length ArrayList:
  not null I suppose...
  should I use the other constructor :  new ArrayList(0) ?

 This is the first point.
 But in fact, all that got no influence on this populate exception 
 with multiple select.
 Is there another way to do with a multiple select?

 Thanks
 Vincent

 Martin Grebac wrote:

 Hi,
 so here is the Bugid:


13075

 . May I expect something's gonna happen with it, or will it die in 
 the deeps of the bug database ;O))

 Martin


 Martin Grebac wrote:

 Yes, I built everything anew, and also restarted server. I forgot 
 to mention I'm using Struts 1.0.2 (but I think it's not relevant). 
 Since Mohan has almost the same problem and everything we are using 
 seems to be OK for you, and also according to the documentation it 
 should work, I assume this is a bug. I'm gonna enter it into 
 bugzilla, but it's rather serious for me, because I don't have any 
 workaround for that.
   Martin

 [EMAIL PROTECTED] wrote:

 What you have there looks right, so silly question (maybe): have 
 you reloaded the web application after recompiling the 
 ModulePathForm class?

 - Thorsten

  

 -Original Message-
 From: Martin Grebac [mailto:[EMAIL PROTECTED]]
 Sent: 27 September 2002 13:32
 To: Struts Users Mailing List
 Subject: Re: again ArrayList and javax.servlet.ServletException:
 BeanUtils .populate exception


  No, it doesn't work also. I get the same exception everytime.

  I want to have the possibility to select multiple folders, so I 
 did what you suggested: added property selectedFolders of type 
 String[], so I added this code to my ModulePathForm:

private String[] selectedFolders;

public String getSelectedFolders(int index) {
return this.selectedFolders[index];
}
  public String[] getSelectedFolders() {
return this.selectedFolders;
}
  public void setSelectedFolders(int index, String 
 selectedFolders) {
this.selectedFolders[index] = selectedFolders;
}
  public void setSelectedFolders(String[] selectedFolders) {
this.selectedFolders = selectedFolders;
}

 and the jsp page looks the same as you wrote:

   html:select property=selectedFolders multiple=true
  html:options property=folders/
   /html:select

 I really don't know where is the problem. Really appreciate any 
 other hints.

 Thanks,
  Martin



 [EMAIL PROTECTED] wrote:

  

 Hi,

 I think the problem is that your html:select... and 




 html:options... tags both reference the folders property. 
 Judging by your code, the html:options... tag is doing what you 
 expect i.e. getting the list of folders the user can select from. 
 However, your html:select... tag is telling Struts to try to 
 assign the selected folder back to the form bean by calling 
 setFolders (albeit indirectly via BeanUtils.populate), but 
 setFolders is expecting an ArrayList rather than  a single item 
 from a list which your submit is sending back as a String.
  

 I suspect what you need to do is introduce an additional 




 property called e.g. selectedFolder into your form bean. Your jsp 
 would then look like this:
  

  html:select property=selectedFolder multiple=true
html:options property=folders/
  /html:select

 ...and you will need corresponding setter and getter methods 




 in the bean. You can then also have getSelectedFolder() return a 
 default value.
  

 Regards,
 Thorsten



  

 Hi,
 I'm looking for any hint or advice. I've got code like this on 
 my jsp page:

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

 property folders is a property of my ModulePathForm bean:

 /* ModulePathForm.java */
 public class ModulePathForm extends ActionForm{

global variables

2002-10-04 Thread Madhavi Thottempudi

Hi!
Where can I set global variables and get them back in Struts. Because I see 
that Action beans extending struts Action bean doesn't get servlet in their 
perform method.

public ActionForward perform(ActionMapping mapping,
 ActionForm form,
 HttpServletRequest request,
 HttpServletResponse response)

Any suggestions???

Thanks
-M


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




RE: Tiles and Internationaliation

2002-10-04 Thread Holman, Cal

You can use the second definition and in your template use the following -
but you are still stuck with a bean:message tag - except it is in the
template not the definition.  

tiles:importAttribute/
titlebean:message name=title scope=page //title

Cal 

http://www.calandva.com/ 

-Original Message-
From: Vincent PROSPER [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 03, 2002 15:22
To: [EMAIL PROTECTED]
Subject: Re: Tiles and Internationaliation

Hi,

I am quite new to tiles stuff (only 1 and an half day experience, switching
from Struts templates...)

For the moment, I am just trying to insert internationalized messages in
tiles and the only way I found to do this is:

tiles:insert definition=portal.mainMenu
tiles:put name=title
valuebean:message
key=help.stateProv.name//value
/tiles:put
/tiles:insert

which doesn't satisfy me... I would like to be able to write instead:

tiles:insert definition=portal.mainMenu
tiles:put name=title value=help.stateProv.name/
/tiles:insert

Could you please tell me if this is possible?

Thanks in advance for your answer.

Vince



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


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




CheckBox and Boolean[] Array - Incorrect Values Submitted When CheckBox is unchecked

2002-10-04 Thread Charlesworth, Chico


Hi,

I'm trying to iterate through a Boolean Array using logic:iterate and then
display these as check boxes. This works fine, but when submitting the form
and resending the Boolean Array back to the Action class, only the values
that are true are returned.

In the struts documentation it says:
WARNING: In order to correctly recognize unchecked checkboxes, the
ActionForm bean associated with this form must include a statement setting
the corresponding boolean property to false in the reset() method.

But this only implies for a single property.

Is there a workaround or a fix for this?

My jsp code:

logic:iterate id=flag name=myForm property=flags
logic:equal name= flag  value=true
input type=checkbox id=flags name=flags value=on
checked=checked
/logic:equal
logic:notEqual name= flag  value=true
input type=checkbox id=flags name=flags value=on
/logic:notEqual
/logic:iterate

Cheers,
Chico.

-- 
The content of this e-mail is confidential, may contain privileged material
and is intended solely for the recipient(s) named above. If you receive this
in error, please notify Software AG immediately and delete this e-mail.

Software AG (UK) Limited
Registered in England  Wales 1310740
Registered Office: Hudson House, Hudson Way,
Pride Park, Derby DE24 8HS

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




Re: global variables-update

2002-10-04 Thread Madhavi Thottempudi

I mean setting application scope variables - using setServletContext or 
something like that and getting them back. Any ideas??

Thanks again
-M

At 11:34 04/10/2002 +0100, you wrote:
Hi!
Where can I set global variables and get them back in Struts. Because I 
see that Action beans extending struts Action bean doesn't get servlet in 
their perform method.

public ActionForward perform(ActionMapping mapping,
 ActionForm form,
 HttpServletRequest request,
 HttpServletResponse response)

Any suggestions???

Thanks
-M


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


Madhavi T
E-Learning Systems Group
CARET, University of Cambridge
16 Mill Lane
Cambridge CB2 1SB

Tel: +44 (0) 1223 765382
[EMAIL PROTECTED]





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




Q: Validator - query properties

2002-10-04 Thread gernot . pfingstl

If a html input field is required I use the validator plugin and put 
...depends=required... in my validation.xml file. This works great!
In the jsp pages I mark required fields with a *, until now I
hardcode the * in my jsps, so if I change a field to required I had
to put the * in the jsp and to change the validation.xml.
My intend is to write a jsp tag, which parses the validation.xml
and put the * automatically, if the filed is required.

e.g. bean:write key=xyvalidator:required key=xyhtml:text
property=xy

Had I to parse the validation.xml manually or is there a api
call to query validation properties? Due to the fact that dependencies could
depend on the locale, it would be nice to have a api and not to parse it
manually.

Thanks, Gernot

-- 
+++ GMX - Mail, Messaging  more  http://www.gmx.net +++
NEU: Mit GMX ins Internet. Günstige DSL-  Modem/ISDN-Tarife!


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




RE: Design Problem: Multiple Object Update

2002-10-04 Thread Galbreath, Mark

a.  upgrade to 1.1b2
b.  don't bypass the ActionForm

-Original Message-
From: Mark Silva [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 03, 2002 8:40 PM
To: Struts Users Mailing List
Subject: Design Problem: Multiple Object Update


How would you strut gurus approach this in a Struts oriented way 

( I am currently using Struts 1.0.2)

I have a list of objects on the screen, and i want to be able to make mass
updates to.  For example, i have a list of users, with Various Attributes
(name, isActive checkbox, etc). 

I want the user to be able to make edits on the whole screen, and then
submit it.  What is the best way to keep the data together in terms of
naming of the fields.  currently I precede each value with the userId and an
underscore.

User = Mark Silva
userId = 101

name field -- 101_name
isActiveField -- 101_isActive


then to get all the data, i have to parse through the parameter list in the
request, and piece this all together.  Notice I am bypassing the Form
object.

Is there a Struts way to do this?

thanks,
Mark

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

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




RE: global variables-update

2002-10-04 Thread Divakar Satyanarayan

Madhavi ,

  You can look at the users guide available at the struts site. You can make
use of request.setAttribute( ) for setting up global variables.
   Refer 2.2 JavaBeans and Scope of user doc 

http://jakarta.apache.org/struts/doc-1.0.2/userGuide/building_model.html
Regards,
Divakar


 -Original Message-
 From: Madhavi Thottempudi [SMTP:[EMAIL PROTECTED]]
 Sent: Friday, October 04, 2002 4:46 PM
 To:   Struts Users Mailing List
 Subject:  Re: global variables-update
 
 I mean setting application scope variables - using setServletContext or 
 something like that and getting them back. Any ideas??
 
 Thanks again
 -M
 
 At 11:34 04/10/2002 +0100, you wrote:
 Hi!
 Where can I set global variables and get them back in Struts. Because I 
 see that Action beans extending struts Action bean doesn't get servlet in
 
 their perform method.
 
 public ActionForward perform(ActionMapping mapping,
  ActionForm form,
  HttpServletRequest request,
  HttpServletResponse response)
 
 Any suggestions???
 
 Thanks
 -M
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 Madhavi T
 E-Learning Systems Group
 CARET, University of Cambridge
 16 Mill Lane
 Cambridge CB2 1SB
 
 Tel: +44 (0) 1223 765382
 [EMAIL PROTECTED]
 
 
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
DISCLAIMER: Information contained and transmitted by this E-MAIL is
proprietary to Mascot Systems Limited and is intended for use only by the
individual or entity to which it is addressed, and may contain information
that is privileged, confidential or exempt from disclosure under applicable
law. If this is a forwarded message, the content of this E-MAIL may not have
been sent with the authority of the Company. If you are not the intended
recipient, an agent of the intended recipient or a person responsible for
delivering the information to the named recipient, you are notified that any
use, distribution, transmission, printing, copying or dissemination of this
information in any way or in any manner is strictly prohibited. If you have
received this communication in error, please delete this mail  notify us
immediately at [EMAIL PROTECTED] Before opening attachments,
please scan for viruses. 



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




RE: JavaBean question (OOPS)

2002-10-04 Thread Galbreath, Mark

Please cite a more precise reference to Hans' book.

-Original Message-
From: Dan Tran [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 03, 2002 7:17 PM
To: Struts Users Mailing List
Subject: Re: JavaBean question (OOPS)


Thank you for the example,   for now I will try to
use it .

However, I also happen to see a example in Hans Bergsten 's JSP pages,

which is similar to what I have but using the standard
java Date class which only implements toString() and
valueOf(String ...)

Does it mean, JSP hardwire the translation with some specific primative type
and some specifict classes?

-Dan
- Original Message -
From: Brandon Goodin [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, October 03, 2002 3:54 PM
Subject: RE: JavaBean question (OOPS)


 the secon setter was a copy and past it should be

 private String stringTimestamp;

 public void setStringTimestamp(String stringTimestamp){
 this.stringTimestamp = stringTimestamp;
 }

 -Original Message-
 From: Brandon Goodin [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 03, 2002 4:52 PM
 To: Struts Users Mailing List
 Subject: RE: JavaBean question


 Since i don't completely know your bean... i'll make a guess at it.

 It would probably look something like this:

 public class MyTimeStamp  {

 private Timestamp timestamp;

 public MyTimeStamp(){
 }

 public void setTimestamp(Timestamp timestamp){
 this.timestamp = timestamp;
 }

 public Timestamp getTimestamp(){
 return timestamp;
 }

 public void setTimestamp(Timestamp timestamp){
 this.timestamp = timestamp;
 }

 public String getStringTimestamp(){
 return timestamp.toString()
 }
 }

 then use:

 html:text property=myTimestamp.stringTimestamp 

 Brandon Goodin
 Phase Web and Multimedia
 P(406)862-2245
 F(406)862-0354
 http://www.phase.ws

 -Original Message-
 From: Dan Tran [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 03, 2002 4:29 PM
 To: Struts Users Mailing List
 Subject: Re: JavaBean question


 Hi Brandon,  thank you for  the quick reply

 What I try to achieve is somehow move a String
 presetantation of a object between JSP page and a JavaClass

 As far as I know how, if my java class provides set/get
 method for primitive types, JSP can move the data for me

 However, my java class get/set property method uses a object define by me
 (ex  MyTimestamp)

 The question here is What kind of method(s) in the MyTimestamp do I need
to
 implement  inorder for JSP to move the string presentation of my
MyTimestamp
 to the JSP form?

 Hope I am able to be specific this time.

 -Dan

 - Original Message -
 From: Brandon Goodin [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Thursday, October 03, 2002 3:16 PM
 Subject: RE: JavaBean question


  If you are asking how you would get the value of B from the A bean.
 The
  you could use the nested property reference dot notation like:
html:text
  property=a.b.someProperty. Otherwise, you need to be more specific.
 What
  are you trying to accomplish?
 
  Brandon Goodin
  Phase Web and Multimedia
  P(406)862-2245
  F(406)862-0354
  http://www.phase.ws
 
  -Original Message-
  From: Dan Tran [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, October 03, 2002 4:04 PM
  To: Struts Users Mailing List
  Subject: JavaBean question
 
 
  Hi I have a java bean A that has a property which is defined as a nother
  java object B.
 
 
  class A {
  private B _b;
 
  public A() {}
  public B getB() { return _b ;}
  public void setB( B b) { _b = b ; }
  }
 
  How can I implement B so that it can be transfered from bean to a form
  like
 
  html:text property=b 
 
 
  Any suggestion?
 
  -Dan
 
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 

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



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



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


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

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




RE: global variables-update

2002-10-04 Thread Madhavi Thottempudi

Hi Divakar!
Thanks for the suggestion.

I am still confused with one thing
In the example provided by struts (struts-example), I found that they are 
calling getServletContext from the Action bean to get a global/application 
scope attribute,
but I felt it strange as there is no servlet passed to the Action Bean.

The code is as follows:
public final class SaveRegistrationAction extends Action {

public ActionForward perform(ActionMapping mapping,
  ActionForm form,
  HttpServletRequest request,
  HttpServletResponse response)
 throws IOException, ServletException {

 // Extract attributes and parameters we will need
 Locale locale = getLocale(request);
 .
 ..
 Hashtable database = (Hashtable)
   servlet.getServletContext().getAttribute(Constants.DATABASE_KEY);
 if (servlet.getDebug() = 1)
 servlet.log(SaveRegistrationAction:  Processing  + action +
  action);
 
 .
}
}

Any idea where this servlet is coming from???

regards
-M



At 17:00 04/10/2002 +0530, you wrote:
Madhavi ,

   You can look at the users guide available at the struts site. You can make
use of request.setAttribute( ) for setting up global variables.
Refer 2.2 JavaBeans and Scope of user doc

http://jakarta.apache.org/struts/doc-1.0.2/userGuide/building_model.html
Regards,
Divakar


  -Original Message-
  From: Madhavi Thottempudi [SMTP:[EMAIL PROTECTED]]
  Sent: Friday, October 04, 2002 4:46 PM
  To:   Struts Users Mailing List
  Subject:  Re: global variables-update
 
  I mean setting application scope variables - using setServletContext or
  something like that and getting them back. Any ideas??
 
  Thanks again
  -M
 
  At 11:34 04/10/2002 +0100, you wrote:
  Hi!
  Where can I set global variables and get them back in Struts. Because I
  see that Action beans extending struts Action bean doesn't get servlet in
 
  their perform method.
  
  public ActionForward perform(ActionMapping mapping,
   ActionForm form,
   HttpServletRequest request,
   HttpServletResponse response)
  
  Any suggestions???
  
  Thanks
  -M
  
  
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
 
  Madhavi T
  E-Learning Systems Group
  CARET, University of Cambridge
  16 Mill Lane
  Cambridge CB2 1SB
 
  Tel: +44 (0) 1223 765382
  [EMAIL PROTECTED]
 
 
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 
DISCLAIMER: Information contained and transmitted by this E-MAIL is
proprietary to Mascot Systems Limited and is intended for use only by the
individual or entity to which it is addressed, and may contain information
that is privileged, confidential or exempt from disclosure under applicable
law. If this is a forwarded message, the content of this E-MAIL may not have
been sent with the authority of the Company. If you are not the intended
recipient, an agent of the intended recipient or a person responsible for
delivering the information to the named recipient, you are notified that any
use, distribution, transmission, printing, copying or dissemination of this
information in any way or in any manner is strictly prohibited. If you have
received this communication in error, please delete this mail  notify us
immediately at [EMAIL PROTECTED] Before opening attachments,
please scan for viruses.



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

Madhavi T
E-Learning Systems Group
CARET, University of Cambridge
16 Mill Lane
Cambridge CB2 1SB

Tel: +44 (0) 1223 765382
[EMAIL PROTECTED]





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




RE: DanaFormBean and Non Primative property type

2002-10-04 Thread Galbreath, Mark

RU kidding?  You need more help than you can get here if you think a String
is a primitive.  And what kind of question is this?  Are we to, like, read
your mind and see your code to guess whatever it is you are trying to do
in your classes?  Hey!  Even we are not that good.  But so this post is not
totally bw wastage, here's a suggestion I hope you appreciate:

http://www.tuxedo.org/~esr/faqs/smart-questions.html


Mark

-Original Message-
From: Dan Tran [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 03, 2002 9:39 PM

Hi I would like to use DataFormBean with properties are 
not primative types like int, java.lang.String

What are the requirements  to create a customized
property type?

For example,  I have a DUNS java class which is a 
specialized string.  What kind of methods in my DUNS class that I need to
implement to make DanaFormBean happy? (like toString, DUNS(String init),
etc??)

Suggestions are greatly appreciated.

-Dan

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




RE: global variables-update

2002-10-04 Thread Galbreath, Mark

It's not a bean; it's a helper (Action) class that is passed the servlet
request and response objects, getting a handle on the servlet and can
access the context in which the servlet resides.  The context is the
global/application scope; the context object is like the central switching
office to every object that lives within the application.

Mark

-Original Message-
From: Madhavi Thottempudi [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 7:41 AM
To: Struts Users Mailing List
Subject: RE: global variables-update


Hi Divakar!
Thanks for the suggestion.

I am still confused with one thing
In the example provided by struts (struts-example), I found that they are 
calling getServletContext from the Action bean to get a global/application 
scope attribute,
but I felt it strange as there is no servlet passed to the Action Bean.

The code is as follows:
public final class SaveRegistrationAction extends Action {

public ActionForward perform(ActionMapping mapping,
  ActionForm form,
  HttpServletRequest request,
  HttpServletResponse response)
 throws IOException, ServletException {

 // Extract attributes and parameters we will need
 Locale locale = getLocale(request);
 .
 ..
 Hashtable database = (Hashtable)
   servlet.getServletContext().getAttribute(Constants.DATABASE_KEY);
 if (servlet.getDebug() = 1)
 servlet.log(SaveRegistrationAction:  Processing  + action +
  action);
 
 .
}
}

Any idea where this servlet is coming from???

regards
-M



At 17:00 04/10/2002 +0530, you wrote:
Madhavi ,

   You can look at the users guide available at the struts site. You can
make
use of request.setAttribute( ) for setting up global variables.
Refer 2.2 JavaBeans and Scope of user doc

http://jakarta.apache.org/struts/doc-1.0.2/userGuide/building_model.html
Regards,
Divakar


  -Original Message-
  From: Madhavi Thottempudi [SMTP:[EMAIL PROTECTED]]
  Sent: Friday, October 04, 2002 4:46 PM
  To:   Struts Users Mailing List
  Subject:  Re: global variables-update
 
  I mean setting application scope variables - using setServletContext or
  something like that and getting them back. Any ideas??
 
  Thanks again
  -M
 
  At 11:34 04/10/2002 +0100, you wrote:
  Hi!
  Where can I set global variables and get them back in Struts. Because I
  see that Action beans extending struts Action bean doesn't get servlet
in
 
  their perform method.
  
  public ActionForward perform(ActionMapping mapping,
   ActionForm form,
   HttpServletRequest request,
   HttpServletResponse response)
  
  Any suggestions???
  
  Thanks
  -M
  
  
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
 
  Madhavi T
  E-Learning Systems Group
  CARET, University of Cambridge
  16 Mill Lane
  Cambridge CB2 1SB
 
  Tel: +44 (0) 1223 765382
  [EMAIL PROTECTED]
 
 
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 
DISCLAIMER: Information contained and transmitted by this E-MAIL is
proprietary to Mascot Systems Limited and is intended for use only by the
individual or entity to which it is addressed, and may contain information
that is privileged, confidential or exempt from disclosure under applicable
law. If this is a forwarded message, the content of this E-MAIL may not
have
been sent with the authority of the Company. If you are not the intended
recipient, an agent of the intended recipient or a person responsible for
delivering the information to the named recipient, you are notified that
any
use, distribution, transmission, printing, copying or dissemination of this
information in any way or in any manner is strictly prohibited. If you have
received this communication in error, please delete this mail  notify us
immediately at [EMAIL PROTECTED] Before opening attachments,
please scan for viruses.



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

Madhavi T
E-Learning Systems Group
CARET, University of Cambridge
16 Mill Lane
Cambridge CB2 1SB

Tel: +44 (0) 1223 765382
[EMAIL PROTECTED]





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

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




FW: [FRIDAY] failure notice

2002-10-04 Thread Galbreath, Mark

Okay, Eddie, cut it out!

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 7:50 AM
To: [EMAIL PROTECTED]
Subject: failure notice


Hi. This is the qmail-send program at nagoya.betaversion.org.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

[EMAIL PROTECTED]:
ezmlm-send: fatal: message already has a Mailing-List header (maybe I should
be a sublist) (#5.7.2)
ezmlm-gate: fatal: Fatal error from child

--- Below this line is a copy of the message.

Return-Path: [EMAIL PROTECTED]
Received: (qmail 28998 invoked by uid 98); 4 Oct 2002 11:50:01 -
Delivered-To: [EMAIL PROTECTED]
X-Antivirus: nagoya (v4218 created Aug 14 2002)
Received: (qmail 28977 invoked from network); 4 Oct 2002 11:49:59 -
Received: from daedalus.apache.org (HELO apache.org) (63.251.56.142)
  by nagoya.betaversion.org with SMTP; 4 Oct 2002 11:49:59 -
Received: (qmail 60562 invoked by uid 500); 4 Oct 2002 11:49:16 -
Delivered-To: [EMAIL PROTECTED]
Received: (qmail 60554 invoked from network); 4 Oct 2002 11:49:14 -
Received: from dialin-c1-35.129.133.keyaccess.nl (HELO topicus.nl)
(195.35.129.133)
  by daedalus.apache.org with SMTP; 4 Oct 2002 11:49:14 -
Received: from pop.vuurwerk.nl ([62.250.3.109]) by topicus.nl ([])
with DomainPOP (MDaemon.PRO.v6.0.4.R)
for [EMAIL PROTECTED]; Fri, 04 Oct 2002 13:48:42
+0200
Delivered-To: [EMAIL PROTECTED]
Received: (qmail 76411 invoked by uid 25); 4 Oct 2002 11:38:32 -
Delivered-To: [EMAIL PROTECTED]
X-Envelope-To: [EMAIL PROTECTED]
Received: (qmail 76235 invoked from network); 4 Oct 2002 11:38:29 -
Received: from host-131-49-18-192.iplanet.com (HELO nagoya.betaversion.org)
(192.18.49.131)
  by anger.vuurwerk.nl with SMTP; 4 Oct 2002 11:38:29 -
Received: (qmail 13674 invoked by uid 97); 4 Oct 2002 11:38:59 -
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Unsubscribe: mailto:[EMAIL PROTECTED]
List-Subscribe: mailto:[EMAIL PROTECTED]
List-Help: mailto:[EMAIL PROTECTED]
List-Post: mailto:[EMAIL PROTECTED]
List-Id: Struts Users Mailing List struts-user.jakarta.apache.org
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
Delivered-To: mailing list [EMAIL PROTECTED]
Received: (qmail 13662 invoked by uid 98); 4 Oct 2002 11:38:58 -
X-Antivirus: nagoya (v4218 created Aug 14 2002)
Message-ID: [EMAIL PROTECTED]
From: Galbreath, Mark [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: JavaBean question (OOPS)
Date: Fri, 4 Oct 2002 07:38:12 -0400 
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain;
charset=iso-8859-1
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
X-MDRemoteIP: 62.250.3.109
X-MDRcpt-To: [EMAIL PROTECTED]
X-MDaemon-Deliver-To: [EMAIL PROTECTED]
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N

Please cite a more precise reference to Hans' book.

-Original Message-
From: Dan Tran [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 03, 2002 7:17 PM
To: Struts Users Mailing List
Subject: Re: JavaBean question (OOPS)


Thank you for the example,   for now I will try to
use it .

However, I also happen to see a example in Hans Bergsten 's JSP pages,

which is similar to what I have but using the standard
java Date class which only implements toString() and
valueOf(String ...)

Does it mean, JSP hardwire the translation with some specific primative type
and some specifict classes?

-Dan
- Original Message -
From: Brandon Goodin [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, October 03, 2002 3:54 PM
Subject: RE: JavaBean question (OOPS)


 the secon setter was a copy and past it should be

 private String stringTimestamp;

 public void setStringTimestamp(String stringTimestamp){
 this.stringTimestamp = stringTimestamp;
 }

 -Original Message-
 From: Brandon Goodin [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 03, 2002 4:52 PM
 To: Struts Users Mailing List
 Subject: RE: JavaBean question


 Since i don't completely know your bean... i'll make a guess at it.

 It would probably look something like this:

 public class MyTimeStamp  {

 private Timestamp timestamp;

 public MyTimeStamp(){
 }

 public void setTimestamp(Timestamp timestamp){
 this.timestamp = timestamp;
 }

 public Timestamp getTimestamp(){
 return timestamp;
 }

 public void setTimestamp(Timestamp timestamp){
 this.timestamp = timestamp;
 }

 public String getStringTimestamp(){
 return timestamp.toString()
 }
 }

 then use:

 html:text property=myTimestamp.stringTimestamp 

 Brandon Goodin
 Phase Web and Multimedia
 P(406)862-2245
 F(406)862-0354
 http://www.phase.ws

 -Original Message-
 From: Dan Tran [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 03, 2002 4:29 PM
 To: Struts Users Mailing List
 Subject: Re: JavaBean question


 Hi Brandon,  thank 

RE: Tiles and Internationaliation

2002-10-04 Thread Vincent PROSPER

Cedric and Cal,

Thanks a lot for both (same) answers. It works fine.

Have a nice day.

Vince

-Original Message-
From: Cedric Dumoulin [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 10:52 AM
To: Struts Users Mailing List
Subject: Re: Tiles and Internationaliation



  Yes it is.
  On the inserted page you will need to do:
tiles:importAttribute name=title /

bean:message name=title/

  Cedric





Vincent PROSPER wrote:

Hi,

I am quite new to tiles stuff (only 1 and an half day experience, switching
from Struts templates...)

For the moment, I am just trying to insert internationalized messages in
tiles and the only way I found to do this is:

   tiles:insert definition=portal.mainMenu
   tiles:put name=title
   valuebean:message key=help.stateProv.name//value
   /tiles:put
   /tiles:insert

which doesn't satisfy me... I would like to be able to write instead:

   tiles:insert definition=portal.mainMenu
   tiles:put name=title value=help.stateProv.name/
   /tiles:insert

Could you please tell me if this is possible?

Thanks in advance for your answer.

Vince



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






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





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




RE: global variables-update

2002-10-04 Thread Madhavi Thottempudi

Thanks for the explanation Mark! I understand it better now.
-M

At 07:50 04/10/2002 -0400, you wrote:
It's not a bean; it's a helper (Action) class that is passed the servlet
request and response objects, getting a handle on the servlet and can
access the context in which the servlet resides.  The context is the
global/application scope; the context object is like the central switching
office to every object that lives within the application.

Mark

-Original Message-
From: Madhavi Thottempudi [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 7:41 AM
To: Struts Users Mailing List
Subject: RE: global variables-update


Hi Divakar!
Thanks for the suggestion.

I am still confused with one thing
In the example provided by struts (struts-example), I found that they are
calling getServletContext from the Action bean to get a global/application
scope attribute,
but I felt it strange as there is no servlet passed to the Action Bean.

The code is as follows:
public final class SaveRegistrationAction extends Action {

public ActionForward perform(ActionMapping mapping,
   ActionForm form,
   HttpServletRequest request,
   HttpServletResponse response)
  throws IOException, ServletException {

  // Extract attributes and parameters we will need
  Locale locale = getLocale(request);
  .
  ..
  Hashtable database = (Hashtable)
servlet.getServletContext().getAttribute(Constants.DATABASE_KEY);
  if (servlet.getDebug() = 1)
  servlet.log(SaveRegistrationAction:  Processing  + action +
   action);
  
  .
}
}

Any idea where this servlet is coming from???

regards
-M



At 17:00 04/10/2002 +0530, you wrote:
 Madhavi ,
 
You can look at the users guide available at the struts site. You can
make
 use of request.setAttribute( ) for setting up global variables.
 Refer 2.2 JavaBeans and Scope of user doc
 
 http://jakarta.apache.org/struts/doc-1.0.2/userGuide/building_model.html
 Regards,
 Divakar
 
 
   -Original Message-
   From: Madhavi Thottempudi [SMTP:[EMAIL PROTECTED]]
   Sent: Friday, October 04, 2002 4:46 PM
   To:   Struts Users Mailing List
   Subject:  Re: global variables-update
  
   I mean setting application scope variables - using setServletContext or
   something like that and getting them back. Any ideas??
  
   Thanks again
   -M
  
   At 11:34 04/10/2002 +0100, you wrote:
   Hi!
   Where can I set global variables and get them back in Struts. Because I
   see that Action beans extending struts Action bean doesn't get servlet
in
  
   their perform method.
   
   public ActionForward perform(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
   
   Any suggestions???
   
   Thanks
   -M
   
   
   --
   To unsubscribe, e-mail:
   mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
   mailto:[EMAIL PROTECTED]
   
  
   Madhavi T
   E-Learning Systems Group
   CARET, University of Cambridge
   16 Mill Lane
   Cambridge CB2 1SB
  
   Tel: +44 (0) 1223 765382
   [EMAIL PROTECTED]
  
  
  
  
  
   --
   To unsubscribe, e-mail:
   mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
   mailto:[EMAIL PROTECTED]
  
  
 DISCLAIMER: Information contained and transmitted by this E-MAIL is
 proprietary to Mascot Systems Limited and is intended for use only by the
 individual or entity to which it is addressed, and may contain information
 that is privileged, confidential or exempt from disclosure under applicable
 law. If this is a forwarded message, the content of this E-MAIL may not
have
 been sent with the authority of the Company. If you are not the intended
 recipient, an agent of the intended recipient or a person responsible for
 delivering the information to the named recipient, you are notified that
any
 use, distribution, transmission, printing, copying or dissemination of this
 information in any way or in any manner is strictly prohibited. If you have
 received this communication in error, please delete this mail  notify us
 immediately at [EMAIL PROTECTED] Before opening attachments,
 please scan for viruses.
 
 
 
 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

Madhavi T
E-Learning Systems Group
CARET, University of Cambridge
16 Mill Lane
Cambridge CB2 1SB

Tel: +44 (0) 1223 765382
[EMAIL PROTECTED]





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

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


RE: CheckBox and Boolean[] Array - Incorrect Values Submitted When Ch eckBox is unchecked

2002-10-04 Thread Galbreath, Mark

This is by design and you will have to write some code to accommodate it.
The HTML spec mandates that no request values are passed for unchecked
checkboxes, so you will have to keep track of the checkboxes yourself.  What
I do is type the checkboxes as String rather than boolean in the ActionForm
and track true and false through the iterator.

Mark

-Original Message-
From: Charlesworth, Chico [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 7:11 AM
To: 'Struts Users Mailing List'
Subject: CheckBox and Boolean[] Array - Incorrect Values Submitted When
Ch eckBox is unchecked



Hi,

I'm trying to iterate through a Boolean Array using logic:iterate and then
display these as check boxes. This works fine, but when submitting the form
and resending the Boolean Array back to the Action class, only the values
that are true are returned.

In the struts documentation it says:
WARNING: In order to correctly recognize unchecked checkboxes, the
ActionForm bean associated with this form must include a statement setting
the corresponding boolean property to false in the reset() method.

But this only implies for a single property.

Is there a workaround or a fix for this?

My jsp code:

logic:iterate id=flag name=myForm property=flags
logic:equal name= flag  value=true
input type=checkbox id=flags name=flags value=on
checked=checked
/logic:equal
logic:notEqual name= flag  value=true
input type=checkbox id=flags name=flags value=on
/logic:notEqual
/logic:iterate

Cheers,
Chico.

-- 
The content of this e-mail is confidential, may contain privileged material
and is intended solely for the recipient(s) named above. If you receive this
in error, please notify Software AG immediately and delete this e-mail.

Software AG (UK) Limited
Registered in England  Wales 1310740
Registered Office: Hudson House, Hudson Way,
Pride Park, Derby DE24 8HS

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

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




RE: global variables-update

2002-10-04 Thread Galbreath, Mark

There really is no substitute for reading the API and the Servlet
Specification (check out Chapter 3).  The spec explains more than you
probably would ever need to know about servlets and their contexts.  You can
download it from java.sun.com/products/servlet.

Mark

-Original Message-
From: Madhavi Thottempudi [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 8:10 AM
To: Struts Users Mailing List
Subject: RE: global variables-update


Thanks for the explanation Mark! I understand it better now.
-M

At 07:50 04/10/2002 -0400, you wrote:
It's not a bean; it's a helper (Action) class that is passed the servlet
request and response objects, getting a handle on the servlet and can
access the context in which the servlet resides.  The context is the
global/application scope; the context object is like the central switching
office to every object that lives within the application.

Mark

-Original Message-
From: Madhavi Thottempudi [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 7:41 AM
To: Struts Users Mailing List
Subject: RE: global variables-update


Hi Divakar!
Thanks for the suggestion.

I am still confused with one thing
In the example provided by struts (struts-example), I found that they are
calling getServletContext from the Action bean to get a global/application
scope attribute,
but I felt it strange as there is no servlet passed to the Action Bean.

The code is as follows:
public final class SaveRegistrationAction extends Action {

public ActionForward perform(ActionMapping mapping,
   ActionForm form,
   HttpServletRequest request,
   HttpServletResponse response)
  throws IOException, ServletException {

  // Extract attributes and parameters we will need
  Locale locale = getLocale(request);
  .
  ..
  Hashtable database = (Hashtable)

servlet.getServletContext().getAttribute(Constants.DATABASE_KEY);
  if (servlet.getDebug() = 1)
  servlet.log(SaveRegistrationAction:  Processing  + action +
   action);
  
  .
}
}

Any idea where this servlet is coming from???

regards
-M



At 17:00 04/10/2002 +0530, you wrote:
 Madhavi ,
 
You can look at the users guide available at the struts site. You can
make
 use of request.setAttribute( ) for setting up global variables.
 Refer 2.2 JavaBeans and Scope of user doc
 
 http://jakarta.apache.org/struts/doc-1.0.2/userGuide/building_model.html
 Regards,
 Divakar
 
 
   -Original Message-
   From: Madhavi Thottempudi [SMTP:[EMAIL PROTECTED]]
   Sent: Friday, October 04, 2002 4:46 PM
   To:   Struts Users Mailing List
   Subject:  Re: global variables-update
  
   I mean setting application scope variables - using setServletContext
or
   something like that and getting them back. Any ideas??
  
   Thanks again
   -M
  
   At 11:34 04/10/2002 +0100, you wrote:
   Hi!
   Where can I set global variables and get them back in Struts. Because
I
   see that Action beans extending struts Action bean doesn't get
servlet
in
  
   their perform method.
   
   public ActionForward perform(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
   
   Any suggestions???
   
   Thanks
   -M
   
   
   --
   To unsubscribe, e-mail:
   mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
   mailto:[EMAIL PROTECTED]
   
  
   Madhavi T
   E-Learning Systems Group
   CARET, University of Cambridge
   16 Mill Lane
   Cambridge CB2 1SB
  
   Tel: +44 (0) 1223 765382
   [EMAIL PROTECTED]
  
  
  
  
  
   --
   To unsubscribe, e-mail:
   mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
   mailto:[EMAIL PROTECTED]
  
  
 DISCLAIMER: Information contained and transmitted by this E-MAIL is
 proprietary to Mascot Systems Limited and is intended for use only by the
 individual or entity to which it is addressed, and may contain
information
 that is privileged, confidential or exempt from disclosure under
applicable
 law. If this is a forwarded message, the content of this E-MAIL may not
have
 been sent with the authority of the Company. If you are not the intended
 recipient, an agent of the intended recipient or a person responsible for
 delivering the information to the named recipient, you are notified that
any
 use, distribution, transmission, printing, copying or dissemination of
this
 information in any way or in any manner is strictly prohibited. If you
have
 received this communication in error, please delete this mail  notify us
 immediately at [EMAIL PROTECTED] Before opening attachments,
 please scan for viruses.
 
 
 
 --
 To unsubscribe, e-mail:

RE: CheckBox and Boolean[] Array - Incorrect Values Submitted When CheckBox is unchecked

2002-10-04 Thread Andrew Hill

For multiple, you also must set values back to false in reset() (The
question here of course is which checkbox refers to which element. You may
need to refactor such that your checkboxes return non boolean values so you
can tell which is which at the server end).
The reason for this is that the html spec in all its gory... uh I mean
glory... has in its infinite wisdom defined that a checkbox ( radio button
I think) that has not been ticked will not submit any value to the server.
Afaik same is true for SELECT btw (multiple selections where nothing
selected)

-Original Message-
From: Charlesworth, Chico [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 19:11
To: 'Struts Users Mailing List'
Subject: CheckBox and Boolean[] Array - Incorrect Values Submitted When
CheckBox is unchecked



Hi,

I'm trying to iterate through a Boolean Array using logic:iterate and then
display these as check boxes. This works fine, but when submitting the form
and resending the Boolean Array back to the Action class, only the values
that are true are returned.

In the struts documentation it says:
WARNING: In order to correctly recognize unchecked checkboxes, the
ActionForm bean associated with this form must include a statement setting
the corresponding boolean property to false in the reset() method.

But this only implies for a single property.

Is there a workaround or a fix for this?

My jsp code:

logic:iterate id=flag name=myForm property=flags
logic:equal name= flag  value=true
input type=checkbox id=flags name=flags value=on
checked=checked
/logic:equal
logic:notEqual name= flag  value=true
input type=checkbox id=flags name=flags value=on
/logic:notEqual
/logic:iterate

Cheers,
Chico.

--
The content of this e-mail is confidential, may contain privileged material
and is intended solely for the recipient(s) named above. If you receive this
in error, please notify Software AG immediately and delete this e-mail.

Software AG (UK) Limited
Registered in England  Wales 1310740
Registered Office: Hudson House, Hudson Way,
Pride Park, Derby DE24 8HS

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


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




RE: Action.getResources(request) not working

2002-10-04 Thread Galbreath, Mark

how do you know it was not a correct answer if you are still asking the
question?

-Original Message-
From: Alex Birch [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 12:34 AM
To: [EMAIL PROTECTED]
Subject: Action.getResources(request) not working


Hi,

I already asked this question earlier but I didn't get a correct answer...

I have 1 ApplicationResources.properties file which I can happily access in
my jsp page using the
bean:message key=somekey/

but in any of my Actions when I try to go:

  MessageResources messages = getResources(request);
or,
  MessageResources messages = getResources(request, ApplicationResources);
or,
  MessageResources messages = getResources(request, ApplicationResources);


then getResources(...) returns null...

I can use getResources() - the deprecated method but I don't like using a
deprecated method when
there's no reason why the other methods shouldn't work

am I doing something stupid and totally wrong? I don't see why
getResources(request) doesn't work

in my web.xml I have the usual:

 init-param
  param-nameapplication/param-name
  param-valueApplicationResources/param-value
 /init-param

There's nothing in my struts-config.xml file relating to the resources


thanks again in advance,

Alex

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

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

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




RE: CheckBox and Boolean[] Array - Incorrect Values Submitted Whe n CheckBox is unchecked

2002-10-04 Thread Charlesworth, Chico


If that is the case, then why does it work with single boolean properties? I
only get this problem when working with an array.

Chico

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] 
Sent: 04 October 2002 13:12
To: 'Struts Users Mailing List'
Subject: RE: CheckBox and Boolean[] Array - Incorrect Values Submitted Whe n
Ch eckBox is unchecked

This is by design and you will have to write some code to accommodate it.
The HTML spec mandates that no request values are passed for unchecked
checkboxes, so you will have to keep track of the checkboxes yourself.  What
I do is type the checkboxes as String rather than boolean in the ActionForm
and track true and false through the iterator.

Mark

-Original Message-
From: Charlesworth, Chico [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 7:11 AM
To: 'Struts Users Mailing List'
Subject: CheckBox and Boolean[] Array - Incorrect Values Submitted When
Ch eckBox is unchecked



Hi,

I'm trying to iterate through a Boolean Array using logic:iterate and then
display these as check boxes. This works fine, but when submitting the form
and resending the Boolean Array back to the Action class, only the values
that are true are returned.

In the struts documentation it says:
WARNING: In order to correctly recognize unchecked checkboxes, the
ActionForm bean associated with this form must include a statement setting
the corresponding boolean property to false in the reset() method.

But this only implies for a single property.

Is there a workaround or a fix for this?

My jsp code:

logic:iterate id=flag name=myForm property=flags
logic:equal name= flag  value=true
input type=checkbox id=flags name=flags value=on
checked=checked
/logic:equal
logic:notEqual name= flag  value=true
input type=checkbox id=flags name=flags value=on
/logic:notEqual
/logic:iterate

Cheers,
Chico.

-- 
The content of this e-mail is confidential, may contain privileged material
and is intended solely for the recipient(s) named above. If you receive this
in error, please notify Software AG immediately and delete this e-mail.

Software AG (UK) Limited
Registered in England  Wales 1310740
Registered Office: Hudson House, Hudson Way,
Pride Park, Derby DE24 8HS

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

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

-- 
The content of this e-mail is confidential, may contain privileged material
and is intended solely for the recipient(s) named above. If you receive this
in error, please notify Software AG immediately and delete this e-mail.

Software AG (UK) Limited
Registered in England  Wales 1310740
Registered Office: Hudson House, Hudson Way,
Pride Park, Derby DE24 8HS

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




RE: CheckBox and Boolean[] Array - Incorrect Values Submitted When CheckBox is unchecked

2002-10-04 Thread Galbreath, Mark

Hey man!  RU refactoring my messages?  ;-)

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 8:17 AM
To: Struts Users Mailing List
Subject: RE: CheckBox and Boolean[] Array - Incorrect Values Submitted
When CheckBox is unchecked


For multiple, you also must set values back to false in reset() (The
question here of course is which checkbox refers to which element. You may
need to refactor such that your checkboxes return non boolean values so you
can tell which is which at the server end).
The reason for this is that the html spec in all its gory... uh I mean
glory... has in its infinite wisdom defined that a checkbox ( radio button
I think) that has not been ticked will not submit any value to the server.
Afaik same is true for SELECT btw (multiple selections where nothing
selected)

-Original Message-
From: Charlesworth, Chico [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 19:11
To: 'Struts Users Mailing List'
Subject: CheckBox and Boolean[] Array - Incorrect Values Submitted When
CheckBox is unchecked



Hi,

I'm trying to iterate through a Boolean Array using logic:iterate and then
display these as check boxes. This works fine, but when submitting the form
and resending the Boolean Array back to the Action class, only the values
that are true are returned.

In the struts documentation it says:
WARNING: In order to correctly recognize unchecked checkboxes, the
ActionForm bean associated with this form must include a statement setting
the corresponding boolean property to false in the reset() method.

But this only implies for a single property.

Is there a workaround or a fix for this?

My jsp code:

logic:iterate id=flag name=myForm property=flags
logic:equal name= flag  value=true
input type=checkbox id=flags name=flags value=on
checked=checked
/logic:equal
logic:notEqual name= flag  value=true
input type=checkbox id=flags name=flags value=on
/logic:notEqual
/logic:iterate

Cheers,
Chico.

--
The content of this e-mail is confidential, may contain privileged material
and is intended solely for the recipient(s) named above. If you receive this
in error, please notify Software AG immediately and delete this e-mail.

Software AG (UK) Limited
Registered in England  Wales 1310740
Registered Office: Hudson House, Hudson Way,
Pride Park, Derby DE24 8HS

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


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

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




RE: CheckBox and Boolean[] Array - Incorrect Values Submitted Whe n CheckBox is unchecked

2002-10-04 Thread Galbreath, Mark

I'm not sure what you mean.  If a checkbox or radio button is not checked,
it has NO state.  This means boolean false is never passed.  Only boolean
trues are passed in the request object.  If you are defining individual
objects as boolean in your ActionForm, the JVM assigns their state to false
by default, so any individual object that is passed in the request object
will be true and change the state accordingly.  It may look like your form
is setting your ActionForm booleans to false, but it is not - the JVM is.
This is why it won't work with an array - the JVM sets arrays to null by
default.

Mark

-Original Message-
From: Charlesworth, Chico [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 8:18 AM
To: 'Struts Users Mailing List'
Subject: RE: CheckBox and Boolean[] Array - Incorrect Values Submitted
Whe n CheckBox is unchecked



If that is the case, then why does it work with single boolean properties? I
only get this problem when working with an array.

Chico

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] 
Sent: 04 October 2002 13:12
To: 'Struts Users Mailing List'
Subject: RE: CheckBox and Boolean[] Array - Incorrect Values Submitted Whe n
Ch eckBox is unchecked

This is by design and you will have to write some code to accommodate it.
The HTML spec mandates that no request values are passed for unchecked
checkboxes, so you will have to keep track of the checkboxes yourself.  What
I do is type the checkboxes as String rather than boolean in the ActionForm
and track true and false through the iterator.

Mark

-Original Message-
From: Charlesworth, Chico [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 7:11 AM
To: 'Struts Users Mailing List'
Subject: CheckBox and Boolean[] Array - Incorrect Values Submitted When
Ch eckBox is unchecked



Hi,

I'm trying to iterate through a Boolean Array using logic:iterate and then
display these as check boxes. This works fine, but when submitting the form
and resending the Boolean Array back to the Action class, only the values
that are true are returned.

In the struts documentation it says:
WARNING: In order to correctly recognize unchecked checkboxes, the
ActionForm bean associated with this form must include a statement setting
the corresponding boolean property to false in the reset() method.

But this only implies for a single property.

Is there a workaround or a fix for this?

My jsp code:

logic:iterate id=flag name=myForm property=flags
logic:equal name= flag  value=true
input type=checkbox id=flags name=flags value=on
checked=checked
/logic:equal
logic:notEqual name= flag  value=true
input type=checkbox id=flags name=flags value=on
/logic:notEqual
/logic:iterate

Cheers,
Chico.

-- 
The content of this e-mail is confidential, may contain privileged material
and is intended solely for the recipient(s) named above. If you receive this
in error, please notify Software AG immediately and delete this e-mail.

Software AG (UK) Limited
Registered in England  Wales 1310740
Registered Office: Hudson House, Hudson Way,
Pride Park, Derby DE24 8HS

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

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

-- 
The content of this e-mail is confidential, may contain privileged material
and is intended solely for the recipient(s) named above. If you receive this
in error, please notify Software AG immediately and delete this e-mail.

Software AG (UK) Limited
Registered in England  Wales 1310740
Registered Office: Hudson House, Hudson Way,
Pride Park, Derby DE24 8HS

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

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




how to use struts with goliveor other page generators

2002-10-04 Thread Andreas Niemeyer

Hello.

We are planning to use struts and jsp's , but our designers works with 
html designtools like golive. It seems not possible for that editors to 
show previews of jsp's because the special libtags are unknown for 
them. Are there a way, for example the use of a plugin in those 
editors, to tell them to handle sites contains special tags.
Or should there be no possibility for this purpose?

Best regards,

Andreas


___
Andreas Niemeyer
Gutzmann EDV
Gartenstr. 6, 23669 Timmendorfer Strand
Tel:  04503 / 3523 - 15
Fax:  04503 / 3523 - 13
E-Mail: [EMAIL PROTECTED]

Anstelle von Urlaub haben wir: http://www.travelnet.de




RE: how to use struts with goliveor other page generators

2002-10-04 Thread Galbreath, Mark

Have you tried google.com?  I got 300,000 hits on JSP design tools.

-Original Message-
From: Andreas Niemeyer [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 8:25 AM
To: [EMAIL PROTECTED]
Subject: how to use struts with goliveor other page generators


Hello.

We are planning to use struts and jsp's , but our designers works with 
html designtools like golive. It seems not possible for that editors to 
show previews of jsp's because the special libtags are unknown for 
them. Are there a way, for example the use of a plugin in those 
editors, to tell them to handle sites contains special tags.
Or should there be no possibility for this purpose?

Best regards,

Andreas


___
Andreas Niemeyer
Gutzmann EDV
Gartenstr. 6, 23669 Timmendorfer Strand
Tel:  04503 / 3523 - 15
Fax:  04503 / 3523 - 13
E-Mail: [EMAIL PROTECTED]

Anstelle von Urlaub haben wir: http://www.travelnet.de


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




RE: CheckBox and Boolean[] Array - Incorrect Values Submitted Whe n CheckBox is unchecked

2002-10-04 Thread Charlesworth, Chico


Yeah of course I gotcha now ...

Cheers
chico

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] 
Sent: 04 October 2002 13:26
To: 'Struts Users Mailing List'
Subject: RE: CheckBox and Boolean[] Array - Incorrect Values Submitted Whe n
CheckBox is unchecked

I'm not sure what you mean.  If a checkbox or radio button is not checked,
it has NO state.  This means boolean false is never passed.  Only boolean
trues are passed in the request object.  If you are defining individual
objects as boolean in your ActionForm, the JVM assigns their state to false
by default, so any individual object that is passed in the request object
will be true and change the state accordingly.  It may look like your form
is setting your ActionForm booleans to false, but it is not - the JVM is.
This is why it won't work with an array - the JVM sets arrays to null by
default.

Mark

-Original Message-
From: Charlesworth, Chico [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 8:18 AM
To: 'Struts Users Mailing List'
Subject: RE: CheckBox and Boolean[] Array - Incorrect Values Submitted
Whe n CheckBox is unchecked



If that is the case, then why does it work with single boolean properties? I
only get this problem when working with an array.

Chico

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] 
Sent: 04 October 2002 13:12
To: 'Struts Users Mailing List'
Subject: RE: CheckBox and Boolean[] Array - Incorrect Values Submitted Whe n
Ch eckBox is unchecked

This is by design and you will have to write some code to accommodate it.
The HTML spec mandates that no request values are passed for unchecked
checkboxes, so you will have to keep track of the checkboxes yourself.  What
I do is type the checkboxes as String rather than boolean in the ActionForm
and track true and false through the iterator.

Mark

-Original Message-
From: Charlesworth, Chico [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 7:11 AM
To: 'Struts Users Mailing List'
Subject: CheckBox and Boolean[] Array - Incorrect Values Submitted When
Ch eckBox is unchecked



Hi,

I'm trying to iterate through a Boolean Array using logic:iterate and then
display these as check boxes. This works fine, but when submitting the form
and resending the Boolean Array back to the Action class, only the values
that are true are returned.

In the struts documentation it says:
WARNING: In order to correctly recognize unchecked checkboxes, the
ActionForm bean associated with this form must include a statement setting
the corresponding boolean property to false in the reset() method.

But this only implies for a single property.

Is there a workaround or a fix for this?

My jsp code:

logic:iterate id=flag name=myForm property=flags
logic:equal name= flag  value=true
input type=checkbox id=flags name=flags value=on
checked=checked
/logic:equal
logic:notEqual name= flag  value=true
input type=checkbox id=flags name=flags value=on
/logic:notEqual
/logic:iterate

Cheers,
Chico.

-- 
The content of this e-mail is confidential, may contain privileged material
and is intended solely for the recipient(s) named above. If you receive this
in error, please notify Software AG immediately and delete this e-mail.

Software AG (UK) Limited
Registered in England  Wales 1310740
Registered Office: Hudson House, Hudson Way,
Pride Park, Derby DE24 8HS

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

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

-- 
The content of this e-mail is confidential, may contain privileged material
and is intended solely for the recipient(s) named above. If you receive this
in error, please notify Software AG immediately and delete this e-mail.

Software AG (UK) Limited
Registered in England  Wales 1310740
Registered Office: Hudson House, Hudson Way,
Pride Park, Derby DE24 8HS

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

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

-- 
The content of this e-mail is confidential, may contain privileged material
and is intended solely for the recipient(s) named above. If you receive this
in error, please notify Software AG immediately and delete this e-mail.

Software AG (UK) Limited
Registered in England  Wales 1310740
Registered Office: Hudson House, Hudson Way,
Pride Park, Derby DE24 8HS

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




Re: how to use struts with golive or other page generators

2002-10-04 Thread Andreas Niemeyer

I looked at google and know that, but otherwise I think this would be a 
related topic to post in this group; furthermore I could imagine that 
here are some people which have had  the same question and took their 
experience.

Best regards,

Andreas

 Have you tried google.com?  I got 300,000 hits on JSP design tools.



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




RE: CheckBox and Boolean[] Array - Incorrect Values Submitted When CheckBox is unchecked

2002-10-04 Thread Andrew Hill

Wrote it before I read yours.
Just had a beer and a GT so my telepathic powers must have come online as a
result ;-)
Ahhh... I do so love Fridays.

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 20:21
To: 'Struts Users Mailing List'
Subject: RE: CheckBox and Boolean[] Array - Incorrect Values Submitted
When CheckBox is unchecked


Hey man!  RU refactoring my messages?  ;-)

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 8:17 AM
To: Struts Users Mailing List
Subject: RE: CheckBox and Boolean[] Array - Incorrect Values Submitted
When CheckBox is unchecked


For multiple, you also must set values back to false in reset() (The
question here of course is which checkbox refers to which element. You may
need to refactor such that your checkboxes return non boolean values so you
can tell which is which at the server end).
The reason for this is that the html spec in all its gory... uh I mean
glory... has in its infinite wisdom defined that a checkbox ( radio button
I think) that has not been ticked will not submit any value to the server.
Afaik same is true for SELECT btw (multiple selections where nothing
selected)

-Original Message-
From: Charlesworth, Chico [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 19:11
To: 'Struts Users Mailing List'
Subject: CheckBox and Boolean[] Array - Incorrect Values Submitted When
CheckBox is unchecked



Hi,

I'm trying to iterate through a Boolean Array using logic:iterate and then
display these as check boxes. This works fine, but when submitting the form
and resending the Boolean Array back to the Action class, only the values
that are true are returned.

In the struts documentation it says:
WARNING: In order to correctly recognize unchecked checkboxes, the
ActionForm bean associated with this form must include a statement setting
the corresponding boolean property to false in the reset() method.

But this only implies for a single property.

Is there a workaround or a fix for this?

My jsp code:

logic:iterate id=flag name=myForm property=flags
logic:equal name= flag  value=true
input type=checkbox id=flags name=flags value=on
checked=checked
/logic:equal
logic:notEqual name= flag  value=true
input type=checkbox id=flags name=flags value=on
/logic:notEqual
/logic:iterate

Cheers,
Chico.

--
The content of this e-mail is confidential, may contain privileged material
and is intended solely for the recipient(s) named above. If you receive this
in error, please notify Software AG immediately and delete this e-mail.

Software AG (UK) Limited
Registered in England  Wales 1310740
Registered Office: Hudson House, Hudson Way,
Pride Park, Derby DE24 8HS

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


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

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


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




RE: [FRIDAY] Telepathy

2002-10-04 Thread Galbreath, Mark

Bloody bastard!  It's only 0846 in Baltimore and our dev team is doing a pub
crawl starting at 1700.  Won't this day ever end

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 8:42 AM
To: Struts Users Mailing List
Subject: RE: CheckBox and Boolean[] Array - Incorrect Values Submitted
When CheckBox is unchecked


Wrote it before I read yours.
Just had a beer and a GT so my telepathic powers must have come online as a
result ;-)
Ahhh... I do so love Fridays.

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 20:21
To: 'Struts Users Mailing List'
Subject: RE: CheckBox and Boolean[] Array - Incorrect Values Submitted
When CheckBox is unchecked


Hey man!  RU refactoring my messages?  ;-)

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 8:17 AM
To: Struts Users Mailing List
Subject: RE: CheckBox and Boolean[] Array - Incorrect Values Submitted
When CheckBox is unchecked


For multiple, you also must set values back to false in reset() (The
question here of course is which checkbox refers to which element. You may
need to refactor such that your checkboxes return non boolean values so you
can tell which is which at the server end).
The reason for this is that the html spec in all its gory... uh I mean
glory... has in its infinite wisdom defined that a checkbox ( radio button
I think) that has not been ticked will not submit any value to the server.
Afaik same is true for SELECT btw (multiple selections where nothing
selected)

-Original Message-
From: Charlesworth, Chico [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 19:11
To: 'Struts Users Mailing List'
Subject: CheckBox and Boolean[] Array - Incorrect Values Submitted When
CheckBox is unchecked



Hi,

I'm trying to iterate through a Boolean Array using logic:iterate and then
display these as check boxes. This works fine, but when submitting the form
and resending the Boolean Array back to the Action class, only the values
that are true are returned.

In the struts documentation it says:
WARNING: In order to correctly recognize unchecked checkboxes, the
ActionForm bean associated with this form must include a statement setting
the corresponding boolean property to false in the reset() method.

But this only implies for a single property.

Is there a workaround or a fix for this?

My jsp code:

logic:iterate id=flag name=myForm property=flags
logic:equal name= flag  value=true
input type=checkbox id=flags name=flags value=on
checked=checked
/logic:equal
logic:notEqual name= flag  value=true
input type=checkbox id=flags name=flags value=on
/logic:notEqual
/logic:iterate

Cheers,
Chico.

--
The content of this e-mail is confidential, may contain privileged material
and is intended solely for the recipient(s) named above. If you receive this
in error, please notify Software AG immediately and delete this e-mail.

Software AG (UK) Limited
Registered in England  Wales 1310740
Registered Office: Hudson House, Hudson Way,
Pride Park, Derby DE24 8HS

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


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

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


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

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




[OT] CheckBox and Boolean[] Array - Incorrect Values Submitted When CheckBox is unchecked

2002-10-04 Thread Dave Derry

He's doing it as a service for those who are filtering you Mark!;-))


- Original Message -
From: Galbreath, Mark [EMAIL PROTECTED]


 Hey man!  RU refactoring my messages?  ;-)

 -Original Message-
 From: Andrew Hill [mailto:[EMAIL PROTECTED]]


 For multiple, you also must set values back to false in reset() (The
 question here of course is which checkbox refers to which element. You may
 need to refactor such that your checkboxes return non boolean values so
you
 can tell which is which at the server end).
 The reason for this is that the html spec in all its gory... uh I mean
 glory... has in its infinite wisdom defined that a checkbox ( radio
button
 I think) that has not been ticked will not submit any value to the server.
 Afaik same is true for SELECT btw (multiple selections where nothing
 selected)




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




RE: how to use struts with golive or other page generators

2002-10-04 Thread Galbreath, Mark

Then say so in your original post:  I've searched the web without
satisfactory results  We are jaded from lazy people who do not put
forth any effort to solve their problems before asking somebody else to do
it for them.

That being said, AFAIK, there are no graphic design tools that accommodate
JSP tags.

Mark

-Original Message-
From: Andreas Niemeyer [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 8:40 AM
To: Struts Users Mailing List
Subject: Re: how to use struts with golive or other page generators


I looked at google and know that, but otherwise I think this would be a 
related topic to post in this group; furthermore I could imagine that 
here are some people which have had  the same question and took their 
experience.

Best regards,

Andreas

 Have you tried google.com?  I got 300,000 hits on JSP design tools.



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

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




RE: [OT] CheckBox and Boolean[] Array - Incorrect Values Submitted When CheckBox is unchecked

2002-10-04 Thread Galbreath, Mark

Thanks a lot, Jerry.

;-)

-Original Message-
From: Dave Derry [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 8:49 AM
To: Struts Users Mailing List
Subject: [OT] CheckBox and Boolean[] Array - Incorrect Values Submitted
When CheckBox is unchecked


He's doing it as a service for those who are filtering you Mark!;-))


- Original Message -
From: Galbreath, Mark [EMAIL PROTECTED]


 Hey man!  RU refactoring my messages?  ;-)

 -Original Message-
 From: Andrew Hill [mailto:[EMAIL PROTECTED]]


 For multiple, you also must set values back to false in reset() (The
 question here of course is which checkbox refers to which element. You may
 need to refactor such that your checkboxes return non boolean values so
you
 can tell which is which at the server end).
 The reason for this is that the html spec in all its gory... uh I mean
 glory... has in its infinite wisdom defined that a checkbox ( radio
button
 I think) that has not been ticked will not submit any value to the server.
 Afaik same is true for SELECT btw (multiple selections where nothing
 selected)




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

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




RE: [FRIDAY] Telepathy

2002-10-04 Thread Andrew Hill

Hehe, well I bet your not coming back to the office after yours ;-)
(Not that Ill be here for long. Just got to wrap up one or two things.
Taking this weekend off!)

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 20:44
To: 'Struts Users Mailing List'
Subject: RE: [FRIDAY] Telepathy


Bloody bastard!  It's only 0846 in Baltimore and our dev team is doing a pub
crawl starting at 1700.  Won't this day ever end

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 8:42 AM
To: Struts Users Mailing List
Subject: RE: CheckBox and Boolean[] Array - Incorrect Values Submitted
When CheckBox is unchecked


Wrote it before I read yours.
Just had a beer and a GT so my telepathic powers must have come online as a
result ;-)
Ahhh... I do so love Fridays.

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 20:21
To: 'Struts Users Mailing List'
Subject: RE: CheckBox and Boolean[] Array - Incorrect Values Submitted
When CheckBox is unchecked


Hey man!  RU refactoring my messages?  ;-)

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 8:17 AM
To: Struts Users Mailing List
Subject: RE: CheckBox and Boolean[] Array - Incorrect Values Submitted
When CheckBox is unchecked


For multiple, you also must set values back to false in reset() (The
question here of course is which checkbox refers to which element. You may
need to refactor such that your checkboxes return non boolean values so you
can tell which is which at the server end).
The reason for this is that the html spec in all its gory... uh I mean
glory... has in its infinite wisdom defined that a checkbox ( radio button
I think) that has not been ticked will not submit any value to the server.
Afaik same is true for SELECT btw (multiple selections where nothing
selected)

-Original Message-
From: Charlesworth, Chico [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 19:11
To: 'Struts Users Mailing List'
Subject: CheckBox and Boolean[] Array - Incorrect Values Submitted When
CheckBox is unchecked



Hi,

I'm trying to iterate through a Boolean Array using logic:iterate and then
display these as check boxes. This works fine, but when submitting the form
and resending the Boolean Array back to the Action class, only the values
that are true are returned.

In the struts documentation it says:
WARNING: In order to correctly recognize unchecked checkboxes, the
ActionForm bean associated with this form must include a statement setting
the corresponding boolean property to false in the reset() method.

But this only implies for a single property.

Is there a workaround or a fix for this?

My jsp code:

logic:iterate id=flag name=myForm property=flags
logic:equal name= flag  value=true
input type=checkbox id=flags name=flags value=on
checked=checked
/logic:equal
logic:notEqual name= flag  value=true
input type=checkbox id=flags name=flags value=on
/logic:notEqual
/logic:iterate

Cheers,
Chico.

--
The content of this e-mail is confidential, may contain privileged material
and is intended solely for the recipient(s) named above. If you receive this
in error, please notify Software AG immediately and delete this e-mail.

Software AG (UK) Limited
Registered in England  Wales 1310740
Registered Office: Hudson House, Hudson Way,
Pride Park, Derby DE24 8HS

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


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

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


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

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


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




RE: [OT] CheckBox and Boolean[] Array - Incorrect Values Submitted When CheckBox is unchecked

2002-10-04 Thread Andrew Hill

rofl

-Original Message-
From: Dave Derry [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 20:49
To: Struts Users Mailing List
Subject: [OT] CheckBox and Boolean[] Array - Incorrect Values Submitted
When CheckBox is unchecked


He's doing it as a service for those who are filtering you Mark!;-))


- Original Message -
From: Galbreath, Mark [EMAIL PROTECTED]


 Hey man!  RU refactoring my messages?  ;-)

 -Original Message-
 From: Andrew Hill [mailto:[EMAIL PROTECTED]]


 For multiple, you also must set values back to false in reset() (The
 question here of course is which checkbox refers to which element. You may
 need to refactor such that your checkboxes return non boolean values so
you
 can tell which is which at the server end).
 The reason for this is that the html spec in all its gory... uh I mean
 glory... has in its infinite wisdom defined that a checkbox ( radio
button
 I think) that has not been ticked will not submit any value to the server.
 Afaik same is true for SELECT btw (multiple selections where nothing
 selected)




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


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




Dynamic text fields

2002-10-04 Thread Miguel Angel Medina Lopez

Hi all:

I want to create dynamic text fields in a form and I following the example
form a previos thread of the list. In my JSP I have the following:

%
  String name=foo;
%
html:text property=%= name % size=50/

and when I execute it throw the next exception:


   [ServletException
in:/WEB-INF/paginas/cuerpos/privado/cuerpo-insertarfaq.jsp] No getter
   method for property %= name % of bean
org.apache.struts.taglib.html.BEAN'

What am I doing wrong?

Thank you in advance

MAML


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




RE: CheckBox and Boolean[] Array - Incorrect Values Submitted When CheckBox is unchecked

2002-10-04 Thread Charlesworth, Chico


Sorted!!

Got a String[] (checkboxes), and when form is submitted the positions of the
checked checkboxes are sent in this array ...

% int i = 0; %
logic:iterate id=flag name=myForm property=flags
logic:equal name= flag  value=true
input type=checkbox id=checkboxes name=checkboxes 
value=%=new Integer(i).toString()% checked=checked
/logic:equal
logic:notEqual name=flag value=true
input type=checkbox id=checkboxes name=checkboxes 
value=%=new Integer(i).toString()%
/logic:notEqual
% i++; %
/logic:iterate

Cheers,
Chico.

Ps. U guys r nutz, leave the telepathic powers at home!! 

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]] 
Sent: 04 October 2002 13:42
To: Struts Users Mailing List
Subject: RE: CheckBox and Boolean[] Array - Incorrect Values Submitted When
CheckBox is unchecked

Wrote it before I read yours.
Just had a beer and a GT so my telepathic powers must have come online as a
result ;-)
Ahhh... I do so love Fridays.

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 20:21
To: 'Struts Users Mailing List'
Subject: RE: CheckBox and Boolean[] Array - Incorrect Values Submitted
When CheckBox is unchecked


Hey man!  RU refactoring my messages?  ;-)

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 8:17 AM
To: Struts Users Mailing List
Subject: RE: CheckBox and Boolean[] Array - Incorrect Values Submitted
When CheckBox is unchecked


For multiple, you also must set values back to false in reset() (The
question here of course is which checkbox refers to which element. You may
need to refactor such that your checkboxes return non boolean values so you
can tell which is which at the server end).
The reason for this is that the html spec in all its gory... uh I mean
glory... has in its infinite wisdom defined that a checkbox ( radio button
I think) that has not been ticked will not submit any value to the server.
Afaik same is true for SELECT btw (multiple selections where nothing
selected)

-Original Message-
From: Charlesworth, Chico [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 19:11
To: 'Struts Users Mailing List'
Subject: CheckBox and Boolean[] Array - Incorrect Values Submitted When
CheckBox is unchecked



Hi,

I'm trying to iterate through a Boolean Array using logic:iterate and then
display these as check boxes. This works fine, but when submitting the form
and resending the Boolean Array back to the Action class, only the values
that are true are returned.

In the struts documentation it says:
WARNING: In order to correctly recognize unchecked checkboxes, the
ActionForm bean associated with this form must include a statement setting
the corresponding boolean property to false in the reset() method.

But this only implies for a single property.

Is there a workaround or a fix for this?

My jsp code:

logic:iterate id=flag name=myForm property=flags
logic:equal name= flag  value=true
input type=checkbox id=flags name=flags value=on
checked=checked
/logic:equal
logic:notEqual name= flag  value=true
input type=checkbox id=flags name=flags value=on
/logic:notEqual
/logic:iterate

Cheers,
Chico.

--
The content of this e-mail is confidential, may contain privileged material
and is intended solely for the recipient(s) named above. If you receive this
in error, please notify Software AG immediately and delete this e-mail.

Software AG (UK) Limited
Registered in England  Wales 1310740
Registered Office: Hudson House, Hudson Way,
Pride Park, Derby DE24 8HS

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


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

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


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

-- 
The content of this e-mail is confidential, may contain privileged material
and is intended solely for the recipient(s) named above. If you receive this
in error, please notify Software AG immediately and delete this e-mail.

Software AG (UK) Limited
Registered in England  Wales 1310740
Registered Office: Hudson House, Hudson Way,
Pride Park, Derby DE24 8HS

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




RE: Dynamic text fields

2002-10-04 Thread Galbreath, Mark

Let me put it this way:  you do not have the slightest clue as to what you
are doing.  This is so basic to Struts, it's impossible to give any advise
other than buy a book.

Mark

-Original Message-
From: Miguel Angel Medina Lopez [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 9:05 AM

I want to create dynamic text fields in a form and I following the example
form a previos thread of the list. In my JSP I have the following:

%
  String name=foo;
%
html:text property=%= name % size=50/

and when I execute it throw the next exception:


   [ServletException
in:/WEB-INF/paginas/cuerpos/privado/cuerpo-insertarfaq.jsp] No getter
   method for property %= name % of bean
org.apache.struts.taglib.html.BEAN'

What am I doing wrong?

Thank you in advance

MAML


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

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




RE: CheckBox and Boolean[] Array - Incorrect Values Submitted Whe n CheckBox is unchecked

2002-10-04 Thread Galbreath, Mark

And the crowd roars!!!

-Original Message-
From: Charlesworth, Chico [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 8:56 AM
To: 'Struts Users Mailing List'
Subject: RE: CheckBox and Boolean[] Array - Incorrect Values Submitted
Whe n CheckBox is unchecked



Sorted!!

Got a String[] (checkboxes), and when form is submitted the positions of the
checked checkboxes are sent in this array ...

% int i = 0; %
logic:iterate id=flag name=myForm property=flags
logic:equal name= flag  value=true
input type=checkbox id=checkboxes name=checkboxes 
value=%=new Integer(i).toString()% checked=checked
/logic:equal
logic:notEqual name=flag value=true
input type=checkbox id=checkboxes name=checkboxes 
value=%=new Integer(i).toString()%
/logic:notEqual
% i++; %
/logic:iterate

Cheers,
Chico.

Ps. U guys r nutz, leave the telepathic powers at home!! 

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]] 
Sent: 04 October 2002 13:42
To: Struts Users Mailing List
Subject: RE: CheckBox and Boolean[] Array - Incorrect Values Submitted When
CheckBox is unchecked

Wrote it before I read yours.
Just had a beer and a GT so my telepathic powers must have come online as a
result ;-)
Ahhh... I do so love Fridays.

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 20:21
To: 'Struts Users Mailing List'
Subject: RE: CheckBox and Boolean[] Array - Incorrect Values Submitted
When CheckBox is unchecked


Hey man!  RU refactoring my messages?  ;-)

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 8:17 AM
To: Struts Users Mailing List
Subject: RE: CheckBox and Boolean[] Array - Incorrect Values Submitted
When CheckBox is unchecked


For multiple, you also must set values back to false in reset() (The
question here of course is which checkbox refers to which element. You may
need to refactor such that your checkboxes return non boolean values so you
can tell which is which at the server end).
The reason for this is that the html spec in all its gory... uh I mean
glory... has in its infinite wisdom defined that a checkbox ( radio button
I think) that has not been ticked will not submit any value to the server.
Afaik same is true for SELECT btw (multiple selections where nothing
selected)

-Original Message-
From: Charlesworth, Chico [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 19:11
To: 'Struts Users Mailing List'
Subject: CheckBox and Boolean[] Array - Incorrect Values Submitted When
CheckBox is unchecked



Hi,

I'm trying to iterate through a Boolean Array using logic:iterate and then
display these as check boxes. This works fine, but when submitting the form
and resending the Boolean Array back to the Action class, only the values
that are true are returned.

In the struts documentation it says:
WARNING: In order to correctly recognize unchecked checkboxes, the
ActionForm bean associated with this form must include a statement setting
the corresponding boolean property to false in the reset() method.

But this only implies for a single property.

Is there a workaround or a fix for this?

My jsp code:

logic:iterate id=flag name=myForm property=flags
logic:equal name= flag  value=true
input type=checkbox id=flags name=flags value=on
checked=checked
/logic:equal
logic:notEqual name= flag  value=true
input type=checkbox id=flags name=flags value=on
/logic:notEqual
/logic:iterate

Cheers,
Chico.

--
The content of this e-mail is confidential, may contain privileged material
and is intended solely for the recipient(s) named above. If you receive this
in error, please notify Software AG immediately and delete this e-mail.

Software AG (UK) Limited
Registered in England  Wales 1310740
Registered Office: Hudson House, Hudson Way,
Pride Park, Derby DE24 8HS

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


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

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


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

-- 
The content of this e-mail is confidential, may contain privileged material
and is intended solely for the recipient(s) named above. If you receive this
in error, please notify Software AG immediately and delete this e-mail.

Software AG (UK) Limited
Registered in England  Wales 1310740
Registered Office: Hudson House, Hudson Way,
Pride Park, Derby DE24 8HS

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

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




RE: CheckBox and Boolean[] Array - Incorrect Values Submitted When CheckBox is unchecked

2002-10-04 Thread Andrew Hill

Hehe. Glad to here you got it going. :-)
Speaking of going, Im going home, and taking my telepathic powers with me.
(Which Im sure will annoy Mark who's still got the whole day ahead of him
yet hehe ;-)

-Original Message-
From: Charlesworth, Chico [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 20:56
To: 'Struts Users Mailing List'
Subject: RE: CheckBox and Boolean[] Array - Incorrect Values Submitted
When CheckBox is unchecked



Sorted!!

Got a String[] (checkboxes), and when form is submitted the positions of the
checked checkboxes are sent in this array ...

% int i = 0; %
logic:iterate id=flag name=myForm property=flags
logic:equal name= flag  value=true
input type=checkbox id=checkboxes name=checkboxes
value=%=new Integer(i).toString()% checked=checked
/logic:equal
logic:notEqual name=flag value=true
input type=checkbox id=checkboxes name=checkboxes
value=%=new Integer(i).toString()%
/logic:notEqual
% i++; %
/logic:iterate

Cheers,
Chico.

Ps. U guys r nutz, leave the telepathic powers at home!!

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: 04 October 2002 13:42
To: Struts Users Mailing List
Subject: RE: CheckBox and Boolean[] Array - Incorrect Values Submitted When
CheckBox is unchecked

Wrote it before I read yours.
Just had a beer and a GT so my telepathic powers must have come online as a
result ;-)
Ahhh... I do so love Fridays.

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 20:21
To: 'Struts Users Mailing List'
Subject: RE: CheckBox and Boolean[] Array - Incorrect Values Submitted
When CheckBox is unchecked


Hey man!  RU refactoring my messages?  ;-)

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 8:17 AM
To: Struts Users Mailing List
Subject: RE: CheckBox and Boolean[] Array - Incorrect Values Submitted
When CheckBox is unchecked


For multiple, you also must set values back to false in reset() (The
question here of course is which checkbox refers to which element. You may
need to refactor such that your checkboxes return non boolean values so you
can tell which is which at the server end).
The reason for this is that the html spec in all its gory... uh I mean
glory... has in its infinite wisdom defined that a checkbox ( radio button
I think) that has not been ticked will not submit any value to the server.
Afaik same is true for SELECT btw (multiple selections where nothing
selected)

-Original Message-
From: Charlesworth, Chico [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 19:11
To: 'Struts Users Mailing List'
Subject: CheckBox and Boolean[] Array - Incorrect Values Submitted When
CheckBox is unchecked



Hi,

I'm trying to iterate through a Boolean Array using logic:iterate and then
display these as check boxes. This works fine, but when submitting the form
and resending the Boolean Array back to the Action class, only the values
that are true are returned.

In the struts documentation it says:
WARNING: In order to correctly recognize unchecked checkboxes, the
ActionForm bean associated with this form must include a statement setting
the corresponding boolean property to false in the reset() method.

But this only implies for a single property.

Is there a workaround or a fix for this?

My jsp code:

logic:iterate id=flag name=myForm property=flags
logic:equal name= flag  value=true
input type=checkbox id=flags name=flags value=on
checked=checked
/logic:equal
logic:notEqual name= flag  value=true
input type=checkbox id=flags name=flags value=on
/logic:notEqual
/logic:iterate

Cheers,
Chico.

--
The content of this e-mail is confidential, may contain privileged material
and is intended solely for the recipient(s) named above. If you receive this
in error, please notify Software AG immediately and delete this e-mail.

Software AG (UK) Limited
Registered in England  Wales 1310740
Registered Office: Hudson House, Hudson Way,
Pride Park, Derby DE24 8HS

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


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

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


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

--
The content of this e-mail is confidential, may contain privileged material
and is intended solely for the recipient(s) named above. If you receive this
in error, please notify Software AG immediately and delete this e-mail.

Software AG (UK) Limited
Registered in England  Wales 1310740
Registered Office: Hudson House, Hudson Way,
Pride Park, Derby DE24 8HS

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


--
To unsubscribe, 

Re: FW: [FRIDAY] failure notice

2002-10-04 Thread Eddie Bush

LOL - it's not me!  Those headers look strangely familiar though!

Galbreath, Mark wrote:

Okay, Eddie, cut it out!


-- 
Eddie Bush




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




RE: [FRIDAY] Randy Andy

2002-10-04 Thread Galbreath, Mark

Well, one of the team just brought in lox, whitefish, cream cheese, assorted
bagels, capers, red onion, tomatoes and OJ, so at least we can f*ck off for
awhile.

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 9:07 AM

Hehe. Glad to here you got it going. :-)
Speaking of going, Im going home, and taking my telepathic powers with me.
(Which Im sure will annoy Mark who's still got the whole day ahead of him
yet hehe ;-)

-Original Message-
From: Charlesworth, Chico [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 20:56


Sorted!!

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




[FRIDAY] More coffee needed!!

2002-10-04 Thread Dave Derry

That's still Derry.Dave Derry!

But I guess if it's easier for you...you can call be
Jerry ;-)

Dave Derry


- Original Message -
From: Galbreath, Mark [EMAIL PROTECTED]


 Thanks a lot, Jerry.

 ;-)

 -Original Message-
 From: Dave Derry [mailto:[EMAIL PROTECTED]]


 He's doing it as a service for those who are filtering you Mark!;-))


 - Original Message -
 From: Galbreath, Mark [EMAIL PROTECTED]


  Hey man!  RU refactoring my messages?  ;-)
 
  -Original Message-
  From: Andrew Hill [mailto:[EMAIL PROTECTED]]
 
 
  For multiple, you also must set values back to false in reset() (The
  question here of course is which checkbox refers to which element. You
may
  need to refactor such that your checkboxes return non boolean values so
 you
  can tell which is which at the server end).
  The reason for this is that the html spec in all its gory... uh I mean
  glory... has in its infinite wisdom defined that a checkbox ( radio
 button
  I think) that has not been ticked will not submit any value to the
server.
  Afaik same is true for SELECT btw (multiple selections where nothing
  selected)
 



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




Re: [Tiles] Conditional menu items. Help !!!!

2002-10-04 Thread LFung

Thanks a lot Cedric.

I think the best solution is 3. Do you have some Controller Sample code,
I'am never have been worked with it.

Any way thanks for your reply.

LFung.

- Original Message -
From: Cedric Dumoulin [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, October 03, 2002 1:18 AM
Subject: Re: [Tiles] Conditional menu items. Help 



   Hello,

   There is several solutions to have different menu for different users
 or profile.
 You need to have some logic that select or build the menu according to
 the current user profile.
 Solution 1:

 * Create an action with one forward for each possible menu. The
   action checks the user profile, and call forward to appropriate
menu.
 * Create one tiles definition for each possible menu
 * Associate forwards to definitions
 * Call the action each time you need to render the menu

 Solution 2:

 * Create one action that build dynamically the menu definition to be
   rendered
 * Action push the definition in request session (see examples in
   tiles-doc/test)
 * Action do its forward, which will use the pushed definition

 Solution 3:

 * Associate a controller to your menu definition
 * This controller build/modify the list of menu item

   Hope this help,

 Cedric

 LFung wrote:

 Hi.
 
 I'am using tiles from struts 1.1b1 and I need to add some menu items only
for specific users.
 
 Then my action forward take this sample path = forward.common.users.home
 
 this is a define that use some default menu, now for example, some
special users use this same menu, in fact the hole template, but with only a
few more items in the menu.
 
 Supose I have some bean loeded in the action that tells me if the
agregate menu items need to be displayed.
 
 Any idea.
 
 Thanks in advance.
 
 LFung.
 
 
 



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





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




RE: [FRIDAY] More coffee needed!!

2002-10-04 Thread Galbreath, Mark

Mine was a reference to yesterday (as I'm sure your changing the subject
line is) and was intentional.  Hey, Dave!  Wake up! :-)

-Original Message-
From: Dave Derry [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 9:36 AM
To: Struts Users Mailing List
Subject: [FRIDAY] More coffee needed!!


That's still Derry.Dave Derry!

But I guess if it's easier for you...you can call be
Jerry ;-)

Dave Derry


- Original Message -
From: Galbreath, Mark [EMAIL PROTECTED]


 Thanks a lot, Jerry.

 ;-)

 -Original Message-
 From: Dave Derry [mailto:[EMAIL PROTECTED]]


 He's doing it as a service for those who are filtering you Mark!;-))


 - Original Message -
 From: Galbreath, Mark [EMAIL PROTECTED]


  Hey man!  RU refactoring my messages?  ;-)
 
  -Original Message-
  From: Andrew Hill [mailto:[EMAIL PROTECTED]]
 
 
  For multiple, you also must set values back to false in reset() (The
  question here of course is which checkbox refers to which element. You
may
  need to refactor such that your checkboxes return non boolean values so
 you
  can tell which is which at the server end).
  The reason for this is that the html spec in all its gory... uh I mean
  glory... has in its infinite wisdom defined that a checkbox ( radio
 button
  I think) that has not been ticked will not submit any value to the
server.
  Afaik same is true for SELECT btw (multiple selections where nothing
  selected)
 



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

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




[1.1 b2] How to manage the struts-config programatically?

2002-10-04 Thread Ove Ranheim


How to manage the struts-config programatically. I tried both 1.1 beta 2
and the nightly build 20021004.

In my TestPlugin I write;

  public void init(ActionServlet servlet, ApplicationConfig config)
throws ServletException
  {

ActionConfig ac = null;
ForwardConfig fc = null;

ac = new ActionConfig();
ac.setPath( /articles );
ac.setForward( /layout/main.jsp );
config.addActionConfig( ac );

fc = new ForwardConfig(articles, /articles.do, false);
config.addForwardConfig( fc );

ac = new ActionConfig();
ac.setPath( /sections );
ac.setForward( /layout/main.jsp );
config.addActionConfig( ac );

fc = new ForwardConfig(sections, /sections.do, false);
config.addForwardConfig( fc );
  }

When addressing http://localhost:8080/test/sections.do an exception is
thrown;

16:12:58,015 WARN  [jbossweb] WARNING: Exception for /test/articles.do
java.lang.ClassCastException
at
org.apache.struts.action.RequestProcessor.processMapping(RequestProcesso
r.java:632)
at
org.foss.framework.web.admin.SiteRequestProcessor.processMapping(SiteReq
uestProcessor.java:33)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
232)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:366)
at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationH
andler.java:284)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:577)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1674)
at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationCon
text.java:544)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1624)
at org.mortbay.http.HttpServer.service(HttpServer.java:875)
at org.jboss.jetty.Jetty.service(Jetty.java:541)
at
org.mortbay.http.HttpConnection.service(HttpConnection.java:785)
at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:935)
at
org.mortbay.http.HttpConnection.handle(HttpConnection.java:802)
at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:200
)
at
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:294)
at
org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:743)
at java.lang.Thread.run(Thread.java:536)


- Ove Ranheim


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




Re: [FRIDAY] More coffee needed!!

2002-10-04 Thread Dave Derry

OK..Just got another cup of coffee. Want to pass the bagels and
lox??  ;-}

Dave Derry


- Original Message -
From: Galbreath, Mark [EMAIL PROTECTED]


 Mine was a reference to yesterday (as I'm sure your changing the subject
 line is) and was intentional.  Hey, Dave!  Wake up! :-)

 -Original Message-
 From: Dave Derry [mailto:[EMAIL PROTECTED]]


 That's still Derry.Dave Derry!

 But I guess if it's easier for you...you can call
be
 Jerry ;-)

 Dave Derry


 - Original Message -
 From: Galbreath, Mark [EMAIL PROTECTED]


  Thanks a lot, Jerry.
 
  ;-)
 
  -Original Message-
  From: Dave Derry [mailto:[EMAIL PROTECTED]]
 
 
  He's doing it as a service for those who are filtering you Mark!;-))
 
 
  - Original Message -
  From: Galbreath, Mark [EMAIL PROTECTED]
 
 
   Hey man!  RU refactoring my messages?  ;-)
  
   -Original Message-
   From: Andrew Hill [mailto:[EMAIL PROTECTED]]
  
  
   For multiple, you also must set values back to false in reset() (The
   question here of course is which checkbox refers to which element. You
 may
   need to refactor such that your checkboxes return non boolean values
so
  you
   can tell which is which at the server end).
   The reason for this is that the html spec in all its gory... uh I mean
   glory... has in its infinite wisdom defined that a checkbox ( radio
  button
   I think) that has not been ticked will not submit any value to the
 server.
   Afaik same is true for SELECT btw (multiple selections where nothing
   selected)
  



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

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




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




Re: [1.1 b2] How to manage the struts-config programatically?

2002-10-04 Thread Eddie Bush

No offense here - serious question:  Why not just use the config file 
and let the action servlet load it?

Ove Ranheim wrote:

How to manage the struts-config programatically. I tried both 1.1 beta 2
and the nightly build 20021004.

In my TestPlugin I write;


-- 
Eddie Bush




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




RE: [1.1 b2] How to manage the struts-config programatically?

2002-10-04 Thread Ove Ranheim

Because I want it parameterized through a database... right.

Ove

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: 4. oktober 2002 16:29
To: Struts Users Mailing List
Subject: Re: [1.1 b2] How to manage the struts-config programatically?


No offense here - serious question:  Why not just use the config file 
and let the action servlet load it?

Ove Ranheim wrote:

How to manage the struts-config programatically. I tried both 1.1 beta
2
and the nightly build 20021004.

In my TestPlugin I write;


-- 
Eddie Bush




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


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




html:form focus causes a javascript error if the element is a radiobutton

2002-10-04 Thread Gilles . Vandaele


Hi there funny crew,

did someone allready noticed  that Struts's html:form tag generate this
kind of javascript:...

document.forms[AnyFormName].elements[anyFieldName].focus()

...to give the focus to the element 'anyFieldName'  of the form , and that
it causes a javascript error if the element is a radio button.

My JSP is generated and I cannot guess whish type of element will be first
focussed.

I guess that the tag have to generate this:
document.forms[AnyFormName].elements[anyFieldName][0].focus()
in the case of radio button input element.

Is it a bug or am I wrong? Will I have to set the focus in a scriptlet?



Gilles Vandaele
0498 52 64 12
[EMAIL PROTECTED] Vandaele
0498 52 64 12
[EMAIL PROTECTED]


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




Re: DanaFormBean and Non Primative property type

2002-10-04 Thread Dan Tran

Hi Mark,

I was wrong, String is not a primative type.

To make thing more clear, here is my class

public class Duns
{
 public Duns();
 public Duns(String value);
 public String toString();
 }

I hope this is clearer this time.

-D
- Original Message -
From: Galbreath, Mark [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, October 04, 2002 4:43 AM
Subject: RE: DanaFormBean and Non Primative property type


 RU kidding?  You need more help than you can get here if you think a
String
 is a primitive.  And what kind of question is this?  Are we to, like, read
 your mind and see your code to guess whatever it is you are trying to do
 in your classes?  Hey!  Even we are not that good.  But so this post is
not
 totally bw wastage, here's a suggestion I hope you appreciate:

 http://www.tuxedo.org/~esr/faqs/smart-questions.html


 Mark

 -Original Message-
 From: Dan Tran [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 03, 2002 9:39 PM

 Hi I would like to use DataFormBean with properties are
 not primative types like int, java.lang.String

 What are the requirements  to create a customized
 property type?

 For example,  I have a DUNS java class which is a
 specialized string.  What kind of methods in my DUNS class that I need to
 implement to make DanaFormBean happy? (like toString, DUNS(String init),
 etc??)

 Suggestions are greatly appreciated.

 -Dan

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


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




Accessing another action's form from within an action?

2002-10-04 Thread Davide Bruzzone

Hello all...

I'd like to know if this is possible, and if so how:

- A user submits a form
- The request hits the appropriate action (ActionA), and when the action
gets to return (mapping.findForward(forwardName));, the forwardName
forward maps to another action, say:

...
forward name=forwardName redirect=false
path=/ActionB.do?action=view/
...

- ActionB is reached
- What I'd like to be able to do is access the form object that was
available to the first action (FormA) in ActionB (since it is this form
object that has the values that I need to do some work in ActionB). Within
struts-config.xml, ActionA is associated with FormA and ActionB is
associated with FormB.

I could put the information that I need into the session, but I want to find
out if there's a built-in/more elegant way to do this.

Any information would be greatly appreciated...

Dave Bruzzone

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




Re: JavaBean question (OOPS)

2002-10-04 Thread Dan Tran

It is first edition, page 63.  But I take it back, he uses
String for the birthdate.

Thanks for your dedication.

-D
- Original Message -
From: Galbreath, Mark [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, October 04, 2002 4:38 AM
Subject: RE: JavaBean question (OOPS)


 Please cite a more precise reference to Hans' book.

 -Original Message-
 From: Dan Tran [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 03, 2002 7:17 PM
 To: Struts Users Mailing List
 Subject: Re: JavaBean question (OOPS)


 Thank you for the example,   for now I will try to
 use it .

 However, I also happen to see a example in Hans Bergsten 's JSP pages,

 which is similar to what I have but using the standard
 java Date class which only implements toString() and
 valueOf(String ...)

 Does it mean, JSP hardwire the translation with some specific primative
type
 and some specifict classes?

 -Dan
 - Original Message -
 From: Brandon Goodin [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Thursday, October 03, 2002 3:54 PM
 Subject: RE: JavaBean question (OOPS)


  the secon setter was a copy and past it should be
 
  private String stringTimestamp;
 
  public void setStringTimestamp(String stringTimestamp){
  this.stringTimestamp = stringTimestamp;
  }
 
  -Original Message-
  From: Brandon Goodin [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, October 03, 2002 4:52 PM
  To: Struts Users Mailing List
  Subject: RE: JavaBean question
 
 
  Since i don't completely know your bean... i'll make a guess at it.
 
  It would probably look something like this:
 
  public class MyTimeStamp  {
 
  private Timestamp timestamp;
 
  public MyTimeStamp(){
  }
 
  public void setTimestamp(Timestamp timestamp){
  this.timestamp = timestamp;
  }
 
  public Timestamp getTimestamp(){
  return timestamp;
  }
 
  public void setTimestamp(Timestamp timestamp){
  this.timestamp = timestamp;
  }
 
  public String getStringTimestamp(){
  return timestamp.toString()
  }
  }
 
  then use:
 
  html:text property=myTimestamp.stringTimestamp 
 
  Brandon Goodin
  Phase Web and Multimedia
  P(406)862-2245
  F(406)862-0354
  http://www.phase.ws
 
  -Original Message-
  From: Dan Tran [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, October 03, 2002 4:29 PM
  To: Struts Users Mailing List
  Subject: Re: JavaBean question
 
 
  Hi Brandon,  thank you for  the quick reply
 
  What I try to achieve is somehow move a String
  presetantation of a object between JSP page and a JavaClass
 
  As far as I know how, if my java class provides set/get
  method for primitive types, JSP can move the data for me
 
  However, my java class get/set property method uses a object define by
me
  (ex  MyTimestamp)
 
  The question here is What kind of method(s) in the MyTimestamp do I need
 to
  implement  inorder for JSP to move the string presentation of my
 MyTimestamp
  to the JSP form?
 
  Hope I am able to be specific this time.
 
  -Dan
 
  - Original Message -
  From: Brandon Goodin [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Thursday, October 03, 2002 3:16 PM
  Subject: RE: JavaBean question
 
 
   If you are asking how you would get the value of B from the A
bean.
  The
   you could use the nested property reference dot notation like:
 html:text
   property=a.b.someProperty. Otherwise, you need to be more specific.
  What
   are you trying to accomplish?
  
   Brandon Goodin
   Phase Web and Multimedia
   P(406)862-2245
   F(406)862-0354
   http://www.phase.ws
  
   -Original Message-
   From: Dan Tran [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, October 03, 2002 4:04 PM
   To: Struts Users Mailing List
   Subject: JavaBean question
  
  
   Hi I have a java bean A that has a property which is defined as a
nother
   java object B.
  
  
   class A {
   private B _b;
  
   public A() {}
   public B getB() { return _b ;}
   public void setB( B b) { _b = b ; }
   }
  
   How can I implement B so that it can be transfered from bean to a
form
   like
  
   html:text property=b 
  
  
   Any suggestion?
  
   -Dan
  
  
  
   --
   To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 

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

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


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

Re: [1.1 b2] How to manage the struts-config programatically?

2002-10-04 Thread Eddie Bush

Hint:  Struts uses the commons-digester to load the configuration (from 
files, currently) ... in a lot less lines of code than I can see you 
having in your plugin :-)

I was going to add that you couldn't modify the configuration with your 
plugin because it would be frozen - but that appears to be invalid. 
 Looking closer at the source shows plugins are initialized before the 
configuration is frozen.  In other words, this should be a very doable 
approach.

I would see if there were some way I could feed the digester from a DB 
source.  You may well find this to be a lot better solution than having 
to hand code the entire process yourself.

Ove Ranheim wrote:

Because I want it parameterized through a database... right.

Ove

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: 4. oktober 2002 16:29
To: Struts Users Mailing List
Subject: Re: [1.1 b2] How to manage the struts-config programatically?

No offense here - serious question:  Why not just use the config file 
and let the action servlet load it?


-- 
Eddie Bush




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




Re: html:form focus causes a javascript error if the element is aradio button

2002-10-04 Thread Eddie Bush

Ask Bugzilla :-)  http://issues.apache.org/bugzilla

[EMAIL PROTECTED] wrote:

Hi there funny crew,

did someone allready noticed  that Struts's html:form tag generate this
kind of javascript:...

document.forms[AnyFormName].elements[anyFieldName].focus()

...to give the focus to the element 'anyFieldName'  of the form , and that
it causes a javascript error if the element is a radio button.

My JSP is generated and I cannot guess whish type of element will be first
focussed.

I guess that the tag have to generate this:
document.forms[AnyFormName].elements[anyFieldName][0].focus()
in the case of radio button input element.

Is it a bug or am I wrong? Will I have to set the focus in a scriptlet?



Gilles Vandaele
0498 52 64 12
[EMAIL PROTECTED] Vandaele
0498 52 64 12
[EMAIL PROTECTED]


-- 
Eddie Bush




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




Re: Accessing another action's form from within an action?

2002-10-04 Thread Dave Derry

You could attach the form to the request in Action A and retrieve in in
Action B.

Action A:  request.setAttribute( ActionAForm, theFormForActionA );

Action B: ActionAForm theForm = (ActionAForm)request.getAttribute(
ActionAForm );

Would that work for you?

Dave Derry


- Original Message -
From: Davide Bruzzone [EMAIL PROTECTED]


 Hello all...

 I'd like to know if this is possible, and if so how:

 - A user submits a form
 - The request hits the appropriate action (ActionA), and when the action
 gets to return (mapping.findForward(forwardName));, the forwardName
 forward maps to another action, say:

 ...
 forward name=forwardName redirect=false
 path=/ActionB.do?action=view/
 ...

 - ActionB is reached
 - What I'd like to be able to do is access the form object that was
 available to the first action (FormA) in ActionB (since it is this form
 object that has the values that I need to do some work in ActionB). Within
 struts-config.xml, ActionA is associated with FormA and ActionB is
 associated with FormB.

 I could put the information that I need into the session, but I want to
find
 out if there's a built-in/more elegant way to do this.

 Any information would be greatly appreciated...

 Dave Bruzzone



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




html:form focus causes a javascript error if the element is a radiobutton

2002-10-04 Thread Gilles . Vandaele

Hi there funny crew,

did someone allready noticed  that Struts's html:form tag generate this
kind of javascript   :  ...

document.forms[AnyFormName].elements[anyFieldName].focus()

...to give the focus to the element 'anyFieldName'  of the form , and that
it causes a javascript error if the element is a radio button.

My JSP is generated and I cannot guess whish type of element will be first
focussed.

I guess that the tag have to generate this:
document.forms[AnyFormName].elements[anyFieldName][0].focus()
in the case of radio button input element.

Is it a bug or am I wrong? Will I have to set the focus in a scriptlet?



Gilles Vandaele
0498 52 64 12
[EMAIL PROTECTED] Vandaele



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




Re: html:form focus causes a javascript error if the element is aradio button

2002-10-04 Thread Gilles . Vandaele


Got it.
Tx.

Gilles Vandaele
0498 52 64 12
[EMAIL PROTECTED]


   
  
   Eddie Bush  
  
   [EMAIL PROTECTED]  To:Struts Users Mailing List   
  
   [EMAIL PROTECTED]
  
   04/10/2002 16:46 cc:
  
Subject:  Re: html:form focus causes a 
javascript error if the   
   element is a radio button   
  
   
  
Please respond to Struts Users Mailing 
List  
   
  
   
  
   
  




Ask Bugzilla :-)  http://issues.apache.org/bugzilla

[EMAIL PROTECTED] wrote:

Hi there funny crew,

did someone allready noticed  that Struts's html:form tag generate this
kind of javascript:...

document.forms[AnyFormName].elements[anyFieldName].focus()

...to give the focus to the element 'anyFieldName'  of the form , and that
it causes a javascript error if the element is a radio button.

My JSP is generated and I cannot guess whish type of element will be first
focussed.

I guess that the tag have to generate this:
document.forms[AnyFormName].elements[anyFieldName][0].focus()
in the case of radio button input element.

Is it a bug or am I wrong? Will I have to set the focus in a scriptlet?



Gilles Vandaele
0498 52 64 12
[EMAIL PROTECTED] Vandaele
0498 52 64 12
[EMAIL PROTECTED]


--
Eddie Bush




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






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




Re: html:form focus causes a javascript error if the element is a radio button

2002-10-04 Thread David Graham

In case you don't find it on bugzilla, I believe this is a known bug.

Dave


From: [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: html:form focus causes a javascript error if the element is a 
radio button
Date: Fri, 04 Oct 2002 17:06:53 +0200


Got it.
Tx.

Gilles Vandaele
0498 52 64 12
[EMAIL PROTECTED]



Eddie Bush
[EMAIL PROTECTED]  To:Struts Users Mailing 
List

[EMAIL PROTECTED]
04/10/2002 16:46 cc:
 Subject:  Re: html:form focus 
causes a javascript error if the
element is a radio 
button

 Please respond to Struts Users 
Mailing List







Ask Bugzilla :-)  http://issues.apache.org/bugzilla

[EMAIL PROTECTED] wrote:

 Hi there funny crew,
 
 did someone allready noticed  that Struts's html:form tag generate this
 kind of javascript:...
 
 document.forms[AnyFormName].elements[anyFieldName].focus()
 
 ...to give the focus to the element 'anyFieldName'  of the form , and 
that
 it causes a javascript error if the element is a radio button.
 
 My JSP is generated and I cannot guess whish type of element will be 
first
 focussed.
 
 I guess that the tag have to generate this:
 document.forms[AnyFormName].elements[anyFieldName][0].focus()
 in the case of radio button input element.
 
 Is it a bug or am I wrong? Will I have to set the focus in a scriptlet?
 
 
 
 Gilles Vandaele
 0498 52 64 12
 [EMAIL PROTECTED] Vandaele
 0498 52 64 12
 [EMAIL PROTECTED]
 

--
Eddie Bush




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






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




_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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




RE: Accessing another action's form from within an action?

2002-10-04 Thread Davide Bruzzone

Dave,

Thanks for the suggestion...

Yes, the request will work... Its shorter-lived than the session so I think
that it is a better alternative.

Cheers...

Dave

-Original Message-
From: Dave Derry [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 9:04 AM
To: Struts Users Mailing List
Subject: Re: Accessing another action's form from within an action?


You could attach the form to the request in Action A and retrieve in in
Action B.

Action A:  request.setAttribute( ActionAForm, theFormForActionA );

Action B: ActionAForm theForm = (ActionAForm)request.getAttribute(
ActionAForm );

Would that work for you?

Dave Derry


- Original Message -
From: Davide Bruzzone [EMAIL PROTECTED]


 Hello all...

 I'd like to know if this is possible, and if so how:

 - A user submits a form
 - The request hits the appropriate action (ActionA), and when the action
 gets to return (mapping.findForward(forwardName));, the forwardName
 forward maps to another action, say:

 ...
 forward name=forwardName redirect=false
 path=/ActionB.do?action=view/
 ...

 - ActionB is reached
 - What I'd like to be able to do is access the form object that was
 available to the first action (FormA) in ActionB (since it is this form
 object that has the values that I need to do some work in ActionB). Within
 struts-config.xml, ActionA is associated with FormA and ActionB is
 associated with FormB.

 I could put the information that I need into the session, but I want to
find
 out if there's a built-in/more elegant way to do this.

 Any information would be greatly appreciated...

 Dave Bruzzone



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

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




[OT] [session] Shared userId

2002-10-04 Thread Aravapalli, Udaya

Hi 

I want to check if an user tries to login with an userId for
which a session is already existing and show a message.

This can also be applied if two users want to share the same
userId and try to login at the same time. 
Whenever a session is being created by the user , I want to
store   the userId in the database using the valueBound method in
HttpSessionBindingListener and remove it from the Database when the
session is invalidated using the valueUnbound method. But   this will
not work if the user does not explicitly invalidate the session (like
closing the browser).Then the session will remain active until  the
session time out has reached. Is there any way to determine an browser
closing action by the user and invalidate the session..

thanks 
Uday 




RE: DanaFormBean and Non Primative property type

2002-10-04 Thread Galbreath, Mark

Dan,

Are you asking how to code a standard JavaBean for use as an ActionForm
object?

Mark

-Original Message-
From: Dan Tran [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 10:35 AM

I was wrong, String is not a primative type.

To make thing more clear, here is my class

public class Duns
{
 public Duns();
 public Duns(String value);
 public String toString();
 }

I hope this is clearer this time.

-D
- Original Message -
From: Galbreath, Mark [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]

 RU kidding?  You need more help than you can get here if you think a
String
 is a primitive.  And what kind of question is this?  Are we to, like, read
 your mind and see your code to guess whatever it is you are trying to do
 in your classes?  Hey!  Even we are not that good.  But so this post is
not
 totally bw wastage, here's a suggestion I hope you appreciate:

 http://www.tuxedo.org/~esr/faqs/smart-questions.html


 Mark

 -Original Message-
 From: Dan Tran [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 03, 2002 9:39 PM

 Hi I would like to use DataFormBean with properties are
 not primative types like int, java.lang.String

 What are the requirements  to create a customized
 property type?

 For example,  I have a DUNS java class which is a
 specialized string.  What kind of methods in my DUNS class that I need to
 implement to make DanaFormBean happy? (like toString, DUNS(String init),
 etc??)

 Suggestions are greatly appreciated.

 -Dan

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




RE: JavaBean question (OOPS)

2002-10-04 Thread Galbreath, Mark

Shucks...and I was ready to pounce on that one!  ;-)

-Original Message-
From: Dan Tran [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 10:37 AM

It is first edition, page 63.  But I take it back, he uses
String for the birthdate.

Thanks for your dedication.

-D
- Original Message -
From: Galbreath, Mark [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, October 04, 2002 4:38 AM
Subject: RE: JavaBean question (OOPS)


 Please cite a more precise reference to Hans' book.

 -Original Message-
 From: Dan Tran [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 03, 2002 7:17 PM

 Thank you for the example,   for now I will try to
 use it .

 However, I also happen to see a example in Hans Bergsten 's JSP pages,

 which is similar to what I have but using the standard
 java Date class which only implements toString() and
 valueOf(String ...)

 Does it mean, JSP hardwire the translation with some specific primative
type
 and some specifict classes?

 -Dan

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




Example Design Documentation - wanted

2002-10-04 Thread Mark Conlin

 
Hello All, 
 
I am working on a mid-sized project and am having difficulty with the
layout and presentation of my detailed design document(s).
A lot of information must be shown for each Use Case Realization.
 
This is what I have so far;
1)   The classes and jsps used
2)   Description of the Operation (essentially what the Action does,
with help from business objects)
3)   Screen elements [(link, label, button), source (in the resource
file), and href (action or forward) ]
4)   form action(s) for the screen
5)   FormBean for the screen
6)   FormBean Validation error messages
7)   Action Errors
8)   Action Mappings
9)   What the Action adds/updates/deletes from the session
 
My document is a bit ugly, and was hoping someone out there might have
an example of a detailed design document(s) that represents Design Use
Case Realizations in a clear and concise way.
 
Thank you
Mark Conlin



O'Reilly struts book

2002-10-04 Thread Derrick Malone

I see that this won't be out (here in the UK at least) until the end of
November.

Been reading the review chapters that were available on theserverside, but
there are a couple of chapters missing... does anybody out there have
chapters 8, 15, 17 and 19? Perhaps these were never made available, but it
would be great to have a look at them without having to wait 2 months for
publication.. i promise i will buy the book when it becomes available :~)

Thanks in advance,

d



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




Parsing error processing resource path /WEB-INF/struts-config.xml

2002-10-04 Thread Ramu, Manjukumar [PRDUS]

Hello All,
I am getting the following exception with Weblogic 6.1 SP3 in UNIX.
My applciation is working fine in WINDOWS 2000, Just I copied the
application to the Unix platform, I am getting the following error. Does
anybody know what would be the problem?

Thanks for the Help!

-Manju

javax.servlet.UnavailableException: Parsing error processing resource path
/WEB-INF/struts-config.xml
at
org.apache.struts.action.ActionServlet.initApplicationConfig(ActionServlet.j
ava:780)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:417)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java
:713)
at
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.ja
va:656)
at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.jav
a:601)
at
weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletC
ontext.java:2272)
at
weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServlet
Context.java:2216)
at
weblogic.servlet.internal.HttpServer.preloadServlets(HttpServer.java:495)
at
weblogic.servlet.internal.WebService.preloadServlets(WebService.java:450)
at weblogic.t3.srvr.ServletInitRunner.run(ServletInitRunner.java:49)



RE: O'Reilly struts book

2002-10-04 Thread Galbreath, Mark

I don't think those were ever made available.  I helped edit the book and I
am missing those chapters as well.

Mark

-Original Message-
From: Derrick Malone [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 12:02 PM
To: Struts Users Mailing List
Subject: O'Reilly struts book


I see that this won't be out (here in the UK at least) until the end of
November.

Been reading the review chapters that were available on theserverside, but
there are a couple of chapters missing... does anybody out there have
chapters 8, 15, 17 and 19? Perhaps these were never made available, but it
would be great to have a look at them without having to wait 2 months for
publication.. i promise i will buy the book when it becomes available :~)

Thanks in advance,

d



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

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




Re: [OT] [session] Shared userId

2002-10-04 Thread James Mitchell

I know what you want to do.  In the web environment, it is impossible.

For every solution you can think of, I can come up with at least 2 what 
if scenarios that will invalidate your logic.
I've been through this with at least 5 different Product Managers and 
there is just no way to handle it.

Sorry if this is only discouraging news, but it is reality.

Good Luck

James

Aravapalli, Udaya wrote:

Hi 

I want to check if an user tries to login with an userId for
which a session is already existing and show a message.

This can also be applied if two users want to share the same
userId and try to login at the same time. 
Whenever a session is being created by the user , I want to
store   the userId in the database using the valueBound method in
HttpSessionBindingListener and remove it from the Database when the
session is invalidated using the valueUnbound method. But   this will
not work if the user does not explicitly invalidate the session (like
closing the browser).Then the session will remain active until  the
session time out has reached. Is there any way to determine an browser
closing action by the user and invalidate the session..

thanks 
Uday 






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




RE: [OT] [session] Shared userId

2002-10-04 Thread Galbreath, Mark

Not without using a persistent connection with an applet.  HTTP is a
stateless protocol, remember?

-Original Message-
From: Aravapalli, Udaya [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 11:46 AM

Is there any way to determine an browser closing action by the user and
invalidate the session?

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




Re: [OT] [session] Shared userId

2002-10-04 Thread Eddie Bush

No - there's not a reliable way to do it.  You could lower your session 
timeout - or simply inform your users of the consequences of not logging 
out.  Of course, there are going to be some folks who will have Windows 
crash on them (!) and they might get a bit perterbed that - through no 
fault of their own - they have to wait for their session to expire 
before they can log back in.

You might ... give yourself a way to get ahold of the existing session 
and close that session.  Of course ... that could perterb some folks too 
:-)  I suppose you could examine it before you close it and see how long 
it has been idle.  You could then implement some policy of A session 
must be idle XX minutes before we can manually 'trash' it.  So you'd 
wind up examining the session on basis of how long it has sat idle - and 
only drop folks that are idle for a given period of time (ex.  session 
timeout is normally 30 minutes, but you implement an agressive timeout 
of 15 minutes [ or shorter, according to your view/needs ]).

Aravapalli, Udaya wrote:

Hi 

I want to check if an user tries to login with an userId for
which a session is already existing and show a message.

This can also be applied if two users want to share the same
userId and try to login at the same time. 
Whenever a session is being created by the user , I want to
store   the userId in the database using the valueBound method in
HttpSessionBindingListener and remove it from the Database when the
session is invalidated using the valueUnbound method. But   this will
not work if the user does not explicitly invalidate the session (like
closing the browser).Then the session will remain active until  the
session time out has reached. Is there any way to determine an browser
closing action by the user and invalidate the session..

thanks 
Uday 

-- 
Eddie Bush




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




[OT][FRIDAY] brain types

2002-10-04 Thread Dan Cancro

What types of brains do Struts users have?

http://www.braintypes.com/news_from.htm#letters

Mine's an ISTJ type

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




Re: DanaFormBean and Non Primative property type

2002-10-04 Thread Dan Tran

Hi Mark,

I am looking for way to code a custom property in a ActionForm

For example:

   public class MyFormBean 
   {
..

public MyType getMyType() .
}

If this is not a right place to ask for this kind of question
then please drop this.

-D
- Original Message -
From: Galbreath, Mark [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, October 04, 2002 8:51 AM
Subject: RE: DanaFormBean and Non Primative property type


 Dan,

 Are you asking how to code a standard JavaBean for use as an ActionForm
 object?

 Mark

 -Original Message-
 From: Dan Tran [mailto:[EMAIL PROTECTED]]
 Sent: Friday, October 04, 2002 10:35 AM

 I was wrong, String is not a primative type.

 To make thing more clear, here is my class

 public class Duns
 {
  public Duns();
  public Duns(String value);
  public String toString();
  }

 I hope this is clearer this time.

 -D
 - Original Message -
 From: Galbreath, Mark [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]

  RU kidding?  You need more help than you can get here if you think a
 String
  is a primitive.  And what kind of question is this?  Are we to, like,
read
  your mind and see your code to guess whatever it is you are trying to
do
  in your classes?  Hey!  Even we are not that good.  But so this post is
 not
  totally bw wastage, here's a suggestion I hope you appreciate:
 
  http://www.tuxedo.org/~esr/faqs/smart-questions.html
 
 
  Mark
 
  -Original Message-
  From: Dan Tran [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, October 03, 2002 9:39 PM
 
  Hi I would like to use DataFormBean with properties are
  not primative types like int, java.lang.String
 
  What are the requirements  to create a customized
  property type?
 
  For example,  I have a DUNS java class which is a
  specialized string.  What kind of methods in my DUNS class that I need
to
  implement to make DanaFormBean happy? (like toString, DUNS(String init),
  etc??)
 
  Suggestions are greatly appreciated.
 
  -Dan

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


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




Persistence Framework Comparison?

2002-10-04 Thread Adam Sherman

Does anybody know a of a decent comparison of Open Source persistence 
frameworks?

I'm embarking on a big project without time to properly evaluate them. 
So I need some help deciding.

Thanks,

A.

-- 
Adam Sherman
Software Developer
Teach and Travel Inc.
+1.613.241.3103



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




RE: DanaFormBean and Non Primative property type

2002-10-04 Thread Greg.Reddin

It looks like you're trying to code a class that would be used in a form
bean and accessed from your page.  You do that like this:

public class MyFormBean...
{
  private Duns duns;

  public Duns getDuns()
  {
return duns;
  }
}

public class Duns
{
  public Duns();
  public Duns(String value);
  public String toString();

  public getSomeValue()
  {
return someValue;
  }
}

On your jsp you would have:

  bean:write name=formbean property=duns.someValue /

Just make sure a valid Duns object will always be returned from form
bean's getDuns() method or you'll get exceptions.

Greg

 -Original Message-
 From: Dan Tran [mailto:[EMAIL PROTECTED]]
 Sent: Friday, October 04, 2002 11:15 AM
 To: Struts Users Mailing List
 Subject: Re: DanaFormBean and Non Primative property type
 
 
 Hi Mark,
 
 I am looking for way to code a custom property in a ActionForm
 
 For example:
 
public class MyFormBean 
{
 ..
 
 public MyType getMyType() .
 }
 
 If this is not a right place to ask for this kind of question
 then please drop this.
 
 -D
 - Original Message -
 From: Galbreath, Mark [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Sent: Friday, October 04, 2002 8:51 AM
 Subject: RE: DanaFormBean and Non Primative property type
 
 
  Dan,
 
  Are you asking how to code a standard JavaBean for use as 
 an ActionForm
  object?
 
  Mark
 
  -Original Message-
  From: Dan Tran [mailto:[EMAIL PROTECTED]]
  Sent: Friday, October 04, 2002 10:35 AM
 
  I was wrong, String is not a primative type.
 
  To make thing more clear, here is my class
 
  public class Duns
  {
   public Duns();
   public Duns(String value);
   public String toString();
   }
 
  I hope this is clearer this time.
 
  -D
  - Original Message -
  From: Galbreath, Mark [EMAIL PROTECTED]
  To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 
   RU kidding?  You need more help than you can get here if 
 you think a
  String
   is a primitive.  And what kind of question is this?  Are 
 we to, like,
 read
   your mind and see your code to guess whatever it is you 
 are trying to
 do
   in your classes?  Hey!  Even we are not that good.  But 
 so this post is
  not
   totally bw wastage, here's a suggestion I hope you appreciate:
  
   http://www.tuxedo.org/~esr/faqs/smart-questions.html
  
  
   Mark
  
   -Original Message-
   From: Dan Tran [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, October 03, 2002 9:39 PM
  
   Hi I would like to use DataFormBean with properties are
   not primative types like int, java.lang.String
  
   What are the requirements  to create a customized
   property type?
  
   For example,  I have a DUNS java class which is a
   specialized string.  What kind of methods in my DUNS 
 class that I need
 to
   implement to make DanaFormBean happy? (like toString, 
 DUNS(String init),
   etc??)
  
   Suggestions are greatly appreciated.
  
   -Dan
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 

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




Re: Problem with Populate utility

2002-10-04 Thread Craig R. McClanahan

BeanUtils.populate() has some special logic for dealing with request
parameters on an HTTP request, so it does funny things with arrays in the
origin bean.  Try BeanUtils.copyProperties() intead (Struts 1.1-b2 or
later, or go get the current version of commons-beanutils if you're using
Struts 1.0).

Craig

On Fri, 4 Oct 2002, Sriram Hariharan wrote:

 Date: Fri, 04 Oct 2002 13:40:03 +0530
 From: Sriram Hariharan [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Problem with Populate utility

 I've a form and a corresponding value object (vo). Things work fine when I
 populate the form with value object (vo).

 BeanUtils.populate(form, BeanUtils.describe(vo));

 But it doesnt work the other way around

 BeanUtils.populate(vo, BeanUtils.describe(form));

 and throws an exception- java.lang.IllegalArgumentException: argument type
 mismatch.

 Any thoughts?

 Thanks, SRIRAM...

 _
 Send and receive Hotmail on your mobile device: http://mobile.msn.com


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




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




Re: [FRIDAY] More coffee needed!!

2002-10-04 Thread john bell

See www.capucino.co.uk

- Original Message -
From: Galbreath, Mark [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, October 04, 2002 2:56 PM
Subject: RE: [FRIDAY] More coffee needed!!


 Mine was a reference to yesterday (as I'm sure your changing the subject
 line is) and was intentional.  Hey, Dave!  Wake up! :-)

 -Original Message-
 From: Dave Derry [mailto:[EMAIL PROTECTED]]
 Sent: Friday, October 04, 2002 9:36 AM
 To: Struts Users Mailing List
 Subject: [FRIDAY] More coffee needed!!


 That's still Derry.Dave Derry!

 But I guess if it's easier for you...you can call
be
 Jerry ;-)

 Dave Derry


 - Original Message -
 From: Galbreath, Mark [EMAIL PROTECTED]


  Thanks a lot, Jerry.
 
  ;-)
 
  -Original Message-
  From: Dave Derry [mailto:[EMAIL PROTECTED]]
 
 
  He's doing it as a service for those who are filtering you Mark!;-))
 
 
  - Original Message -
  From: Galbreath, Mark [EMAIL PROTECTED]
 
 
   Hey man!  RU refactoring my messages?  ;-)
  
   -Original Message-
   From: Andrew Hill [mailto:[EMAIL PROTECTED]]
  
  
   For multiple, you also must set values back to false in reset() (The
   question here of course is which checkbox refers to which element. You
 may
   need to refactor such that your checkboxes return non boolean values
so
  you
   can tell which is which at the server end).
   The reason for this is that the html spec in all its gory... uh I mean
   glory... has in its infinite wisdom defined that a checkbox ( radio
  button
   I think) that has not been ticked will not submit any value to the
 server.
   Afaik same is true for SELECT btw (multiple selections where nothing
   selected)
  



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

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





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




Re: BeanUtils getPropertyDescriptor error

2002-10-04 Thread Craig R. McClanahan



On Fri, 4 Oct 2002, Daniel Haynes wrote:

 Date: Fri, 4 Oct 2002 10:06:42 +0100
 From: Daniel Haynes [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts-User (E-mail) [EMAIL PROTECTED]
 Subject: BeanUtils getPropertyDescriptor error

 Hi,

 Having gone live with our webapp (and changed the logging) an error stated
 to appear in our logs. However the app is functioning fine. Is this error a
 problem ? The error occurs with submitions from jsps which contain radio
 buttons. In our action class we extract the request parameters to establish
 the state(s) of the radio buttons to process the request.

 Is all this ok or am I missing something here ?


Is this happening during the population of the form bean (which Struts
does for you)?  Do the exception messages show up only in the debug
messages, and not cause problems in your application itself?

If the answer to both questions is yes, then this is harmless.  The
BeanUtils.populate() method operates like this:
- Iterate over the keys in the Map that is passed in (i.e. over
  the names of all request parameters included in the request)
- If there is a matching property on the destination bean,
  do the appropriate set
- If there is no matching property on the destination bean,
  ignore this request parameter

The exception is being triggered by the getPropertyDescriptor() call used
to test the third condition.

Craig

 (We are using Struts 1.1)


 2002-10-03 17:03:35,765 DEBUG [BeanUtils]
 BeanUtils.populate(com.rule.approve.ApproveForm@c18e99,
 {detailsList[5].qualityID=[Ljava.lang.String;@fba68,
 detailsList[10].qualityID=[Ljava.lang.String;@970991,
 detailsList[6].qualityID=[Ljava.lang.String;@f53870,
 detailsList[11].qualityID=[Ljava.lang.String;@4c4ac9,
 detailsList[7].qualityID=[Ljava.lang.String;@c1e333,
 detailsList[8].qualityID=[Ljava.lang.String;@2b3574,
 detailsList[9].qualityID=[Ljava.lang.String;@c27081,
 action=[Ljava.lang.String;@685be9,
 detailsList[0].qualityID=[Ljava.lang.String;@6a1fbe,
 detailsList[1].qualityID=[Ljava.lang.String;@4a0fe1,
 detailsList[2].qualityID=[Ljava.lang.String;@589d3d,
 detailsList[3].qualityID=[Ljava.lang.String;@bb1bc4,
 detailsList[4].qualityID=[Ljava.lang.String;@1bfefb})
 2002-10-03 17:03:35,765 DEBUG [BeanUtils]
 name='detailsList[5].qualityID', value.class='[Ljava.lang.String;',
 value='[Ljava.lang.String;@fba68'
 2002-10-03 17:03:35,781 DEBUG [BeanUtils] getPropertyDescriptor
 java.lang.NoSuchMethodException: Unknown property 'detailsList'
   at
 org.apache.commons.beanutils.PropertyUtils.getIndexedProperty(PropertyUtils.
 java:416)
   at
 org.apache.commons.beanutils.PropertyUtils.getIndexedProperty(PropertyUtils.
 java:363)
   at
 org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(PropertyUti
 ls.java:770)
   at
 org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:501)
   at
 org.apache.struts.util.RequestUtils.populate(RequestUtils.java:952)
   at
 org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j
 ava:795)
   at
 org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:244)
   at
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
   at
 org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
 FilterChain.java:247)
   at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
 ain.java:193)
   at com.rule.common.filters.TimerFilter.doFilter(TimerFilter.java:36)
   at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
 FilterChain.java:213)
   at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
 ain.java:193)
   at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
 va:243)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 66)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
 va:190)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 66)
   at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
 .java:528)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 64)
   at
 org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
 46)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 64)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   

Re: global variables

2002-10-04 Thread Craig R. McClanahan



On Fri, 4 Oct 2002, Madhavi Thottempudi wrote:

 Date: Fri, 04 Oct 2002 11:34:50 +0100
 From: Madhavi Thottempudi [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: global variables

 Hi!
 Where can I set global variables and get them back in Struts. Because I see
 that Action beans extending struts Action bean doesn't get servlet in their
 perform method.


That's because you can just call getServlet() on your Action -- it's part
of the base class :-).

Craig

 public ActionForward perform(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)

 Any suggestions???

 Thanks
 -M


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




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




RE: [OT][FRIDAY] brain types

2002-10-04 Thread Brad Rhoads

They ripped off Kiersey  Bates and don't even seem to give them credit!

See
http://www.amazon.com/exec/obidos/tg/detail/-/0960695400/qid=1033749305/sr=8
-2/ref=sr_8_2/002-7896442-4256040?v=glancen=507846

However, this is a great assesment. I've used it with a number of groups
over the years. Most people find that the description of their personality
is very accurate. It certainly helped me understand myself a lot better.


 -Original Message-
 From: Dan Cancro [mailto:[EMAIL PROTECTED]]
 Sent: Friday, October 04, 2002 11:27 AM
 To: '[EMAIL PROTECTED]'
 Subject: [OT][FRIDAY] brain types


 What types of brains do Struts users have?

 http://www.braintypes.com/news_from.htm#letters

 Mine's an ISTJ type

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



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




Re: how to use struts with goliveor other page generators

2002-10-04 Thread Craig R. McClanahan



On Fri, 4 Oct 2002, Andreas Niemeyer wrote:

 Date: Fri, 4 Oct 2002 14:25:26 +0200
 From: Andreas Niemeyer [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: how to use struts with goliveor other page generators

 Hello.

 We are planning to use struts and jsp's , but our designers works with
 html designtools like golive. It seems not possible for that editors to
 show previews of jsp's because the special libtags are unknown for
 them. Are there a way, for example the use of a plugin in those
 editors, to tell them to handle sites contains special tags.
 Or should there be no possibility for this purpose?


I don't know about GoLive, but I know there's a plugin (available in the
Jakarta Taglibs project) for Macromedia Ultradev that leverages the live
data mode of Ultradev -- perfect for building JSP pages using custom
tags.

 Best regards,

   Andreas


Craig


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




Re: [1.1 b2] How to manage the struts-config programatically?

2002-10-04 Thread Craig R. McClanahan

For backwards compatibility with 1.0, RequestProcessor assumes that your
ActionConfig objects are really ActionMapping objects instead (which is a
subclass of ActionConfig in 1.1).  If you change your class names like
this:

* ActionConfig -- ActionMapping
* ForwardConfig -- ActonForward

Things will probably work better.

I'd also be quite interested in the background of what kinds of
dynamic configuration you're doing -- sounds intriguing.

Craig

On Fri, 4 Oct 2002, Ove Ranheim wrote:

 Date: Fri, 4 Oct 2002 16:25:41 +0200
 From: Ove Ranheim [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: [1.1 b2] How to manage the struts-config programatically?


 How to manage the struts-config programatically. I tried both 1.1 beta 2
 and the nightly build 20021004.

 In my TestPlugin I write;

   public void init(ActionServlet servlet, ApplicationConfig config)
 throws ServletException
   {

 ActionConfig ac = null;
 ForwardConfig fc = null;

 ac = new ActionConfig();
 ac.setPath( /articles );
 ac.setForward( /layout/main.jsp );
 config.addActionConfig( ac );

 fc = new ForwardConfig(articles, /articles.do, false);
 config.addForwardConfig( fc );

 ac = new ActionConfig();
 ac.setPath( /sections );
 ac.setForward( /layout/main.jsp );
 config.addActionConfig( ac );

 fc = new ForwardConfig(sections, /sections.do, false);
 config.addForwardConfig( fc );
   }

 When addressing http://localhost:8080/test/sections.do an exception is
 thrown;

 16:12:58,015 WARN  [jbossweb] WARNING: Exception for /test/articles.do
 java.lang.ClassCastException
 at
 org.apache.struts.action.RequestProcessor.processMapping(RequestProcesso
 r.java:632)
 at
 org.foss.framework.web.admin.SiteRequestProcessor.processMapping(SiteReq
 uestProcessor.java:33)
 at
 org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
 232)
 at
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
 at
 org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
 org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:366)
 at
 org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationH
 andler.java:284)
 at
 org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:577)
 at org.mortbay.http.HttpContext.handle(HttpContext.java:1674)
 at
 org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationCon
 text.java:544)
 at org.mortbay.http.HttpContext.handle(HttpContext.java:1624)
 at org.mortbay.http.HttpServer.service(HttpServer.java:875)
 at org.jboss.jetty.Jetty.service(Jetty.java:541)
 at
 org.mortbay.http.HttpConnection.service(HttpConnection.java:785)
 at
 org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:935)
 at
 org.mortbay.http.HttpConnection.handle(HttpConnection.java:802)
 at
 org.mortbay.http.SocketListener.handleConnection(SocketListener.java:200
 )
 at
 org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:294)
 at
 org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:743)
 at java.lang.Thread.run(Thread.java:536)


 - Ove Ranheim


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




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




RE: Persistence Framework Comparison?

2002-10-04 Thread Dan Cancro

Here's one from Cayenne: http://c2.com/cgi-bin/wiki?CayenneVsOther


 -Original Message-
 From: Adam Sherman [mailto:[EMAIL PROTECTED]]
 Sent: Friday, October 04, 2002 9:30 AM
 To: Struts Users Mailing List
 Subject: Persistence Framework Comparison?
 
 
 Does anybody know a of a decent comparison of Open Source persistence 
 frameworks?
 
 I'm embarking on a big project without time to properly 
 evaluate them. 
 So I need some help deciding.
 
 Thanks,
 
 A.
 
 -- 
 Adam Sherman
 Software Developer
 Teach and Travel Inc.
 +1.613.241.3103
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




RE: Design Problem: Multiple Object Update

2002-10-04 Thread Mark Silva

How will upgrading to 1.1b2 help me here?  does it provide some feature that does what 
i need?  i cannot seem to find it.

i understand i shouldn't bypass the form, but HOW can i avoid it since these are all 
dynamically created inputs based on an id list?

thanks,
mark


-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 4:29 AM
To: 'Struts Users Mailing List'
Subject: RE: Design Problem: Multiple Object Update


a.  upgrade to 1.1b2
b.  don't bypass the ActionForm

-Original Message-
From: Mark Silva [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 03, 2002 8:40 PM
To: Struts Users Mailing List
Subject: Design Problem: Multiple Object Update


How would you strut gurus approach this in a Struts oriented way 

( I am currently using Struts 1.0.2)

I have a list of objects on the screen, and i want to be able to make mass
updates to.  For example, i have a list of users, with Various Attributes
(name, isActive checkbox, etc). 

I want the user to be able to make edits on the whole screen, and then
submit it.  What is the best way to keep the data together in terms of
naming of the fields.  currently I precede each value with the userId and an
underscore.

User = Mark Silva
userId = 101

name field -- 101_name
isActiveField -- 101_isActive


then to get all the data, i have to parse through the parameter list in the
request, and piece this all together.  Notice I am bypassing the Form
object.

Is there a Struts way to do this?

thanks,
Mark

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

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


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




Re: [TILES] Frame's src attrib has html not a url

2002-10-04 Thread Cedric Dumoulin



Sri Sankaran wrote:

Thanks that did it.

While I understand what you are saying about needing a valid URL, wouldn't that 
always be the case. 

  When the target of the Tiles attribute is an insert tag, the value 
can be a tiles definition name.
  In your case, the target is a frame  tag interpreted by the client 
browser, so you need an url understandable by the browser.

 For example, in my case, when the 'Disclaimer' page is invoked, the tileDefinitions 
shows that it extends the BasicWizardPage which extends qsWizard.  The value of 
'body' is evaluates to 'workflow/disclaimer/disclaimerBody.jsp' -- an actual file.  
That's why it works.

Do I understand the process correctly?  To be more correct, should my frame element 
be

frame src='%=request.getContextPath()%tiles:getAsString name=body/' 
name=body
  

  This is a good habit to get the prefix like that. This improves the 
portability of your application (ex: if you change the webapps name !).

Sri

-Original Message-
From: Cedric Dumoulin [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, October 03, 2002 12:17 PM
To: Struts Users Mailing List
Subject: Re: [TILES] Frame's src attrib has html  not a url



  You should provide the attribute value as a String, not as its content 
to the frame:

  frame src='tiles:getAsString name=body/' name=body

  Also remember that you can only use valid url here, not tiles 
definitions. This is because the url is interpreted by the client 
browser, not on the server.

  Cedric

Sri Sankaran wrote:

  

Using Struts 1.0.2 and Tiles extension

The page I am developing consists of frames.  Upon display, all the 
frames display a 404 error.  Looking at the source of the HTML, I find 
that the src attribute doesn't point to a URL but contains the contents 
of the file at that url.

My frameset page:

frameset rows=10%, 80%, 10%
 frameset cols=50%, 50%
   frame src='tiles:get name=title/' name=title 
   frame src='tiles:get name=help/' name=help
 /frameset
 frame src='tiles:get name=body/' name=body
 frame src='tiles:get name=navigation/' name=nav /frameset

My tile definitions contains

 definition name=qsWizard path=/framedWizardLayout.jsp 
   put name=title value=qsTitle.jsp/
   put name=help  value=qsHelp.jsp/
   put name=body  value=/
   put name=navigationvalue=/
 /definition

 definition name=BasicWizardPage extends=qsWizard
   put name=navigation value=workflow/nav.jsp/  /definition

 !-- Disclaimer page --
 definition name=Disclaimer extends=BasicWizardPage
   put name=bodyvalue=workflow/disclaimer/disclaimerBody.jsp/
 /definition

The page I am invoking is Disclaimer.

What am I doing wrong?

Sri

 





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


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


  



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




Re: [Tiles] Conditional menu items. Help !!!!

2002-10-04 Thread Cedric Dumoulin


There are samples in tiles-documentation war files, check how dynamic 
portal works. Also, the following document can help:
http://www.lifl.fr/~dumoulin/tiles/tilesAdvancedFeatures.pdf

  Cedric

LFung wrote:

Thanks a lot Cedric.

I think the best solution is 3. Do you have some Controller Sample code,
I'am never have been worked with it.
  

 

Any way thanks for your reply.

LFung.

- Original Message -
From: Cedric Dumoulin [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, October 03, 2002 1:18 AM
Subject: Re: [Tiles] Conditional menu items. Help 


  

  Hello,

  There is several solutions to have different menu for different users
or profile.
You need to have some logic that select or build the menu according to
the current user profile.
Solution 1:

* Create an action with one forward for each possible menu. The
  action checks the user profile, and call forward to appropriate


menu.
  

* Create one tiles definition for each possible menu
* Associate forwards to definitions
* Call the action each time you need to render the menu

Solution 2:

* Create one action that build dynamically the menu definition to be
  rendered
* Action push the definition in request session (see examples in
  tiles-doc/test)
* Action do its forward, which will use the pushed definition

Solution 3:

* Associate a controller to your menu definition
* This controller build/modify the list of menu item

  Hope this help,

Cedric

LFung wrote:



Hi.

I'am using tiles from struts 1.1b1 and I need to add some menu items only
  

for specific users.
  

Then my action forward take this sample path = forward.common.users.home

this is a define that use some default menu, now for example, some
  

special users use this same menu, in fact the hole template, but with only a
few more items in the menu.
  

Supose I have some bean loeded in the action that tells me if the
  

agregate menu items need to be displayed.
  

Any idea.

Thanks in advance.

LFung.



  


--
To unsubscribe, e-mail:


mailto:[EMAIL PROTECTED]
  

For additional commands, e-mail:


mailto:[EMAIL PROTECTED]
  






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


  



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




Business Logic Bean Question

2002-10-04 Thread Billy Ng

Hi folks,

I have been reading some articles briefly talking about the business logic beans.  The 
way I build my Struts app is to use the Action's perform or execute method to do the 
business logic.  Then, I set the data into a bean and pass it off to the JSP.  It 
works just fine.  However, my question is if I should do the business logic in Action? 
 Am I supposed to hand down the job to a business logic bean?  It will be helpful if 
anyone can provide me samples or links for how a business logic looks alike.

Thanks in advance!

Billy Ng



RE: Design Problem: Multiple Object Update

2002-10-04 Thread Galbreath, Mark

I was only suggesting upgrading.  By bypassing the ActionForm you do not
allow Struts to do what it does best - set the state of a bean with values
gathered from an HTML form upon submit.  Your users are not really updating
dynamically - that would mean in real time.  They are inputting values into
a form and then submitting the form.  If you have an Action class and
ActionForm declared and mapped in struts-config.xml, Struts will set the
state of all associated variables in the ActionForm (JavaBean)
automatically.  Then you can use the associated Action class to do whatever
you want with the values - store in a database, pass to another action,
return to the user for verification, etc.

Mark

-Original Message-
From: Mark Silva [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 12:52 PM

How will upgrading to 1.1b2 help me here?  does it provide some feature that
does what i need?  i cannot seem to find it.

i understand i shouldn't bypass the form, but HOW can i avoid it since these
are all dynamically created inputs based on an id list?

thanks,
mark


-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 4:29 AM
To: 'Struts Users Mailing List'
Subject: RE: Design Problem: Multiple Object Update


a.  upgrade to 1.1b2
b.  don't bypass the ActionForm

-Original Message-
From: Mark Silva [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 03, 2002 8:40 PM
To: Struts Users Mailing List
Subject: Design Problem: Multiple Object Update


How would you strut gurus approach this in a Struts oriented way 

( I am currently using Struts 1.0.2)

I have a list of objects on the screen, and i want to be able to make mass
updates to.  For example, i have a list of users, with Various Attributes
(name, isActive checkbox, etc). 

I want the user to be able to make edits on the whole screen, and then
submit it.  What is the best way to keep the data together in terms of
naming of the fields.  currently I precede each value with the userId and an
underscore.

User = Mark Silva
userId = 101

name field -- 101_name
isActiveField -- 101_isActive


then to get all the data, i have to parse through the parameter list in the
request, and piece this all together.  Notice I am bypassing the Form
object.

Is there a Struts way to do this?

thanks,
Mark

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

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


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

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




RE: Parsing error processing resource path /WEB-INF/struts-config.xml

2002-10-04 Thread Ramu, Manjukumar [PRDUS]

Can any body help me?

-Original Message-
From: Ramu, Manjukumar [PRDUS] [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 12:09 PM
To: 'Struts Users Mailing List'
Subject: Parsing error processing resource path
/WEB-INF/struts-config.xml


Hello All,
I am getting the following exception with Weblogic 6.1 SP3 in UNIX.
My applciation is working fine in WINDOWS 2000, Just I copied the
application to the Unix platform, I am getting the following error. Does
anybody know what would be the problem?

Thanks for the Help!

-Manju

javax.servlet.UnavailableException: Parsing error processing resource path
/WEB-INF/struts-config.xml
at
org.apache.struts.action.ActionServlet.initApplicationConfig(ActionServlet.j
ava:780)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:417)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java
:713)
at
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.ja
va:656)
at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.jav
a:601)
at
weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletC
ontext.java:2272)
at
weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServlet
Context.java:2216)
at
weblogic.servlet.internal.HttpServer.preloadServlets(HttpServer.java:495)
at
weblogic.servlet.internal.WebService.preloadServlets(WebService.java:450)
at weblogic.t3.srvr.ServletInitRunner.run(ServletInitRunner.java:49)



RE: Session management for cached resources

2002-10-04 Thread James A. Hillyerd

On Wed, 2002-10-02 at 19:14, Andrew Hill wrote:
 Im doing something rather like this, only I called it an OperationContext
 which comprises a hashtable of attributes and an id to store it under in the
 session (passed in the request). I simply overrode the RequestProcessor so
 it knew to look for an actionform in the OperationContext first if the form
 scope is session.
 Works quite nicely.

That sounds pretty close to what I want to do.  Which version of Struts
are you running?  I'm still on 1.0 right now.

Something else I was considering was to use a naming convention like
context.name, and then have a utility method that would iterate
through the session and remove mymodule.*.  Not quite as elegant as
your solution though. =)

-james

-- 
[]  James A. Hillyerd [EMAIL PROTECTED] - Java Software Engineer
[]  PGP 1024D/D31BC40D F87B 7906 C0DA 32E8 B8F6 DE23 FBF6 4712 D31B C40D


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




RE: Design Problem: Multiple Object Update

2002-10-04 Thread Mark Silva

Mark,

I dont think you really read my email before responding.  I understand the importance 
of the Form Action Paradigm, and why it exisits.  I am using it in most places in my 
application.  

In this particular form, I have a list of objects, with multiple attributes.  Each 
attribute name is preceded by the objects id.  this list is dynamically created, so i 
would not know how to create the form beforehand.  I was wondering if there was some 
struts feature that could help me with the semi-common wbe form problem.

any ideas?

thanks,
mark s.

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 10:19 AM
To: 'Struts Users Mailing List'
Subject: RE: Design Problem: Multiple Object Update


I was only suggesting upgrading.  By bypassing the ActionForm you do not
allow Struts to do what it does best - set the state of a bean with values
gathered from an HTML form upon submit.  Your users are not really updating
dynamically - that would mean in real time.  They are inputting values into
a form and then submitting the form.  If you have an Action class and
ActionForm declared and mapped in struts-config.xml, Struts will set the
state of all associated variables in the ActionForm (JavaBean)
automatically.  Then you can use the associated Action class to do whatever
you want with the values - store in a database, pass to another action,
return to the user for verification, etc.

Mark

-Original Message-
From: Mark Silva [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 12:52 PM

How will upgrading to 1.1b2 help me here?  does it provide some feature that
does what i need?  i cannot seem to find it.

i understand i shouldn't bypass the form, but HOW can i avoid it since these
are all dynamically created inputs based on an id list?

thanks,
mark


-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 4:29 AM
To: 'Struts Users Mailing List'
Subject: RE: Design Problem: Multiple Object Update


a.  upgrade to 1.1b2
b.  don't bypass the ActionForm

-Original Message-
From: Mark Silva [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 03, 2002 8:40 PM
To: Struts Users Mailing List
Subject: Design Problem: Multiple Object Update


How would you strut gurus approach this in a Struts oriented way 

( I am currently using Struts 1.0.2)

I have a list of objects on the screen, and i want to be able to make mass
updates to.  For example, i have a list of users, with Various Attributes
(name, isActive checkbox, etc). 

I want the user to be able to make edits on the whole screen, and then
submit it.  What is the best way to keep the data together in terms of
naming of the fields.  currently I precede each value with the userId and an
underscore.

User = Mark Silva
userId = 101

name field -- 101_name
isActiveField -- 101_isActive


then to get all the data, i have to parse through the parameter list in the
request, and piece this all together.  Notice I am bypassing the Form
object.

Is there a Struts way to do this?

thanks,
Mark

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

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


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

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


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




Re: O'Reilly struts book

2002-10-04 Thread chuckcavaness

I'm reviewing the final PDF version of the book right 
now and will be done with that in a week. It should be 
heading for the printer right after that and be out very 
soon.

Since several chapters had to be cut for size, the Table 
of contents was slightly reorganized and renumbered. 
Every chapter except one (chapter 8) was posted that 
will be included with the book. The TOC that is shown on 
theserverside review site 
(http://www.theserverside.com/resources/strutsreview.jsp)
 is correct. Of those chapters, only the custom tag 
chapter was never posted. This was because I was re-
writing it right up until my deadline.

Look through the available chapters by name, don't worry 
about the chapter number. That has been adjusted in the 
final version. But just so you won't be disappointed, 
the TOC on that page is correct. Several chapters 
(unfortunately like security) had to be axed to keep the 
book at a respectable size.

Chuck
 I see that this won't be out (here in the UK at least) until the end of
 November.
 
 Been reading the review chapters that were available on theserverside, but
 there are a couple of chapters missing... does anybody out there have
 chapters 8, 15, 17 and 19? Perhaps these were never made available, but it
 would be great to have a look at them without having to wait 2 months for
 publication.. i promise i will buy the book when it becomes available :~)
 
 Thanks in advance,
 
 d
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 

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




RE: Parsing error processing resource path /WEB-INF/struts-config .xml

2002-10-04 Thread Galbreath, Mark

I am no Unix guru, but it seems to me your path is not Unix-enough.  A /
in Unix is your root (home) directory, not relative unless interpretted by a
web server.  Try an absolute path to WEB-INF.

Mark

-Original Message-
From: Ramu, Manjukumar [PRDUS] [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 1:20 PM
To: 'Struts Users Mailing List'
Subject: RE: Parsing error processing resource path
/WEB-INF/struts-config .xml


Can any body help me?

-Original Message-
From: Ramu, Manjukumar [PRDUS] [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 12:09 PM
To: 'Struts Users Mailing List'
Subject: Parsing error processing resource path
/WEB-INF/struts-config.xml


Hello All,
I am getting the following exception with Weblogic 6.1 SP3 in UNIX.
My applciation is working fine in WINDOWS 2000, Just I copied the
application to the Unix platform, I am getting the following error. Does
anybody know what would be the problem?

Thanks for the Help!

-Manju

javax.servlet.UnavailableException: Parsing error processing resource path
/WEB-INF/struts-config.xml
at
org.apache.struts.action.ActionServlet.initApplicationConfig(ActionServlet.j
ava:780)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:417)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java
:713)
at
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.ja
va:656)
at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.jav
a:601)
at
weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletC
ontext.java:2272)
at
weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServlet
Context.java:2216)
at
weblogic.servlet.internal.HttpServer.preloadServlets(HttpServer.java:495)
at
weblogic.servlet.internal.WebService.preloadServlets(WebService.java:450)
at weblogic.t3.srvr.ServletInitRunner.run(ServletInitRunner.java:49)

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




RE: Design Problem: Multiple Object Update

2002-10-04 Thread Galbreath, Mark

Oh...have you looked into DynaActionForm?

-Original Message-
From: Mark Silva [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 1:22 PM
To: Struts Users Mailing List
Subject: RE: Design Problem: Multiple Object Update


Mark,

I dont think you really read my email before responding.  I understand the
importance of the Form Action Paradigm, and why it exisits.  I am using it
in most places in my application.  

In this particular form, I have a list of objects, with multiple attributes.
Each attribute name is preceded by the objects id.  this list is dynamically
created, so i would not know how to create the form beforehand.  I was
wondering if there was some struts feature that could help me with the
semi-common wbe form problem.

any ideas?

thanks,
mark s.

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 10:19 AM
To: 'Struts Users Mailing List'
Subject: RE: Design Problem: Multiple Object Update


I was only suggesting upgrading.  By bypassing the ActionForm you do not
allow Struts to do what it does best - set the state of a bean with values
gathered from an HTML form upon submit.  Your users are not really updating
dynamically - that would mean in real time.  They are inputting values into
a form and then submitting the form.  If you have an Action class and
ActionForm declared and mapped in struts-config.xml, Struts will set the
state of all associated variables in the ActionForm (JavaBean)
automatically.  Then you can use the associated Action class to do whatever
you want with the values - store in a database, pass to another action,
return to the user for verification, etc.

Mark

-Original Message-
From: Mark Silva [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 12:52 PM

How will upgrading to 1.1b2 help me here?  does it provide some feature that
does what i need?  i cannot seem to find it.

i understand i shouldn't bypass the form, but HOW can i avoid it since these
are all dynamically created inputs based on an id list?

thanks,
mark


-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 4:29 AM
To: 'Struts Users Mailing List'
Subject: RE: Design Problem: Multiple Object Update


a.  upgrade to 1.1b2
b.  don't bypass the ActionForm

-Original Message-
From: Mark Silva [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 03, 2002 8:40 PM
To: Struts Users Mailing List
Subject: Design Problem: Multiple Object Update


How would you strut gurus approach this in a Struts oriented way 

( I am currently using Struts 1.0.2)

I have a list of objects on the screen, and i want to be able to make mass
updates to.  For example, i have a list of users, with Various Attributes
(name, isActive checkbox, etc). 

I want the user to be able to make edits on the whole screen, and then
submit it.  What is the best way to keep the data together in terms of
naming of the fields.  currently I precede each value with the userId and an
underscore.

User = Mark Silva
userId = 101

name field -- 101_name
isActiveField -- 101_isActive


then to get all the data, i have to parse through the parameter list in the
request, and piece this all together.  Notice I am bypassing the Form
object.

Is there a Struts way to do this?

thanks,
Mark

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

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


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

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


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

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




RE: Design Problem: Multiple Object Update

2002-10-04 Thread Mark Silva

you still need to declare your variables in the config file eith a DynaActionForm.  
This form is dependent on whats in the db at that time.

does any one else have any suggestions for this design issue?

thanks,
mark


-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 10:27 AM
To: 'Struts Users Mailing List'
Subject: RE: Design Problem: Multiple Object Update


Oh...have you looked into DynaActionForm?

-Original Message-
From: Mark Silva [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 1:22 PM
To: Struts Users Mailing List
Subject: RE: Design Problem: Multiple Object Update


Mark,

I dont think you really read my email before responding.  I understand the
importance of the Form Action Paradigm, and why it exisits.  I am using it
in most places in my application.  

In this particular form, I have a list of objects, with multiple attributes.
Each attribute name is preceded by the objects id.  this list is dynamically
created, so i would not know how to create the form beforehand.  I was
wondering if there was some struts feature that could help me with the
semi-common wbe form problem.

any ideas?

thanks,
mark s.

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 10:19 AM
To: 'Struts Users Mailing List'
Subject: RE: Design Problem: Multiple Object Update


I was only suggesting upgrading.  By bypassing the ActionForm you do not
allow Struts to do what it does best - set the state of a bean with values
gathered from an HTML form upon submit.  Your users are not really updating
dynamically - that would mean in real time.  They are inputting values into
a form and then submitting the form.  If you have an Action class and
ActionForm declared and mapped in struts-config.xml, Struts will set the
state of all associated variables in the ActionForm (JavaBean)
automatically.  Then you can use the associated Action class to do whatever
you want with the values - store in a database, pass to another action,
return to the user for verification, etc.

Mark

-Original Message-
From: Mark Silva [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 12:52 PM

How will upgrading to 1.1b2 help me here?  does it provide some feature that
does what i need?  i cannot seem to find it.

i understand i shouldn't bypass the form, but HOW can i avoid it since these
are all dynamically created inputs based on an id list?

thanks,
mark


-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 4:29 AM
To: 'Struts Users Mailing List'
Subject: RE: Design Problem: Multiple Object Update


a.  upgrade to 1.1b2
b.  don't bypass the ActionForm

-Original Message-
From: Mark Silva [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 03, 2002 8:40 PM
To: Struts Users Mailing List
Subject: Design Problem: Multiple Object Update


How would you strut gurus approach this in a Struts oriented way 

( I am currently using Struts 1.0.2)

I have a list of objects on the screen, and i want to be able to make mass
updates to.  For example, i have a list of users, with Various Attributes
(name, isActive checkbox, etc). 

I want the user to be able to make edits on the whole screen, and then
submit it.  What is the best way to keep the data together in terms of
naming of the fields.  currently I precede each value with the userId and an
underscore.

User = Mark Silva
userId = 101

name field -- 101_name
isActiveField -- 101_isActive


then to get all the data, i have to parse through the parameter list in the
request, and piece this all together.  Notice I am bypassing the Form
object.

Is there a Struts way to do this?

thanks,
Mark

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

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


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

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


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

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


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




RE: Design Problem: Multiple Object Update

2002-10-04 Thread Pavel Kolesnikov

On Fri, 4 Oct 2002, Mark Silva wrote:

 In this particular form, I have a list of objects, with multiple
 attributes.  Each attribute name is preceded by the objects id.  this
 list is dynamically created, so i would not know how to create the form
 beforehand.  I was wondering if there was some struts feature that could
 help me with the semi-common wbe form problem.

See http://husted.com/struts/tips/006.html - is this what you're
looking for?

Pavel



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




Re: Business Logic Bean Question

2002-10-04 Thread Adam Sherman

Billy Ng wrote:
  I have been reading some articles briefly talking about the business
  logic beans.  The way I build my Struts app is to use the Action's
  perform or execute method to do the business logic.  Then, I set the
  data into a bean and pass it off to the JSP.  It works just fine.
  However, my question is if I should do the business logic in Action?
  Am I supposed to hand down the job to a business logic bean?  It will
  be helpful if anyone can provide me samples or links for how a
  business logic looks alike.

A good rule is to never have anything in javax.servlet imported into a 
class that does business logic.

Actions call Business Objects which pass back Value Objects. Value 
Objects are created with Manager Objects.

My two cents,

A.

-- 
Adam Sherman
Software Developer
Teach and Travel Inc.
+1.613.241.3103



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




Subject: Design Problem: Multiple Object Update

2002-10-04 Thread Scott Carlson

Mark,
   Upgrading to 1.1b2 would allow you access to Nested form beans.  These allow
you to iterate collections and create unique input fields.

Checkout the documentation primer here:
http://www.keyboardmonkey.com/next/Primer_partOne.jsp?content=yesplease

There is a lot of documentation on it.

1.1b2 is available here
http://jakarta.apache.org/site/binindex.html



---

Subject: Design Problem: Multiple Object Update
Content-Type: text/plain;
charset=iso-8859-1
Date: Fri, 4 Oct 2002 09:51:45 -0700
From: Mark Silva [EMAIL PROTECTED]

How will upgrading to 1.1b2 help me here?  does it provide some feature that
does what i need?  i cannot seem to find it.

i understand i shouldn't bypass the form, but HOW can i avoid it since these
are all dynamically created inputs based on an id list?

thanks,
mark


-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 4:29 AM
To: 'Struts Users Mailing List'
Subject: RE: Design Problem: Multiple Object Update


a.  upgrade to 1.1b2
b.  don't bypass the ActionForm

-Original Message-
From: Mark Silva [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 03, 2002 8:40 PM
To: Struts Users Mailing List
Subject: Design Problem: Multiple Object Update


How would you strut gurus approach this in a Struts oriented way 

( I am currently using Struts 1.0.2)

I have a list of objects on the screen, and i want to be able to make mass
updates to.  For example, i have a list of users, with Various Attributes
(name, isActive checkbox, etc). 

I want the user to be able to make edits on the whole screen, and then
submit it.  What is the best way to keep the data together in terms of
naming of the fields.  currently I precede each value with the userId and an
underscore.

User = Mark Silva
userId = 101

name field -- 101_name
isActiveField -- 101_isActive


then to get all the data, i have to parse through the parameter list in the
request, and piece this all together.  Notice I am bypassing the Form
object.

Is there a Struts way to do this?

thanks,
Mark

--

__
Do you Yahoo!?
New DSL Internet Access from SBC  Yahoo!
http://sbc.yahoo.com

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




  1   2   >