RE: And now for something completely different... [OT]

2003-09-26 Thread Krishnakumar N
I wonder if reading this article during office hours constitutes misuse of
company assets, such as inappropriate use of the Internet at work.

Am I history?

Cheers,
Krishna

-Original Message-
From: Christian Bollmeyer [mailto:[EMAIL PROTECTED]
Sent: Friday, September 26, 2003 12:37 AM
To: Struts Users Mailing List
Subject: And now for something completely different... [OT]


Please don't kick me for posting this here, but still, one
or two might possibly be interested in taking notice:

http://www.dba-oracle.com/art_firing.htm

It's always good to know one's enemies :-)

-- Chris


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

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



Urgent: No Getter Method found

2003-09-26 Thread Abhijeet Mahalkar
hi All
I am getting following error while invoking JSP file ..


txtUserGroupCode of bean org.apache.struts.taglib.html.BEAN]: 
javax.servlet.jsp.JspException: No getter method for property txtUserGroupCode of bean 
org.apache.struts.taglib.html.BEAN

i have following code in the Action Clas...  still i am getting the error please 
Sugest solution for this...



 public String getTxtUserGroupCode()
 {
  return this.txtusergroupcode ;
 }

 public void setTxtUserGroupCode(String s)
 {
  this.txtusergroupcode = s ;
 }



RE: Urgent: No Getter Method found

2003-09-26 Thread Navjot Singh
change the variable txtusergroupcode to txtUserGroupCode. it will work.

|-Original Message-
|From: Abhijeet Mahalkar [mailto:[EMAIL PROTECTED]
|Sent: Friday, September 26, 2003 12:13 PM
|To: Struts Users Mailing List
|Subject: Urgent: No Getter Method found 
|
|
|hi All
|I am getting following error while invoking JSP file ..
|
|
|txtUserGroupCode of bean org.apache.struts.taglib.html.BEAN]: 
|javax.servlet.jsp.JspException: No getter method for property 
|txtUserGroupCode of bean org.apache.struts.taglib.html.BEAN
|
|i have following code in the Action Clas...  still i am getting 
|the error please Sugest solution for this...
|
|
|
| public String getTxtUserGroupCode()
| {
|  return this.txtusergroupcode ;
| }
|
| public void setTxtUserGroupCode(String s)
| {
|  this.txtusergroupcode = s ;
| }
|
|

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



Re: Urgent: No Getter Method found

2003-09-26 Thread Abhijeet Mahalkar
Do i need to chnage form-bean entries name also from struts-config asd well as jsp 
file

thanks for reply...
abhijeet
- Original Message - 
From: Navjot Singh [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, September 26, 2003 12:21 PM
Subject: RE: Urgent: No Getter Method found 


change the variable txtusergroupcode to txtUserGroupCode. it will work.

|-Original Message-
|From: Abhijeet Mahalkar [mailto:[EMAIL PROTECTED]
|Sent: Friday, September 26, 2003 12:13 PM
|To: Struts Users Mailing List
|Subject: Urgent: No Getter Method found 
|
|
|hi All
|I am getting following error while invoking JSP file ..
|
|
|txtUserGroupCode of bean org.apache.struts.taglib.html.BEAN]: 
|javax.servlet.jsp.JspException: No getter method for property 
|txtUserGroupCode of bean org.apache.struts.taglib.html.BEAN
|
|i have following code in the Action Clas...  still i am getting 
|the error please Sugest solution for this...
|
|
|
| public String getTxtUserGroupCode()
| {
|  return this.txtusergroupcode ;
| }
|
| public void setTxtUserGroupCode(String s)
| {
|  this.txtusergroupcode = s ;
| }
|
|

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



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



RE: Urgent: No Getter Method found

2003-09-26 Thread hari_s
Change u with U for variable txtusergroupcode

-Original Message-
From: Abhijeet Mahalkar [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 26, 2003 1:43 PM
To: Struts Users Mailing List
Subject: Urgent: No Getter Method found 

hi All
I am getting following error while invoking JSP file ..


txtUserGroupCode of bean org.apache.struts.taglib.html.BEAN]:
javax.servlet.jsp.JspException: No getter method for property
txtUserGroupCode of bean org.apache.struts.taglib.html.BEAN

i have following code in the Action Clas...  still i am getting the
error please Sugest solution for this...



 public String getTxtUserGroupCode()
 {
  return this.txtusergroupcode ;
 }

 public void setTxtUserGroupCode(String s)
 {
  this.txtusergroupcode = s ;
 }



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



RE: Urgent: No Getter Method found

2003-09-26 Thread Andrew Hill
1. Dont mark you messages urgent if you hope to get a response (a lot of the
list members autotrash such posts!)
(See: http://www.catb.org/~esr/faqs/smart-questions.html#urgent )

2. Why are you putting the getter and setter in the Action class? They
should surely be in the appropriate ActionForm class.

3. If they _are_ in the ActionForm class then you should check that you dont
have any other methods with the same name as your getter and setter taking
or returning different parameter types. Unfortunately overloading getters
and setters doesnt work as the BeanUtils can get all confused (a major PITA
IMHO but greater minds than I will tell you thats how its defined in the
bean specs...).
(See: http://marc.theaimsgroup.com/?l=struts-userm=102716130711687w=2 for
an ancient thread covering this topic)

-Original Message-
From: Abhijeet Mahalkar [mailto:[EMAIL PROTECTED]
Sent: Friday, 26 September 2003 14:43
To: Struts Users Mailing List
Subject: Urgent: No Getter Method found


hi All
I am getting following error while invoking JSP file ..


txtUserGroupCode of bean org.apache.struts.taglib.html.BEAN]:
javax.servlet.jsp.JspException: No getter method for property
txtUserGroupCode of bean org.apache.struts.taglib.html.BEAN

i have following code in the Action Clas...  still i am getting the error
please Sugest solution for this...



 public String getTxtUserGroupCode()
 {
  return this.txtusergroupcode ;
 }

 public void setTxtUserGroupCode(String s)
 {
  this.txtusergroupcode = s ;
 }



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



RE: Urgent: No Getter Method found

2003-09-26 Thread Andrew Hill
I dont understand what the name of the instance variable used internally in
the class as got to do with the error he is getting (which results from a
failed introspection attempt to find a getter method)? Surely he could call
the internal variable (which I presume is protected or private) bob if he
liked and it should still work?

-Original Message-
From: Navjot Singh [mailto:[EMAIL PROTECTED]
Sent: Friday, 26 September 2003 14:51
To: Struts Users Mailing List
Subject: RE: Urgent: No Getter Method found


change the variable txtusergroupcode to txtUserGroupCode. it will work.

|-Original Message-
|From: Abhijeet Mahalkar [mailto:[EMAIL PROTECTED]
|Sent: Friday, September 26, 2003 12:13 PM
|To: Struts Users Mailing List
|Subject: Urgent: No Getter Method found
|
|
|hi All
|I am getting following error while invoking JSP file ..
|
|
|txtUserGroupCode of bean org.apache.struts.taglib.html.BEAN]:
|javax.servlet.jsp.JspException: No getter method for property
|txtUserGroupCode of bean org.apache.struts.taglib.html.BEAN
|
|i have following code in the Action Clas...  still i am getting
|the error please Sugest solution for this...
|
|
|
| public String getTxtUserGroupCode()
| {
|  return this.txtusergroupcode ;
| }
|
| public void setTxtUserGroupCode(String s)
| {
|  this.txtusergroupcode = s ;
| }
|
|

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


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



using getParameter

2003-09-26 Thread Kemal Kkta
Hi;

 

I' using Struts 1.1, (Struts-Tiles tag library) and display tag
library(). And in my page find any recordlist and display it using display
tag library. Create a link any record on the tables. When i click the link
in the table, called url is 

 

localhost:8080/struts-test1/details.do?serno=123456

 

and using below line in the jsp but nothing return any value.

% request.getParameter(serno) % 

 

details.do defined as a tiles in the tiles-deifinitions.xml file as below

 

!-Main page area
--

definition name=org.kocbank.masterpage page=/pagetemplate.jsp
scope=request

   put name=pelititle value=Pelikan web sistemi/

   put name=peliheader value=headertemplate.jsp/

   put name=pelimenu value=pelimenuempty.jsp/

   put name=pelibody value=body.jsp/

   put name=pelifooter value=footertemplate.jsp/

/definition

!-Details page
--

definition name=org.kocbank.viewdetailpage
extends=org.kocbank.masterpage

   put name=pelititle value=Pelikan ayrntl grntleme/

   put name=pelibody value=detailbody.jsp/

/definition

 

and in the struts-config.xml file action-mappings area contains

 

action

forward=org.kocbank.viewdetailpage

path=/details

scope=session

unknown=false

validate=false /

 

and detailbody.jsp contains

 

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

blockquote

   Serno is =% request.getParameter(serno);%

/blockquote

 

do you have any solution for this problem.

 

Thanks.!

 



Bu mesaj ve onunla iletilen tm ekler gnderildigi kisi ya da kuruma zel ve Bankalar 
Kanunu geregince, gizlilik ykmllg tasiyor olabilir. Bu mesaj, hibir sekilde, 
herhangi bir ama iin ogaltilamaz, yayinlanamaz ve para karsiligi satilamaz; mesajin 
yetkili alicisi veya alicisina iletmekten sorumlu kisi degilseniz, mesaj ierigini ya 
da eklerini kopyalamayiniz, yayinlamayiniz, baska kisilere ynlendirmeyiniz ve mesaji 
gnderen kisiyi derhal uyararak bu mesaji siliniz. Bu mesajin ieriginde ya da 
eklerinde yer alan bilgilerin dogrulugu, btnlg ve gncelligi Bankamiz tarafindan 
garanti edilmemektedir ve bilinen virslere karsi kontrolleri yapilmis olarak yollanan 
mesajin sisteminizde yaratabilecegi zararlardan Bankamiz sorumlu tutulamaz.

This message and the files attached to it are under the privacy liability in 
accordance with the Banking Law and confidential to the use of the individual or 
entity to whom they are addressed. This message cannot be copied, disclosed or sold 
monetary consideration for any purpose. If you are not the intended recipient of this 
message, you should not copy, distribute, disclose or forward the information that 
exists in the content and in the attachments of this message; please notify the sender 
immediately and delete all copies of this message. Our Bank does not warrant the 
accuracy, integrity and currency of the information transmitted with this message. 
This message has been detected for all known computer viruses thence our Bank is not 
liable for the occurrence of any system corruption caused by this message.


RE: logic:present tag problem

2003-09-26 Thread tarun.matai
Thanks 
Actually I was looking for a or operator is it available in new version of 
struts tag library?

Regards,
Tarun Matai 




-Original Message-
From: muzammil shahbaz [mailto:[EMAIL PROTECTED]
Sent: Friday, September 26, 2003 11:27 AM
To: [EMAIL PROTECTED]
Subject: RE: logic:present tag problem


Under struts 1.0, try as follows:

logic:present name=a scope=session 
do certain operation
/logic:present

logic:present name=b scope=session 
do certain operation
/logic:present

However, the code can be optimized by using logic:OR tag, which is not
the part of this version.

Regards,
Muzammil
--
From:  [EMAIL PROTECTED]
[SMTP:[EMAIL PROTECTED]
Sent:  Friday, September 26, 2003 10:30 AM
To:  [EMAIL PROTECTED]
Subject:  logic:present tag problem

Hi,
I have a query
if(a || b )
{
do certain operation
}

a or b will be attributes present in the session
object, how can i use logic:present tag to perform this operation.

Regards,
Tarun


DISCLAIMER:
This message contains privileged and confidential
information and is intended only for the individual named.If you are not
the intended recipient you should not
disseminate,distribute,store,print, copy or deliver this message.Please
notify the sender immediately by e-mail if you have received this e-mail
by mistake and delete this e-mail from your system.E-mail transmission
cannot be guaranteed to be secure or error-free as information could be
intercepted,corrupted,lost,destroyed,arrive late or incomplete or
contain viruses.The sender therefore does not accept liability for any
errors or omissions in the contents of this message which arise as a
result of e-mail transmission. If verification is required please
request a hard-copy version.


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


DISCLAIMER:
This message contains privileged and confidential information and is intended only for 
the individual named.If you are not the intended recipient you should not 
disseminate,distribute,store,print, copy or deliver this message.Please notify the 
sender immediately by e-mail if you have received this e-mail by mistake and delete 
this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or 
error-free as information could be intercepted,corrupted,lost,destroyed,arrive late or 
incomplete or contain viruses.The sender therefore does not accept liability for any 
errors or omissions in the contents of this message which arise as a result of e-mail 
transmission. If verification is required please request a hard-copy version.

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



[SOLVED]Re: Urgent: No Getter Method found

2003-09-26 Thread Abhijeet Mahalkar
Hi ALL ,
I got the solution for this. I removed all the gettter setters and Variables from the 
Action class.
and now error was because of wrong mapping in struts-config file..

thanks 4 co-operation

abhijeet

- Original Message - 
From: Andrew Hill [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, September 26, 2003 12:36 PM
Subject: RE: Urgent: No Getter Method found 


I dont understand what the name of the instance variable used internally in
the class as got to do with the error he is getting (which results from a
failed introspection attempt to find a getter method)? Surely he could call
the internal variable (which I presume is protected or private) bob if he
liked and it should still work?

-Original Message-
From: Navjot Singh [mailto:[EMAIL PROTECTED]
Sent: Friday, 26 September 2003 14:51
To: Struts Users Mailing List
Subject: RE: Urgent: No Getter Method found


change the variable txtusergroupcode to txtUserGroupCode. it will work.

|-Original Message-
|From: Abhijeet Mahalkar [mailto:[EMAIL PROTECTED]
|Sent: Friday, September 26, 2003 12:13 PM
|To: Struts Users Mailing List
|Subject: Urgent: No Getter Method found
|
|
|hi All
|I am getting following error while invoking JSP file ..
|
|
|txtUserGroupCode of bean org.apache.struts.taglib.html.BEAN]:
|javax.servlet.jsp.JspException: No getter method for property
|txtUserGroupCode of bean org.apache.struts.taglib.html.BEAN
|
|i have following code in the Action Clas...  still i am getting
|the error please Sugest solution for this...
|
|
|
| public String getTxtUserGroupCode()
| {
|  return this.txtusergroupcode ;
| }
|
| public void setTxtUserGroupCode(String s)
| {
|  this.txtusergroupcode = s ;
| }
|
|

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


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



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



Struts Design Issue - Search Functionality - Best Practices

2003-09-26 Thread Chawla, Yogesh
Hi,

Design Requirement - Show a list of Search records. The screen will have
buttons for Previous/Next Month. On clicking these records would be shown.

Issues - 

a) How to store data and best practices to be followed in Struts. Return
back a Collection of Form Beans and iterate over these. However certain
other fields are required to be stored also which are not displayable. i.e.
Current Date which is a hidden parameter. Any comments ?

b) Use a single Form Bean which has variables like String[] to store the
array of Displayable Fields. However, this seems to be a less than perfect
solution. Any comments ???

c) Use Generic Search - Search on different modules, with different fields ?
Any Brilliant Guru contributions for this one..Sure need some wizard out
here...

Pls. advise on the best approach for the Search functionality. We need to
design an application which has Search on each and every page.

Thanks for your time ,

Regards,

Yogesh
DISCLAIMER: The information in this message is confidential and may be
legally privileged. It is intended solely for the addressee.  Access to this
message by anyone else is unauthorised.  If you are not the intended
recipient, any disclosure, copying, or distribution of the message, or any
action or omission taken by you in reliance on it, is prohibited and may be
unlawful.  Please immediately contact the sender if you have received this
message in error. Thank you.

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



AW: ActionErrors and Servlet Filters

2003-09-26 Thread Samuel . Opoku-Boadu
I think you need to implement the saveErrors() method some where
in your code. You may also need to import the Action class in your Servlet Filter. Also
you could check to make sure you have imported the html taglibrary in your home.jsp 

-Ursprungliche Nachricht-
Von: Nate Drake [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 26. September 2003 02:08
An: [EMAIL PROTECTED]
Betreff: ActionErrors and Servlet Filters


I have a Servlet Filter that checks that the user has permission to
access the requested page.  If the user does not, I want to send them
back to home.jsp.  In home.jsp, I want to use the html:errors tag to
display an error message.

In the filter I do this:

ActionError error = new ActionError(Constants.ERRORS_PERMISSION_DENIED);

ActionErrors errors = new ActionErrors();
errors.add(ActionErrors.GLOBAL_ERROR, error);

request.setAttribute(errparam, errors);

RequestDispatcher rd = request.getRequestDispatcher(home.jsp);
  
rd.forward(request, response);
return;

In home.jsp I've tried both:

html:errors name=errparam/
html:errors property=errparam/


It forwards back to home.jsp, but the error messages are not displayed. 
Is it possible to use ActionErrors outside of an Action?

Thanks,
Nate


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

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



(RE-POST): Session expired

2003-09-26 Thread Tarun Dewan


-Original Message-
From: Tarun Dewan [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 24, 2003 12:40 PM
To: 'Struts Users Mailing List'
Subject: Session expired


Hi, 

I'm new to Struts and want to understand how user can be redirected to
login page in case of session timeout. Will following code works for
this handling:


***
public class LOSSessionLogOutHandler extends RequestProcessor 
{
public LOSSessionLogOutHandler()
{
super();
}

public void process(javax.servlet.http.HttpServletRequest
request, javax.servlet.http.HttpServletResponse response) throws
IOException, ServletException
{
if(request.getSession(false)==null)
{
response.sendRedirect(Login.los);
}
else
{
super.process(request,response);
}
}
}



Do I need to enter information of this file in Struts Configuration file
also? 

Eaglerly awaiting for a favorable response. 

Thanks  regards,

Tarun Dewan. 
 


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


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



what is .do mapping?

2003-09-26 Thread Abhijeet Mahalkar
When invoke the jsp using 

http://localhost/xyz/pages/UserGroupMaster.jsp

URL and when i submit the page trhu submit button the URL gets changed to following 
will anybody tell me why? and what is .do stands for? where do we make the entry of 
this.?

is it the action mapping we are using in struts -config.xml file ?

 action
 path=/usergroupmaster
 type=ActionUserGroupMaster
 name=UserGroupMasterActionForm
 scope=request
 validate=false
 input=/pages/UserGroupMaster.jsp parameter=action
 
  forward name=success path=/pages/success.jsp/
 forward name=failure path=/pages/failure.jsp/
 forward name=usergroupmaster path=/pages/UserGroupMaster.jsp/
 /action


http://localhost/xyz/usergroupmaster.do


Re: Validate values in collection?

2003-09-26 Thread Timo Neumann
Natalie D Rassmann wrote:

Hi Natalie and everybody,

do you know if I can do a requiredif check against a second property in 
the same bean?

something like:

form name=FundForm
field property=value indexedListProperty=funds 
depends=integer,requiredif
	arg0 key=global.value/
	var
		var-namefield[0]/var-name
		var-valuefunds.valueNeeded/var-value
	/var
	var
		var-namefieldTest[0]/var-name
		var-valueEQUAL/var-value
	/var
	var
		var-namefieldValue[0]/var-name
		var-valuetrue/var-value
	/var
/field
/form

Timo

It depends on if it is indexed or not.

Here is an example that I have...

 field property=prepTime indexedListProperty=prepTime
depends=float,isFloatNegative page=3
  arg0 key=label.revRec.mtgMetricPrepTime/
   /field
I am using a multi-page for that is why I have the page attribute.

The prepTime property is a String[].

Here is an example of a property that is part of the defectsList collection.
defectsList is an ArrayList.  I wrote the isFieldEmpty validation.
   field property=defectDescription indexedListProperty=defectsList
depends=isFieldEmpty page=4
  arg0 key=label.revRec.defectDescrip/
   /field
Does this help?

Natalie

Timo Neumann wrote:


Natalie D Rassmann wrote:

So this works if forms is a collection of beans with a property value?

form name=FundForm
   field property=forms.value depends=integer
   arg0 key=global.value/
   /field
/form
Like you would any other type of form.  Do you know how to set up the
validator framework?  If not try this link below:
http://jakarta.apache.org/struts/userGuide/dev_validator.html

Timo Neumann wrote:



Natalie D Rassmann wrote:



yes
how?



Timo Neumann wrote:




Hi all,

is it possible to use the validator framework to check values of beans
that are stored in a collection in a DynaValidatorForm?
TIA,

Timo
--
FF Computer AnwendungenTel: +49 89 51727-352
und Unternehmensberatung GmbH   Fax: +49 89 51727-111
Westendstr. 195 Mail: [EMAIL PROTECTED]
D-80686 Muenchenhttp://www.ff-muenchen.de
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
FF Computer AnwendungenTel: +49 89 51727-352
und Unternehmensberatung GmbH   Fax: +49 89 51727-111
Westendstr. 195 Mail: [EMAIL PROTECTED]
D-80686 Muenchenhttp://www.ff-muenchen.de
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
FF Computer AnwendungenTel: +49 89 51727-352
und Unternehmensberatung GmbH   Fax: +49 89 51727-111
Westendstr. 195 Mail: [EMAIL PROTECTED]
D-80686 Muenchenhttp://www.ff-muenchen.de
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




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


--
FF Computer AnwendungenTel: +49 89 51727-352
und Unternehmensberatung GmbH   Fax: +49 89 51727-111
Westendstr. 195 Mail: [EMAIL PROTECTED]
D-80686 Muenchenhttp://www.ff-muenchen.de
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: using getParameter

2003-09-26 Thread Swanand P Bhorkar
Hi,

Change the statement

blockquote
  Serno is =% request.getParameter(serno);%
/blockquote
to the following

blockquote
  Serno is = %=request.getParameter(serno);%
/blockquote


Hope it helps.

--swan

On Fri, 26 Sep 2003 Kemal Küçüktaþçý wrote :
Hi;



I' using Struts 1.1, (Struts-Tiles tag library) and 
display tag
library(). And in my page find any recordlist and display it 
using display
tag library. Create a link any record on the tables. When i click 
the link
in the table, called url is




localhost:8080/struts-test1/details.do?serno=123456



and using below line in the jsp but nothing return any value.

% request.getParameter(serno) %



details.do defined as a tiles in the tiles-deifinitions.xml file 
as below



!-Main page area
--
definition name=org.kocbank.masterpage 
page=/pagetemplate.jsp
scope=request

   put name=pelititle value=Pelikan web sistemi/

   put name=peliheader value=headertemplate.jsp/

   put name=pelimenu value=pelimenuempty.jsp/

   put name=pelibody value=body.jsp/

   put name=pelifooter value=footertemplate.jsp/

/definition

!-Details page
--
definition name=org.kocbank.viewdetailpage
extends=org.kocbank.masterpage
   put name=pelititle value=Pelikan ayrýntýlý 
görüntüleme/

   put name=pelibody value=detailbody.jsp/

/definition



and in the struts-config.xml file action-mappings area contains



action

forward=org.kocbank.viewdetailpage

path=/details

scope=session

unknown=false

validate=false /



and detailbody.jsp contains



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

blockquote

   Serno is =% request.getParameter(serno);%

/blockquote



do you have any solution for this problem.



Thanks.!





Bu mesaj ve onunla iletilen tüm ekler gönderildigi kisi ya da 
kuruma özel ve Bankalar Kanunu geregince, gizlilik yükümlülügü 
tasiyor olabilir. Bu mesaj, hiçbir sekilde, herhangi bir amaç 
için çogaltilamaz, yayinlanamaz ve para karsiligi satilamaz; 
mesajin yetkili alicisi veya alicisina iletmekten sorumlu kisi 
degilseniz, mesaj içerigini ya da eklerini kopyalamayiniz, 
yayinlamayiniz, baska kisilere yönlendirmeyiniz ve mesaji 
gönderen kisiyi derhal uyararak bu mesaji siliniz. Bu mesajin 
içeriginde ya da eklerinde yer alan bilgilerin dogrulugu, 
bütünlügü ve güncelligi Bankamiz tarafindan garanti 
edilmemektedir ve bilinen virüslere karsi kontrolleri yapilmis 
olarak yollanan mesajin sisteminizde yaratabilecegi zararlardan 
Bankamiz sorumlu tutulamaz.

This message and the files attached to it are under the privacy 
liability in accordance with the Banking Law and confidential to 
the use of the individual or entity to whom they are addressed. 
This message cannot be copied, disclosed or sold monetary 
consideration for any purpose. If you are not the intended 
recipient of this message, you should not copy, distribute, 
disclose or forward the information that exists in the content 
and in the attachments of this message; please notify the sender 
immediately and delete all copies of this message. Our Bank does 
not warrant the accuracy, integrity and currency of the 
information transmitted with this message. This message has been 
detected for all known computer viruses thence our Bank is not 
liable for the occurrence of any system corruption caused by this 
message.


___
Meet your old school or college friends from
1 Million + database...
Click here to reunite www.batchmates.com/rediff.asp


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


Re: what is .do mapping?

2003-09-26 Thread Swanand P Bhorkar


On Fri, 26 Sep 2003 Abhijeet Mahalkar wrote :
When invoke the jsp using

http://localhost/xyz/pages/UserGroupMaster.jsp

URL and when i submit the page trhu submit button the URL gets 
changed to following will anybody tell me why? and what is .do 
stands for? where do we make the entry of this.?

is it the action mapping we are using in struts -config.xml file 
?
* YES, infact it is. when you give a url like usergroupmaster.do 
is looks in to the struts-config.xml and matches the path 
attribute.

After the matching ActionUserGroupMaster class is used to 
accomplish the task using some helper classes/beans etc and 
depending on the the return value (success,failure etc) 
corresponding page is called (success.jsp, failure.jsp etc).

Hope it helps

-- swan

 action
 path=/usergroupmaster
 type=ActionUserGroupMaster
 name=UserGroupMasterActionForm
 scope=request
 validate=false
 input=/pages/UserGroupMaster.jsp 
parameter=action

  forward name=success path=/pages/success.jsp/
 forward name=failure path=/pages/failure.jsp/
 forward name=usergroupmaster 
path=/pages/UserGroupMaster.jsp/
 /action

http://localhost/xyz/usergroupmaster.do


___
Meet your old school or college friends from
1 Million + database...
Click here to reunite www.batchmates.com/rediff.asp


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


Re: what is .do mapping?

2003-09-26 Thread Abhijeet Mahalkar
Hi swanand
thanks for ur very quick reply.

just guide me ...
What should i do if the following code not working and not getting redirected to 
UserGroupMaster.jsp


On Fri, 26 Sep 2003 Abhijeet Mahalkar wrote :
When invoke the jsp using

http://localhost/xyz/pages/UserGroupMaster.jsp

URL and when i submit the page trhu submit button the URL gets 
changed to following will anybody tell me why? and what is .do 
stands for? where do we make the entry of this.?

is it the action mapping we are using in struts -config.xml file 
?

* YES, infact it is. when you give a url like usergroupmaster.do 
is looks in to the struts-config.xml and matches the path 
attribute.

After the matching ActionUserGroupMaster class is used to 
accomplish the task using some helper classes/beans etc and 
depending on the the return value (success,failure etc) 
corresponding page is called (success.jsp, failure.jsp etc).

Hope it helps

-- swan


  action
  path=/usergroupmaster
  type=ActionUserGroupMaster
  name=UserGroupMasterActionForm
  scope=request
  validate=false
  input=/pages/UserGroupMaster.jsp 
parameter=action

   forward name=success path=/pages/success.jsp/
  forward name=failure path=/pages/failure.jsp/
  forward name=usergroupmaster 
path=/pages/UserGroupMaster.jsp/
  /action


http://localhost/xyz/usergroupmaster.do



___
Meet your old school or college friends from
1 Million + database...
Click here to reunite www.batchmates.com/rediff.asp



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



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



RE: what is .do mapping?

2003-09-26 Thread Rohit_Arora
Hi Abhijeet,
  The .do is added due to the action servlet mapping as defined in the web.xml

servlet-mapping
  servlet-nameaction/servlet-name 
  url-pattern*.do/url-pattern 
/servlet-mapping

You can use any suffix instead of the '.do' but you will have to define the same in 
the web.xml. But it is a general convention to use the *.do . The other way with which 
you define the action servlet mapping is using  url-pattern/do/*/url-pattern

The mapping defines how your actions will work.

Hope this is of use for you

Regards,
Rohit Arora


-Original Message-
From: Abhijeet Mahalkar [mailto:[EMAIL PROTECTED]
Sent: Friday, September 26, 2003 2:38 PM
To: Struts Users Mailing List
Subject: what is .do mapping?


When invoke the jsp using 

http://localhost/xyz/pages/UserGroupMaster.jsp

URL and when i submit the page trhu submit button the URL gets changed to following 
will anybody tell me why? and what is .do stands for? where do we make the entry of 
this.?

is it the action mapping we are using in struts -config.xml file ?

 action
 path=/usergroupmaster
 type=ActionUserGroupMaster
 name=UserGroupMasterActionForm
 scope=request
 validate=false
 input=/pages/UserGroupMaster.jsp parameter=action
 
  forward name=success path=/pages/success.jsp/
 forward name=failure path=/pages/failure.jsp/
 forward name=usergroupmaster path=/pages/UserGroupMaster.jsp/
 /action


http://localhost/xyz/usergroupmaster.do

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



Re: what is .do mapping?

2003-09-26 Thread Abhijeet Mahalkar
Hi swanand
thanks for ur very quick reply.

just guide me ...
What should i do if the following code not working and not getting redirected to 
UserGroupMaster.jsp

i am getting this error...

org.apache.struts.action.RequestProcessor  Invalid path /usergroupmaster was requested

thanks in Advance 
abhijeet



On Fri, 26 Sep 2003 Abhijeet Mahalkar wrote :
When invoke the jsp using

http://localhost/xyz/pages/UserGroupMaster.jsp

URL and when i submit the page trhu submit button the URL gets 
changed to following will anybody tell me why? and what is .do 
stands for? where do we make the entry of this.?

is it the action mapping we are using in struts -config.xml file 
?

* YES, infact it is. when you give a url like usergroupmaster.do 
is looks in to the struts-config.xml and matches the path 
attribute.

After the matching ActionUserGroupMaster class is used to 
accomplish the task using some helper classes/beans etc and 
depending on the the return value (success,failure etc) 
corresponding page is called (success.jsp, failure.jsp etc).

Hope it helps

-- swan


  action
  path=/usergroupmaster
  type=ActionUserGroupMaster
  name=UserGroupMasterActionForm
  scope=request
  validate=false
  input=/pages/UserGroupMaster.jsp 
parameter=action

   forward name=success path=/pages/success.jsp/
  forward name=failure path=/pages/failure.jsp/
  forward name=usergroupmaster 
path=/pages/UserGroupMaster.jsp/
  /action


http://localhost/xyz/usergroupmaster.do



___
Meet your old school or college friends from
1 Million + database...
Click here to reunite www.batchmates.com/rediff.asp



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




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



RE: [struts workflow extension] design question

2003-09-26 Thread shirishchandra.sakhare
Thanks Matthias,

I will have a close look at the demo and test applications.I need some generic way to 
add the workflow extention to my existing working screens so that the user will be 
kept informed of the workflow violations and given a choice to leave the workflow or 
stay in the workflow.So I am looking at some way to write a generic action which will 
allow the user to terminate or continue in the workflow.

Any how, I will first look at the applications included with download bundle.I hope 
that i will not be required to extend the workFlowProcessorLogic.

But I still have my original doubt.Why does the WorkflowRequestProcessorLogic class 
not have a public constructor?Should it not be extendable?Or it was a design decision 
due to some reasons.Because I think keeping in line with the struts philosophy, you 
could give a couple of extension points in your framework.And the way it is designed, 
I dont see a reason why it will not become a defacto extention for workflow problems.

Any thoughts/ideas from other existing users of this extension.

Regards,
Shirish.

-Original Message-
From: Matthias Bauer [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 5:26 PM
To: Struts Users Mailing List
Subject: Re: [struts workflow extension] design question


Shirish,

why do you want to change the workflow extension for doing this? Maybe 
you want to have a look at the demo application. If I am getting you 
right, I suppose I am doing exactly what you want to do: Just let the 
action that handles the workflow violation put the application specific 
warning in the session. With this mechanism you cannot only make this 
warning application specific but even specific to the workflow that is 
violated.

--- Matthias

[EMAIL PROTECTED] wrote:

Hi ,
I need to extend the functionality of struts workflow extension provided by Mr. 
Matthias Bauer( http://www.livinglogic.de/Struts/index.html ).

I want to add some Warning messages when the workflow exception occurs.For the same, 
I need to Extend the WorkflowRequestProcessorLogic class and override the 
processCheckWorkflows method so that the ApplicationSpecific Warning can be added in 
the session.

The method is protected but the class has no public constructor which is preventing 
me from extending the same.

Can anybody from the committers of the project team me why is this so?Was it a 
conscious design decision?

TIA.

Shirish

-Original Message-
From: Adolfo Miguelez [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 12:08 PM
To: [EMAIL PROTECTED]
Subject: Re: Value assignment to html:hidden field...


What about this?

bean:define id=date name=BussinessDate scope=session/
html:hidden value = %=date % property=txtBusidate width=15 size=25 
maxlength=25/

Adolfo.




  

From: Abhijeet Mahalkar [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Value assignment to html:hidden field...
Date: Thu, 25 Sep 2003 15:09:16 +0530

how can we assign the JSP value to the hidden field
code is as follows
String date = session.getValue(BussinessDate);
this date variable i want to assign to following field...
html:hidden property=txtBusidate width=15 size=25 
maxlength=25 /

will this work ?

html:hidden value = %=date % property=txtBusidate width=15 size=25 
maxlength=25/

please suggest
abbey




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




_
Add photos to your messages with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail


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

  




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


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



RE: Struts Design Issue - Search Functionality - Best Practices

2003-09-26 Thread Paul McCulloch
My aproach is as follows:

Each form bean property which can be searched is a descendant of
SearchableProperty. A SearchableProperty consists of:

*A String value representing the user's input
*The selected business entity (if the user has selected one)
*An object descended from Lookup, which implements the associated search
functionality

I have a base form  dispatch action. 

The base action contains methods which are called to show the search screen;
do a search ;use a searched value etc.

The base form contains hidden fields, populated via javascript, which tell
the dispatch action which property the search function is being invoked for,
and other 'paramaters' such as the id of a selected record.

The view of my application uses the struts nested tags, and JSP includes to
provide reuseable components to render a SearchableProperty and it's
associated search view. The search view is part of the same page - the app
only ever uses one browser window, with no frames.

The upside of this approach is that I can place, with little effort,
sophisticated searching functions anywhere is the app. Due to the inclusion
of the user selected business entity behind the scenes, my view can display
any properties of the selected entity, without a change to the form bean.

The downside of this is that the form bean must be stored in session scope.
I have done a bit of load testing and it didn't seem to be a problem, but I
didn't have much to compare with - this is my first Struts app.

So, that's the approach I use. I've no idea how that compares to the best
practices out there, nut I'm eager to find out!

Paul

-Original Message-
From: Chawla, Yogesh [mailto:[EMAIL PROTECTED]
Sent: 26 September 2003 08:19
To: 'Struts Users Mailing List'
Subject: Struts Design Issue - Search Functionality - Best Practices
Importance: High


Hi,

Design Requirement - Show a list of Search records. The screen will have
buttons for Previous/Next Month. On clicking these records would be shown.

Issues - 

a) How to store data and best practices to be followed in Struts. Return
back a Collection of Form Beans and iterate over these. However certain
other fields are required to be stored also which are not displayable. i.e.
Current Date which is a hidden parameter. Any comments ?

b) Use a single Form Bean which has variables like String[] to store the
array of Displayable Fields. However, this seems to be a less than perfect
solution. Any comments ???

c) Use Generic Search - Search on different modules, with different fields ?
Any Brilliant Guru contributions for this one..Sure need some wizard out
here...

Pls. advise on the best approach for the Search functionality. We need to
design an application which has Search on each and every page.

Thanks for your time ,

Regards,

Yogesh
DISCLAIMER: The information in this message is confidential and may be
legally privileged. It is intended solely for the addressee.  Access to this
message by anyone else is unauthorised.  If you are not the intended
recipient, any disclosure, copying, or distribution of the message, or any
action or omission taken by you in reliance on it, is prohibited and may be
unlawful.  Please immediately contact the sender if you have received this
message in error. Thank you.

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


**
Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If you are not 
the addressee indicated in this message (or responsible for delivery of the message to 
such person), you may not copy or deliver this message to anyone. In such case, you 
should destroy this message, and notify us immediately. If you or your employer does 
not consent to Internet email messages of this kind, please advise us immediately. 
Opinions, conclusions and other information expressed in this message are not given or 
endorsed by my Company or employer unless otherwise indicated by an authorised 
representative independent of this message.
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted 
via electronic mail attachments we cannot guarantee that attachments do not contain 
computer virus code.  You are therefore strongly advised to undertake anti virus 
checks prior to accessing the attachment to this electronic mail.  Axios Systems Ltd 
grants no warranties regarding performance use or quality of any attachment and 
undertakes no liability for loss or damage howsoever caused.


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



Re: Validate values in a collection

2003-09-26 Thread Rassmann, Natalie D
Timo,

I would try to avoid using the requiredif because it will be deprecated with the
next release of struts.  validwhen will replace it.  validwhen is much more
powerful and easier to use.  To get the validwhen code, you have to go and
download a nightly build.  I just did it a few days ago and everything works
fine.  I actually built the validwhen stuff into my app rather than used the new
struts.jar file.

If you don't want to try and use the validwhen then you can modify Matt Raible's
design for validating two fields.  I did that too.  The only problem I had was
when I was trying to validate an indexed property and a non-indexed property.  The
getProperty method in the common-beanutils kept getting an error when trying to
use reflection to find the second property (the one that was not no part of the
collection).  In other words, I was trying to compare an item in an ArrayList with
a property that was just a String (not part of the ArrayList).  I had and still am
having problems with that.  I am going to try again this morning and try to get it
to work because the validateTwoFields works great when it works.

http://www.raibledesigns.com/page/rd/20030226#struts_validator_validating_two_fields


I hope this helps,

Natalie

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



Re: Re: what is .do mapping?

2003-09-26 Thread Swanand P Bhorkar
Hi Abhijeet,

Actually i am also a bit new to struts, so i may not be able to 
answer everything to the point. But let me try,

In your code
action
path=/usergroupmaster
type=ActionUserGroupMaster
name=UserGroupMasterActionForm
scope=request
validate=false
input=/pages/UserGroupMaster.jsp
parameter=action
try providing the full package name of the 
type=ActionUserGroupMaster class.for example 
com.dir1.dir2.somepackage.ActionUserGroupMaster

It might be possible that your action class could not be found.

Let me know if this was really the case, and even if it wasn't the 
case.

thanks.

swanand

On Fri, 26 Sep 2003 Abhijeet Mahalkar wrote :
Hi swanand
thanks for ur very quick reply.
just guide me ...
What should i do if the following code not working and not 
getting redirected to UserGroupMaster.jsp

i am getting this error...

org.apache.struts.action.RequestProcessor  Invalid path 
/usergroupmaster was requested

thanks in Advance
abhijeet


On Fri, 26 Sep 2003 Abhijeet Mahalkar wrote :
When invoke the jsp using

http://localhost/xyz/pages/UserGroupMaster.jsp

URL and when i submit the page trhu submit button the URL 
gets
changed to following will anybody tell me why? and what is 
.do
stands for? where do we make the entry of this.?

is it the action mapping we are using in struts -config.xml 
file
?

* YES, infact it is. when you give a url like 
usergroupmaster.do
is looks in to the struts-config.xml and matches the path
attribute.

After the matching ActionUserGroupMaster class is used to
accomplish the task using some helper classes/beans etc and
depending on the the return value (success,failure etc)
corresponding page is called (success.jsp, failure.jsp etc).
Hope it helps

-- swan


  action
  path=/usergroupmaster
  type=ActionUserGroupMaster
  name=UserGroupMasterActionForm
  scope=request
  validate=false
  input=/pages/UserGroupMaster.jsp
parameter=action

   forward name=success path=/pages/success.jsp/
  forward name=failure path=/pages/failure.jsp/
  forward name=usergroupmaster
path=/pages/UserGroupMaster.jsp/
  /action


http://localhost/xyz/usergroupmaster.do


___
Meet your old school or college friends from
1 Million + database...
Click here to reunite www.batchmates.com/rediff.asp


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



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



___
Meet your old school or college friends from
1 Million + database...
Click here to reunite www.batchmates.com/rediff.asp


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


FW: .do

2003-09-26 Thread Rohit_Arora
The problem may be due to the use of usergroupmaster twice (as in the previous XML 
that u had sent) ! 
Once in the path for the action and then again in the forward path

Now that you have tried changing it in the forward tag  IS it still not working 

If you can send the complete stack trace that you get on the browser, it would be 
thought of

btw..have you made the corresponding changes in the return of the action class too ?

also ... are you sure that the class files for the form bean and action are there in 
the correct location as being shown by the struts-config.xml

Regards,
Rohit Arora



-Original Message-
From: Abhijeet Mahalkar [mailto:[EMAIL PROTECTED]
Sent: Friday, September 26, 2003 3:56 PM
To: Rohit_Arora
Subject: Re: .do


Hi Rohit 
this is the entry

 action
 path=/usergroupmaster
 type=ActionUserGroupMaster
 name=UserGroupMasterActionForm
 scope=request
 validate=false
 input=/pages/UserGroupMaster.jsp parameter=action
 
  forward name=success path=/pages/success.jsp/
 forward name=failure path=/pages/failure.jsp/
 forward name=usergroupmasterMenu path=/pages/UserGroupMaster.jsp/
 /action
thanks
abhijeet
- Original Message - 
From: Rohit_Arora [EMAIL PROTECTED]
To: Abhijeet Mahalkar [EMAIL PROTECTED]
Sent: Friday, September 26, 2003 3:46 PM
Subject: RE: .do


Can u send me the struts-config.xml  the portion where u handle the action for 
/usergroupmaster ?

Regards,
Rohit Arora

-Original Message-
From: Abhijeet Mahalkar [mailto:[EMAIL PROTECTED]
Sent: Friday, September 26, 2003 3:25 PM
To: Rohit_Arora
Subject: Re: .do



hi rohit
thanks for ur very quick reply.

Ya i got this but now my question is 

What should i do if the following code not working and not getting redirected to 
UserGroupMaster.jsp

i am getting this error...

org.apache.struts.action.RequestProcessor  Invalid path /usergroupmaster was requested

thanks in Advance 
abhijeet






- Original Message - 
From: Rohit_Arora [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, September 26, 2003 3:26 PM
Subject: .do


Hi Abhijeet,
  The .do is added due to the action servlet mapping as defined in the web.xml

servlet-mapping
  servlet-nameaction/servlet-name 
  url-pattern*.do/url-pattern 
/servlet-mapping

You can use any suffix instead of the '.do' but you will have to define the same in 
the web.xml. But it is a general convention to use the *.do . The other way with which 
you define the action servlet mapping is using  url-pattern/do/*/url-pattern

The mapping defines how your actions will work.

Hope this is of use for you

Regards,
Rohit Arora





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



Re: How do I populate a DynaValidatorForm?

2003-09-26 Thread Pratik Patel
DynaActionForms are not a drop-in replacement for ActionForms. If you
need to access ActionForm properties in your Action, you will need to
use the map-style accessor, like myForm.get(name). If you actively use
the ActionForm object in your Action, then you may want to use
conventional ActionForms instead.
Why aren't you just using ActionForms? To be honest, I never use 
DynaActionForms. Sure, there's an extra Java class that needs to be 
written, but I find it easier to write an ActionForm class than write 
out a XML descriptor for a DynaActionForm. Plus it's easier to unit test 
 a concrete class than one that assumes its properties at runtime. If 
you're too lazy (like me) to actually write the ActionForm class, just 
use XDoclet to generate one for you.

cheers,
Pratik


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


DynaActionForm and disabled textfield.

2003-09-26 Thread Kazda Juraj
Hello all,

I just have a quick question:



Is it true, that if I have

html-el: text property=id disabled=true/

it will not transfer to my DynaActionForm, so I am not able to get it's
value in my action?

Or am I something missing?



Thank you for your comments.

-juraj.



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



.do again with problem points/code...

2003-09-26 Thread Abhijeet Mahalkar

- Original Message - 
From: Abhijeet Mahalkar 
To: Rohit_Arora 
Sent: Friday, September 26, 2003 4:17 PM
Subject: .do again


 
Hi rohit
 
this is the stact trace for the error  i am getting..

But please tell me first that while submiting how will i write html:submit

i have written something like this...
html:submit property=details Details /html:submit


and my action class getKeyMethodMap() method contains  

  Map map = new HashMap();
  map.put(button.save,save);
  map.put(button.details,details);
  map.put(button.error,error);
  map.put(button.appreset,appreset);
  return map;
 

and return type of details method contains 

return mapping.findForward(/usergroupmaster);

Are these code snippets are correct. I hope now it will make you easy to understand 
the error and my mistakes properly...

thanks 
abhijeet
 
[9/26/03 15:23:05:283 IST] 19bf2a8c WebGroup  I SRVE0180I: [Phase2.war] [/phase2] 
[Servlet.LOG]: /pages/UserGroupMaster.jsp: init
[9/26/03 15:23:05:323 IST] 19bf2a8c WebGroup  E SRVE0026E: [Servlet Error]-[Cannot 
retrieve mapping for action /usergroupmaster]: javax.servlet.jsp.JspException: Cannot 
retrieve mapping for action /usergroupmaster
 at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:810)
 at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:506)
 at org.apache.jsp._UserGroupMaster._jspService(_UserGroupMaster.java:242)
 at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
 at 
com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:344)
 at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:598)
 at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:696)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
 at 
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java(Compiled
 Code))
 at 
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java(Compiled
 Code))
 at 
com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
 at 
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java(Inlined
 Compiled Code))
 at 
com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java(Compiled 
Code))
 at 
com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java(Compiled
 Code))
 at 
com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java(Inlined
 Compiled Code))
 at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java(Compiled
 Code))
 at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java(Compiled
 Code))
 at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:173)
 at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79)
 at 
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:199)
 at 
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
 at 
com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
 at 
com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:331)
 at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
 at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:432)
 at com.ibm.ws.http.HttpConnection.run(HttpConnection.java(Compiled Code))
 at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:592)

[9/26/03 15:23:06:615 IST] 5a11aaae WebGroup  E SRVE0026E: [Servlet Error]-[Cannot 
retrieve mapping for action /usergroupmaster]: javax.servlet.jsp.JspException: Cannot 
retrieve mapping for action /usergroupmaster
 at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:810)
 at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:506)
 at org.apache.jsp._UserGroupMaster._jspService(_UserGroupMaster.java:242)
 at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
 at 
com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:344)
 at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:598)
 at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:696)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
 at 
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java(Compiled
 Code))
 at 
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java(Compiled
 Code))
 at 

RE: And now for something completely different... [OT]

2003-09-26 Thread Mark Galbreath
What do expect from a manager?  Managers are like art critics: if they were
worth a damn in their fields, they would be DOING, not observing.  I'd
rather have an alcoholic C++ programmer than a manager any day of the week.
At least the alcoholic coder is incompetent only part of the time.

Mark

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 11:39 PM
To: Struts Users Mailing List
Subject: RE: And now for something completely different... [OT]


snip
This just strikes me as a very strange statement -- I don't get it.
/snip

Too much BSD will do that to you...

-Original Message-
From: Max Cooper [mailto:[EMAIL PROTECTED]
Sent: Friday, 26 September 2003 04:28
To: Struts Users Mailing List
Subject: Re: And now for something completely different... [OT]


What's with this?:

Drug and alcohol abusers will vehemently deny their addiction, especially
UNIX systems administrators...

Are Unix Sys Admins the hardest partyers of the IT bunch? Or maybe the
author thinks that Unix is over, and that the sysadmins are just in denial
about that and thus prone to denial about other problems? This just strikes
me as a very strange statement -- I don't get it.

-Max

- Original Message -
From: Christian Bollmeyer [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 12:06 PM
Subject: And now for something completely different... [OT]


 Please don't kick me for posting this here, but still, one
 or two might possibly be interested in taking notice:

 http://www.dba-oracle.com/art_firing.htm

 It's always good to know one's enemies :-)

 -- Chris


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





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


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



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



RE: .do again with problem points/code...

2003-09-26 Thread Rohit_Arora

while returning from the action class ...use
  return mapping.findForward(usergroupmasterMenu);
 
when your struts-config.xml has the action mappings has a 
forward name=usergroupamasterMenu 
 
as you has sent me in the new rewritten xml
 
Hope this will work...rest of the code portion seems to be correct :-)
 
Regards, 
Rohit Arora


-Original Message-
From: Abhijeet Mahalkar [mailto:[EMAIL PROTECTED]
Sent: Friday, September 26, 2003 4:24 PM
To: Struts Users Mailing List
Subject: .do again with problem points/code...



- Original Message - 
From: Abhijeet Mahalkar 
To: Rohit_Arora 
Sent: Friday, September 26, 2003 4:17 PM
Subject: .do again


 
Hi rohit
 
this is the stact trace for the error  i am getting..

But please tell me first that while submiting how will i write html:submit

i have written something like this...
html:submit property=details Details /html:submit


and my action class getKeyMethodMap() method contains  

  Map map = new HashMap();
  map.put(button.save,save);
  map.put(button.details,details);
  map.put(button.error,error);
  map.put(button.appreset,appreset);
  return map;
 

and return type of details method contains 

return mapping.findForward(/usergroupmaster);

Are these code snippets are correct. I hope now it will make you easy to understand 
the error and my mistakes properly...

thanks 
abhijeet
 
[9/26/03 15:23:05:283 IST] 19bf2a8c WebGroup  I SRVE0180I: [Phase2.war] [/phase2] 
[Servlet.LOG]: /pages/UserGroupMaster.jsp: init
[9/26/03 15:23:05:323 IST] 19bf2a8c WebGroup  E SRVE0026E: [Servlet Error]-[Cannot 
retrieve mapping for action /usergroupmaster]: javax.servlet.jsp.JspException: Cannot 
retrieve mapping for action /usergroupmaster
 at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:810)
 at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:506)
 at org.apache.jsp._UserGroupMaster._jspService(_UserGroupMaster.java:242)
 at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
 at 
com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:344)
 at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:598)
 at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:696)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
 at 
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java(Compiled
 Code))
 at 
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java(Compiled
 Code))
 at 
com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
 at 
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java(Inlined
 Compiled Code))
 at 
com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java(Compiled 
Code))
 at 
com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java(Compiled
 Code))
 at 
com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java(Inlined
 Compiled Code))
 at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java(Compiled
 Code))
 at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java(Compiled
 Code))
 at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:173)
 at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79)
 at 
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:199)
 at 
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
 at 
com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
 at 
com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:331)
 at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
 at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:432)
 at com.ibm.ws.http.HttpConnection.run(HttpConnection.java(Compiled Code))
 at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:592)

[9/26/03 15:23:06:615 IST] 5a11aaae WebGroup  E SRVE0026E: [Servlet Error]-[Cannot 
retrieve mapping for action /usergroupmaster]: javax.servlet.jsp.JspException: Cannot 
retrieve mapping for action /usergroupmaster
 at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:810)
 at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:506)
 at org.apache.jsp._UserGroupMaster._jspService(_UserGroupMaster.java:242)
 at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
 at 

Re: .do again with problem points/code...

2003-09-26 Thread Abhijeet Mahalkar
Yes This Worked out atleast i am going forward now.. 
some error is there i will try and ask u ..

Thanks for ur unexpected continuous support..

abhijeet

- Original Message - 
From: Rohit_Arora [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, September 26, 2003 4:42 PM
Subject: RE: .do again with problem points/code...



while returning from the action class ...use
  return mapping.findForward(usergroupmasterMenu);
 
when your struts-config.xml has the action mappings has a 
forward name=usergroupamasterMenu 
 
as you has sent me in the new rewritten xml
 
Hope this will work...rest of the code portion seems to be correct :-)
 
Regards, 
Rohit Arora


-Original Message-
From: Abhijeet Mahalkar [mailto:[EMAIL PROTECTED]
Sent: Friday, September 26, 2003 4:24 PM
To: Struts Users Mailing List
Subject: .do again with problem points/code...



- Original Message - 
From: Abhijeet Mahalkar 
To: Rohit_Arora 
Sent: Friday, September 26, 2003 4:17 PM
Subject: .do again


 
Hi rohit
 
this is the stact trace for the error  i am getting..

But please tell me first that while submiting how will i write html:submit

i have written something like this...
html:submit property=details Details /html:submit


and my action class getKeyMethodMap() method contains  

  Map map = new HashMap();
  map.put(button.save,save);
  map.put(button.details,details);
  map.put(button.error,error);
  map.put(button.appreset,appreset);
  return map;
 

and return type of details method contains 

return mapping.findForward(/usergroupmaster);

Are these code snippets are correct. I hope now it will make you easy to understand 
the error and my mistakes properly...

thanks 
abhijeet
 
[9/26/03 15:23:05:283 IST] 19bf2a8c WebGroup  I SRVE0180I: [Phase2.war] [/phase2] 
[Servlet.LOG]: /pages/UserGroupMaster.jsp: init
[9/26/03 15:23:05:323 IST] 19bf2a8c WebGroup  E SRVE0026E: [Servlet Error]-[Cannot 
retrieve mapping for action /usergroupmaster]: javax.servlet.jsp.JspException: Cannot 
retrieve mapping for action /usergroupmaster
 at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:810)
 at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:506)
 at org.apache.jsp._UserGroupMaster._jspService(_UserGroupMaster.java:242)
 at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
 at 
com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:344)
 at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:598)
 at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:696)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
 at 
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java(Compiled
 Code))
 at 
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java(Compiled
 Code))
 at 
com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
 at 
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java(Inlined
 Compiled Code))
 at 
com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java(Compiled 
Code))
 at 
com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java(Compiled
 Code))
 at 
com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java(Inlined
 Compiled Code))
 at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java(Compiled
 Code))
 at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java(Compiled
 Code))
 at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:173)
 at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79)
 at 
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:199)
 at 
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
 at 
com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
 at 
com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:331)
 at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
 at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:432)
 at com.ibm.ws.http.HttpConnection.run(HttpConnection.java(Compiled Code))
 at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:592)

[9/26/03 15:23:06:615 IST] 5a11aaae WebGroup  E SRVE0026E: [Servlet Error]-[Cannot 
retrieve mapping for action /usergroupmaster]: javax.servlet.jsp.JspException: Cannot 
retrieve mapping for action /usergroupmaster
 at 

Re: AW: ActionErrors and Servlet Filters

2003-09-26 Thread Kris Schneider
...
errors.add(errparam, error);
request.setAttribute(Globals.ERROR_KEY, errors);
...

html:errors property=errparam/

Quoting [EMAIL PROTECTED]:

 I think you need to implement the saveErrors() method some where
 in your code. You may also need to import the Action class in your Servlet
 Filter. Also
 you could check to make sure you have imported the html taglibrary in your
 home.jsp 
 
 -Ursprungliche Nachricht-
 Von: Nate Drake [mailto:[EMAIL PROTECTED]
 Gesendet: Freitag, 26. September 2003 02:08
 An: [EMAIL PROTECTED]
 Betreff: ActionErrors and Servlet Filters
 
 
 I have a Servlet Filter that checks that the user has permission to
 access the requested page.  If the user does not, I want to send them
 back to home.jsp.  In home.jsp, I want to use the html:errors tag to
 display an error message.
 
 In the filter I do this:
 
 ActionError error = new ActionError(Constants.ERRORS_PERMISSION_DENIED);
 
 ActionErrors errors = new ActionErrors();
 errors.add(ActionErrors.GLOBAL_ERROR, error);
 
 request.setAttribute(errparam, errors);
 
 RequestDispatcher rd = request.getRequestDispatcher(home.jsp);
   
 rd.forward(request, response);
 return;
 
 In home.jsp I've tried both:
 
 html:errors name=errparam/
 html:errors property=errparam/
 
 
 It forwards back to home.jsp, but the error messages are not displayed. 
 Is it possible to use ActionErrors outside of an Action?
 
 Thanks,
 Nate
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-- 
Kris Schneider mailto:[EMAIL PROTECTED]
D.O.Tech   http://www.dotech.com/

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



RE: Struts Design Issue - Search Functionality - Best Practices

2003-09-26 Thread Edgar P Dollin
I believe this feature is implemented in struts-layout

http://struts.application-servers.com/

Edgar

 -Original Message-
 From: Chawla, Yogesh [mailto:[EMAIL PROTECTED] 
 Sent: Friday, September 26, 2003 2:19 AM
 To: 'Struts Users Mailing List'
 Subject: Struts Design Issue - Search Functionality - Best Practices
 
 
 Hi,
 
 Design Requirement - Show a list of Search records. The 
 screen will have buttons for Previous/Next Month. On clicking 
 these records would be shown.
 
 Issues - 
 
 a) How to store data and best practices to be followed in 
 Struts. Return back a Collection of Form Beans and iterate 
 over these. However certain other fields are required to be 
 stored also which are not displayable. i.e. Current Date 
 which is a hidden parameter. Any comments ?
 
 b) Use a single Form Bean which has variables like String[] 
 to store the array of Displayable Fields. However, this seems 
 to be a less than perfect solution. Any comments ???
 
 c) Use Generic Search - Search on different modules, with 
 different fields ? Any Brilliant Guru contributions for this 
 one..Sure need some wizard out here...
 
 Pls. advise on the best approach for the Search 
 functionality. We need to design an application which has 
 Search on each and every page.
 
 Thanks for your time ,
 
 Regards,
 
 Yogesh
 DISCLAIMER: The information in this message is confidential 
 and may be legally privileged. It is intended solely for the 
 addressee.  Access to this message by anyone else is 
 unauthorised.  If you are not the intended recipient, any 
 disclosure, copying, or distribution of the message, or any 
 action or omission taken by you in reliance on it, is 
 prohibited and may be unlawful.  Please immediately contact 
 the sender if you have received this message in error. Thank you.
 

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



Re: And now for something completely different... [OT]

2003-09-26 Thread Mark Lowe
Umm .. I've known a lot more coked-up account managers than alcoholic 
programmers...

Donald Burleson should get booted just for looking like an older man's 
hair product advert. He probably just getting his own back because no 
body ever invited him to the right kinda parties.

On Friday, September 26, 2003, at 12:08 PM, Mark Galbreath wrote:

What do expect from a manager?  Managers are like art critics: if they 
were
worth a damn in their fields, they would be DOING, not observing.  I'd
rather have an alcoholic C++ programmer than a manager any day of the 
week.
At least the alcoholic coder is incompetent only part of the time.

Mark

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 11:39 PM
To: Struts Users Mailing List
Subject: RE: And now for something completely different... [OT]
snip
This just strikes me as a very strange statement -- I don't get it.
/snip
Too much BSD will do that to you...

-Original Message-
From: Max Cooper [mailto:[EMAIL PROTECTED]
Sent: Friday, 26 September 2003 04:28
To: Struts Users Mailing List
Subject: Re: And now for something completely different... [OT]
What's with this?:

Drug and alcohol abusers will vehemently deny their addiction, 
especially
UNIX systems administrators...

Are Unix Sys Admins the hardest partyers of the IT bunch? Or maybe the
author thinks that Unix is over, and that the sysadmins are just in 
denial
about that and thus prone to denial about other problems? This just 
strikes
me as a very strange statement -- I don't get it.

-Max

- Original Message -
From: Christian Bollmeyer [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 12:06 PM
Subject: And now for something completely different... [OT]

Please don't kick me for posting this here, but still, one
or two might possibly be interested in taking notice:
http://www.dba-oracle.com/art_firing.htm

It's always good to know one's enemies :-)

-- Chris

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



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


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


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


Action Design Question

2003-09-26 Thread Graham Lounder
Hey all,

After reading the [Poll] action mappings thread, I now have a couple of
design questions.  I've got a lot of actions right  now and I'd like to
group related functionality into one action.  I'm thinking of extending the
DispatchAction and creating functions to
search/view/create/update/delete/load my objects.  I'd like to create
separate action mappings for each function.  My question is, can I
hardcode my dispatch parameter in the action mapping or do I have to send
it in ever request from the page?

Thanks in advance,
Graham


Graham Lounder - Java Developer
CARIS Spatial Components Division
[EMAIL PROTECTED]
Phone:  (506) 458-8533
Fax:(506) 459-3849

NO BINDING CONTRACT WILL RESULT FROM THIS EMAIL UNTIL SUCH TIME
AS A WRITTEN DOCUMENT IS SIGNED ON BEHALF OF THE COMPANY.


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



Re: logic:iterate problem

2003-09-26 Thread Gregory F. March

Make sure your getters and setters conform to the Java naming conventions - I 
got burned by something similar and that was the root cause...

HTH...

/greg

On Sep 26, 2003, MaFai [EMAIL PROTECTED]  wrote:

 |Hello, struts-user,
 |
 |[code]
 |logic:iterate id=customer name=customers type=STB.Customer
 |bean:write name=customer property=testb/
 |bean:write name=customer property=pps/
 |/logic:iterate
 |[/code]
 |
 |customers is set by request.setAttribute
 |
 |pps is string value.
 |testb is a int value
 |
 |If remove the testb ,it run smoonthly.
 |If change testb to boolean,it also run smoothly.
 |Otherwise
 |
 |It always throw the exception
 |
 |org.apache.jasper.JasperException: Cannot find message resources under key or
 | g.apache.struts.action.MESSAGE
 |
 |Why?I'm stun at these 2 days.
 |
 |
 |
 |
 |
 |Best regards. 
 |
 |MaFai
 |[EMAIL PROTECTED]
 |2003-09-26
 |
 |
 |
 |-
 |To unsubscribe, e-mail: [EMAIL PROTECTED]
 |For additional commands, e-mail: [EMAIL PROTECTED]




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



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



Problems with search on the mail archive

2003-09-26 Thread Rouven Gehm
Just want to know why ? 
When searching on the struts user mail archive i get no results,
but via google i get some ?

I just searched for bean:write format to get some infos about how to set a format,
but within the mail archive i got no results, with google i got some hits from the 
struts-user
mailinglist ?!?

BTW does anyone has some good infos about this format / formatKey attribute ???
Have not found any useable yet.

Thanx

Rouven


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



RE: Problems with search on the mail archive

2003-09-26 Thread Andrew Hill
You might have more luck using the MARC archive as the main one is
notoriously unfriendly for searching.

http://marc.theaimsgroup.com/?l=struts-userr=1w=2

-Original Message-
From: Rouven Gehm [mailto:[EMAIL PROTECTED]
Sent: Friday, 26 September 2003 20:30
To: Struts Users Mailing List
Subject: Problems with search on the mail archive


Just want to know why ?
When searching on the struts user mail archive i get no results,
but via google i get some ?

I just searched for bean:write format to get some infos about how to set a
format,
but within the mail archive i got no results, with google i got some hits
from the struts-user
mailinglist ?!?

BTW does anyone has some good infos about this format / formatKey attribute
???
Have not found any useable yet.

Thanx

Rouven


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


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



RE: Action Design Question

2003-09-26 Thread Mainguy, Mike
You know, this is an enhancement I've been thinking about.  You could
certainly add it as a parameter in the action mapping.

 action 
   path=/EmpTblDisplay
   type=ProjectAction
   name=EmpTblFormBean
 scope=request
   input=EmpTblDisplayTile
   validate=false
   parameter=Read
forward name=display path=EmpTblDisplayTile/
/action

And then you're all set... Of course, then you don't really need a dispatch
action, you need to create your own version that reads this parameter
instead of the request parameters.
But I'm wondering if there isn't a better way.



-Original Message-
From: Graham Lounder [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 26, 2003 8:13 AM
To: [EMAIL PROTECTED]
Subject: Action Design Question


Hey all,

After reading the [Poll] action mappings thread, I now have a couple of
design questions.  I've got a lot of actions right  now and I'd like to
group related functionality into one action.  I'm thinking of extending the
DispatchAction and creating functions to
search/view/create/update/delete/load my objects.  I'd like to create
separate action mappings for each function.  My question is, can I
hardcode my dispatch parameter in the action mapping or do I have to send
it in ever request from the page?

Thanks in advance,
Graham


Graham Lounder - Java Developer
CARIS Spatial Components Division
[EMAIL PROTECTED]
Phone:  (506) 458-8533
Fax:(506) 459-3849

NO BINDING CONTRACT WILL RESULT FROM THIS EMAIL UNTIL SUCH TIME AS A WRITTEN
DOCUMENT IS SIGNED ON BEHALF OF THE COMPANY.


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


This message and its contents (to include attachments) are the property of Kmart 
Corporation (Kmart) and may contain confidential and proprietary information. You are 
hereby notified that any disclosure, copying, or distribution of this message, or the 
taking of any action based on information contained herein is strictly prohibited. 
Unauthorized use of information contained herein may subject you to civil and criminal 
prosecution and penalties. If you are not the intended recipient, you should delete 
this message immediately.



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



logic:iterate understanding

2003-09-26 Thread Prashanth.S
Hi all,
i found this tag while going through one of jsps but i couldnt understand what this 
denotes
logic:iterate id=oneInput property=fields
I dont find any name attributeThan how can a property attribute can be used..
Thanks
Prashanth
 


-
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search

RE: How do I populate a DynaValidatorForm?

2003-09-26 Thread Fenderbosch, Eric
Where do you specify the
@struts.form-field (0..*)
tags so that XDoclet creates the form for you?
Right now, I have a hand coded form and XDoclet creates the form-bean/ section of my 
struts-config for me, but I'm not creating the actual ActionForm subclass with XDoclet.

-Original Message-
From: Pratik Patel [mailto:[EMAIL PROTECTED]
Sent: Friday, September 26, 2003 06:53
To: [EMAIL PROTECTED]
Subject: Re: How do I populate a DynaValidatorForm?


 DynaActionForms are not a drop-in replacement for ActionForms. If you
 need to access ActionForm properties in your Action, you will need to
 use the map-style accessor, like myForm.get(name). If you actively use
 the ActionForm object in your Action, then you may want to use
 conventional ActionForms instead.

Why aren't you just using ActionForms? To be honest, I never use 
DynaActionForms. Sure, there's an extra Java class that needs to be 
written, but I find it easier to write an ActionForm class than write 
out a XML descriptor for a DynaActionForm. Plus it's easier to unit test 
  a concrete class than one that assumes its properties at runtime. If 
you're too lazy (like me) to actually write the ActionForm class, just 
use XDoclet to generate one for you.


cheers,
Pratik



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



RE: logic:present tag problem

2003-09-26 Thread Slattery, Tim - BLS
 Hi,
   I have a query
   if(a || b )
   {
   do certain operation
   }
   
   a or b will be attributes present in the session 
 object, how can i use logic:present tag to perform this operation.

Use the if tag in JSTL:

c:if test=${a || b}
   do certain operation
/c:if


--
Tim Slattery
[EMAIL PROTECTED]


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



RE: And now for something completely different... [OT]

2003-09-26 Thread Stankard, David

This is not true.  They spend most of their time playing golf, not
partying.


-Original Message-
From: Max Cooper [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 25, 2003 4:28 PM
To: Struts Users Mailing List
Subject: Re: And now for something completely different... [OT]


What's with this?:

Drug and alcohol abusers will vehemently deny their addiction,
especially UNIX systems administrators...

Are Unix Sys Admins the hardest partyers of the IT bunch? Or maybe the
author thinks that Unix is over, and that the sysadmins are just in
denial about that and thus prone to denial about other problems? This
just strikes me as a very strange statement -- I don't get it.

-Max

- Original Message - 
From: Christian Bollmeyer [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 12:06 PM
Subject: And now for something completely different... [OT]


 Please don't kick me for posting this here, but still, one
 or two might possibly be interested in taking notice:

 http://www.dba-oracle.com/art_firing.htm

 It's always good to know one's enemies :-)

 -- Chris


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





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


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



RE: Advantage of Map/List backed forms Vs Action Forms with array list(urgent please ..need to take a decision )

2003-09-26 Thread Mathew, Manoj


-Hi
 Can anyone please tell me the advantages of Map/List backed forms over regular Action 
Map with array List or even a dyna action form with an arrayList

thank you
Manoj

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



Re: logic:iterate understanding

2003-09-26 Thread Julie . Huang
use  the propery  ...in your case it is fields




Prashanth.S [EMAIL PROTECTED]
09/26/03 09:04 AM
Please respond to Struts Users Mailing List

 
To: [EMAIL PROTECTED]
cc: 
Subject:logic:iterate understanding


Hi all,
i found this tag while going through one of jsps but i couldnt understand 
what this denotes
logic:iterate id=oneInput property=fields
I dont find any name attributeThan how can a property attribute can be 
used..
Thanks
Prashanth
 


-
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search



= = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = 
This transmittal and any attachments may contain confidential, privileged or sensitive 
information and is solely for the use of the intended recipient. If you are not 
intended recipient, you are hereby notified that you have received this transmittal 
and any such attachments in error and any review, dissemination, distribution or 
copying thereof is strictly prohibited. If you have received this transmittal and any 
attachments in error please notify the sender and immediately destroy the message and 
all its attachments. Any opinions herein expressed may be those of the author and not 
necessarily of Mizuho Corporate Bank, Ltd (the Bank). The Bank accepts no 
responsibility for the accuracy or completeness of any information herein contained.
= = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = 



Re: Action Design Question

2003-09-26 Thread Robert Leland
Graham Lounder wrote:

Hey all,

After reading the [Poll] action mappings thread, I now have a couple of
design questions.  I've got a lot of actions right  now and I'd like to
group related functionality into one action.  I'm thinking of extending the
DispatchAction and creating functions to
search/view/create/update/delete/load my objects. 

I would strongly advise against this. Keeping each action simple is the 
way to go.

2 1/2 years ago I had created the first struts web application for the 
company I was working for at the
time. I went away on a 3 week honeymoon and when I came back the 
programer that was covering
had consolidated the list/create/delete/search/view/load/update into one 
action. Previously it had been
load, view/update/create, list/delete, search in three different 
actions. 2 years later those Actions are nightmares
to maintain since they contain multiple switch/if  whose flow of control 
is very hard to trace.
Every time we add a new type of object some new programmer will copy the 
combined action
and now there are 30 very hard to maintain Actions. To make it worse the 
portal code has been forked
so the same code is replicated across many projects. Everyone hates 
working on those Actions,
not just me.

So I would recommend grouping them as load, view/update/create, 
list/delete, search.
The grouping is :
  load is kept seperate,
   take a look at the validator example in the nightly build, 
the editJsType, jsType actions.
   to see the
   pattern used to keep from replicating the load code when an 
error
   happens and a action calls its input.
  
 operations that operate on a single object can be grouped 
together(except load),
 operations that work on lists of objects can be combined(except the 
load for a list).
 search , possibly can be combined with the view/update/create.

It's true that some of the logic will be duplicated, but that logic 
never changes.

-Rob


I'd like to create
separate action mappings for each function.  My question is, can I
hardcode my dispatch parameter in the action mapping or do I have to send
it in ever request from the page?
Thanks in advance,
Graham

Graham Lounder - Java Developer
CARIS Spatial Components Division
[EMAIL PROTECTED]
Phone:  (506) 458-8533
Fax:(506) 459-3849

NO BINDING CONTRACT WILL RESULT FROM THIS EMAIL UNTIL SUCH TIME
AS A WRITTEN DOCUMENT IS SIGNED ON BEHALF OF THE COMPANY.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 



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


Re: logic:iterate understanding

2003-09-26 Thread Prashanth.S
Hi julie,
Thanks for the reply but i wanted to know what does this property=fields denote as 
there is no name attribute used in it???
logic:iterate id=oneInput property=fields
Thanks
Prashanth
 



[EMAIL PROTECTED] wrote:
use the propery ...in your case it is fields




Prashanth.S 
09/26/03 09:04 AM
Please respond to Struts Users Mailing List


To: [EMAIL PROTECTED]
cc: 
Subject: understanding


Hi all,
i found this tag while going through one of jsps but i couldnt understand 
what this denotes

I dont find any name attributeThan how can a property attribute can be 
used..
Thanks
Prashanth



-
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search



= = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = 
This transmittal and any attachments may contain confidential, privileged or sensitive 
information and is solely for the use of the intended recipient. If you are not 
intended recipient, you are hereby notified that you have received this transmittal 
and any such attachments in error and any review, dissemination, distribution or 
copying thereof is strictly prohibited. If you have received this transmittal and any 
attachments in error please notify the sender and immediately destroy the message and 
all its attachments. Any opinions herein expressed may be those of the author and not 
necessarily of Mizuho Corporate Bank, Ltd (the Bank). The Bank accepts no 
responsibility for the accuracy or completeness of any information herein contained.
= = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = 



-
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search

Is there a way to find an Object type? Please help

2003-09-26 Thread Mathew, Manoj
Hi

  I been using only String data types in my DynaAction form.But i had a requirement to 
use multi select options and i have to declare a String[] for it. the issue is i have 
my own method which maps the form element to the appropriate fields of my controller 
factory.there i have some code like this
public final static Collection transformFieldMap(DynaActionForm form) {
DynaClass dynaClass = form.getDynaClass();
DynaProperty[] props = dynaClass.getDynaProperties();
for (int i = 0; i  props.length; i++) {
Object propertyNameObj = props[i].getName();

try {
String fieldValue = (String) 
form.get(propertyNameObj.toString());
}catch (Exception e) {
if (e instanceof ClassCastException) {
String[] temp = (String[]) 
form.get(propertyNameObj.toString());
}}


}


I am assuming that i get this ClassCastException only when the form element is a 
String[].  I am live with this for now as i am using only one String[]  and rest are 
just String type.Is there anyway i can find whether the 'Object' is of type string[]  
??? I tried  with instance of and it is not working..

Thank you

Mathew Manoj
Group Information Systems (H243)
* (515)362-0539
* mailto:[EMAIL PROTECTED]



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



error page

2003-09-26 Thread harm
Hi all,

I would like to display an error page if some weird exception occurs in my 
code. (Maybe a RemoteException or a NullPointer). 
I don't like Tomcat's default error page. Is there something I can change 
in struts-config.xml to create a custom error page?

Thanks,

Harm de Laat
Informatiefabriek
The Netherlands


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



RE: error page

2003-09-26 Thread Madhu Nair
Use the exception handler provided by Struts and extend it.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, September 26, 2003 7:17 PM
To: [EMAIL PROTECTED]
Subject: error page


Hi all,

I would like to display an error page if some weird exception occurs in my 
code. (Maybe a RemoteException or a NullPointer). 
I don't like Tomcat's default error page. Is there something I can change 
in struts-config.xml to create a custom error page?

Thanks,

Harm de Laat
Informatiefabriek
The Netherlands


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


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



RE: error page

2003-09-26 Thread Fenderbosch, Eric
Actually, that's part of the Servlet spec, not even Struts. You could add something 
like this to your web.xml:

error-page
  error-code500/error-code
  location/500.jsp/location
/error-page

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, September 26, 2003 09:47
To: [EMAIL PROTECTED]
Subject: error page


Hi all,

I would like to display an error page if some weird exception occurs in my 
code. (Maybe a RemoteException or a NullPointer). 
I don't like Tomcat's default error page. Is there something I can change 
in struts-config.xml to create a custom error page?

Thanks,

Harm de Laat
Informatiefabriek
The Netherlands


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



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



RE: error page

2003-09-26 Thread harm
Thanks for your suggestion. But how exactly should I do this?




Madhu Nair [EMAIL PROTECTED] 
09/26/2003 03:52 PM
Please respond to
Struts Users Mailing List [EMAIL PROTECTED]


To
Struts Users Mailing List [EMAIL PROTECTED]
cc

Subject
RE: error page






Use the exception handler provided by Struts and extend it.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, September 26, 2003 7:17 PM
To: [EMAIL PROTECTED]
Subject: error page


Hi all,

I would like to display an error page if some weird exception occurs in my 

code. (Maybe a RemoteException or a NullPointer). 
I don't like Tomcat's default error page. Is there something I can change 
in struts-config.xml to create a custom error page?

Thanks,

Harm de Laat
Informatiefabriek
The Netherlands


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


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




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



Re: logic:iterate understanding

2003-09-26 Thread Nicholas L Mohler





If you do not specify a name attribute, then an assumption is made that the
specified property  is an attribute in the form that is associated with the
mapping.

If you have a mapping (SampleAction) that uses a form (SampleForm), then
the example you gave below assumes that the SampleForm object has an
attribute called fields that is a collection.

Nick



   

  Prashanth.S

  [EMAIL PROTECTED]To:   Struts Users Mailing List 
[EMAIL PROTECTED]
  o.com   cc: 

   Subject:  Re: logic:iterate 
understanding 
  09/26/2003 09:41 

  AM   

  Please respond to

  Struts Users

  Mailing List

   

   





Hi julie,
Thanks for the reply but i wanted to know what does this property=fields
denote as there is no name attribute used in it???
logic:iterate id=oneInput property=fields
Thanks
Prashanth




[EMAIL PROTECTED] wrote:
use the propery ...in your case it is fields




Prashanth.S
09/26/03 09:04 AM
Please respond to Struts Users Mailing List


To: [EMAIL PROTECTED]
cc:
Subject: understanding


Hi all,
i found this tag while going through one of jsps but i couldnt understand
what this denotes

I dont find any name attributeThan how can a property attribute can be
used..
Thanks
Prashanth



-
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search



= = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = =
This transmittal and any attachments may contain confidential, privileged
or sensitive information and is solely for the use of the intended
recipient. If you are not intended recipient, you are hereby notified that
you have received this transmittal and any such attachments in error and
any review, dissemination, distribution or copying thereof is strictly
prohibited. If you have received this transmittal and any attachments in
error please notify the sender and immediately destroy the message and all
its attachments. Any opinions herein expressed may be those of the author
and not necessarily of Mizuho Corporate Bank, Ltd (the Bank). The Bank
accepts no responsibility for the accuracy or completeness of any
information herein contained.
= = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = =



-
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search




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



change dynamically ApplicationResources path

2003-09-26 Thread Caroline Lauferon
Hello,

I would like to know if it is possible to set the path of the
ApplicationResources.properties file without hard-coding it in
struts-config.xml.
Indeed, I would like to read a property file (whose path is in an
environment property) which would contain the path of the
ApplicationResources to use.
This would allow me to deploy my EAR, and then, without having to
re-generate it and re-deploy it, change the ApplicationResources file.

Thanks,

Caroline


RE: Struts Design Issue - Search Functionality - Best Practices

2003-09-26 Thread Chawla, Yogesh
Some more comments required from Struts Gurus !

I also needed to know if you would be sending a Collection/Vector of Form
Beans which are populated with the fields for display or you would be
sending one Form Bean which contains String[]/Vector of fields returned from
the DB.

This seems to be a good option mentioned below but I would also appreciate
more feedbacks from other Struts Users  

Thanks.

-Original Message-
From: Paul McCulloch [mailto:[EMAIL PROTECTED]
Sent: Friday, September 26, 2003 3:30 PM
To: 'Struts Users Mailing List'
Subject: RE: Struts Design Issue - Search Functionality - Best Practices


My aproach is as follows:

Each form bean property which can be searched is a descendant of
SearchableProperty. A SearchableProperty consists of:

*A String value representing the user's input
*The selected business entity (if the user has selected one)
*An object descended from Lookup, which implements the associated search
functionality

I have a base form  dispatch action. 

The base action contains methods which are called to show the search screen;
do a search ;use a searched value etc.

The base form contains hidden fields, populated via javascript, which tell
the dispatch action which property the search function is being invoked for,
and other 'paramaters' such as the id of a selected record.

The view of my application uses the struts nested tags, and JSP includes to
provide reuseable components to render a SearchableProperty and it's
associated search view. The search view is part of the same page - the app
only ever uses one browser window, with no frames.

The upside of this approach is that I can place, with little effort,
sophisticated searching functions anywhere is the app. Due to the inclusion
of the user selected business entity behind the scenes, my view can display
any properties of the selected entity, without a change to the form bean.

The downside of this is that the form bean must be stored in session scope.
I have done a bit of load testing and it didn't seem to be a problem, but I
didn't have much to compare with - this is my first Struts app.

So, that's the approach I use. I've no idea how that compares to the best
practices out there, nut I'm eager to find out!

Paul

-Original Message-
From: Chawla, Yogesh [mailto:[EMAIL PROTECTED]
Sent: 26 September 2003 08:19
To: 'Struts Users Mailing List'
Subject: Struts Design Issue - Search Functionality - Best Practices
Importance: High


Hi,

Design Requirement - Show a list of Search records. The screen will have
buttons for Previous/Next Month. On clicking these records would be shown.

Issues - 

a) How to store data and best practices to be followed in Struts. Return
back a Collection of Form Beans and iterate over these. However certain
other fields are required to be stored also which are not displayable. i.e.
Current Date which is a hidden parameter. Any comments ?

b) Use a single Form Bean which has variables like String[] to store the
array of Displayable Fields. However, this seems to be a less than perfect
solution. Any comments ???

c) Use Generic Search - Search on different modules, with different fields ?
Any Brilliant Guru contributions for this one..Sure need some wizard out
here...

Pls. advise on the best approach for the Search functionality. We need to
design an application which has Search on each and every page.

Thanks for your time ,

Regards,

Yogesh
DISCLAIMER: The information in this message is confidential and may be
legally privileged. It is intended solely for the addressee.  Access to this
message by anyone else is unauthorised.  If you are not the intended
recipient, any disclosure, copying, or distribution of the message, or any
action or omission taken by you in reliance on it, is prohibited and may be
unlawful.  Please immediately contact the sender if you have received this
message in error. Thank you.

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


**
Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If you
are not the addressee indicated in this message (or responsible for delivery
of the message to such person), you may not copy or deliver this message to
anyone. In such case, you should destroy this message, and notify us
immediately. If you or your employer does not consent to Internet email
messages of this kind, please advise us immediately. Opinions, conclusions
and other information expressed in this message are not given or endorsed by
my Company or employer unless otherwise indicated by an authorised
representative independent of this message.
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from being
transmitted via electronic mail attachments we cannot guarantee that
attachments do not contain computer virus code.  You are 

Re: Quartz plugin shutdown problem

2003-09-26 Thread Mick Knutson
MessageI am still having issues with Quartz, and would appreciate help from anyone as 
I am just lost on this one.

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

  - Original Message - 
  From: Tom Howe 
  To: 'Mick Knutson' 
  Sent: Thursday, September 25, 2003 12:00 PM
  Subject: RE: Quartz plugin shutdown problem


  Well, that's clearly an xml problem.  Why not try dropping the XML declaration (It 
shouldn't really hurt anything).
quartz-config
!-- Create a Trigger --
trigger-group
!--trigger
name=alertSenderTrigger
className=org.quartz.SimpleTrigger
description=A Trigger to send all Alert based messages
volatility=false
misfireConstant=INSTRUCTION_RE_EXECUTE_JOB
set-property property=repeatCount value=25/
set-property property=repeatInterval value=5000/
/trigger--

trigger
name=alertSenderTrigger
className=org.quartz.CronTrigger
set-property
property=cronExpression
value=0 0 12 * * ? /
/trigger
/trigger-group

!-- Create a Job --
job-group
job
name=alertSenderJob
className=com.baselogic.yoursos.scheduler.jobs.AlertSenderJob  
/   

/job-group

!-- Schedule the Job/Trigger --
schedule job=alertSenderJob trigger=alertSenderTrigger/

/quartz-config



Also, is the stack trace the same or is it somewhat different?  (When I 
changed some of these things, I got a different stacktrace)

-Tom 
---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

  - Original Message - 
  From: Tom Howe 
  To: 'Mick Knutson' 
  Sent: Thursday, September 25, 2003 11:03 AM
  Subject: RE: Quartz plugin shutdown problem


  I didn't use either, actually.  This looks more like a dtd problem, than a 
location problem.  Did you try the changes I made in your app?  It might be worth a 
try.

  -Tom
-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 25, 2003 12:23 PM
To: Tom Howe
Subject: Re: Quartz plugin shutdown problem


Do you use an EAR or WAR with yours?
I just think it might be JAR location in my EAR, but I thought I have 
tried everything.

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

  - Original Message - 
  From: Tom Howe 
  To: 'Mick Knutson' 
  Sent: Thursday, September 25, 2003 10:14 AM
  Subject: RE: Quartz plugin shutdown problem


  This seemed to work for me in Tomcat (I don't do ejb's)  Let me know if 
it works out.

  ?xml version=1.0 encoding=ISO-8859-1 ?

  quartz-config

  !-- Create a Trigger --

  trigger-group

  !--trigger

  name=alertSenderTrigger

  className=org.quartz.SimpleTrigger

  description=A Trigger to send all Alert based messages

  volatility=false

  misfireConstant=INSTRUCTION_RE_EXECUTE_JOB

  set-property property=repeatCount value=25/

  set-property property=repeatInterval value=5000/

  /trigger--

  trigger 

  name=alertSenderTrigger

  className=org.quartz.CronTrigger

  set-property 

  property=cronExpression

  value=0 0 12 * * ?/

  /trigger

  /trigger-group


  !-- Create a Job --

  job-group

  job name=alertSenderJob

  className=thowe.SimpleJob

  description=alert Sender Job

  durability=true

  volatility=true

  requestsRecovery=true

  /job

  !--job name=alertSenderJob

  className=thowe.SimpleJob/--


  /job-group


  !-- Schedule the Job/Trigger --

  schedule job=alertSenderJob trigger=alertSenderTrigger/




  /quartz-config



  -Tom

-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 25, 2003 11:21 AM
To: Tom Howe
Cc: Mick Knutson

Re: uploading file

2003-09-26 Thread Koni Roth
Hi Kannan
Just donne this on a Windows machine ;-) Here a hint for your Action...
snip
...
FormFile file = (FormFile)dynaForm.get(theFile);
String fileName = file.getFileName();
String filePath = E:/apps/webapp/MyApplication/WEB-INF/uploads/;
File newPath = new File(filePath);
newPath.mkdirs();
...
OutputStream bos = new FileOutputStream(filePath + fileName);
...
/snip
See also:
http://jakarta.apache.org/commons/fileupload/apidocs/org/apache/commons/fileupload/package-summary.html#package_description
Hope it helps
Koni
Kannan wrote:
Hi All!
I'm using  struts 1.1 , i'm creating a application based on struts 
commons-upload ,I'm following
the struts upload example...
I would like to upload a file into a perticular directory..

/webapp
 /MyApplication
/WEB-INF
 /uploads/**  Here the files i upload should 
go.. */

can u help me to set this path...in  Action  Class..( or any other 
suggestions)
Thanks in advance,
Kannan.

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

--
 Jump and the earth will rise to meet you!
 http://www.rothweb.ch
 http://www.rothconsulting.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: logic:iterate understanding

2003-09-26 Thread Prashanth.S
Hi Nick,
Great!!Thanks for ur replyI got ur point
Thanks
Prashanth


Nicholas L Mohler [EMAIL PROTECTED] wrote:





If you do not specify a name attribute, then an assumption is made that the
specified property is an attribute in the form that is associated with the
mapping.

If you have a mapping (SampleAction) that uses a form (SampleForm), then
the example you gave below assumes that the SampleForm object has an
attribute called fields that is a collection.

Nick




Prashanth.S 

o.com cc: 
Subject: Re: understanding 
09/26/2003 09:41 
AM 
Please respond to 
Struts Users 
Mailing List 






Hi julie,
Thanks for the reply but i wanted to know what does this property=fields
denote as there is no name attribute used in it???

Thanks
Prashanth




[EMAIL PROTECTED] wrote:
use the propery ...in your case it is fields




Prashanth.S
09/26/03 09:04 AM
Please respond to Struts Users Mailing List


To: [EMAIL PROTECTED]
cc:
Subject: understanding


Hi all,
i found this tag while going through one of jsps but i couldnt understand
what this denotes

I dont find any name attributeThan how can a property attribute can be
used..
Thanks
Prashanth



-
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search



= = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = =
This transmittal and any attachments may contain confidential, privileged
or sensitive information and is solely for the use of the intended
recipient. If you are not intended recipient, you are hereby notified that
you have received this transmittal and any such attachments in error and
any review, dissemination, distribution or copying thereof is strictly
prohibited. If you have received this transmittal and any attachments in
error please notify the sender and immediately destroy the message and all
its attachments. Any opinions herein expressed may be those of the author
and not necessarily of Mizuho Corporate Bank, Ltd (the Bank). The Bank
accepts no responsibility for the accuracy or completeness of any
information herein contained.
= = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = =



-
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search




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


-
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search

Re: [OT] OutOfMemoryError when I have plenty of heap

2003-09-26 Thread Casey Forbes
My OutOfMemoryError problem is fixed.
Thanks for all of your suggestions.

Kito's permanent generation suggestion was the answer.
(Thanks Kito!)  I was able to monitor the perm space
utilization with the following JVM flags:

-J-XX:+PrintGCTimeStamps
-J-XX:+PrintGCDetails
-J-Xloggc:[path to gc log]

When I found that the default max perm size of 64 MB
was too low I increased it to 128 MB with:

-J-XX:MaxPermSize=128m

This took care of my OutOfMemory errors.

I also found a very cool tool called jvmstat which
can monitor your VMs and record performance data
(such as the heap utilization) without slowing down
your apps. This only works with the 1.4.1 JVM...
http://developers.sun.com/dev/coolstuff/jvmstat

Casey



On Thu, 18 Sep 2003, Kito D. Mann said:

 Casey,

 No problem. Good luck, and let us know when you figure out what the problem
 is. I know how annoying these problems can be -- I was once at a company
 where this problem sneaked passed QA, and those were some stressful days :-).

 Kito D. Mann
 Author, JSF in Action
 JSF FAQ: http://www.jsfcentral.com

 At 03:50 PM 9/17/2003 -0400, Casey Forbes wrote:
 Hi Kito,
 
 Thank you. This is worth looking at (plus the link looks
 interesting).  I've got a lot of classes that from JSP compilation.
 I also have lots and lots of sun.reflect.GeneratedMethodAccessor
 classes (from Digester and PropertyUtils I guess) and lots of
 _xsl._ caucho_0anonymous__xsl classes from Resin's XSLT
 engine.
 
 I'm also looking at Daniel's suggestion about hitting
 the open files limit (which I can easily increase if it
 turns out to be the cause)
 
 Casey
 
 
 
 
 On Wed, 17 Sep 2003, Kito D. Mann said:
 
   Casey,
  
   If you're using JSP, and you have a large number of pages running in a
   single VM, you may be filling up the permanent generation area of the
   VM's memory. This is a fixed amount of memory dedicated to classes,
   methods, and so on (reflective data). Since JSPs are compiled into classes,
   it's actually possible to fill up this area of memory and consequently get
   an OutOfMemoryError. You can, of course, increase the size -- see
   http://java.sun.com/docs/hotspot/gc1.4.2/ for details.
  
   How many JSPs does At 08:21 AM 9/17/2003 -0400, you wrote:
   Hi everyone,
   
   There are many smart people on this list and I haven't been
   able to get anywhere with this problem, so...
   
   I'm running 12 Struts-based apps under Resin 2 on a Linux box.
   (I don't believe that this is a Struts problem - this is
   just some background for you)
   
   Every few days (sometimes this will happen after 2 days, sometimes
   5 or 6) I get an OutOfMemory error which stops the JVM...
   I have plenty of room in the heap (the machine has 1 GB or
   RAM and I have the max heap size -Xmx set to 896 MB) Just before
   it dies there are a few attempts to free more memory.
From the GC log:
   
   Full GC 227765K-132728K(274140K), 3.2615930 secs
   Full GC 132729K-132728K(274140K), 2.5218730 secs
   Full GC 132803K-120231K(274140K), 3.1998370 secs
   OutOfMemoryError
   
   As you can see - I'm only using 132 MB after the first
   GC which leaves plenty Runtime.freeMemory()
   etc. returns similar results..
   
   Does anybody have any ideas? I don't even know where to look
   next... It doesn't look like a profiler would help me here
   since I don't have tons of objects filling up my memory.
   
   Thanks,
   Casey
  
   Kito D. Mann
   Author, JSF in Action
   JSF FAQ: http://www.jsfcentral.com
  
  
  
  
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




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



LookupDispatchAction and submit

2003-09-26 Thread Lars Bergstrm
Hi everyone,
 
I have a html:form in which i have several buttons like this:
 
html:submit property=actionType
  bean:message key=button.add/
/html:submit
html:submit property=actionType
  bean:message key=button.delete/
/html:submit
html:submit property=actionType
  bean:message key=button.update/
/html:submit
 
With the help of this I use the LookupDispatchAction which my Action
class extends. This works fine for my submit buttons.
 
My action-mapping
 
action path=/MyAction
type=com.mycompany.MyAction
name=myBean
parameter=actionType
  forward name=input path=/pages/myPage.jsp/
/action

 
However, I also have a html:text property=propKey size=55/ in the
same html:form. When the text field has focus and I press enter the
LookupDispatchAction does not work.This because the execute method of
LookupDispatchAction does not receive any value in the parameter
actionType. Is this a trap, that LookupDispatchAction cannot handle this
particular case?
 
Best regards
 
Lasse
 
 
 

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



Re: Tiles and ControllerClass

2003-09-26 Thread Jim Theodoridis
Thank you for your help.

Is thera any problem if i use a single Action like this? 

   definition name=.poll path=/tiles/layouts/tileLayout.jsp 
   put name=title  value=Poll /
   put name=tileBody value=/pollTileAction.do /
  /definition


and not the TilesAction?




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



Role of Action Classes when using EJB and Struts

2003-09-26 Thread Kommineni, Sateesh (IndSys)
Hi All,

 What role does Action classes play when we are using EJB with Struts ?  As the 
core Business Logic is performed by Session Beans which in turn use the Entity Beans 
for Persistence related operations.

  So what role does the Action classes play in this scenario . Is it the case that the 
Action classes use a Session Facade to invoke the methods on session beans and Session 
bean will process the core logic and the Action classes acts as a Business Delegate..

   Is it rare that these Action classes use any Helper classes ?? ( I am not talking 
about Service Locators which they use to find out the Session Facades for the Session 
beans )

   Pls let me know your thoughts..

Where can i find more info on these..

Thanks a lot..
Sateesh

   

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



[solved]Re: LabelValueBean - 3 fields?

2003-09-26 Thread Julie . Huang
thank you for all your useful input!!! you guys are brilliant!!




[EMAIL PROTECTED]
09/24/03 04:12 PM
Please respond to Struts Users Mailing List

 
To: Struts Users Mailing List [EMAIL PROTECTED]
cc: 
Subject:LabelValueBean - 3 fields?


Hi, is it possible to store 3 fields in LabelValueBean instead of 2?
i.e. value, label  description?

thanx! 




= = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = 
This transmittal and any attachments may contain confidential, privileged 
or sensitive information and is solely for the use of the intended 
recipient. If you are not intended recipient, you are hereby notified that 
you have received this transmittal and any such attachments in error and 
any review, dissemination, distribution or copying thereof is strictly 
prohibited. If you have received this transmittal and any attachments in 
error please notify the sender and immediately destroy the message and all 
its attachments. Any opinions herein expressed may be those of the author 
and not necessarily of Mizuho Corporate Bank, Ltd (the Bank). The Bank 
accepts no responsibility for the accuracy or completeness of any 
information herein contained.
= = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = 





RE: Role of Action Classes when using EJB and Struts

2003-09-26 Thread Brian McSweeney
http://xpetstore.sourceforge.net

-Original Message-
From: Kommineni, Sateesh (IndSys)
[mailto:[EMAIL PROTECTED] 
Sent: 26 September 2003 14:58
To: Struts Users Mailing List
Subject: Role of Action Classes when using EJB and Struts

Hi All,

 What role does Action classes play when we are using EJB with
Struts ?  As the core Business Logic is performed by Session Beans which
in turn use the Entity Beans for Persistence related operations.

  So what role does the Action classes play in this scenario . Is it the
case that the Action classes use a Session Facade to invoke the methods
on session beans and Session bean will process the core logic and the
Action classes acts as a Business Delegate..

   Is it rare that these Action classes use any Helper classes ?? ( I am
not talking about Service Locators which they use to find out the
Session Facades for the Session beans )

   Pls let me know your thoughts..

Where can i find more info on these..

Thanks a lot..
Sateesh

   

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


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



Forward Action with redirect?

2003-09-26 Thread White, Joshua A (HTSC, CASD)
Currently, the Forward action forwards control to a resource on the server
side.  How can I specify a forward action that also results in a client side
redirect?  I don't want to call this resource directly because I need to
make use of the struts validate mechanism to validate the previous form.
Any suggestions?

Regards,

Joshua





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


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



Re: Is there a way to find an Object type? Please help

2003-09-26 Thread Julie . Huang
Mathew, Manoj [EMAIL PROTECTED]
09/26/03 09:47 AM
Please respond to Struts Users Mailing List

 
To: Struts Users Mailing List [EMAIL PROTECTED]
cc: 
Subject:Is there a way to find an Object type? Please help
 
String fieldValue = (String) form.get(propertyNameObj.toString())?

I guess this always returns String no matter what, 'cause you use 
propertyNameObj.toString().





Hi

  I been using only String data types in my DynaAction form.But i had a 
requirement to use multi select options and i have to declare a String[] 
for it. the issue is i have my own method which maps the form element to 
the appropriate fields of my controller factory.there i have some code 
like this
public final static Collection transformFieldMap(DynaActionForm form) {
DynaClass dynaClass = form.getDynaClass();
 DynaProperty[] props = 
dynaClass.getDynaProperties();
 for (int i = 0; i  props.length; i++) {
 Object propertyNameObj = 
props[i].getName();

try {
 String 
fieldValue = (String) form.get(propertyNameObj.toString());
}catch (Exception e) {
 if (e 
instanceof ClassCastException) {
  String[] temp = (String[]) form.get(propertyNameObj.toString());
}}


}


I am assuming that i get this ClassCastException only when the form 
element is a String[].  I am live with this for now as i am using only one 
String[]  and rest are just String type.Is there anyway i can find whether 
the 'Object' is of type string[]  ??? I tried  with instance of and it is 
not working..

Thank you

Mathew Manoj
Group Information Systems (H243)
* (515)362-0539
* mailto:[EMAIL PROTECTED]



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





= = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = 
This transmittal and any attachments may contain confidential, privileged or sensitive 
information and is solely for the use of the intended recipient. If you are not 
intended recipient, you are hereby notified that you have received this transmittal 
and any such attachments in error and any review, dissemination, distribution or 
copying thereof is strictly prohibited. If you have received this transmittal and any 
attachments in error please notify the sender and immediately destroy the message and 
all its attachments. Any opinions herein expressed may be those of the author and not 
necessarily of Mizuho Corporate Bank, Ltd (the Bank). The Bank accepts no 
responsibility for the accuracy or completeness of any information herein contained.
= = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = 



Re: Role of Action Classes when using EJB and Struts

2003-09-26 Thread Barry Volpe
I have done some research at the book store and have not found any book only
covering
struts and Ejb's.  I have found books that dedicate a chapter or two on the
subject.
This book uses the open source Object Relational bridge to connect to Ejb's
from a struts Action.
It has some interesting insight.  You may want to go to a book store and
read some of it and decide
if it answers your questons.

http://www.amazon.com/exec/obidos/tg/detail/-/1861007817/102-1389031-0729721?v=glance#product-details

Here is a newer book on the same topics

http://www.amazon.com/exec/obidos/tg/detail/-/1590592557/qid=1064589175/sr=1-1/ref=sr_1_1/102-1389031-0729721?v=glances=books

Barry


- Original Message - 
From: Kommineni, Sateesh (IndSys) [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, September 26, 2003 7:58 AM
Subject: Role of Action Classes when using EJB and Struts


Hi All,

 What role does Action classes play when we are using EJB with Struts ?
As the core Business Logic is performed by Session Beans which in turn use
the Entity Beans for Persistence related operations.

  So what role does the Action classes play in this scenario . Is it the
case that the Action classes use a Session Facade to invoke the methods on
session beans and Session bean will process the core logic and the Action
classes acts as a Business Delegate..

   Is it rare that these Action classes use any Helper classes ?? ( I am not
talking about Service Locators which they use to find out the Session
Facades for the Session beans )

   Pls let me know your thoughts..

Where can i find more info on these..

Thanks a lot..
Sateesh



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






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



Re: How do I populate a DynaValidatorForm?

2003-09-26 Thread Pratik Patel
Fenderbosch, Eric wrote:

Where do you specify the
@struts.form-field (0..*)
tags so that XDoclet creates the form for you?
Right now, I have a hand coded form and XDoclet creates the form-bean/ section of my 
struts-config for me, but I'm not creating the actual ActionForm subclass with XDoclet.
In my domain objects; here's the objects from a Struts app I'm currently 
working on:

Domain Object   XDoclet Generated ActionForm
UserUserForm
Forum   ForumForm
PostPostForm
Thread  ThreadForm
Sample domain object:

package org.sourceforge.jwebforum.model;
import java.util.Date;
/**
 * @struts.form include-all=true
 * extends=org.sourceforge.jwebforum.webapp.form.BaseForm
 */
public class User {
private String password;
private String email;
private Date signupdate;
private String firstname;
private String lastname;
private String username;
private long userid;
public User(String password, String email, java.sql.Timestamp 
signupdate, String firstname, String lastname, String username, long 
userid) {
this.password = password;
this.email = email;
this.signupdate = signupdate;
this.firstname = firstname;
this.lastname = lastname;
this.username = username;
this.userid = userid;
}

public User() {
}
/** Password of the user.
 * @struts.validator type=required msgkey=errors.required
 */
public String getPassword() {
return password;
}
...


I hope to have this Struts application uploaded to sourceforge within 
two weeks (with full source, of course). It's still undergoing some 
refactoring, but I can send you the current snapshot if you're interested.

cheers,
Pratik


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


DisplayTag library

2003-09-26 Thread Slattery, Tim - BLS
I saw the announcement of the SidplayTag library here a couple of days
ago, and it looks useful. But Clicking the Live Examples link on its
web page yields a 404 (page not found). And I would like to use a
ColumnDecorator, but where's the documentation on that? In the ZIP download
file, there are *two* ColumnDecorator classes, one in
/org/displaytag/decorator package, the other in org/apache/taglibs/display
package. But there's no mention of this package at the Apache site. So
where's the documentation?


--
Tim Slattery
[EMAIL PROTECTED]


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



RE: DisplayTag library

2003-09-26 Thread Slattery, Tim - BLS
 I saw the announcement of the SidplayTag library here a 

Good grief!! That was supposed to be DisplayTag, of course. My fingers
didn't do what my brain told them to. Or something.

--
Tim Slattery
[EMAIL PROTECTED]


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



Hi, problem using html:messages id=message property=specific

2003-09-26 Thread suresh kolli
Hi,

I couldn't get the following to work: (though trying as per the Struts API reference).

--- Doesn't work 
html:messages id=message property=specific
li
font color=red bean:write name=message/ /font
/li
/html:messages
-Doesn't work
I have the following code in Action class:
ActionErrors errors = new ActionErrors();
errors.add(specific, new ActionError(error.specific.req));

and do have the mapping values for the error.specific.req in ApplicationResource 
file.

The .jsp doesn't display the error message added in the Action class, using the 
abobe code.

where as if use the generic property of ActionErrors.GLOBAL_ERROR, (as shown below), 
the error is being displayed.
works
html:messages id=message property=%= 
org.apache.struts.action.ActionErrors.GLOBAL_ERROR %
li
font color=red bean:write name=message/ /font
/li
/html:messages
works


Here i have added the error message to a property called specific and couldn't 
retrieve the same. (I have the proper working setup with the struts and using 1.13 
version). My purpose is to display the erros at required positios in the jsp.

please let me know, if i needed to go thru extra setup to get this working.

Thanks in Advance



Hi, problem using html:messages id=message property=specific

2003-09-26 Thread suresh kolli
Hi,

I couldn't get the following to work: (though trying as per the Struts API reference).

--- Doesn't work 
html:messages id=message property=specific
li
font color=red bean:write name=message/ /font
/li
/html:messages
-Doesn't work
I have the following code in Action class:
ActionErrors errors = new ActionErrors();
errors.add(specific, new ActionError(error.specific.req));

and do have the mapping values for the error.specific.req in ApplicationResource 
file.

The .jsp doesn't display the error message added in the Action class, using the 
abobe code.

where as if use the generic property of ActionErrors.GLOBAL_ERROR, (as shown below), 
the error is being displayed.
works
html:messages id=message property=%= 
org.apache.struts.action.ActionErrors.GLOBAL_ERROR %
li
font color=red bean:write name=message/ /font
/li
/html:messages
works


Here i have added the error message to a property called specific and couldn't 
retrieve the same. (I have the proper working setup with the struts and using 1.13 
version). My purpose is to display the erros at required positios in the jsp.

please let me know, if i needed to go thru extra setup to get this working.

Thanks in Advance



RE: DisplayTag library

2003-09-26 Thread Matt Raible
Here's a temporary demo site - this URL will self-destruct as soon as the
live examples is working:

http://raibledesigns.com/displaytag

;-)

-Original Message-
From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED]
Sent: Friday, September 26, 2003 9:27 AM
To: Struts User List ([EMAIL PROTECTED])
Subject: DisplayTag library


I saw the announcement of the SidplayTag library here a couple of days
ago, and it looks useful. But Clicking the Live Examples link on its
web page yields a 404 (page not found). And I would like to use a
ColumnDecorator, but where's the documentation on that? In the ZIP download
file, there are *two* ColumnDecorator classes, one in
/org/displaytag/decorator package, the other in org/apache/taglibs/display
package. But there's no mention of this package at the Apache site. So
where's the documentation?


--
Tim Slattery
[EMAIL PROTECTED]


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

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



Hi, problem using html:messages id=message property=specific

2003-09-26 Thread suresh kolli
Hi,

I couldn't get the following to work: (though trying as per the Struts API reference).

--- Doesn't work 
html:messages id=message property=specific
li
font color=red bean:write name=message/ /font
/li
/html:messages
-Doesn't work
I have the following code in Action class:
ActionErrors errors = new ActionErrors();
errors.add(specific, new ActionError(error.specific.req));

and do have the mapping values for the error.specific.req in ApplicationResource 
file.

The .jsp doesn't display the error message added in the Action class, using the 
abobe code.

where as if use the generic property of ActionErrors.GLOBAL_ERROR, (as shown below), 
the error is being displayed.
works
html:messages id=message property=%= 
org.apache.struts.action.ActionErrors.GLOBAL_ERROR %
li
font color=red bean:write name=message/ /font
/li
/html:messages
works


Here i have added the error message to a property called specific and couldn't 
retrieve the same. (I have the proper working setup with the struts and using 1.13 
version). My purpose is to display the erros at required positios in the jsp.

please let me know, if i needed to go thru extra setup to get this working.

Thanks in Advance



[OT] off topic, but I have a quick JavaScript question please...

2003-09-26 Thread Mick Knutson
I have a function function tooltips() and the call to that function is return 
tooltip('tooltip.msg.name', 'tooltip.title.name');

in my function, how do I access each of the arguments? Is it something like args[0], 
and args[1]?

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---


Jasper Pre-Compiling JSPs with the same name

2003-09-26 Thread Pat Quinn
Hi,

I have JSPs in seperate folders with the same name and when i try to 
precompile them (Using ANT) i get a duplicate class name error... as you'd 
expect when i pass in one class package name e.g.

jasper package=com.mycompany.servlets
uriroot=jsps
webXmlFragment=jsp-fragments.xml
outputDir=src/jsp/
Any ideas how i might resolve this issue?

_
Add photos to your messages with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail

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


RE: Urgent: No Getter Method found

2003-09-26 Thread Karr, David
 -Original Message-
 From: Abhijeet Mahalkar [mailto:[EMAIL PROTECTED] 
 
 txtUserGroupCode of bean org.apache.struts.taglib.html.BEAN]: 
 javax.servlet.jsp.JspException: No getter method for property 
 txtUserGroupCode of bean org.apache.struts.taglib.html.BEAN
 
 i have following code in the Action Clas...  still i am 
 getting the error please Sugest solution for this...
 
  public String getTxtUserGroupCode()
  {
   return this.txtusergroupcode ;
  }
 
  public void setTxtUserGroupCode(String s)
  {
   this.txtusergroupcode = s ;
  }

There are two clues here.  First, the fact that it says the bean is
org.apache.struts.taglib.html.BEAN means that you haven't associated
the reference with an existing ActionForm or bean.  Second, these
accessors have to go in your ActionForm or bean class, not in the Action
class.

The name of your instance variable is irrelevant (in reference to other
responses to this question).

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



how to submit a action form using a javascript(pop-up).

2003-09-26 Thread Nisith Dash



Hi all,

I have a problem and need you help for 
resolution.Ihave a JSP struts page with an 
action form with typically save,delete buttons.One of the fields in this form is 
a search criteria field with a Go button which should basically display the 
results in a new pop up window.I have associated a new action class for this 
button.I want to submit theentire action form associated with this 
page to be submitted when i click the Go buttonthrough a 
_javascript_function.

Also when i select a value in the popup window and 
return back to the main form, the values already existing in the action 
form should not get repopulated(ie avoiding the call to the reset method of the 
action class).


I am providing the code snippet for the same, in 
which i have been able topass the search parameter rather 
thansubmitting entire action form:

function 
openSearchProductPopup() 
{ var URL= 
''+BusinessDivisionForm.ecmPkey.value; 
features="alwaysRaised=yes,dependent=yes,menubar=no,toolbar=no,scrollbars=yes,height=400,width=600"; 
window.open(URL,"",features); }


html:form 
action="" 
table id=Table5 cellSpacing=1 cellPadding=1 width="100%" 
border=0 
label class=prompt Company 
Id:/label/div 
/td 
td height=26  
 
html:text property="ecmPkey" maxlength="38" 
styleClass="inputCellNumShaded"/ 
html:button styleClass="button" property="go" 
value="Go"  
/ 
/td 
td align=left height=26 
 
div align=right class="prompt"span 
class=requiredFieldAsterisk*/spannbsp;label 
class=requiredFieldPrompt Division 
Id:/label/div 
/td 
td height=26  
 
html:text property="divisionCd" maxlength="15" 
styleClass="inputCellShaded"/ 
/td 
td width="43" 
height=26/td 
/tr 
tr 
 
td width="46" 
height="33"/td 
td align=left height=33 
 
div align=right class="prompt"span 
class=requiredFieldAsterisk*/spannbsp;label 
class=requiredFieldPrompt Divsion 
Name:/label/div 
/td 
td class="prompt" height="33" 
 
html:text property="divisionName" maxlength="100" 
styleClass="inputCellShaded"/ 
/td 
td class=prompt align=right 
height="33"nbsp;/td 
td colSpan=2 height="33" width="185"nbsp; 
/td 
/tr 
tr 
 
td 
width="40"/td 
td class="prompt" align=rightlabel class=promptCreated 
By:/label/td 
td width="186" 
 
html:text property="userCreated" maxlength="10" styleClass="formObjReadOnly" 
readonly="true"/ 
/td 
td class=prompt align=right 
 
div align=rightlabel class=promptCreated 
On:/label/div 
/td 
td width="250"  
 
html:text property="dateCreated" maxlength="7" styleClass="formObjReadOnly" 
readonly="true"/ 
/td 
td 
width="10"/td 
/tr 
tr 
 
td 
width="40"/td 
td class=prompt align=right 
 
div 
align=rightlabel 
class=promptLast Updated 
By:/label/div 
/td 
td width="186"  
 
html:text property="userLastUpd" maxlength="10" styleClass="formObjReadOnly" 
readonly="true"/ 
/td 
td class=prompt align=right 
 
div align=rightlabel class=promptLast Updated 
On:/label/div 
/td 
td width="250"  
 
html:text property="dateLastUpd" maxlength="7" styleClass="formObjReadOnly" 
readonly="true"/ 
/td 
td 
width="10"/td 
/tr 
 
html:hidden property="ebdPkey" 
/ 
tr 
 
td width="600" colspan="5" 
 
div align="left" 
 
html:button  styleClass="button" 
property="Save" value="Save" /nbsp;nbsp;html:button 
 
styleClass="button" property="Delete" value="Delete" 
/nbsp;nbsp;html:button styleClass="button" 
property="Reset" value="Reset" /nbsp;nbsp;html:button 
styleClass="button" property="Close" value="Close" /nbsp; 
/div 
/td 
td 
width="43"/td 
/tr 
 
/table 
 /html:form


and the struts config is as follows:

action path="/findCompanyCdAction" 
 
type="com.rpm.application.common.action.FindCompanyCdAction" 
input="/jsp/common/RPMCOM002MaintainDivision.jsp"
 
name="BusinessDivisionForm"
 
scope="request" 
exception 
type="com.rpm.framework.exception.RPMCustomWrappedNonRecoverableException" 
 
handler="com.rpm.framework.exception.handler.RPMExceptionHandler" 
 
path="/jsp/common/RPMCOM002MaintainDivision.jsp" key="" 
scope="request"/ 
forward name="success" 
path="/jsp/common/RPMCOM022ListCompanyDetails.jsp" 
/ 
forward name="default" 
path="/jsp/common/RPMCOM002MaintainDivision.jsp" 
//action 

Thanks in advance,

Nisith
** Message from InterScan E-Mail VirusWall NT **

** No virus found in attached file noname.htm
** No virus found in attached file noname.htm

NO VIRUS FOUND: SERVER GENERATED MESSAGE
* End of message ***


DISCLAIMER: The information contained in this message is intended only and solely for 
the addressed individual or entity indicated in this message and for the exclusive use 
of the said addressed individual or entity indicated in this message (or responsible 
for delivery of the message to such person) and may contain legally privileged and 
confidential information belonging to Tata Consultancy Services. It must not be 
printed, read, copied, disclosed, forwarded, distributed or used (in whatsoever 
manner) by any person other than the addressee. Unauthorized use, disclosure or 
copying 

RE: [OT] off topic, but I have a quick JavaScript question please...

2003-09-26 Thread Daniel Smeltzer
In your function definition, just declare the input parameters and use
those names to refer to them, i.e.:

Function tooltips(message, title) {
  // now the input parameters are available as message and title
}

Daniel

-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 26, 2003 10:50 AM
To: struts
Subject: [OT] off topic, but I have a quick JavaScript question
please...


I have a function function tooltips() and the call to that function is
return tooltip('tooltip.msg.name', 'tooltip.title.name');

in my function, how do I access each of the arguments? Is it something
like args[0], and args[1]?

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---



Statement of Confidentiality

This e-mail message, and any attachments, is confidential and is intended solely for 
the addressees named above.  If you are not a named recipient, an individual 
specifically authorized to receive this communication, or if this message has been 
addressed to you in error, do not read, disclose, reproduce,  or otherwise use this 
transmission in any manner.  If you have received this transmission in error, please 
alert the sender by replying to the e-mail or by contacting the sender by phone.  We 
also request that you immediately delete this message, and attachments, if any.  This 
disclaimer shall not be construed in any way to grant permission to transmit 
confidential information via this firm's e-mail system. 



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



RE: [OT] off topic, but I have a quick JavaScript question please...

2003-09-26 Thread Kevin Peters
There should be an arguments object.  Try arguments[0] and arguments[1].

-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED]
Sent: Friday, September 26, 2003 11:50 AM
To: struts
Subject: [OT] off topic, but I have a quick JavaScript question
please...


I have a function function tooltips() and the call to that function is return 
tooltip('tooltip.msg.name', 'tooltip.title.name');

in my function, how do I access each of the arguments? Is it something like args[0], 
and args[1]?

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

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



Re: [OT] off topic, but I have a quick JavaScript question please...

2003-09-26 Thread Mick Knutson
Thank you, but now another issue:

How do I dynamically use that argument in my bean:message???

function tooltip( tooltip_key )
{
return overlib(  'bean:message key=tooltip_key
bundle=TOOLTIP_RESOURCES_KEY /'
, STICKY, CAPTION
, 'bean:message key= +tooltip_key + 
bundle=TOOLTIP_RESOURCES_KEY /'
, CENTER
  );
}


---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

- Original Message - 
From: Daniel Smeltzer [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, September 26, 2003 8:52 AM
Subject: RE: [OT] off topic, but I have a quick JavaScript question
please...


In your function definition, just declare the input parameters and use
those names to refer to them, i.e.:

Function tooltips(message, title) {
  // now the input parameters are available as message and title
}

Daniel

-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED]
Sent: Friday, September 26, 2003 10:50 AM
To: struts
Subject: [OT] off topic, but I have a quick JavaScript question
please...


I have a function function tooltips() and the call to that function is
return tooltip('tooltip.msg.name', 'tooltip.title.name');

in my function, how do I access each of the arguments? Is it something
like args[0], and args[1]?

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---



Statement of Confidentiality

This e-mail message, and any attachments, is confidential and is intended
solely for the addressees named above.  If you are not a named recipient, an
individual specifically authorized to receive this communication, or if this
message has been addressed to you in error, do not read, disclose,
reproduce,  or otherwise use this transmission in any manner.  If you have
received this transmission in error, please alert the sender by replying to
the e-mail or by contacting the sender by phone.  We also request that you
immediately delete this message, and attachments, if any.  This disclaimer
shall not be construed in any way to grant permission to transmit
confidential information via this firm's e-mail system.



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


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



Re: Action Design Question

2003-09-26 Thread Nathan Rogers
I don't know if this was the 'right' thing to do, but I extended 
DispatchAction, overrode the execute method to use the hardcoded value 
rather than looking up a request parameter, and pass that along to 
dispatchMethod.  My actions then inherit from this modified class.  You 
can safely cut out the lines with ServletContext if you don't care about 
logging invalid parameters.

Here's the source

/**
   Overrides the execute method of DispatchAction so that rather
   than use the parameter to determine which request parameter
   contains the action to execute, it uses the parameter property
   directly
   @param mapping ActionMapping
   @param form Form associated with action
   @param HttpServletRequest Current request object
   @param HttpServletResponse Current response stream
**/
public ActionForward execute(ActionMapping mapping,
 ActionForm form,
 HttpServletRequest request,
 HttpServletResponse response)
  throws Exception
  {
String parameter = mapping.getParameter();
if (parameter == null) {
String error = Could not locate the requested forward;
ServletContext context = getServlet().getServletContext();
ServletContextWriter output = new ServletContextWriter(context);
output.write(error);
output.flush();

response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, error);
return null;
}
  return dispatchMethod(mapping, form, request, response, parameter);
  }
--
Nathan Rogers
Library Technology Group
312F Memorial Library
728 State Street
261-1409
Graham Lounder wrote:

Hey all,

After reading the [Poll] action mappings thread, I now have a couple of
design questions.  I've got a lot of actions right  now and I'd like to
group related functionality into one action.  I'm thinking of extending the
DispatchAction and creating functions to
search/view/create/update/delete/load my objects.  I'd like to create
separate action mappings for each function.  My question is, can I
hardcode my dispatch parameter in the action mapping or do I have to send
it in ever request from the page?
Thanks in advance,
Graham

Graham Lounder - Java Developer
CARIS Spatial Components Division
[EMAIL PROTECTED]
Phone:  (506) 458-8533
Fax:(506) 459-3849

NO BINDING CONTRACT WILL RESULT FROM THIS EMAIL UNTIL SUCH TIME
AS A WRITTEN DOCUMENT IS SIGNED ON BEHALF OF THE COMPANY.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


RE: Action Design Question

2003-09-26 Thread Jerry Jalenak
In the latest nightly builds there is a 'MappingDispatchAction' that does
this for you (takes the parameter directly).

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


 -Original Message-
 From: Nathan Rogers [mailto:[EMAIL PROTECTED]
 Sent: Friday, September 26, 2003 11:00 AM
 To: Struts Users Mailing List
 Subject: Re: Action Design Question
 
 
 I don't know if this was the 'right' thing to do, but I extended 
 DispatchAction, overrode the execute method to use the 
 hardcoded value 
 rather than looking up a request parameter, and pass that along to 
 dispatchMethod.  My actions then inherit from this modified 
 class.  You 
 can safely cut out the lines with ServletContext if you don't 
 care about 
 logging invalid parameters.
 
 Here's the source
 
 /**
 Overrides the execute method of DispatchAction so that rather
 than use the parameter to determine which request parameter
 contains the action to execute, it uses the parameter property
 directly
 
 @param mapping ActionMapping
 @param form Form associated with action
 @param HttpServletRequest Current request object
 @param HttpServletResponse Current response stream
 **/
 public ActionForward execute(ActionMapping mapping,
   ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception
{
  String parameter = mapping.getParameter();
  if (parameter == null) {
   String error = Could not locate the requested forward;
   ServletContext context = getServlet().getServletContext();
   ServletContextWriter output = new ServletContextWriter(context);
   output.write(error);
   output.flush();
   
  
 response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERRO
 R, error);
  return null;
  }
 
return dispatchMethod(mapping, form, request, response, parameter);
}
 
 -- 
 Nathan Rogers
 Library Technology Group
 312F Memorial Library
 728 State Street
 261-1409
 
 Graham Lounder wrote:
 
  Hey all,
  
  After reading the [Poll] action mappings thread, I now 
 have a couple of
  design questions.  I've got a lot of actions right  now and 
 I'd like to
  group related functionality into one action.  I'm thinking 
 of extending the
  DispatchAction and creating functions to
  search/view/create/update/delete/load my objects.  I'd like 
 to create
  separate action mappings for each function.  My question is, can I
  hardcode my dispatch parameter in the action mapping or 
 do I have to send
  it in ever request from the page?
  
  Thanks in advance,
  Graham
  
  
 ==
 ==
  Graham Lounder - Java Developer
  CARIS Spatial Components Division
  [EMAIL PROTECTED]
  Phone:  (506) 458-8533
  Fax:(506) 459-3849
  
 ==
 ==
  NO BINDING CONTRACT WILL RESULT FROM THIS EMAIL UNTIL SUCH TIME
  AS A WRITTEN DOCUMENT IS SIGNED ON BEHALF OF THE COMPANY.
  
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



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



RE: [OT] off topic, but I have a quick JavaScript question please...

2003-09-26 Thread Daniel Smeltzer
Well, the bean:message tag would need to be where the function is
called, not where it is defined.  The struts tags will execute on the
server side and the JavaScript executes on the client side.  When the
JavaScript runs, all the struts tags will have been executed and
converted into text.  So, you'd need something like:

function tooltip(message) {
return overlib(message, STICKY, CAPTION, message, CENTER);
}


And somewhere else:

... onMouseOver=return tooltip('bean:message key=tooltip_key
bundle=TOOLTIP_RESOURCES_KEY/') ...


Daniel

-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 26, 2003 10:59 AM
To: Struts Users Mailing List
Subject: Re: [OT] off topic, but I have a quick JavaScript question
please...


Thank you, but now another issue:

How do I dynamically use that argument in my bean:message???

function tooltip( tooltip_key )
{
return overlib(  'bean:message key=tooltip_key
bundle=TOOLTIP_RESOURCES_KEY /'
, STICKY, CAPTION
, 'bean:message key= +tooltip_key + 
bundle=TOOLTIP_RESOURCES_KEY /'
, CENTER
  );
}


---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

- Original Message - 
From: Daniel Smeltzer [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, September 26, 2003 8:52 AM
Subject: RE: [OT] off topic, but I have a quick JavaScript question
please...


In your function definition, just declare the input parameters and use
those names to refer to them, i.e.:

Function tooltips(message, title) {
  // now the input parameters are available as message and title }

Daniel

-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED]
Sent: Friday, September 26, 2003 10:50 AM
To: struts
Subject: [OT] off topic, but I have a quick JavaScript question
please...


I have a function function tooltips() and the call to that function is
return tooltip('tooltip.msg.name', 'tooltip.title.name');

in my function, how do I access each of the arguments? Is it something
like args[0], and args[1]?

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---



Statement of Confidentiality

This e-mail message, and any attachments, is confidential and is
intended solely for the addressees named above.  If you are not a named
recipient, an individual specifically authorized to receive this
communication, or if this message has been addressed to you in error, do
not read, disclose, reproduce,  or otherwise use this transmission in
any manner.  If you have received this transmission in error, please
alert the sender by replying to the e-mail or by contacting the sender
by phone.  We also request that you immediately delete this message, and
attachments, if any.  This disclaimer shall not be construed in any way
to grant permission to transmit confidential information via this firm's
e-mail system.



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


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




Statement of Confidentiality

This e-mail message, and any attachments, is confidential and is intended solely for 
the addressees named above.  If you are not a named recipient, an individual 
specifically authorized to receive this communication, or if this message has been 
addressed to you in error, do not read, disclose, reproduce,  or otherwise use this 
transmission in any manner.  If you have received this transmission in error, please 
alert the sender by replying to the e-mail or by contacting the sender by phone.  We 
also request that you immediately delete this message, and attachments, if any.  This 
disclaimer shall not be construed in any way to grant permission to transmit 
confidential information via this firm's e-mail system. 



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



Re: Jasper Pre-Compiling JSPs with the same name

2003-09-26 Thread Robert Leland
Pat Quinn wrote:

Hi,

I have JSPs in seperate folders with the same name and when i try to 
precompile them (Using ANT) i get a duplicate class name error... as 
you'd expect when i pass in one class package name e.g.

I organize my JSP folders the same way I organize the java folders:
src/java/com/mycompany/servlets
web/com/mycompany/servlets
-Rob

jasper package=com.mycompany.servlets
uriroot=jsps
webXmlFragment=jsp-fragments.xml
outputDir=src/jsp/
Any ideas how i might resolve this issue?

_
Add photos to your messages with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail

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




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


RE: DisplayTag library

2003-09-26 Thread Graham Lounder
I've got a quick question about the new version of the display tag library.
All my database queries are paged at the database level with a start and end
index.  Could I modified the display tag libraries to support this without
much work?

Cheers,
Graham

-Original Message-
From: Matt Raible [mailto:[EMAIL PROTECTED]
Sent: Friday, September 26, 2003 12:33 PM
To: 'Struts Users Mailing List'
Subject: RE: DisplayTag library


Here's a temporary demo site - this URL will self-destruct as soon as the
live examples is working:

http://raibledesigns.com/displaytag

;-)

-Original Message-
From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED]
Sent: Friday, September 26, 2003 9:27 AM
To: Struts User List ([EMAIL PROTECTED])
Subject: DisplayTag library


I saw the announcement of the SidplayTag library here a couple of days
ago, and it looks useful. But Clicking the Live Examples link on its
web page yields a 404 (page not found). And I would like to use a
ColumnDecorator, but where's the documentation on that? In the ZIP download
file, there are *two* ColumnDecorator classes, one in
/org/displaytag/decorator package, the other in org/apache/taglibs/display
package. But there's no mention of this package at the Apache site. So
where's the documentation?


--
Tim Slattery
[EMAIL PROTECTED]


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

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


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



Re: [OT] off topic, but I have a quick JavaScript question please...

2003-09-26 Thread Mick Knutson
It just makes my code much cleaner inside my function. But I do understand
the way you described.

Thanks

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

- Original Message - 
From: Daniel Smeltzer [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, September 26, 2003 9:06 AM
Subject: RE: [OT] off topic, but I have a quick JavaScript question
please...


Well, the bean:message tag would need to be where the function is
called, not where it is defined.  The struts tags will execute on the
server side and the JavaScript executes on the client side.  When the
JavaScript runs, all the struts tags will have been executed and
converted into text.  So, you'd need something like:

function tooltip(message) {
return overlib(message, STICKY, CAPTION, message, CENTER);
}


And somewhere else:

... onMouseOver=return tooltip('bean:message key=tooltip_key
bundle=TOOLTIP_RESOURCES_KEY/') ...


Daniel

-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED]
Sent: Friday, September 26, 2003 10:59 AM
To: Struts Users Mailing List
Subject: Re: [OT] off topic, but I have a quick JavaScript question
please...


Thank you, but now another issue:

How do I dynamically use that argument in my bean:message???

function tooltip( tooltip_key )
{
return overlib(  'bean:message key=tooltip_key
bundle=TOOLTIP_RESOURCES_KEY /'
, STICKY, CAPTION
, 'bean:message key= +tooltip_key + 
bundle=TOOLTIP_RESOURCES_KEY /'
, CENTER
  );
}


---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

- Original Message - 
From: Daniel Smeltzer [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, September 26, 2003 8:52 AM
Subject: RE: [OT] off topic, but I have a quick JavaScript question
please...


In your function definition, just declare the input parameters and use
those names to refer to them, i.e.:

Function tooltips(message, title) {
  // now the input parameters are available as message and title }

Daniel

-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED]
Sent: Friday, September 26, 2003 10:50 AM
To: struts
Subject: [OT] off topic, but I have a quick JavaScript question
please...


I have a function function tooltips() and the call to that function is
return tooltip('tooltip.msg.name', 'tooltip.title.name');

in my function, how do I access each of the arguments? Is it something
like args[0], and args[1]?

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---



Statement of Confidentiality

This e-mail message, and any attachments, is confidential and is
intended solely for the addressees named above.  If you are not a named
recipient, an individual specifically authorized to receive this
communication, or if this message has been addressed to you in error, do
not read, disclose, reproduce,  or otherwise use this transmission in
any manner.  If you have received this transmission in error, please
alert the sender by replying to the e-mail or by contacting the sender
by phone.  We also request that you immediately delete this message, and
attachments, if any.  This disclaimer shall not be construed in any way
to grant permission to transmit confidential information via this firm's
e-mail system.



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


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




Statement of Confidentiality

This e-mail message, and any attachments, is confidential and is intended
solely for the addressees named above.  If you are not a named recipient, an
individual specifically authorized to receive this communication, or if this
message has been addressed to you in error, do not read, disclose,
reproduce,  or otherwise use this transmission in any manner.  If you have
received this transmission in error, please alert the sender by replying to
the e-mail or by contacting the sender by phone.  We also request that you
immediately delete this message, and attachments, if any.  This disclaimer
shall not be construed in any way to grant permission to transmit
confidential information via this firm's e-mail system.



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


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



Re: Jasper Pre-Compiling JSPs with the same name

2003-09-26 Thread Pat Quinn
I already have my jsps in folders like this... but thats doesn't resolve the 
problem of duplicate class name as jasper adds the same package name for all 
jsps regradless of there location.


From: Robert Leland [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Jasper Pre-Compiling JSPs with the same name
Date: Fri, 26 Sep 2003 12:08:35 -0400
Pat Quinn wrote:

Hi,

I have JSPs in seperate folders with the same name and when i try to 
precompile them (Using ANT) i get a duplicate class name error... as you'd 
expect when i pass in one class package name e.g.

I organize my JSP folders the same way I organize the java folders:
src/java/com/mycompany/servlets
web/com/mycompany/servlets
-Rob

jasper package=com.mycompany.servlets
uriroot=jsps
webXmlFragment=jsp-fragments.xml
outputDir=src/jsp/
Any ideas how i might resolve this issue?

_
Add photos to your messages with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail

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




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
The new MSN 8: advanced junk mail protection and 2 months FREE* 
http://join.msn.com/?page=features/junkmail

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


Re: LookupDispatchAction and submit

2003-09-26 Thread Jan Van Stalle
Hello,

did you try putting a hidden input in your form with the name actionType and
a default value (which would map to one of your methods).

Jan

Lars Bergström [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi everyone,

 I have a html:form in which i have several buttons like this:

 html:submit property=actionType
   bean:message key=button.add/
 /html:submit
 html:submit property=actionType
   bean:message key=button.delete/
 /html:submit
 html:submit property=actionType
   bean:message key=button.update/
 /html:submit

 With the help of this I use the LookupDispatchAction which my Action
 class extends. This works fine for my submit buttons.

 My action-mapping

 action path=/MyAction
 type=com.mycompany.MyAction
 name=myBean
 parameter=actionType
   forward name=input path=/pages/myPage.jsp/
 /action


 However, I also have a html:text property=propKey size=55/ in the
 same html:form. When the text field has focus and I press enter the
 LookupDispatchAction does not work.This because the execute method of
 LookupDispatchAction does not receive any value in the parameter
 actionType. Is this a trap, that LookupDispatchAction cannot handle this
 particular case?

 Best regards

 Lasse




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



Re: how to submit a action form using a javascript(pop-up).

2003-09-26 Thread Jan Van Stalle
to submit your form using javascript, do something like document.forms[0].submit();

Jan
  Nisith Dash [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]
  Hi all,

  I have a problem and need you help for resolution.I have a JSP struts page with an 
action form with typically save,delete buttons.One of the fields in this form is a 
search criteria field with a Go button which should basically display the results in a 
new pop up window.I have associated a new action class for this button.I want to 
submit the entire action form associated with this page  to be submitted when i click 
the Go button through a javascript function.  

  Also when i select a value in the popup window and return back to the main form, the 
values already existing  in the action form should not get repopulated(ie avoiding the 
call to the reset method of the action class).


  I am providing the code snippet for the same, in which i have been able to pass the 
search parameter rather than submitting entire action form:

  function openSearchProductPopup()
{
   var URL= 
'/rpm/findCompanyCdAction.do?searchcode='+BusinessDivisionForm.ecmPkey.value;
   
features=alwaysRaised=yes,dependent=yes,menubar=no,toolbar=no,scrollbars=yes,height=400,width=600;
   window.open(URL,,features);
}


  html:form  action=createBusinessDivisionAction
table id=Table5 cellSpacing=1 cellPadding=1 width=100% border=0
  label  class=prompt Company Id:/label/div
/td
td height=26  
  html:text property=ecmPkey maxlength=38 
styleClass=inputCellNumShaded/
  html:button  styleClass=button property=go  value=Go  
onclick='openSearchProductPopup();' /
/td
td align=left height=26 
  div align=right class=promptspan 
class=requiredFieldAsterisk*/spannbsp;label class=requiredFieldPrompt Division 
Id:/label/div
/td
td height=26  
  html:text property=divisionCd maxlength=15 
styleClass=inputCellShaded/
/td
td width=43 height=26/td
  /tr
  tr 
td width=46 height=33/td
td align=left height=33 
  div align=right class=promptspan 
class=requiredFieldAsterisk*/spannbsp;label class=requiredFieldPrompt Divsion 
Name:/label/div
/td
td class=prompt height=33 
 html:text property=divisionName maxlength=100 
styleClass=inputCellShaded/
/td
td class=prompt align=right height=33nbsp;/td
td colSpan=2 height=33 width=185nbsp; /td
  /tr
  tr 
td width=40/td
td class=prompt align=rightlabel class=promptCreated 
By:/label/td
td width=186 
  html:text property=userCreated maxlength=10 
styleClass=formObjReadOnly readonly=true/
/td
td class=prompt align=right 
  div align=rightlabel class=promptCreated On:/label/div
/td
td width=250  
  html:text property=dateCreated maxlength=7 
styleClass=formObjReadOnly readonly=true/
/td
td width=10/td
  /tr
  tr 
td width=40/td
td class=prompt align=right 
  div align=rightlabel
  class=promptLast Updated By:/label/div
/td
td width=186  
  html:text property=userLastUpd maxlength=10 
styleClass=formObjReadOnly readonly=true/
/td
td class=prompt align=right 
  div align=rightlabel class=promptLast Updated On:/label/div
/td
td width=250  
  html:text property=dateLastUpd maxlength=7 
styleClass=formObjReadOnly readonly=true/
/td
td width=10/td
  /tr 
   html:hidden property=ebdPkey /
  tr 
td width=600 colspan=5 
  div align=left 
  html:button onclick='createForm();'  styleClass=button 
property=Save value=Save /nbsp;nbsp;html:button onclick='deleteForm(); '   
 styleClass=button property=Delete value=Delete /nbsp;nbsp;html:button  
styleClass=button property=Reset value=Reset /nbsp;nbsp;html:button  
styleClass=button property=Close value=Close /nbsp; /div
/td
td width=43/td
  /tr
/table
  /html:form


  and the struts config is as follows:

  action path=/findCompanyCdAction 
  type=com.rpm.application.common.action.FindCompanyCdAction
  input=/jsp/common/RPMCOM002MaintainDivision.jsp 
  name=BusinessDivisionForm   
  scope=request

struts menu

2003-09-26 Thread Jan Van Stalle
Hello,

Lately I saw a reference to struts menu on this newsgroup; tried to use it
but it seems complicated to put the bits and pieces together (classes, js
files, ...)

Does anyone have a link to documentation, besides the one which comes with
the war file ??

Thanks,

Jan




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



Re: DynaActionForm and disabled textfield.

2003-09-26 Thread Jan Van Stalle
Hello,

in IE disabled controls are not submitted (I don't know if this is browser
dependent); you might make a workaround by writing a small javascript which
enables you controls when the user submits the form.

Jan

Kazda Juraj [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hello all,

 I just have a quick question:



 Is it true, that if I have

 html-el: text property=id disabled=true/

 it will not transfer to my DynaActionForm, so I am not able to get it's
 value in my action?

 Or am I something missing?



 Thank you for your comments.

 -juraj.




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



RE: DisplayTag library

2003-09-26 Thread Slattery, Tim - BLS
 Here's a temporary demo site - this URL will self-destruct as 
 soon as the live examples is working:
 
 http://raibledesigns.com/displaytag

Thanks, Matt. But that still leaves the question of ColumnDecorator. The
example-decorator.jsp page shows what a decorator can do and refers me to
the Javadoc tor TableDecorator, then mentions that ColumnDecorator exists.
But where is the Javadoc for the Decorator classes?


--
Tim Slattery
[EMAIL PROTECTED]


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



Re: Struts Design Issue - Search Functionality - Best Practices

2003-09-26 Thread Jing Zhou
I prefer to use nested form bean properties to contain search
results, instead of a bunch of form beans stored in the http
session/request object.

The nested form bean properties could be String[], List, Map,
or compound properties containing other simple or compound
properties. In our project Wheels, if we want to release the
search results in nested properties, just do it on the root
form bean with a method call bean.releaseProperty().

When a form bean is fairly complicated, it is better to store
the form bean in user's http session. In the past, people do not
have enough memories on their hardware, now this is not
a problem in most cases. On the other hand, request scoped
form beans demand the following operations on every
http request:

- CPU time to allocate memories.
- CPU time to do GC (in an asynchronous way, but could
   have severe impact to overall system performance)

Even a JVM could implement the operations using C++/C,
the CPU time could still be greater than,  in magnitudes,
the time to find an existing form bean.


Jing
Netspread Carrier
http://www.netspread.com



- Original Message - 
From: Chawla, Yogesh [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, September 26, 2003 9:13 AM
Subject: RE: Struts Design Issue - Search Functionality - Best Practices


 Some more comments required from Struts Gurus !

 I also needed to know if you would be sending a Collection/Vector of Form
 Beans which are populated with the fields for display or you would be
 sending one Form Bean which contains String[]/Vector of fields returned
from
 the DB.

 This seems to be a good option mentioned below but I would also appreciate
 more feedbacks from other Struts Users 

 Thanks.

 -Original Message-
 From: Paul McCulloch [mailto:[EMAIL PROTECTED]
 Sent: Friday, September 26, 2003 3:30 PM
 To: 'Struts Users Mailing List'
 Subject: RE: Struts Design Issue - Search Functionality - Best Practices


 My aproach is as follows:

 Each form bean property which can be searched is a descendant of
 SearchableProperty. A SearchableProperty consists of:

 *A String value representing the user's input
 *The selected business entity (if the user has selected one)
 *An object descended from Lookup, which implements the associated search
 functionality

 I have a base form  dispatch action.

 The base action contains methods which are called to show the search
screen;
 do a search ;use a searched value etc.

 The base form contains hidden fields, populated via javascript, which tell
 the dispatch action which property the search function is being invoked
for,
 and other 'paramaters' such as the id of a selected record.

 The view of my application uses the struts nested tags, and JSP includes
to
 provide reuseable components to render a SearchableProperty and it's
 associated search view. The search view is part of the same page - the app
 only ever uses one browser window, with no frames.

 The upside of this approach is that I can place, with little effort,
 sophisticated searching functions anywhere is the app. Due to the
inclusion
 of the user selected business entity behind the scenes, my view can
display
 any properties of the selected entity, without a change to the form bean.

 The downside of this is that the form bean must be stored in session
scope.
 I have done a bit of load testing and it didn't seem to be a problem, but
I
 didn't have much to compare with - this is my first Struts app.

 So, that's the approach I use. I've no idea how that compares to the best
 practices out there, nut I'm eager to find out!

 Paul

 -Original Message-
 From: Chawla, Yogesh [mailto:[EMAIL PROTECTED]
 Sent: 26 September 2003 08:19
 To: 'Struts Users Mailing List'
 Subject: Struts Design Issue - Search Functionality - Best Practices
 Importance: High


 Hi,

 Design Requirement - Show a list of Search records. The screen will have
 buttons for Previous/Next Month. On clicking these records would be shown.

 Issues -

 a) How to store data and best practices to be followed in Struts. Return
 back a Collection of Form Beans and iterate over these. However certain
 other fields are required to be stored also which are not displayable.
i.e.
 Current Date which is a hidden parameter. Any comments ?

 b) Use a single Form Bean which has variables like String[] to store the
 array of Displayable Fields. However, this seems to be a less than perfect
 solution. Any comments ???

 c) Use Generic Search - Search on different modules, with different fields
?
 Any Brilliant Guru contributions for this one..Sure need some wizard out
 here...

 Pls. advise on the best approach for the Search functionality. We need to
 design an application which has Search on each and every page.

 Thanks for your time ,

 Regards,

 Yogesh
 DISCLAIMER: The information in this message is confidential and may be
 legally privileged. It is intended solely for the addressee.  Access to
this
 message 

RE: DisplayTag library

2003-09-26 Thread David G Friedman
Tim,

I know what you mean.  Are you talking version 
0.8.5 or 1.0-b1?  The 0.8.5 are offically:
http://edhill.its.uiowa.edu/display 

The 1.0-b1 are:
http://displaytag.sourceforge.net/

With downloads that don't seem to include
pre-built (i.e. html, just xml) javadocs.
I downloaded them a few days ago but haven't
got to them yet.  The api docs are:
http://displaytag.sourceforge.net/apidocs/
And have a class org.displaytag.decorator
which contains the decorator classes.

That beta code also lists live examples at:
http://www.displaytag.org/displaytag-1.0-b1-examples/index.jsp

Regards,
David

-Original Message-
From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED]
Sent: Friday, September 26, 2003 12:33 PM
To: 'Struts Users Mailing List'
Subject: RE: DisplayTag library


 Here's a temporary demo site - this URL will self-destruct as 
 soon as the live examples is working:
 
 http://raibledesigns.com/displaytag

Thanks, Matt. But that still leaves the question of ColumnDecorator. The
example-decorator.jsp page shows what a decorator can do and refers me to
the Javadoc tor TableDecorator, then mentions that ColumnDecorator exists.
But where is the Javadoc for the Decorator classes?


--
Tim Slattery
[EMAIL PROTECTED]


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


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



RE: DisplayTag library

2003-09-26 Thread Slattery, Tim - BLS
 got to them yet.  The api docs are: 
 http://displaytag.sourceforge.net/apidocs/

Excellent, there they are. Hmm...ColumnDecorator has one constructor, which
is deprecated, and one method which is also deprecated. That doesn't leave
much! I guess I could get along without a constructor, but if I don't use
the decorate method, there's not much point to the class! I guess I'll
have to use it in spite of the deprecation.


--
Tim Slattery
[EMAIL PROTECTED]


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



URGENT - not finding applications.properties

2003-09-26 Thread David Thielen
Hi;

I have had struts working fine in one web application. I then added a second web 
application - in it's own directory with it's own struts files, web.xml file, etc.

Now when I run the new application (which gets loaded first) finds it's 
application.properties but the second application cannot find it's 
application.properties.

My web.xml is:

...
  init-param
   param-nameapplication/param-name
   param-valueresources.application/param-value
  /init-param
...

thanks - dave

handle multiple input formats in a loop

2003-09-26 Thread victor gusz
Hi,

I have a tricky problem:

I will have a loop that iterates through a list
of inputs. The input formats will be either textfield
or
drop downbox. I will only know the number of or input
formats during runtime. For example, my page will
display a text filed, a drop down box; or two drop
down boxes, one textfield; etc. 

Since input formats and number of them are input by
users,
I will only be able to get this info at runtime. The
question is, once a user selects an item from drop
down, 
inputs an item into textfield, how can I set/get these
variable strings into/from my form bean?

Has anyone had this kind of tricky problem? I
appreciate your input.

rgds

__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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



How to create a savepoint in BC4J transaction from a struts Action

2003-09-26 Thread EL AKARI Mehdi
Hello,
I need to create a kind of savepoint in a transaction object in BC4J 

[BC4JContext context = BC4JContext.getContext(request);
 context.getApplicationModule().getTransaction().savepoint()  ]
but it  seems to me that it doesn't exist!!
How can I do this.
Thanks for help
Mehdi

Accessing action error problem

2003-09-26 Thread Pete Serafin
Im am trying to determine a way to find out if an ActionError exists in my request.  I 
create an error in my action class as follows:

ActionErrors errors = new ActionErrors();
errors.add( startDate,new ActionError(error.form.requiredField.startDate) );
saveErrors( request, errors );

I can access the error using the html:errors / tag, but all I actuallt want to do is 
check that the startDate error is not null. How can I try to grab this object from the 
HttpServletRequest object?

The whole point is to execute some logic that hides some html if an error exists.  Any 
suggestions?

Pete Serafin
HealthCare Recruiters International


  1   2   >