RE: Urgent: No Getter Method found

2003-09-25 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-25 Thread Abhijeet Mahalkar
Do i need to chnage  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-25 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]



Urgent: No Getter Method found

2003-09-25 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: And now for something completely different... [OT]

2003-09-25 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]



RE: logic:present tag problem

2003-09-25 Thread muzammil shahbaz
Under struts 1.0, try as follows:


do certain operation



do certain operation


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]


logic:present tag problem

2003-09-25 Thread tarun.matai
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]



logic:iterate problem

2003-09-25 Thread MaFai
Hello, struts-user,

[code]




[/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 
org.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]



uploading file

2003-09-25 Thread Kannan
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]


Re: japanese in form

2003-09-25 Thread Jason Lea
Try this link

http://www.anassina.com/struts/i18n/i18n.html

and look item number 7.

The form data being submitted might not be being read as Shift_JIS or 
UTF-8 but instead the default ISO-8859-1 format.

You need to set the character encoding of the request before Struts puts 
the request parameters into your ActionForm.  As suggested in the link 
above, a filter can be used to set the encoding.

Amit Rana wrote:

Hi,
I am having exactly same problem as in this thread
http://www.mail-archive.com/[EMAIL PROTECTED]/msg38443.html
i.e. Japanese in the form elements (textboxes) becomes garbage once form
is re-shown. I have this tiles/struts application Japanese from
properties or from form is displayed problem but when form is
re-displayed Japanese becomes garbage.
I have tried putting all the combinations given in
http://www.mail-archive.com/[EMAIL PROTECTED]/msg12490.html
	Can anyone suggest what can be done to solve this problem?

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



--
Jason Lea


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


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

2003-09-25 Thread Andrew Hill

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


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]



japanese in form

2003-09-25 Thread Amit Rana
Hi,
I am having exactly same problem as in this thread
http://www.mail-archive.com/[EMAIL PROTECTED]/msg38443.html
i.e. Japanese in the form elements (textboxes) becomes garbage once form
is re-shown. I have this tiles/struts application Japanese from
properties or from form is displayed problem but when form is
re-displayed Japanese becomes garbage.

I have tried putting all the combinations given in
http://www.mail-archive.com/[EMAIL PROTECTED]/msg12490.html


Can anyone suggest what can be done to solve this problem?

Regards,
Amit.


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



Re: Going from https on /member.do, back to http on index.jsp?

2003-09-25 Thread Craig R. McClanahan
Max Cooper wrote:

Creating an index.do is one option. If it is not marked as secure, sslext
will write an absolute URL back to http:// for it. Many Struts users
advocate that all requests should be served by Actions, even if the action
merely forwards to a JSP.
 

I actually have a more important concern about doing this -- exposing 
information to people who can listen in on the packets that go back and 
forth.

Many people would like, for example, to have the login form be secure so 
that your password is not sent across the wire encrypted, but then go 
back to http for the rest of the session for the better performance.  
The seemingly ideal solution is to have the destination of the login 
submit require SSL, and then switch back.  Using a 
 security constraint, you can even let the 
container worry about the http->https transition for you.  Or, you can 
use things like SSLext that is nicely integrated into Struts.

However, the servlet spec offers no help in switching back to http, 
because it is not a recommended practice.  Why?  Consider the fact that 
you now trust subsequent transactions from the same user, and are 
typically using the session that was established earlier (whether the 
session was originally created in http or https turns out not to 
matter).  But the session id is no longer encrypted (it's either in a 
cookie or in rewritten URLs), so it can be easily forged by anyone with 
a network snooper between you and the server.  How do you guarantee that 
an after-login request on that session is not being sent by someone who 
is forging the session id because they snooped it?

I'm a conservative on security issues -- if I have an app that needs SSL 
sometimes, I arrange things to never accept a non-SSL request on the 
same session again, once I've switched to SSL (easy to do with a Filter, 
for example).  If you're concerned enough to protect the password, you 
should be concerned enough to pay the CPU overhead for SSL the remainder 
of the session.  Otherwise, it's likely that encrypting the login form 
will just give you a false sense of security.

I think you can also use the secure attribute in the sslext tags to indicate
whether the target of the link or form should be accessed securely. In this
case, you would add secure="false" to the sslext:link tag that goes back to
/index.jsp.
-Max
 

Craig



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


Re: Going from https on /member.do, back to http on index.jsp?

2003-09-25 Thread Max Cooper
Creating an index.do is one option. If it is not marked as secure, sslext
will write an absolute URL back to http:// for it. Many Struts users
advocate that all requests should be served by Actions, even if the action
merely forwards to a JSP.

I think you can also use the secure attribute in the sslext tags to indicate
whether the target of the link or form should be accessed securely. In this
case, you would add secure="false" to the sslext:link tag that goes back to
/index.jsp.

-Max

- Original Message - 
From: "Mick Knutson" <[EMAIL PROTECTED]>
To: "struts" <[EMAIL PROTECTED]>
Sent: Thursday, September 25, 2003 2:50 PM
Subject: Going from https on /member.do, back to http on index.jsp?


> How do I go from https on /member.do, back to http on index.jsp?
> Must I make an /index.do and just eliminate the index.jsp?
>
> ---
> 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]
>
>



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



RE: Value assignment to html:hidden field...

2003-09-25 Thread hari_s
I think it will be more simple with 

-Original Message-
From: Abhijeet Mahalkar [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 25, 2003 5:25 PM
To: Struts Users Mailing List
Subject: Re: Value assignment to html:hidden field...

thanks.. 
- Original Message - 
From: "Adolfo Miguelez" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 25, 2003 3:37 PM
Subject: Re: Value assignment to html:hidden field...


What about this?


 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...
> maxlength="25" />
>
>will this work ?
>
> 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]



ActionErrors and Servlet Filters

2003-09-25 Thread Nate Drake
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  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:





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]



RE: Disabling Buttons on View

2003-09-25 Thread Shane Mingins

> -Original Message-
> From: Karr, David [mailto:[EMAIL PROTECTED]
> Sent: Friday, 26 September 2003 11:25 a.m.
> To: Struts Users Mailing List
> >
> > But the  ... disabled="<%=disable %> ... is not found.
> 
> What do you mean "is not found"?  Are you getting an error message?  If
> so, what's the error message?  Are you including the taglib directives
> for the Struts tag libraries?  It's hard to help if you don't tell us
> exactly what happened.

I am using IntelliJ IDEA and it was not picking up the ="<%=disable %>
variable. i.e. it hightlighted it red and complains.

Initially the  was also causing an error in IDEA but I added:

<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>


My current JSP has the following:

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>

Does that at all help?

Shane



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



RE: Disabling Buttons on View

2003-09-25 Thread Karr, David
> -Original Message-
> From: Shane Mingins [mailto:[EMAIL PROTECTED] 
> 
> I have not used any of the JSTL tags which I am assuming 
>  is??  
> 
> So I downloaded the JSTL library and included the core 
> library EL:  <%@
> taglib prefix="c" uri="http://java.sun.com/jstl/core"; %> in my JSP
> 
> The  is recognized :-)
> 
> But the  ... disabled="<%=disable %> ... is not found.

What do you mean "is not found"?  Are you getting an error message?  If
so, what's the error message?  Are you including the taglib directives
for the Struts tag libraries?  It's hard to help if you don't tell us
exactly what happened.

> So is a preferred way of doing things when it comes to tags?  
> Is there an
> explanation of these options anywhere?  Am I making any sense *grin* ?

The best advice I could give would be to read the JSP specification, the
JSTL specification, and the Struts user guide and api reference.

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



RE: Disabling Buttons on View

2003-09-25 Thread Shane Mingins
Hi

Sorry if this is OT 

I have not used any of the JSTL tags which I am assuming  is??  

So I downloaded the JSTL library and included the core library EL:  <%@
taglib prefix="c" uri="http://java.sun.com/jstl/core"; %> in my JSP

The  is recognized :-)

But the  ... disabled="<%=disable %> ... is not found.

So I used what I am assuming are JSP scripting tags (I have not used JSP's
before using Struts)

<% boolean disable = false; %>

<% disable = true; %>


Edit


And this works.

So is a preferred way of doing things when it comes to tags?  Is there an
explanation of these options anywhere?  Am I making any sense *grin* ?

Thanks
Shane


> -Original Message-
> From: deepaksawdekar [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 25 September 2003 3:56 p.m.
> To: Struts Users Mailing List
> Subject: RE: Disabling Buttons on View
> 
> you can try some thing like this.
> 
>   
> 
> 
>  > key="button.edit"/>
> 
> 
> Thanks and Regards
> Deepak.
> 
> 
> -Original Message-
> From: Shane Mingins [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 25, 2003 8:27 AM
> To: '[EMAIL PROTECTED]'
> Subject: Disabling Buttons on View
> 
> 
> Hi
> 
> If I wish to simulate the enable/disable of buttons that users are used to
> with a rich GUI on a JSP view, is there are nicer way than using the logic
> tags like this?
> 
> 
> key="button.edit"/>
> 
> 
> 
> key="button.edit"/>
> 
> 
> Thanks
> Shane
> 
> Shane Mingins
> Analyst Programmer
> Assure NZ Ltd
> Ph 644 494 2522
> 
> 
> 
> -
> 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]



how to tell invalid session vs session timed out

2003-09-25 Thread Warren Chen
Hi All,

Is there any tool in Struts that can tell if an
invalid session is caused by timeout or simply no
session were ever created?

(In my app, the loginAction creates a session and put
some stuff into the session, in each subsequent
request I'll check if session is valid, if not, send
user back to login page - in order to send more
meaningful message to user, I want to tell if invalid
session is caused by timeout out or simply the user
never logged in) 

Thanks a lot!

Warren

__
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]



Advantage of Map/List backed forms Vs Action Forms with array list

2003-09-25 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]



Going from https on /member.do, back to http on index.jsp?

2003-09-25 Thread Mick Knutson
How do I go from https on /member.do, back to http on index.jsp?
Must I make an /index.do and just eliminate the index.jsp?

---
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: [Poll] action mappings

2003-09-25 Thread Adam Hardy
Personally I'd rather declare that validation occurs in an extra mapping 
that have to code it in my action. You lose the whole automation with 
the input as well.

So I have 2 mappings for one action - one for starting (& for when 
validation fails), and one for validation.



On 09/25/2003 11:01 PM Shane Mingins wrote:
-Original Message-
From: Sgarlata Matt [mailto:[EMAIL PROTECTED]
Sent: Friday, 26 September 2003 8:55 a.m.
To: Struts Users Mailing List
Subject: Re: [Poll] action mappings
When I am using design #3 my action mappings always specify that
validate="false".  Those methods that do require validation explicitly
call
the validate method of the bean.  Those methods that do not require
validation don't call the method.  So no conditioning is needed in the
form
bean for design #3 :)
Matt


Aha!  That did not cross my mind as I played around with the different
options.  Thanks :-)
Shane

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

--
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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

2003-09-25 Thread Max Cooper
Well, I do some administration work on a few Unix servers from time to time,
but I wouldn't really call myself a sysadmin. Oh no! I am in denial. :-)

-Max

- Original Message - 
From: "Adam Hardy" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, September 25, 2003 2:35 PM
Subject: Re: And now for something completely different... [OT]


> Oh I see, Max, it sounds like you might be a Unix systems administrator
> yourself... ;)
>
> is it Friday yet?
>
> On 09/25/2003 10:28 PM Max Cooper wrote:
> > 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]
> >
> >
>
> -- 
> struts 1.1 + tomcat 4.1.27 + java 1.4.2
> Linux 2.4.20 RH9
>
>
> -
> 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]



log4j configuration question

2003-09-25 Thread David Erickson
A couple quick questions:

1) Using tomcat is it possible to configure log4j to only be functional for
your particular webapp?  Because I put the log4j jar into my web-inf/lib
directory, built a log4j.properties and put it in /web-inf/classes and set
log4j's rootlogger to debug and got log messages from tns of stuff that
I certainly hadn't setup to log.. just wondering.

2) I'd like to keep my log files potentially in my /web-inf/logs directory,
however how can I get a handle on the realpath to that directory from the
config file if I don't know where the deployed path would be?!  I'm assuming
I'd have to do that programmatically after the config file loads and that
could be a major PITA if there are lots of log files correct?  Some help and
guidance in this direction would be appreciated.

-David


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



Re: How do I populate a DynaValidatorForm?

2003-09-25 Thread Mick Knutson
Each JSP will have 1 DynaForm assigned to a given form. So the formA.units
is different than forB.units in the DynaForm.

So, when you submit a form, there is just 1 Dynaform that is submitted. Or
in your case you want to show formA DynaForm with forma.units.

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

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

- Original Message - 
From: "Barry Volpe" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, September 25, 2003 2:35 PM
Subject: Re: How do I populate a DynaValidatorForm?


> Hi Mick,
>
> This does not appear to be working.  I was also wondering let's say
> in my struts-config I have two different DynaValidator forms defined.
> Both forms have the same property say "units".  I am not using a
Constants.
> but how would it know which units needs to be populated?
>
> Thanks,
> Barry
>
>
> - Original Message - 
> From: "Mick Knutson" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Thursday, September 25, 2003 2:24 PM
> Subject: Re: How do I populate a DynaValidatorForm?
>
>
> > In the Action itself, there is a form object already created. Then this
> > should work inside the action:
> > ( ( DynaActionForm ) form ).set( Constants.USER_ID_KEY, "5");
> >
> > ---
> > Thanks
> > Mick Knutson
> > http://www.baselogic.com
> >
> > +001(805) 563-0666 Office
> > +001 (708) 570-2772 Fax
> > ---
> >
> > - Original Message - 
> > From: "Barry Volpe" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Thursday, September 25, 2003 2:16 PM
> > Subject: How do I populate a DynaValidatorForm?
> >
> >
> > > With an Action Form we do the following:
> > >
> > > form = new UserForm();
> > > form.setUserid("5");
> > >
> > > What is the equivalent for a DynaValidatorForm?
> > >
> > > Let's say my DynaValidatorForm is myForm
> > >
> > > Of course this does not work (compiler does not know what myForm
> is.)
> > >
> > > DynaValidatorForm dynaForm = (DynaValidatorForm)myForm;
> > >
> > > myForm.setUserid("5");
> > >
> > >
> > > Thanks,
> > > Barry
> > >
> > >
> > > -
> > > 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: How do I populate a DynaValidatorForm?

2003-09-25 Thread Wendy Smoak
Barry Volpe wrote:
> With an Action Form we do the following:
> form = new UserForm();
> form.setUserid("5"); 
> What is the equivalent for a DynaValidatorForm?
> Let's say my DynaValidatorForm is myForm
> Of course this does not work (compiler does not know what myForm
is.)
> DynaValidatorForm dynaForm = (DynaValidatorForm)myForm; 
> myForm.setUserid("5");

http://jakarta.apache.org/struts/userGuide/building_controller.html#dyna
_action_form_classes

"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."

I populate mine largely with BeanUtils.copyProperties(...).  If you need
to address a specific property, you can use the Map contained within the
DVForm:

> DynaValidatorForm dynaForm = (DynaValidatorForm)myForm; 
> myForm.setUserid("5");

2nd line becomes:
myForm.set("userid","5");

http://jakarta.apache.org/struts/api/org/apache/struts/validator/DynaVal
idatorForm.html

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University, PA, IRM 


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



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

2003-09-25 Thread Adam Hardy
Oh I see, Max, it sounds like you might be a Unix systems administrator 
yourself... ;)

is it Friday yet?

On 09/25/2003 10:28 PM Max Cooper wrote:
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]

--
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: How do I populate a DynaValidatorForm?

2003-09-25 Thread Barry Volpe
Hi Mick,

This does not appear to be working.  I was also wondering let's say
in my struts-config I have two different DynaValidator forms defined.
Both forms have the same property say "units".  I am not using a Constants.
but how would it know which units needs to be populated?

Thanks,
Barry


- Original Message - 
From: "Mick Knutson" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, September 25, 2003 2:24 PM
Subject: Re: How do I populate a DynaValidatorForm?


> In the Action itself, there is a form object already created. Then this
> should work inside the action:
> ( ( DynaActionForm ) form ).set( Constants.USER_ID_KEY, "5");
>
> ---
> Thanks
> Mick Knutson
> http://www.baselogic.com
>
> +001(805) 563-0666 Office
> +001 (708) 570-2772 Fax
> ---
>
> - Original Message - 
> From: "Barry Volpe" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Thursday, September 25, 2003 2:16 PM
> Subject: How do I populate a DynaValidatorForm?
>
>
> > With an Action Form we do the following:
> >
> > form = new UserForm();
> > form.setUserid("5");
> >
> > What is the equivalent for a DynaValidatorForm?
> >
> > Let's say my DynaValidatorForm is myForm
> >
> > Of course this does not work (compiler does not know what myForm
is.)
> >
> > DynaValidatorForm dynaForm = (DynaValidatorForm)myForm;
> >
> > myForm.setUserid("5");
> >
> >
> > Thanks,
> > Barry
> >
> >
> > -
> > 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: Input form field values...

2003-09-25 Thread Adam Hardy
Yes it should clear as long as you have no parameters in the URL and as 
long as you have the action mapping scope set to request and not session.

On 09/25/2003 07:52 PM Joseph William wrote:
I did figure that out Adam. Thanks much! 
 
But, in the browser, when I hit the back button and then the refresh button, the values remain in the appropriate elements... this is fine. But, when I hit the enter key in the location bar, should not the page reload and the values cleared??? This does not happen here??? why??? Please let me know...
 
-Joseph
 

Adam Hardy <[EMAIL PROTECTED]> wrote:
Hi Joseph,
if you leave the name attribute out, then the tag will 
automatically name the form after the name you specify in the action 
mapping. You must specify the form (in the mapping) and the form fields 
with etc if you want the values submitted to reappear in the 
fields again.

It can be confusing. Have you checked out the examples that come with 
struts? I'm sure one of those demonstrates this functionality.

HTH
Adam
On 09/25/2003 06:41 PM Joseph William wrote:

This is with regards to my question about retaining the form field values when the error messages shouw up thru the Action errors... Just now, I figured out it was coz of the In this tag, I had added the name and type attribute too -- This is coz I wanna do the client side javascripting too for which I need the form name... 

When I remove the name and type attribute(which is mandatory if we specify the name!) from the form tag, I am able to retain the form element values in the error messages page!!! Why is this so??? How to solve this???

Can anybody out there explain???

-Joseph

Hi,

Im trying to develop a small application using struts. Everything works 
fine except the Action Errors part -- When the error messages show up, 
the form element values from the previous screen are not being 
retrieved in the next screen -- Am I missing something??? Help appreciated...

Thanks.
-Joseph


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


--
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: How do I populate a DynaValidatorForm?

2003-09-25 Thread Mick Knutson
That was it. Thanks very much!

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

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

- Original Message - 
From: "Barry Volpe" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, September 25, 2003 2:16 PM
Subject: How do I populate a DynaValidatorForm?


> With an Action Form we do the following:
> 
> form = new UserForm();
> form.setUserid("5"); 
> 
> What is the equivalent for a DynaValidatorForm?
> 
> Let's say my DynaValidatorForm is myForm
> 
> Of course this does not work (compiler does not know what myForm is.)
> 
> DynaValidatorForm dynaForm = (DynaValidatorForm)myForm; 
> 
> myForm.setUserid("5");
> 
> 
> Thanks,
> Barry
> 
> 
> -
> 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-25 Thread Mick Knutson
In the Action itself, there is a form object already created. Then this
should work inside the action:
( ( DynaActionForm ) form ).set( Constants.USER_ID_KEY, "5");

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

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

- Original Message - 
From: "Barry Volpe" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, September 25, 2003 2:16 PM
Subject: How do I populate a DynaValidatorForm?


> With an Action Form we do the following:
>
> form = new UserForm();
> form.setUserid("5");
>
> What is the equivalent for a DynaValidatorForm?
>
> Let's say my DynaValidatorForm is myForm
>
> Of course this does not work (compiler does not know what myForm is.)
>
> DynaValidatorForm dynaForm = (DynaValidatorForm)myForm;
>
> myForm.setUserid("5");
>
>
> Thanks,
> Barry
>
>
> -
> 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]



How do I populate a DynaValidatorForm?

2003-09-25 Thread Barry Volpe
With an Action Form we do the following:

form = new UserForm();
form.setUserid("5"); 

What is the equivalent for a DynaValidatorForm?

Let's say my DynaValidatorForm is myForm

Of course this does not work (compiler does not know what myForm is.)

DynaValidatorForm dynaForm = (DynaValidatorForm)myForm; 

myForm.setUserid("5");


Thanks,
Barry


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



Re: SSLExt and useMap?

2003-09-25 Thread Max Cooper
Oops, I think you need to use the page attribute instead of name. Name will
look for an attribute that it will convert to a String and use as the name
of the action. The page attribute allows you to specify an action (or other
URL) that it will use directly.

-Mx

- Original Message - 
From: "Mick Knutson" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, September 25, 2003 1:51 PM
Subject: Re: SSLExt and useMap?


> I added this:
>   
>
> (and I also have this in other areas of the same JSP page:  page="/member.do" >Log On)
>
>
> I get this error when I did that:
>
>  Thanks
> Mick Knutson
> http://www.baselogic.com
>
> +001(805) 563-0666 Office
> +001 (708) 570-2772 Fax
> ---
>
> - Original Message - 
> From: "Max Cooper" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Thursday, September 25, 2003 1:40 PM
> Subject: Re: SSLExt and useMap?
>
>
> > Yup, that's the technique I was thinking of. Even though that seems a
> little
> > like nested tags, it really is not (and should work fine) because the
> 
> > tag is just HTML rather than a JSP custom tag.
> >
> > -Max
> >
> > - Original Message - 
> > From: "Mick Knutson" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Thursday, September 25, 2003 1:36 PM
> > Subject: Re: SSLExt and useMap?
> >
> >
> > > Do you mean Like:
> > > 
> > >
> > >
> > > ---
> > > Thanks
> > > Mick Knutson
> > > http://www.baselogic.com
> > >
> > > +001(805) 563-0666 Office
> > > +001 (708) 570-2772 Fax
> > > ---
> > >
> > > - Original Message - 
> > > From: "Max Cooper" <[EMAIL PROTECTED]>
> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > Sent: Thursday, September 25, 2003 1:29 PM
> > > Subject: Re: SSLExt and useMap?
> > >
> > >
> > > >  can render URLs to stick into the  href's.
> > > >
> > > > -Max
> > > >
> > > > - Original Message - 
> > > > From: "Mick Knutson" <[EMAIL PROTECTED]>
> > > > To: "struts" <[EMAIL PROTECTED]>
> > > > Sent: Thursday, September 25, 2003 1:23 PM
> > > > Subject: Re: SSLExt and useMap?
> > > >
> > > >
> > > > > > I have an HTML image map that needs to use the SSLExt links:
> > > > > >
> > > > > > 
> > > > > >   
> > > > > >   
> > > > > >href="/notification.do">
> > > > > >   
> > > > > >   
> > > > > >
> > > > > >
> > > > > > How do I do this with SSLExt as I can't find any examples for
this
> > > > issue.
> > > > > > Thanks in advance for your help.
> > > > > >
> > > > > > ---
> > > > > > 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]
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > >
> -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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



RE: [Poll] action mappings

2003-09-25 Thread Shane Mingins

> -Original Message-
> From: Sgarlata Matt [mailto:[EMAIL PROTECTED]
> Sent: Friday, 26 September 2003 8:55 a.m.
> To: Struts Users Mailing List
> Subject: Re: [Poll] action mappings
> 
> When I am using design #3 my action mappings always specify that
> validate="false".  Those methods that do require validation explicitly
> call
> the validate method of the bean.  Those methods that do not require
> validation don't call the method.  So no conditioning is needed in the
> form
> bean for design #3 :)
> 
> Matt

Aha!  That did not cross my mind as I played around with the different
options.  Thanks :-)

Shane

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



Re: [Poll] action mappings

2003-09-25 Thread Sgarlata Matt
When I am using design #3 my action mappings always specify that
validate="false".  Those methods that do require validation explicitly call
the validate method of the bean.  Those methods that do not require
validation don't call the method.  So no conditioning is needed in the form
bean for design #3 :)

Matt
- Original Message - 
From: "Shane Mingins" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, September 25, 2003 4:42 PM
Subject: RE: [Poll] action mappings


> > -Original Message-
> > From: Sgarlata Matt [mailto:[EMAIL PROTECTED]
> > Sent: Friday, 26 September 2003 2:14 a.m.
> > To: Struts Users Mailing List
> > Subject: Re: [Poll] action mappings
> >
> > OK, I think I understand #1 now.  However, I still disagree with it ;)
If
> > you are using the same form bean and display components, you can define
a
> > single action mapping and thus eliminate duplicate configuration
> > information
> > in the struts-config file.
>
>
> In my case I am using style #1 because some actions require the form bean
to
> be validated and some do not.  I did not like the idea of conditioning the
> validation in the form bean validate() method.
>
> Anyone have thoughts or comments on that?
>
> Shane
>
> -
> 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: SSLExt and useMap?

2003-09-25 Thread Mick Knutson
I added this:
  

(and I also have this in other areas of the same JSP page: Log On)


I get this error when I did that:

 From: "Mick Knutson" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Thursday, September 25, 2003 1:36 PM
> Subject: Re: SSLExt and useMap?
>
>
> > Do you mean Like:
> > 
> >
> >
> > ---
> > Thanks
> > Mick Knutson
> > http://www.baselogic.com
> >
> > +001(805) 563-0666 Office
> > +001 (708) 570-2772 Fax
> > ---
> >
> > - Original Message - 
> > From: "Max Cooper" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Thursday, September 25, 2003 1:29 PM
> > Subject: Re: SSLExt and useMap?
> >
> >
> > >  can render URLs to stick into the  href's.
> > >
> > > -Max
> > >
> > > - Original Message - 
> > > From: "Mick Knutson" <[EMAIL PROTECTED]>
> > > To: "struts" <[EMAIL PROTECTED]>
> > > Sent: Thursday, September 25, 2003 1:23 PM
> > > Subject: Re: SSLExt and useMap?
> > >
> > >
> > > > > I have an HTML image map that needs to use the SSLExt links:
> > > > >
> > > > > 
> > > > >   
> > > > >   
> > > > >   
> > > > >   
> > > > >   
> > > > >
> > > > >
> > > > > How do I do this with SSLExt as I can't find any examples for this
> > > issue.
> > > > > Thanks in advance for your help.
> > > > >
> > > > > ---
> > > > > 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]
> > > >
> > > >
> > >
> > >
> > >
> > > -
> > > 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: BeanMapping WAS: [Poll] action mappings

2003-09-25 Thread Craig R. McClanahan
Mainguy, Mike wrote:

I think your way is perfectly acceptable.  I like to try and use the
supplied interfaces (i.e. DynaBean) if they suit my needs and, to date,
DynaBean has served me well.  You can use BeanUtils to map DynaBeans to
POJO's and visa versa (as a matter of fact you can to it to/from  maps also
I believe).
My only gripe with using the commons-beanutils would be that I would perhaps
like to have a couple levels of DynaBean and perhaps at the simplest level
only have an interface like you describe (i.e. fewer methods in implement).
 

You'll note that org.apache.commons.beanutils.DynaBean itself is an 
interface with very few methods -- among other reasons to make it simple 
to implement in a wide variety of scenarios.  A few basic 
implementations are provided, but you don't have to feel restricted to 
them.And nothing stops you from creating an ExtendedDynaBean 
interface that adds the typesafe getter/setter APIs for use in DTO type 
applications.  I've found that use to be quite appropriate (I can have 
the type safety that a Map doesn't provide, without the extra work of 
having to write or generate a corresponding POJO class).

However, I'm against adding the extra typesafe getter/setter methods 
onto DynaActionForm itself, because you shouldn't be using them directly 
as a DTO, since it would force your back-end business logic to require 
struts.jar at compile time and run time.

Craig



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


RE: [Poll] action mappings

2003-09-25 Thread Shane Mingins
> -Original Message-
> From: Sgarlata Matt [mailto:[EMAIL PROTECTED]
> Sent: Friday, 26 September 2003 2:14 a.m.
> To: Struts Users Mailing List
> Subject: Re: [Poll] action mappings
> 
> OK, I think I understand #1 now.  However, I still disagree with it ;)  If
> you are using the same form bean and display components, you can define a
> single action mapping and thus eliminate duplicate configuration
> information
> in the struts-config file. 


In my case I am using style #1 because some actions require the form bean to
be validated and some do not.  I did not like the idea of conditioning the
validation in the form bean validate() method.

Anyone have thoughts or comments on that?

Shane

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



Re: SSLExt and useMap?

2003-09-25 Thread Max Cooper
Yup, that's the technique I was thinking of. Even though that seems a little
like nested tags, it really is not (and should work fine) because the 
tag is just HTML rather than a JSP custom tag.

-Max

- Original Message - 
From: "Mick Knutson" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, September 25, 2003 1:36 PM
Subject: Re: SSLExt and useMap?


> Do you mean Like:
> 
>
>
> ---
> Thanks
> Mick Knutson
> http://www.baselogic.com
>
> +001(805) 563-0666 Office
> +001 (708) 570-2772 Fax
> ---
>
> - Original Message - 
> From: "Max Cooper" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Thursday, September 25, 2003 1:29 PM
> Subject: Re: SSLExt and useMap?
>
>
> >  can render URLs to stick into the  href's.
> >
> > -Max
> >
> > - Original Message - 
> > From: "Mick Knutson" <[EMAIL PROTECTED]>
> > To: "struts" <[EMAIL PROTECTED]>
> > Sent: Thursday, September 25, 2003 1:23 PM
> > Subject: Re: SSLExt and useMap?
> >
> >
> > > > I have an HTML image map that needs to use the SSLExt links:
> > > >
> > > > 
> > > >   
> > > >   
> > > >   
> > > >   
> > > >   
> > > >
> > > >
> > > > How do I do this with SSLExt as I can't find any examples for this
> > issue.
> > > > Thanks in advance for your help.
> > > >
> > > > ---
> > > > 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]
> > >
> > >
> >
> >
> >
> > -
> > 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: SSLExt and useMap?

2003-09-25 Thread Mick Knutson
Do you mean Like:



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

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

- Original Message - 
From: "Max Cooper" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, September 25, 2003 1:29 PM
Subject: Re: SSLExt and useMap?


>  can render URLs to stick into the  href's.
>
> -Max
>
> - Original Message - 
> From: "Mick Knutson" <[EMAIL PROTECTED]>
> To: "struts" <[EMAIL PROTECTED]>
> Sent: Thursday, September 25, 2003 1:23 PM
> Subject: Re: SSLExt and useMap?
>
>
> > > I have an HTML image map that needs to use the SSLExt links:
> > >
> > > 
> > >   
> > >   
> > >   
> > >   
> > >   
> > >
> > >
> > > How do I do this with SSLExt as I can't find any examples for this
> issue.
> > > Thanks in advance for your help.
> > >
> > > ---
> > > 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]
> >
> >
>
>
>
> -
> 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: SSLExt and useMap?

2003-09-25 Thread Max Cooper
 can render URLs to stick into the  href's.

-Max

- Original Message - 
From: "Mick Knutson" <[EMAIL PROTECTED]>
To: "struts" <[EMAIL PROTECTED]>
Sent: Thursday, September 25, 2003 1:23 PM
Subject: Re: SSLExt and useMap?


> > I have an HTML image map that needs to use the SSLExt links:
> >
> > 
> >   
> >   
> >   
> >   
> >   
> >
> >
> > How do I do this with SSLExt as I can't find any examples for this
issue.
> > Thanks in advance for your help.
> >
> > ---
> > 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]
>
>



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



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

2003-09-25 Thread Max Cooper
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]



Re: SSLExt and useMap?

2003-09-25 Thread Mick Knutson
> I have an HTML image map that needs to use the SSLExt links:
> 
> 
>   
>   
>   
>   
>   
> 
> 
> How do I do this with SSLExt as I can't find any examples for this issue.
> Thanks in advance for your help.
> 
> ---
> 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]



Clearing a DynaActionForm values?

2003-09-25 Thread Mick Knutson
How do I clear a DynaActionForm values?

---
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: action chaining and request.getRequestURI()

2003-09-25 Thread Manish Singla
You go from one action to another action by requestdispatcher ..thus 
request.getRequestURI() will not serve your purpose

One solution is you can read request header "Referer" in "/doerror.do"
Now, above header is optional.
Or else , you may set request.setAttribute in "/doNews.do"  which you 
can read in "/doerror.do"





Franck Lefebure wrote:
Hi,
My struts-config looks like :


  

  
  
 






  
When I catch an Exception in NewsAction, I "mapping.findForward("error");"
In the doError.do, I want to record data about the Exception in a table.
The Url I used to launch this process is http://myserver/doNews.do
I want to store this url in the table but if I do something like
request.getRequestUrl() in the ErrorAction
then the result is  " doError.do ". I would like the real Url ( " doNews.do
")
Is there any solution to that ?

Thanks

--
Franck Lefebure
equipe web http://www.orangecaraibe.com
mailto:[EMAIL PROTECTED]


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


--
Thanks
Manish Singla
x73166
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Problem with Struts-faces example app

2003-09-25 Thread Daniel Smeltzer
I'm attempting to write some things with the struts-faces library.  I
have had some difficulty and decided to step back and look over the
example again.  Now, I'm having issues getting the example app to work!

I have a fresh install of Tomcat 5.0.12b that I'm using.  I have
deployed the example app from the WAR file included with the
struts-faces package.  I have added jsf-api.jar and jsf-ri.jar from the
web services developer pack 1.2.  Below is the exception as I see it in
the log file.  Any ideas?

Daniel


--

2003-09-25 14:32:21 SessionListener: contextInitialized()
2003-09-25 14:34:57 ApplicationDispatcher[/struts-faces]
Servlet.service() for servlet jsp threw exception
org.mozilla.util.AssertionFailureException
at org.mozilla.util.Assert.assert_it(Assert.java:122)
at
com.sun.faces.application.AppConfig.getComponent(AppConfig.java:187)
at
com.sun.faces.application.ApplicationImpl.getComponent(ApplicationImpl.j
ava:264)
at
javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:456)
at
javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:277)
at
org.apache.struts.faces.taglib.HtmlTag.doStartTag(HtmlTag.java:123)
at
org.apache.jsp.registration_jsp._jspx_meth_s_html_0(registration_jsp.jav
a:201)
at
org.apache.jsp.registration_jsp._jspx_meth_f_use_faces_0(registration_js
p.java:177)
at
org.apache.jsp.registration_jsp._jspService(registration_jsp.java:146)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:311)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:284)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:204)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
her.java:742)
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(Applicatio
nDispatcher.java:506)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp
atcher.java:443)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat
cher.java:359)
at
com.sun.faces.context.ExternalContextImpl.dispatchMessage(ExternalContex
tImpl.java:298)
at
com.sun.faces.lifecycle.ViewHandlerImpl.renderView(ViewHandlerImpl.java:
53)
at
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.
java:89)
at
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:185)
at
javax.faces.webapp.FacesServlet.service(FacesServlet.java:169)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:284)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:204)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
her.java:742)
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(Applicatio
nDispatcher.java:506)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp
atcher.java:443)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat
cher.java:359)
at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.jav
a:1069)
at
org.apache.struts.faces.application.FacesRequestProcessor.doForward(Face
sRequestProcessor.java:140)
at
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestPr
ocessor.java:455)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
279)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1480)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:506)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:284)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:204)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:256)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:151)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
63)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCon

Re: Urgent: Changing URLs for existing struts project

2003-09-25 Thread mohan
Because i was already using mod_jk2 , the best to configure was to change
it to add the Context in the server.xml with the desired URL. This is cool
isnt itMailing List are great

thanx to u all
--Mohan


> If you have developed your application in "struts friendly" way, this
> should be as easy as changing
>
>   
> action
> *.do
>   
>
> to
>
>   
> action
> /javapps/*.do
>   
>
>
>
>  or (for path mapping)
>
>   
> action
> /myapp/*
>   
>
>   
> action
> /javapps/myapp/*
>   
>
>
> ...in the web.xml
>
>
> I just tested this on the project I am currently working on and it works
> fine.  My login page now posts to "/javapps/harland/security" whereas it
> used to be "/harland/security".  I can also change it back and forth
> from extension mapping to path mapping by simply modifying the
>  to any of the above values.
>
> Best I can tell you is to make the change (as noted above) and run your
> test suite.  You did build a test suite right?
>
>
>
> --
> James Mitchell
> Software Engineer / Struts Evangelist
> http://www.struts-atlanta.org
> 678.910.8017
> 770.822.3359
> AIM:jmitchtx
>
>
>
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, September 25, 2003 11:30 AM
> Subject: Urgent: Changing URLs for existing struts project
>
>
>> Hi All
>> I am currently running tomcat4.1.27 and apache1.3.x. I am using
>> struts. I used call my webapplication "xyz" using www.abc.org/xyz. Now
>> company has decided that pople should be able to access this
>> webapplication through the URL
>>
>> www.abc/javapps/xyz. Do i need to change the whole architecture now or
>> should i be able to do it easily. I have tried to create a directory
>> under /var/tomcat4/webapps/ as japps/xyz and pointed my ".war" file to
>> this directory. But tomcat is not able to map this URL at all. Please
>> help me find a solution to this problem.
>>
>>
>> Thanx in advance
>>
>> --Mohan
>>
>>
>>
>>
>> -
>> 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]



BeanMapping WAS: [Poll] action mappings

2003-09-25 Thread Mainguy, Mike
I think your way is perfectly acceptable.  I like to try and use the
supplied interfaces (i.e. DynaBean) if they suit my needs and, to date,
DynaBean has served me well.  You can use BeanUtils to map DynaBeans to
POJO's and visa versa (as a matter of fact you can to it to/from  maps also
I believe).


My only gripe with using the commons-beanutils would be that I would perhaps
like to have a couple levels of DynaBean and perhaps at the simplest level
only have an interface like you describe (i.e. fewer methods in implement).

[OT] I guess I need to start using webmail, the disclaimer at the bottom of
all my messages is exposing all of struts-user to the risk of prosecution
(and me of termination).


-Original Message-
From: Sgarlata Matt [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 25, 2003 10:53 AM
To: Struts Users Mailing List
Subject: Re: [Poll] action mappings


Very cool :)

However, I am hesitant to depend even on DynaBean.  What if I want to use a
normal POJO bean?  Here's what I'm thinking of doing:

IInputForm.java:
public interface IInputForm { }

IDynaInputForm.java:
public itnerface IDynaInputForm extends IInputForm {
   public Object get(String name);
   public void set(String name, Object object);
   /* and maybe some other getters/setters like the
   ones in DynaActionForm */
}

MyDynaValidatorForm.java:
public MyDynaValidatorForm extends DynaValidatorForm implements
IDynaInputForm { }

Now my execute method becomes (* added for emphasis):
public List execute(*IInputForm* form, ISecurityInfo info)

Now I'm not depending on any APIs other than my own :)

What do you think?  BTW, I like that you have methods that test if a user is
in a role in your WebSecurityHolder class.  I have no clue how this didn't
occur to me earlier, and will be adding this to my API in the next few
minutes.

Matt
- Original Message - 
From: "Mainguy, Mike" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, September 25, 2003 10:28 AM
Subject: RE: [Poll] action mappings


> That is exactly the method signature I use (well, different names, but 
> exactly the concept).  I actually use
> +++
> Public string commandParameter = "ProjectAction"
> Public List commandFoo(DynaBean bean, WebSecurityHolder security) {
>   ..do stuff..
> return ArrayList (or whatever) with a bunch of DynaBeans
> }
> Public DynaBean commandFoo(DynaBean bean, WebSecurityHolder security) 
> {}
> +++
>
> Where Foo is the name of a request parameter. I have another class 
> that
acts
> as a broker and maps the request parameters to these command objects.
>
> The end result is for a request /servlet.do?ProjectAction=Foo My 
> BaseActionClass will automagically invoke the method Foo.  In 
> addition, the websecurityholder has a simple method to allow you to 
> query if the
user
> is in a specific role.
>
> The cool thing is that if you use DynaForms (or DynaValidatorForms) 
> you
can
> map a sql query straight into a DynaBean (or a list of) using 
> BeanUtils
and
> therefore get automagic form population without a lot of muss and 
> fuss.
>
> I agree that #3 is probably better, but it seems that #1 is pretty 
> popular and I want to make sure I'm not missing some significant 
> advantage to
doing
> it that way.
>
> -Original Message-
> From: Sgarlata Matt [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 25, 2003 10:14 AM
> To: Struts Users Mailing List
> Subject: Re: [Poll] action mappings
>
>
> OK, I think I understand #1 now.  However, I still disagree with it ;)  
> If you are using the same form bean and display components, you can 
> define a single action mapping and thus eliminate duplicate 
> configuration
information
> in the struts-config file.  I am a zealot when it comes to violations 
> of
the
> DRY (don't repeat yourself) principle, so in my opinion #3 is superior 
> to #1.  Before I get flamed on my strong stance here, let me just 
> mention
that
> I do understand #3 is unworkable if you need to use different form 
> beans
for
> some reason.
>
> I like your variant of DispatchAction, and will likely do something
similar
> myself soon.  So your Command class has a signature something like 
> below, right?
>
> public List execute(ActionForm form, ISecurityInfo info)
>
> One issue I have been grappling with over the last couple days is 
> whether your're really decoupling yourself from the Web by using an 
> ActionForm as your transfer object.  The ActionForm class seems pretty 
> tightly coupled
to
> the servlet API to me.  Sure its methods don't return or take as
parameters
> anything directly from the javax.servlet.* API, but it does return 
> references to things like the ActionServlet which clearly are 
> dependent on the servlet API.  Thoughts?
>
> Matt
> - Original Message -
> From: "Mainguy, Mike" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> Sent: Thursday, September 25, 2003 9:59 AM
> Subject: RE: [Poll] action ma

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

2003-09-25 Thread Christian Bollmeyer
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]



Re: Tiles and ControllerClass

2003-09-25 Thread khote
You can also just implement the Controller:

package gr.tera.portal.actions.poll;

public class GetPollAction implements org.apache.struts.tiles.Controller {

}

the tiles processor currently calls the "perform" method, but the docs say
that this will be deprecated in 1.2
I found this useful, for the day when execute is called instead.

public void perform(ComponentContext tileContext,
HttpServletRequest request,
HttpServletResponse response,
ServletContext servletContext)
throws ServletException, java.io.IOException  {

try {
execute(tileContext,request,response,servletContext);
} catch (Exception e) {
throw new ServletException("execute returned an exception",e);
}

}




- Original Message - 
From: "Alex Shneyderman" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, September 25, 2003 11:28 AM
Subject: RE: Tiles and ControllerClass


> Yep, you gotta extend the right class.
> Try to extend
>
>org.apache.struts.tiles.ActionController
>
> instead
>
> > -Original Message-
> > From: Jim Theodoridis [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, September 25, 2003 2:27 PM
> > To: Struts Users Mailing List
> > Subject: Tiles and ControllerClass
> >
> > Hi.
> >
> > In tiles-def.xml i have the following definition
> >
> >   > controllerClass="gr.tera.portal.actions.poll.GetPollAction">
> >
> >
> > 
> >
> > But when i run the application i am getting the following message
> >
> > javax.servlet.ServletException: Controller of class
> > 'gr.tera.portal.actions.poll.GetPollAction' should implements
> 'Controller'
> > or extends 'Action'
> >  at
> >
> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex
> tI
> > mpl.java:533)
> >  at org.apache.jsp.vboxLayout_jsp._jspService(vboxLayout_jsp.java:100)
> > ..
> >
> > The class GetPollAction extends the Action class
> >
> > I  am using Struts 1.2b
> > Tomcat 1.24
> >
> > To solve the problem  i use  the following
> >
> >
> >
> >
> >   
> > in tiles-def.xml
> >
> > and in struts-config.xml this
> >
> >   >   type="gr.tera.portal.actions.poll.GetPollAction">
> >   
> >  
> >
> > is this write? or will be a problem?
> >
> > Thanx
> >
> > Theodoridis Dimitris
>
>
> -
> 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: Tiles and ControllerClass

2003-09-25 Thread Barry Volpe
I addition if you implement Controller you will
need to declare the (interface requirement) perform method.




- Original Message - 
From: "Barry Volpe" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, September 25, 2003 11:32 AM
Subject: Re: Tiles and ControllerClass


> The problem I ran into with this is if you are using the controllerClass
you
> are required to
> implement Controller even though you are extending Action.
>
> If you are extending Action or Tiles Action and not implementing
Controller
> then
> I was required to use ControllerUrl.  This required me to add an action in
> the struts-config as you have
> already defined:
>
> I'll foward you a previous post in another email to show you what I did.
>
> Barry
>
> - Original Message - 
> From: "Jim Theodoridis" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Thursday, September 25, 2003 11:27 AM
> Subject: Tiles and ControllerClass
>
>
> Hi.
>
> In tiles-def.xml i have the following definition
>
>   controllerClass="gr.tera.portal.actions.poll.GetPollAction">
>
>
> 
>
> But when i run the application i am getting the following message
>
> javax.servlet.ServletException: Controller of class
> 'gr.tera.portal.actions.poll.GetPollAction' should implements 'Controller'
> or extends 'Action'
>  at
>
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
> l.java:533)
>  at org.apache.jsp.vboxLayout_jsp._jspService(vboxLayout_jsp.java:100)
> ..
>
> The class GetPollAction extends the Action class
>
> I  am using Struts 1.2b
> Tomcat 1.24
>
> To solve the problem  i use  the following
>
>
>
>
>   
> in tiles-def.xml
>
> and in struts-config.xml this
>
> type="gr.tera.portal.actions.poll.GetPollAction">
>   
>  
>
> is this write? or will be a problem?
>
> Thanx
>
> Theodoridis Dimitris
>
>
>
> -
> 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]



Here is an example TilesAction

2003-09-25 Thread Barry Volpe

- Original Message - 
From: "Barry Volpe" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, September 23, 2003 3:41 PM
Subject: Re: Data Source issue in tiles controller execute()


> TYPO:
>
> This:
>
> 
>
> should be (correct name of definition):
>
> 
>
>
> - Original Message - 
> From: "Barry Volpe" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Tuesday, September 23, 2003 3:31 PM
> Subject: Re: Data Source issue in tiles controller execute()
>
>
> Found a solution!
>
> Here is a simple example of HOW TO EXTEND THE TILESACTION which not only
> allows tile definitions but just as important allows using the DataSource
> functionalilty of the Struts action(the implement Controller would not
allow
> the Data Source functionalilty):
>
> public final class LoadUserCategoriesAction extends TilesAction{
> public ActionForward execute( ComponentContext tilesContext,
> ActionMapping mapping,
> ActionForm form,
> HttpServletRequest
> request,
> HttpServletResponse
> response) throws Exception
> {
>
> //This just sets up a datasource
> Statement stmt = null;
> ResultSet rs = null;
> DataSource dataSource;
> Connection conn=null;
> try {
> dataSource = getDataSource(request);
> conn = dataSource.getConnection();
> stmt = conn.createStatement();
> //Example Query
> rs = stmt.executeQuery("select * from users where email=\'"
> + userName + "'");
> if ( rs.next() ) {
> //get parameters
> rs.getString("userid");
> }
> else {
> throw new Exception("User " + userName + " not found!");
> }
> } catch (SQLException sqle) {
> getServlet().log("Connection.process", sqle);
> } finally {
> //enclose this in a finally block to make
> //sure the connection is closed
> try {
> conn.close();
> } catch (SQLException sqle) {
> getServlet().log("Connection.close", sqle);
> }
> }
>
> //Here we have only a TEST but could put the database results into the
> tilesContext
>
> tilesContext.putAttribute("TEST" , "TEST THIS!");
>
> return null;
> }
>
>
> }
>
>
> Here is what goes in the struts-config:
>
>type="com.example.LoadUserCategoriesAction">
>
>
> Here is what goes in the tiles-def:
>
>   controllerUrl ="/Test.do">
> 
>
> Here is what goes in the sampleview.jsp
>
> 
>
> 
>
>
>
> Now make the call (insert) in any desired jsp page.  This insert can be
used
> in several jsp pages and the tile view will be displayed.
>
>
> 
>
>  NOTES:
>
> I found that using controllerClass which would have been a bit easier to
use
> would not allow me to use the getDataSource(request) function even when I
> extended the Action class (required for getDataSource).  I could not pass
> the database results from the Action class to the Controller class.
>
>
> Hope this helps anyone looking to use the tilesAction with database
> connectivity!
>
> Barry
>
>
>
>
>
>
>
> - Original Message - 
> From: "Barry Volpe" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Tuesday, September 23, 2003 10:35 AM
> Subject: Data Source issue in tiles controller execute()
>
>
> > Hi,
> >
> > In the following (SEE CODE BELOW) when I attempt to inititialize
> >
> > getDataSource(request) in the Tiles Controller execute method it
> > causes a null in the fowarding JSP which looks for the string "TEST"
> > initialized by this:
> >
> >  tilesContext.putAttribute("TEST" , "TEST");
> >
> > If I remove the getDataSource(request) then the "TEST" string
> >  tilesContext.putAttribute("TEST" , "TEST");
> > displays correctly in the fowarding jsp.
> >
> > It appears that the getDataSource(request); does not work
> > in the tilesController execute but works in the action execute.
> >
> > Does anyone know why?
> >
> > In addition the problem I have is I want to query the database for data
> > and put it in the tiles controller execute so I can pass it to the
> fowarding
> > JSP.
> >
> > So I could query the database in the Action execute() and pass the data
to
> > the
> > tiles controller execute() and display in the fowarding jsp.
> >
> > I have tried declaring a:
> > static private String mystring;  outside the Action execute() and the
> tiles
> > controller execute()
> >
> > but when I try to update the string in the Action execute() the string
> > (mystring) does not show
> > the new string value in the tiles controller execute() method.
> >
> >
> > In summary either the database query is performed in the Action execute
> and
> > data fowarded in the Tiles Controller execute()
> >
> > or
> >
> > The database query is performed in the Tiles Controller execute() and
the
> > query results will already by available to be fowarded to the JSP.
> >
> >  BOTH DO NOT WORK!
> >
> >
> > HERE IS THE CODE:
> >
> > public class LoadUserCategoriesController exte

Re: Tiles and ControllerClass

2003-09-25 Thread Barry Volpe
The problem I ran into with this is if you are using the controllerClass you
are required to
implement Controller even though you are extending Action.

If you are extending Action or Tiles Action and not implementing Controller
then
I was required to use ControllerUrl.  This required me to add an action in
the struts-config as you have
already defined:

I'll foward you a previous post in another email to show you what I did.

Barry

- Original Message - 
From: "Jim Theodoridis" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, September 25, 2003 11:27 AM
Subject: Tiles and ControllerClass


Hi.

In tiles-def.xml i have the following definition

 
   
   


But when i run the application i am getting the following message

javax.servlet.ServletException: Controller of class
'gr.tera.portal.actions.poll.GetPollAction' should implements 'Controller'
or extends 'Action'
 at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:533)
 at org.apache.jsp.vboxLayout_jsp._jspService(vboxLayout_jsp.java:100)
..

The class GetPollAction extends the Action class

I  am using Struts 1.2b
Tomcat 1.24

To solve the problem  i use  the following

   
   
   
  
in tiles-def.xml

and in struts-config.xml this

 
  
 

is this write? or will be a problem?

Thanx

Theodoridis Dimitris



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



RE: Tiles and ControllerClass

2003-09-25 Thread Alex Shneyderman
Yep, you gotta extend the right class.
Try to extend 

   org.apache.struts.tiles.ActionController

instead

> -Original Message-
> From: Jim Theodoridis [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 25, 2003 2:27 PM
> To: Struts Users Mailing List
> Subject: Tiles and ControllerClass
> 
> Hi.
> 
> In tiles-def.xml i have the following definition
> 
>   controllerClass="gr.tera.portal.actions.poll.GetPollAction">
>
>
> 
> 
> But when i run the application i am getting the following message
> 
> javax.servlet.ServletException: Controller of class
> 'gr.tera.portal.actions.poll.GetPollAction' should implements
'Controller'
> or extends 'Action'
>  at
>
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex
tI
> mpl.java:533)
>  at org.apache.jsp.vboxLayout_jsp._jspService(vboxLayout_jsp.java:100)
> ..
> 
> The class GetPollAction extends the Action class
> 
> I  am using Struts 1.2b
> Tomcat 1.24
> 
> To solve the problem  i use  the following
> 
>
>
>
>   
> in tiles-def.xml
> 
> and in struts-config.xml this
> 
> type="gr.tera.portal.actions.poll.GetPollAction">
>   
>  
> 
> is this write? or will be a problem?
> 
> Thanx
> 
> Theodoridis Dimitris


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



Tiles and ControllerClass

2003-09-25 Thread Jim Theodoridis
Hi.

In tiles-def.xml i have the following definition

 
   
   


But when i run the application i am getting the following message

javax.servlet.ServletException: Controller of class 
'gr.tera.portal.actions.poll.GetPollAction' should implements 'Controller' or extends 
'Action'
 at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:533)
 at org.apache.jsp.vboxLayout_jsp._jspService(vboxLayout_jsp.java:100)
..

The class GetPollAction extends the Action class 

I  am using Struts 1.2b
Tomcat 1.24

To solve the problem  i use  the following

   
   
   
  
in tiles-def.xml

and in struts-config.xml this

 
  
 

is this write? or will be a problem?

Thanx

Theodoridis Dimitris


Re: How to expose DynaValidator in Action?

2003-09-25 Thread Barry Volpe
thanks!

- Original Message - 
From: "Alex Shneyderman" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, September 25, 2003 11:12 AM
Subject: RE: How to expose DynaValidator in Action?


> One of the parameters to the execute in your action
> Is ActionForm form
> 
> 
> So 
> 
>String submittedEmail = (String) ((DynaActionForm) form).get
> ("email");
> 
> Should do it for you.
> 
> > -Original Message-
> > From: Barry Volpe [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, September 25, 2003 2:08 PM
> > To: Struts Users Mailing List
> > Subject: How to expose DynaValidator in Action?
> > 
> > For an action form I use:
> > 
> > MyForm eForm = (MyForm)form;
> > 
> > eForm.getEmail()
> > 
> > 
> > In my DynaValidatorForm:
> > 
> >  >  type="org.apache.struts.validator.DynaValidatorForm" >
> >  > name="email"
> > type="java.lang.String"
> > initial="No"/>
> > 
> >How do I expose the email property in my Action here
> > 
> > 
> > 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 


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



Re: How to expose DynaValidator in Action?

2003-09-25 Thread Barry Volpe
great thanks

- Original Message - 
From: "Fenderbosch, Eric" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, September 25, 2003 11:11 AM
Subject: RE: How to expose DynaValidator in Action?


Just did this earlier today for the first time.

DynaValidatorForm dynaForm = (DynaValidatorForm) form;
String email = (String) dynaForm.get("email");

-Original Message-
From: Barry Volpe [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 14:08
To: Struts Users Mailing List
Subject: How to expose DynaValidator in Action?


For an action form I use:

MyForm eForm = (MyForm)form;

eForm.getEmail()


In my DynaValidatorForm:


 

   How do I expose the email property in my Action here


 

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






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



RE: How to expose DynaValidator in Action?

2003-09-25 Thread Alex Shneyderman
One of the parameters to the execute in your action
Is ActionForm form


So 

   String submittedEmail = (String) ((DynaActionForm) form).get
("email");

Should do it for you.

> -Original Message-
> From: Barry Volpe [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 25, 2003 2:08 PM
> To: Struts Users Mailing List
> Subject: How to expose DynaValidator in Action?
> 
> For an action form I use:
> 
> MyForm eForm = (MyForm)form;
> 
> eForm.getEmail()
> 
> 
> In my DynaValidatorForm:
> 
>   type="org.apache.struts.validator.DynaValidatorForm" >
>  name="email"
> type="java.lang.String"
> initial="No"/>
> 
>How do I expose the email property in my Action here
> 
> 
> 


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



RE: How to expose DynaValidator in Action?

2003-09-25 Thread Fenderbosch, Eric
Just did this earlier today for the first time.

DynaValidatorForm dynaForm = (DynaValidatorForm) form;
String email = (String) dynaForm.get("email");

-Original Message-
From: Barry Volpe [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 14:08
To: Struts Users Mailing List
Subject: How to expose DynaValidator in Action?


For an action form I use:

MyForm eForm = (MyForm)form;

eForm.getEmail()


In my DynaValidatorForm:


 

   How do I expose the email property in my Action here


 

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



How to expose DynaValidator in Action?

2003-09-25 Thread Barry Volpe
For an action form I use:

MyForm eForm = (MyForm)form;

eForm.getEmail()


In my DynaValidatorForm:


 

   How do I expose the email property in my Action here


 

Re: Input form field values...

2003-09-25 Thread Joseph William
I did figure that out Adam. Thanks much! 
 
But, in the browser, when I hit the back button and then the refresh button, the 
values remain in the appropriate elements... this is fine. But, when I hit the enter 
key in the location bar, should not the page reload and the values cleared??? This 
does not happen here??? why??? Please let me know...
 
-Joseph
 


Adam Hardy <[EMAIL PROTECTED]> wrote:
Hi Joseph,
if you leave the name attribute out, then the tag will 
automatically name the form after the name you specify in the action 
mapping. You must specify the form (in the mapping) and the form fields 
with etc if you want the values submitted to reappear in the 
fields again.

It can be confusing. Have you checked out the examples that come with 
struts? I'm sure one of those demonstrates this functionality.

HTH
Adam

On 09/25/2003 06:41 PM Joseph William wrote:
> This is with regards to my question about retaining the form field values when the 
> error messages shouw up thru the Action errors... Just now, I figured out it was coz 
> of the In this tag, I had added the name and type attribute too -- This is coz I 
> wanna do the client side javascripting too for which I need the form name... 
> 
> When I remove the name and type attribute(which is mandatory if we specify the 
> name!) from the form tag, I am able to retain the form element values in the error 
> messages page!!! Why is this so??? How to solve this???
> 
> Can anybody out there explain???
> 
> -Joseph
> 
> Hi,
> 
> Im trying to develop a small application using struts. Everything works 
> fine except the Action Errors part -- When the error messages show up, 
> the form element values from the previous screen are not being 
> retrieved in the next screen -- Am I missing something??? Help appreciated...
> 
> Thanks.
> -Joseph
> 
> 
> 
> -
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search

-- 
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9


-
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: Input form field values...

2003-09-25 Thread Robert Leland
Take a look at the nightly struts validator example.

The pattern is:
  
 

 
   
  
   
The key is always going through the edit action which loads the 
combo boxes etc...
When an error happens since the input is
   /editJsType.do?typeForm.reset=false
This action is called with a parameter telling the form to ignore an 
attempt to reset it's
current values.
Also notice how every thing is stored in the request, otherwise putting 
items in the session ,
any real application with 100's or 1000's of users you'll needlessly use 
up all of your memory resources,
not to mention run slow.

Again get a nightly build and look at the example.

-Rob

Joseph William wrote:

This is with regards to my question about retaining the form field values when the error messages shouw up thru the Action errors... Just now, I figured out it was coz of the  In this tag, I had added the name and type attribute too -- This is coz I wanna do the client side javascripting too for which I need the form name... 

When I remove the name and type attribute(which is mandatory if we specify the name!) from the form tag, I am able to retain the form element values in the error messages page!!! Why is this so??? How to solve this???

Can anybody out there explain???

-Joseph

Hi,

Im trying to develop a small application using struts. Everything works 
fine except the Action Errors part -- When the error messages show up, 
the form element values from the previous screen are not being 
retrieved in the next screen -- Am I missing something??? Help appreciated...

Thanks.
-Joseph


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



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


Re: Input form field values...

2003-09-25 Thread Adam Hardy
Hi Joseph,
if you leave the name attribute out, then the  tag will 
automatically name the form after the name you specify in the action 
mapping. You must specify the form (in the mapping) and the form fields 
with  etc if you want the values submitted to reappear in the 
fields again.

It can be confusing. Have you checked out the examples that come with 
struts? I'm sure one of those demonstrates this functionality.

HTH
Adam
On 09/25/2003 06:41 PM Joseph William wrote:
This is with regards to my question about retaining the form field values when the error messages shouw up thru the Action errors... Just now, I figured out it was coz of the  In this tag, I had added the name and type attribute too -- This is coz I wanna do the client side javascripting too for which I need the form name... 
 
When I remove the name and type attribute(which is mandatory if we specify the name!) from the form tag, I am able to retain the form element values in the error messages page!!! Why is this so??? How to solve this???
 
Can anybody out there explain???
 
-Joseph
 
Hi,
 
Im trying to develop a small application using struts. Everything works 
fine except the Action Errors part -- When the error messages show up, 
the form element values from the previous screen are not being 
retrieved in the next screen -- Am I missing something??? Help appreciated...
 
Thanks.
-Joseph



-
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
--
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: How to remove DynaForm from session the struts way?

2003-09-25 Thread Timo Neumann
Chen, Gin wrote:

I use session.removeAttribute
That's what I do now. To be exact I user
session.removeAttribute(dvForm.getDynaClass().getName());
That makes it more robust than hard coding the DynaForm's name.

Timo

-Tim

-Original Message-
From: Timo Neumann [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 25, 2003 4:07 AM
To: Struts Users Mailing List
Subject: How to remove DynaForm from session the struts way?

Hi guys!

How would I remove a DynaValidatorForm from the session after I do not 
need it anymore? Is there a struts specific way or should I simply use 
session.removeAttribute(...)? Or would you recommend simply calling 
form.initialize()?


--
F&F 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: Urgent: Changing URLs for existing struts project

2003-09-25 Thread Craig R. McClanahan
[EMAIL PROTECTED] wrote:

Hi All
I am currently running tomcat4.1.27 and apache1.3.x. I am using struts. I
used call my webapplication "xyz" using www.abc.org/xyz. Now company has
decided that pople should be able to access this webapplication through
the URL
www.abc/javapps/xyz. Do i need to change the whole architecture now or
should i be able to do it easily. I have tried to create a directory under
/var/tomcat4/webapps/ as japps/xyz and pointed my ".war" file to this
directory. But tomcat is not able to map this URL at all. Please help me
find a solution to this problem.
 

As Matt pointed out, this is really a Tomcat question, but it's actually 
pretty (assuming you don't want it accessible under the old name any 
longer).  Just set up a  element that includes 
path="/javapps/xyz" instead of path="/xyz".  For more info, see the 
config documentation in Tomcat:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/index.html

Thanx in advance

--Mohan

Craig





-
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]


Input form field values...

2003-09-25 Thread Joseph William
This is with regards to my question about retaining the form field values when the 
error messages shouw up thru the Action errors... Just now, I figured out it was coz 
of the  In this tag, I had added the name and type attribute too -- This 
is coz I wanna do the client side javascripting too for which I need the form name... 
 
When I remove the name and type attribute(which is mandatory if we specify the name!) 
from the form tag, I am able to retain the form element values in the error messages 
page!!! Why is this so??? How to solve this???
 
Can anybody out there explain???
 
-Joseph
 
Hi,
 
Im trying to develop a small application using struts. Everything works 
fine except the Action Errors part -- When the error messages show up, 
the form element values from the previous screen are not being 
retrieved in the next screen -- Am I missing something??? Help appreciated...
 
Thanks.
-Joseph



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

Re: Urgent: Changing URLs for existing struts project

2003-09-25 Thread James Mitchell
If you have developed your application in "struts friendly" way, this should
be as easy as changing

  
action
*.do
  

to

  
action
/javapps/*.do
  



 or (for path mapping)

  
action
/myapp/*
  

  
action
/javapps/myapp/*
  


...in the web.xml


I just tested this on the project I am currently working on and it works
fine.  My login page now posts to "/javapps/harland/security" whereas it
used to be "/harland/security".  I can also change it back and forth from
extension mapping to path mapping by simply modifying the  to
any of the above values.

Best I can tell you is to make the change (as noted above) and run your test
suite.  You did build a test suite right?



--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
770.822.3359
AIM:jmitchtx



- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 25, 2003 11:30 AM
Subject: Urgent: Changing URLs for existing struts project


> Hi All
> I am currently running tomcat4.1.27 and apache1.3.x. I am using struts. I
> used call my webapplication "xyz" using www.abc.org/xyz. Now company has
> decided that pople should be able to access this webapplication through
> the URL
>
> www.abc/javapps/xyz. Do i need to change the whole architecture now or
> should i be able to do it easily. I have tried to create a directory under
> /var/tomcat4/webapps/ as japps/xyz and pointed my ".war" file to this
> directory. But tomcat is not able to map this URL at all. Please help me
> find a solution to this problem.
>
>
> Thanx in advance
>
> --Mohan
>
>
>
>
> -
> 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: Changing URLs for existing struts project

2003-09-25 Thread Matt Raible
Your best bet is to ask this question on the tomcat user list since it's
really a tomcat issue.  My suggestion would be to put apache in front of
Tomcat and create a mapping for the jk to map javapps/* to tomcat.  OT:
javapps makes no sense, I'd use /javaapps or /java or /apps.  And when are
longer URLs better? ;-)

Matt

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 9:31 AM
To: [EMAIL PROTECTED]
Subject: Urgent: Changing URLs for existing struts project


Hi All
I am currently running tomcat4.1.27 and apache1.3.x. I am using struts. I
used call my webapplication "xyz" using www.abc.org/xyz. Now company has
decided that pople should be able to access this webapplication through
the URL

www.abc/javapps/xyz. Do i need to change the whole architecture now or
should i be able to do it easily. I have tried to create a directory under
/var/tomcat4/webapps/ as japps/xyz and pointed my ".war" file to this
directory. But tomcat is not able to map this URL at all. Please help me
find a solution to this problem.


Thanx in advance

--Mohan




-
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] Application Config Mgmt

2003-09-25 Thread Craig R. McClanahan
Kevin Tung wrote:

How does everyone manage different deployment configurations?

Let's say your webapp needs to run in various environments.. for example
dev, staging and production.  Each environment has its own database
connection info and third party SOAP endpoints.. etc.
What is a good way to automate (at least partly) the management of these
configurations so that..
* The process of promoting code from dev to staging/production will trigger
a correct change of configuration info.
* The configuration info can be stored in a code repository for history
logging and accountability.
I've been doing this mostly manually, but there has to be a better way..  I
would love to hear about your approaches.
Kevin
 

One thing you should strive to do is minimize the configuration 
differences between the environments.  A very helpful approach is to use 
JNDI resources to encapsulate the things that are different (such as 
what database your connection pool should connect to).  This allows the 
application itself to be deployed with no changes inside the WAR -- you 
just need to set things up to configure the resources themselves for 
each of the different server environments.  In a similar way, you could 
use things like  Strings to configure the URLs of your SOAP 
endpoints via JNDI, and gain the same benefits.

The mechanisms for actually configuring the JNDI resources visible to a 
webapp vary by app server -- here's the instructions for Tomcat to give 
you a sense of what's possible:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources-howto.html
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html
In Tomcat, you can also configure the resources behind these references 
in the admin webapp.

Craig



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


Re: Know of any good Calendar Tag Libraries? (Sorry, that was Aug 21)

2003-09-25 Thread Jim Theodoridis
Hello

I think http://www.servletsuite.com/servlets.htm
it's a very good library

Jim Theodoridis


- Original Message -
From: "Kruse, Matt" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, September 25, 2003 6:36 PM
Subject: RE: Know of any good Calendar Tag Libraries? (Sorry, that was Aug
21)


> > I'm aware of Matt's Library (and I love it), but I don't want
> > a pop-up, I want an in-page calendar.
>
> BTW, I'm going to be adding an 'inline' option to the javascript library,
> which will then find its way into the taglib also.
> Unfortunately, I've not had much time to work on it lately, so the taglib
> hasn't been updated yet.
> The other options out there seem pretty good, though.
>
> Matt
>
>



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



Re: Quartz plugin shutdown problem

2003-09-25 Thread Joe Germuska
The JVM can only quit when all non-daemon threads have finished.

I don't believe the plugin itself starts any threads; it's probably a 
problem internal to Quartz -- I don't know if you can tell it that it 
should treat your scheduled tasks as daemon threads or not.

I'm not actually so familiar with the Quartz details, so I'm copying 
Patrick, my colleague who actually developed the Quartz XML builder 
and the Quartz plugin...

Joe

At 11:01 AM -0500 9/25/03, Tom Howe wrote:
Hi,
I'm having a problem with (I think) plugins that open a new thread, such
as the Quartz plugin.  It starts up fine and appears to work alright,
but when I try to shut down, the server appears to hang on that
particular thread so that the process continues.  I tried to do this on
a completely fresh tomcat/struts install with no forms, actions, etc.
and still had no luck.  I'm using Tomcat 4.1.27, Struts 1.1 on both
windows xp and solaris 9.  Is there some kind of special configuration
that I need to do when using threads in a plugin to get it to shutdown
correctly.  Here is my struts-config.xml:


Struts Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>

   


   


   


   


   


   


   


   



value="/WEB-INF/quartz-config.xml" />



Thanks in advance,
Tom
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
 "We want beef in dessert if we can get it there."
  -- Betty Hogan, Director of New Product Development, National 
Cattlemen's Beef Association

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


Input form field values...

2003-09-25 Thread Joseph William
Hi,
 
Im trying to develop a small application using struts. Everything works fine except 
the Action Errors part -- When the error messages show up, the form element values 
from the previous screen are not being retrieved in the next screen -- Am I missing 
something??? Help appreciated...
 
Thanks.
-Joseph


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

SSLExt and useMap?

2003-09-25 Thread Mick Knutson
I have an HTML image map that needs to use the SSLExt links:


  
  
  
  
  


How do I do this with SSLExt as I can't find any examples for this issue.
Thanks in advance for your help.

---
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: How to remove DynaForm from session the struts way?

2003-09-25 Thread Chen, Gin
I use session.removeAttribute
-Tim

-Original Message-
From: Timo Neumann [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 25, 2003 4:07 AM
To: Struts Users Mailing List
Subject: How to remove DynaForm from session the struts way?


Hi guys!

How would I remove a DynaValidatorForm from the session after I do not 
need it anymore? Is there a struts specific way or should I simply use 
session.removeAttribute(...)? Or would you recommend simply calling 
form.initialize()?

Any help would be apreciated.

Timo
-- 
F&F 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]



Quartz plugin shutdown problem

2003-09-25 Thread Tom Howe
Hi,
I'm having a problem with (I think) plugins that open a new thread, such
as the Quartz plugin.  It starts up fine and appears to work alright,
but when I try to shut down, the server appears to hang on that
particular thread so that the process continues.  I tried to do this on
a completely fresh tomcat/struts install with no forms, actions, etc.
and still had no luck.  I'm using Tomcat 4.1.27, Struts 1.1 on both
windows xp and solaris 9.  Is there some kind of special configuration
that I need to do when using threads in a plugin to get it to shutdown
correctly.  Here is my struts-config.xml:


http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>





























Thanks in advance,
Tom


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



Re: [OT] Application Config Mgmt

2003-09-25 Thread Troy Hart
Ant is the key to solving this problem. Unfortunately I don't have the 
gift of being able to elegantly summarize the solution for you, but I 
will tell you that I rely on Ant to solve this problem for me, and it 
works! The key is to have multiple property file sets, and work out a 
way to specify which set is sourced at build time. Then, let the 
properties do the work for you. Hopefully this will make sense and be 
helpful.

Troy

Kevin Tung wrote:

How does everyone manage different deployment configurations?

Let's say your webapp needs to run in various environments.. for example
dev, staging and production.  Each environment has its own database
connection info and third party SOAP endpoints.. etc.
What is a good way to automate (at least partly) the management of these
configurations so that..
* The process of promoting code from dev to staging/production will trigger
a correct change of configuration info.
* The configuration info can be stored in a code repository for history
logging and accountability.
I've been doing this mostly manually, but there has to be a better way..  I
would love to hear about your approaches.
Kevin

-
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: Know of any good Calendar Tag Libraries? (Sorry, that was Aug 21)

2003-09-25 Thread Kruse, Matt
> I'm aware of Matt's Library (and I love it), but I don't want 
> a pop-up, I want an in-page calendar.

BTW, I'm going to be adding an 'inline' option to the javascript library,
which will then find its way into the taglib also.
Unfortunately, I've not had much time to work on it lately, so the taglib
hasn't been updated yet.
The other options out there seem pretty good, though.

Matt



RE: [OT] RE: Know of any good Calendar Tag Libraries? (Sorry, tha t was Aug 21)

2003-09-25 Thread Chen, Gin
You can easily replicate the same calendar via a taglib or straight
dhtml/javascript.
We have a very similar calendar that we use for most of our projects.
It wont take that long either if that's all the functionality you need.
-Tim

-Original Message-
From: David G Friedman [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 25, 2003 11:36 AM
To: Struts Users Mailing List
Subject: RE: [OT] RE: Know of any good Calendar Tag Libraries? (Sorry, that
was Aug 21)


It's a shockwave calendar... Is it:

a) free?
b) how would you customize it to post
to the location of your choice?

Regards,
David

-Original Message-
From: James Childers [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 11:30 AM
To: Struts Users Mailing List
Subject: [OT] RE: Know of any good Calendar Tag Libraries? (Sorry, that
was Aug 21)


I came across one of the sexiest calendar's I've ever seen here:

http://secure.basshall.com/basshall/events.jsp

It's Flash, but it's small, fast, and responsive. Love to get my hands on
the source for that baby. The only thing it seems to be lacking is having
the date highlighted when that date has an associated event. Other than that
it's tight.

-= J

> -Original Message-
> From: David G Friedman [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 25, 2003 10:26 AM
> To: Struts Users Mailing List
> Subject: RE: Know of any good Calendar Tag Libraries? (Sorry, that was
> Aug 21)
>
>
> This calendar seems to perform like the one I remember
> reading about (but can't find), but it looks a little
> different than I remember.  It's not taglib, but all
> Javascript and CSS/DHTML.
>
> http://dynarch.com/mishoo/calendar.epl
>
> Regards,
> David
>
> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] Behalf Of Navneet Karnani
> Sent: Thursday, September 25, 2003 3:58 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Know of any good Calendar Tag Libraries? (Sorry, that was
> Aug 21)
>
>
> So, did you find it ? If yes, let me know too. I was looking out for
> something similar.
>
> - Navneet
>
> Matt Raible said the following on 25/09/2003 4:15 AM:
>
> > I'm aware of Matt's Library (and I love it), but I don't
> want a pop-up, I
> > want an in-page calendar.
> >
> > Matt
> >
> > -Original Message-
> > From: David G Friedman [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, September 24, 2003 4:37 PM
> > To: Struts Users Mailing List
> > Subject: RE: Know of any good Calendar Tag Libraries?
> (Sorry, that was
> > Aug 21)
> >
> >
> > What about Matt Kruse's (very) beta taglib mentioned August 21st?
> > http://www.mattkruse.com/javascript/javascripttoolbox.zip
> >
> > I wonder if it's any further along.
> >
> > -David
> >
> > -Original Message-
> > From: Matt Raible [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, September 24, 2003 6:23 PM
> > To: '[EMAIL PROTECTED]'
> > Subject: Know of any good Calendar Tag Libraries?
> >
> >
> > Anyone know of a good Calendar Tag Library - that renders
> calendars like
> the
> > ones you see on blogs (not a pop-up)? I found this one
> > (http://tinyurl.com/ok95) from Coldbeans, but it's $50 -
> whereas free is
> > always better. We just need it to render a calendar on a
> page and gray out
> > certain days (with CSS) to say that day is not available.
> >
> > Thanks,
> >
> > Matt
> >
> >
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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


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

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



RE: [OT] RE: Know of any good Calendar Tag Libraries? (Sorry, that was Aug 21)

2003-09-25 Thread David G Friedman
It's a shockwave calendar... Is it:

a) free?
b) how would you customize it to post
to the location of your choice?

Regards,
David

-Original Message-
From: James Childers [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 11:30 AM
To: Struts Users Mailing List
Subject: [OT] RE: Know of any good Calendar Tag Libraries? (Sorry, that
was Aug 21)


I came across one of the sexiest calendar's I've ever seen here:

http://secure.basshall.com/basshall/events.jsp

It's Flash, but it's small, fast, and responsive. Love to get my hands on
the source for that baby. The only thing it seems to be lacking is having
the date highlighted when that date has an associated event. Other than that
it's tight.

-= J

> -Original Message-
> From: David G Friedman [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 25, 2003 10:26 AM
> To: Struts Users Mailing List
> Subject: RE: Know of any good Calendar Tag Libraries? (Sorry, that was
> Aug 21)
>
>
> This calendar seems to perform like the one I remember
> reading about (but can't find), but it looks a little
> different than I remember.  It's not taglib, but all
> Javascript and CSS/DHTML.
>
> http://dynarch.com/mishoo/calendar.epl
>
> Regards,
> David
>
> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] Behalf Of Navneet Karnani
> Sent: Thursday, September 25, 2003 3:58 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Know of any good Calendar Tag Libraries? (Sorry, that was
> Aug 21)
>
>
> So, did you find it ? If yes, let me know too. I was looking out for
> something similar.
>
> - Navneet
>
> Matt Raible said the following on 25/09/2003 4:15 AM:
>
> > I'm aware of Matt's Library (and I love it), but I don't
> want a pop-up, I
> > want an in-page calendar.
> >
> > Matt
> >
> > -Original Message-
> > From: David G Friedman [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, September 24, 2003 4:37 PM
> > To: Struts Users Mailing List
> > Subject: RE: Know of any good Calendar Tag Libraries?
> (Sorry, that was
> > Aug 21)
> >
> >
> > What about Matt Kruse's (very) beta taglib mentioned August 21st?
> > http://www.mattkruse.com/javascript/javascripttoolbox.zip
> >
> > I wonder if it's any further along.
> >
> > -David
> >
> > -Original Message-
> > From: Matt Raible [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, September 24, 2003 6:23 PM
> > To: '[EMAIL PROTECTED]'
> > Subject: Know of any good Calendar Tag Libraries?
> >
> >
> > Anyone know of a good Calendar Tag Library - that renders
> calendars like
> the
> > ones you see on blogs (not a pop-up)? I found this one
> > (http://tinyurl.com/ok95) from Coldbeans, but it's $50 -
> whereas free is
> > always better. We just need it to render a calendar on a
> page and gray out
> > certain days (with CSS) to say that day is not available.
> >
> > Thanks,
> >
> > Matt
> >
> >
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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


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



RE: Setting the page title from a tile

2003-09-25 Thread Matt Raible
I'm already doing this in most of my definitions:



<%-- Push tiles attributes in page context --%>


  

But if you read my message closely - you'd see that I don't have a
definition, and I don't have an action defined for these velocity template
pages.  

In fact, my app really knows nothing about them - the URL indicates that a
template should be rendered.  The *only* thing in my app that knows these
templates exists is the URL - which will eventually be configured in the
menu for the app.

To include a static template in a tile, I'm doing:


  
  


Where the second one is a static template (there's a ForwardAction for
/static) and it takes a parameter of "/WEB-INF/pages/static.jsp" where
static.jsp only has:

<%@ include file="/common/taglibs.jsp"%>

"/>


Thanks,

Matt


-Original Message-
From: Holman, Cal [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 8:40 AM
To: Struts Users Mailing List
Subject: RE: Setting the page title from a tile


I do something a little different to pull the title out of
application.properties

  
  
  
  

  
  
  
  

in template




Additionally to pass the tile name for menus to use I define a bean in the
definition name to the request



Cal 

http://www.calandva.com/Last update 08/01/03



-Original Message-
From: Srinivas Gunturu [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 09:56
To: [EMAIL PROTECTED]
Subject: Re: Setting the page title from a tile

Matt,

We have solved this in our application by defining our tile as follows


 







In Template.jsp, you can access title using 



Hope this helps.

>>> [EMAIL PROTECTED] 09/25/03 08:51AM >>>
I have an interesting problem that I can't figure out how to solve.

We are using Tiles, as well as a custom tag library that renders
content from Velocity Templates.  These templates have HTML content in
them, but they're mostly text - and this is our CMS (for now).  The
problem is is that we've developed our app in a way only our menu needs
to know about the templates.  So /appName/static/template will show the
template page (wrapped in Tiles).  The problem is, by the time I load
the Tile, with the template, the page's title has already been set. 
Sure I could use JavaScript and set document.title in the Velocity
template, but that does no good for search engine optimization. 
Another solution I thought of is to put the title into the URL in my
menus, i.e.
/appName/static/homeownerServices?title=Homeowner%20Services - but
that's just plain ol' ugly to send as a URL (via e-mail and such).

Two other solutions I can think of:

1.  Create a action-mapping and tile for each template (i.e.
/appName/homeownerServices), and define the title in there.

2.  Parse the template name and convert it to readable titles.  This
would require that I name all my templates so they have an appropriate
title, but it just might work.  In this example, /homeownerServices
gets translated to Homeowner Services as a title.

I guess I'll go with #2 (see how simply posting these messages actually
helps to solve things!), but I wanted to see if anyone else had any
good suggestions/practices.

Thanks,

Matt


-
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]

  
Learn more about Paymentech's payment processing services at
www.paymentech.com
THIS MESSAGE IS CONFIDENTIAL.  This e-mail message and any attachments are
proprietary and confidential information intended only for the use of the
recipient(s) named above.  If you are not the intended recipient, you may
not print, distribute, or copy this message or any attachments.  If you have
received this communication in error, please notify the sender by return
e-mail and delete this message and any attachments from your computer.

-
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: Changing URLs for existing struts project

2003-09-25 Thread mohan
Hi All
I am currently running tomcat4.1.27 and apache1.3.x. I am using struts. I
used call my webapplication "xyz" using www.abc.org/xyz. Now company has
decided that pople should be able to access this webapplication through
the URL

www.abc/javapps/xyz. Do i need to change the whole architecture now or
should i be able to do it easily. I have tried to create a directory under
/var/tomcat4/webapps/ as japps/xyz and pointed my ".war" file to this
directory. But tomcat is not able to map this URL at all. Please help me
find a solution to this problem.


Thanx in advance

--Mohan




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



[OT] RE: Know of any good Calendar Tag Libraries? (Sorry, that was Aug 21)

2003-09-25 Thread James Childers
I came across one of the sexiest calendar's I've ever seen here:

http://secure.basshall.com/basshall/events.jsp

It's Flash, but it's small, fast, and responsive. Love to get my hands on the source 
for that baby. The only thing it seems to be lacking is having the date highlighted 
when that date has an associated event. Other than that it's tight.

-= J

> -Original Message-
> From: David G Friedman [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 25, 2003 10:26 AM
> To: Struts Users Mailing List
> Subject: RE: Know of any good Calendar Tag Libraries? (Sorry, that was
> Aug 21)
> 
> 
> This calendar seems to perform like the one I remember
> reading about (but can't find), but it looks a little
> different than I remember.  It's not taglib, but all
> Javascript and CSS/DHTML.
> 
> http://dynarch.com/mishoo/calendar.epl
> 
> Regards,
> David
> 
> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] Behalf Of Navneet Karnani
> Sent: Thursday, September 25, 2003 3:58 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Know of any good Calendar Tag Libraries? (Sorry, that was
> Aug 21)
> 
> 
> So, did you find it ? If yes, let me know too. I was looking out for
> something similar.
> 
> - Navneet
> 
> Matt Raible said the following on 25/09/2003 4:15 AM:
> 
> > I'm aware of Matt's Library (and I love it), but I don't 
> want a pop-up, I
> > want an in-page calendar.
> >
> > Matt
> >
> > -Original Message-
> > From: David G Friedman [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, September 24, 2003 4:37 PM
> > To: Struts Users Mailing List
> > Subject: RE: Know of any good Calendar Tag Libraries? 
> (Sorry, that was
> > Aug 21)
> >
> >
> > What about Matt Kruse's (very) beta taglib mentioned August 21st?
> > http://www.mattkruse.com/javascript/javascripttoolbox.zip
> >
> > I wonder if it's any further along.
> >
> > -David
> >
> > -Original Message-
> > From: Matt Raible [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, September 24, 2003 6:23 PM
> > To: '[EMAIL PROTECTED]'
> > Subject: Know of any good Calendar Tag Libraries?
> >
> >
> > Anyone know of a good Calendar Tag Library - that renders 
> calendars like
> the
> > ones you see on blogs (not a pop-up)? I found this one
> > (http://tinyurl.com/ok95) from Coldbeans, but it's $50 - 
> whereas free is
> > always better. We just need it to render a calendar on a 
> page and gray out
> > certain days (with CSS) to say that day is not available.
> >
> > Thanks,
> >
> > Matt
> >
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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



Re: [Poll] action mappings

2003-09-25 Thread Adam Hardy
Well to a certain extent yes I 'build the system around each atomic 
transaction the system is designed to support' but the atomic 
transactions aren't necessarily remotely atomic.

Plus they are generally use-case based from the original UML design, 
assuming it was big enough to warrant one, and I have several points 
where I need transactions. I've got one page with a list of nested beans 
where the user can edit the parent bean and copy, move or delete the 
child beans all on the same submit.

So I looked at the forest first, and then once I'd finished looking at 
it, I concentrated on the trees!

On 09/25/2003 04:50 PM Mainguy, Mike wrote:
Right, that's the way I look at it too. I guess you could call it a model or
data centric perspective of the system.   To me personally, any business
system is centered around a logical data model.  I tend to build (grow)
everything from the model out to the view.  

It seems like the perspective you are talking about is to build the system
around each atomic transaction that the system is designed to support.  This
is, to me, also a very valid way of looking at it, but, it seems like you
would end up seeing a whole bunch of trees instead of the entire forest (if
you get my drift).  

I like to be able to start out with a BIG picture and break it down into
smaller pictures until I get the level that I'm comfortable with.  It sounds
like you are more comfortable with a higher level of  (finer grained) detail
in your implementation than I am.  

-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 25, 2003 10:44 AM
To: Struts Users Mailing List
Subject: Re: [Poll] action mappings

I just find it naturally easier to grasp what is going on with one 
Action and one form bean for each object in my model (and normally one 
factory or 'business delegate') plus a host of mappings.

On 09/25/2003 03:59 PM Mainguy, Mike wrote:

You don't have to create a different ActionClass for every Operation 
with the same display/FormBean...  I.E.  If you use the same formbean 
and display component, you don't want to also always create another 
ActionClass...

Similar to dispatchaction except you use the pathmapping instead of 
the request parameters.

I actually wrote a variant of dispatchAction that, instead of calling 
a specific execute method on my ActionClass, it maps the request to 
another Command style class that performs an operation with only the 
FormBean and a security context as the input, and a List or DynaBean 
as the output.  This let me completely decouple my data access layer 
from any web stuff and use request parameters to determine which 
business operation I was performing.

-Original Message-
From: Sgarlata Matt [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 9:54 AM
To: Struts Users Mailing List
Subject: Re: [Poll] action mappings
I think for #3 it would be silly not to use a DispatchAction or 
LookupDispatchAction, right?  It seems like you would also want 
DispatchAction or LookupDispatchAction for #1, but I really don't 
understand why people are using #1 at all.  Is there some reason 
multiple action mappings are needed for the same Action?

Matt
- Original Message -
From: "Mainguy, Mike" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, September 25, 2003 9:47 AM
Subject: RE: [Poll] action mappings



So far the results are as follows:

#1 5
#2 1
#3 2
#4 0
I added myself to both 1 and 3 as I've done a project both ways...
Now I wonder, how does everyone determine which operation you are 
doing?  As a parameter in the action mapping?  A big case-style (if 
else) statement?

-Original Message-
From: Mainguy, Mike [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 11:06 AM
To: [EMAIL PROTECTED]
Subject: [Poll] action mappings
I have yet another opinion poll for struts-user...

What are folks currently doing for action mappings in relation to CRUD
operations? Are you:
#1  creating a unique Action mapping for each atomic operation
  (potentially mapped to the same action class)
/createUser.do ->>  UserAction.java
/readUser.do   ->>  UserAction.java
/updateUser.do ->>  UserAction.java
/deleteUser.do ->>  UserAction.java
#2  creating a unique Action mapping for each atmoic operation
  with each action having a unique class
/createUser.do ->>  CreateUserAction.java
/readUser.do   ->>  ReadUserAction.java
/updateUser.do ->>  UpdateUserAction.java
/deleteUser.do ->>  DeleteUserAction.java
#3  creating an aggregate action class with a unique action mapping with
  multiple operations and using form/request variable to accomplish CUD
/editUser.do   ->> UserAction.java   (?OP=Update, ?OP=Create,
?OP=Delete)
/displayUser.do->> UserAction.java
#4  creating an aggregate action class with a unique action mapping with
  multiple operations
/editUser.do   ->> EditUserAction.java
/displayUser.do->> Displ

Re: [struts workflow extension] design question

2003-09-25 Thread Matthias Bauer
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?


 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...
   

will this work ?

 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]


RE: Know of any good Calendar Tag Libraries? (Sorry, that was Aug 21)

2003-09-25 Thread David G Friedman
This calendar seems to perform like the one I remember
reading about (but can't find), but it looks a little
different than I remember.  It's not taglib, but all
Javascript and CSS/DHTML.

http://dynarch.com/mishoo/calendar.epl

Regards,
David

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Navneet Karnani
Sent: Thursday, September 25, 2003 3:58 AM
To: [EMAIL PROTECTED]
Subject: Re: Know of any good Calendar Tag Libraries? (Sorry, that was
Aug 21)


So, did you find it ? If yes, let me know too. I was looking out for
something similar.

- Navneet

Matt Raible said the following on 25/09/2003 4:15 AM:

> I'm aware of Matt's Library (and I love it), but I don't want a pop-up, I
> want an in-page calendar.
>
> Matt
>
> -Original Message-
> From: David G Friedman [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 24, 2003 4:37 PM
> To: Struts Users Mailing List
> Subject: RE: Know of any good Calendar Tag Libraries? (Sorry, that was
> Aug 21)
>
>
> What about Matt Kruse's (very) beta taglib mentioned August 21st?
> http://www.mattkruse.com/javascript/javascripttoolbox.zip
>
> I wonder if it's any further along.
>
> -David
>
> -Original Message-
> From: Matt Raible [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 24, 2003 6:23 PM
> To: '[EMAIL PROTECTED]'
> Subject: Know of any good Calendar Tag Libraries?
>
>
> Anyone know of a good Calendar Tag Library - that renders calendars like
the
> ones you see on blogs (not a pop-up)? I found this one
> (http://tinyurl.com/ok95) from Coldbeans, but it's $50 - whereas free is
> always better. We just need it to render a calendar on a page and gray out
> certain days (with CSS) to say that day is not available.
>
> Thanks,
>
> Matt
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



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


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



Re: Validate values in collection?

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

Hi Natalie,

now I got it. Thanks a lot.

Timo

It depends on if it is indexed or not.

Here is an example that I have...

 
  
   
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.
   
  
   
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"?


   
   
   

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?


--
F&F 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: [Poll] action mappings

2003-09-25 Thread Richard J. Duncan
>> How is #3 different from #5?

No different if you implement #3 with a DispatchAction rather than rolling your own 
dispatcher in your action class's execute method (a good point raised in another 
comment in this thread).

Regards,
 
Rich


-Original Message-
From: Sgarlata Matt [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 25, 2003 10:31 AM
To: Struts Users Mailing List
Subject: Re: [Poll] action mappings

How is #3 different from #5?

Matt
- Original Message - 
From: "Richard J. Duncan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 25, 2003 10:29 AM
Subject: RE: [Poll] action mappings


What about:

#5:
A DispatchAction (struts 1.1) with a single action map entry:

/maintainUser.do?action=create ->>  MaintainUserAction.java
/maintainUser.do?action=read ->>  MaintainUserAction.java
/maintainuser.do?action=update ->>  MaintainUserAction.java
/maintainuser.do?action=delete ->>  MaintainUserAction.java


Plus associated dispatched methods to process the server side of page 
events (lookup buttons being pressed, drop down list values changing).

The DispatchAction class acts like a page controller for all events on 
the page (more like coding in a GUI application ala swing).

Regards,

Rich
___
Rich Duncan


-Original Message-
From: Susan Bradeen [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 25, 2003 8:28 AM
To: Struts Users Mailing List
Subject: RE: [Poll] action mappings

+1. We found that #2 worked best for our current application. 

On 09/25/2003 03:42:52 AM shirishchandra.sakhare wrote:

> My choce would be  #2.
> 
> We are doing a quite a big struts project here and i have seen both the 
> approaches being used here.And from my experience,I thik that apprioach 
2 is 
> definately betetr,maintainable and leads to better code.
> 
> With approach 1, there is a lot of conditional code in action which will 
decide 
> what to do(Whether to read, or update etc. depending upon the parameter 
> passed).But with approach #2, the actions are really very lean handlers 
whic do 
> just one operation and hence immensely easy to understand as well as 
reuse.If I 
> need to show user info afater some save action somewhere else in the 
> application, I can just use ReadUserAction.java again with a different 
mapping 
> if required.
> 
> Regards,
> Shirish
> 
> -Original Message-
> From: Timo Neumann [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 25, 2003 9:37 AM
> To: Struts Users Mailing List
> Subject: Re: [Poll] action mappings
> 
> 
> Mainguy, Mike wrote:
> 
> I started with #1 but then switched to #2.
> As this is my first big struts project I might be wrong but I had the
> impression that #2 would be preferrable because with #1 I would have to
> repeat the action mapping as a string in my action classes.
> I saw that most of the respondents went with #1 so I wonder why they
> prefer it?
> 
> cheers,
> 
> Timo
> 
> > What are folks currently doing for action mappings in relation to CRUD
> > operations?
> > Are you:
> >
> > #1  creating a unique Action mapping for each atomic operation
> > (potentially mapped to the same action class)
> > /createUser.do ->>  UserAction.java
> > /readUser.do   ->>  UserAction.java
> > /updateUser.do ->>  UserAction.java
> > /deleteUser.do ->>  UserAction.java
> >
> >
> > #2  creating a unique Action mapping for each atmoic operation
> > with each action having a unique class
> > /createUser.do ->>  CreateUserAction.java
> > /readUser.do   ->>  ReadUserAction.java
> > /updateUser.do ->>  UpdateUserAction.java
> > /deleteUser.do ->>  DeleteUserAction.java
> >
> > #3  creating an aggregate action class with a unique action mapping 
with
> > multiple operations and using form/request variable to accomplish 
CUD
> > /editUser.do   ->> UserAction.java   (?OP=Update, ?OP=Create,
> > ?OP=Delete)
> > /displayUser.do->> UserAction.java
> >
> >
> > #4  creating an aggregate action class with a unique action mapping 
with
> > multiple operations
> > /editUser.do   ->> EditUserAction.java
> > /displayUser.do->> DisplayUserAction.java
> >
> >
> > Some other way (or a combination) ...
> 
> --
> F&F 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]
> 

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

RE: Know of any good Calendar Tag Libraries? (Sorry, that was Aug 21)

2003-09-25 Thread Matt Raible
Try this:

http://www.aoc.nrao.edu/~bwaters/pub/taglib/calendar-taglib.html

-Original Message-
From: Navneet Karnani [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 1:58 AM
To: [EMAIL PROTECTED]
Subject: Re: Know of any good Calendar Tag Libraries? (Sorry, that was
Aug 21)


So, did you find it ? If yes, let me know too. I was looking out for 
something similar.

- Navneet

Matt Raible said the following on 25/09/2003 4:15 AM:

> I'm aware of Matt's Library (and I love it), but I don't want a pop-up, I
> want an in-page calendar.
> 
> Matt
> 
> -Original Message-
> From: David G Friedman [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 24, 2003 4:37 PM
> To: Struts Users Mailing List
> Subject: RE: Know of any good Calendar Tag Libraries? (Sorry, that was
> Aug 21)
> 
> 
> What about Matt Kruse's (very) beta taglib mentioned August 21st?
> http://www.mattkruse.com/javascript/javascripttoolbox.zip
> 
> I wonder if it's any further along.
> 
> -David
> 
> -Original Message-
> From: Matt Raible [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 24, 2003 6:23 PM
> To: '[EMAIL PROTECTED]'
> Subject: Know of any good Calendar Tag Libraries?
> 
> 
> Anyone know of a good Calendar Tag Library - that renders calendars like
the
> ones you see on blogs (not a pop-up)? I found this one
> (http://tinyurl.com/ok95) from Coldbeans, but it's $50 - whereas free is
> always better. We just need it to render a calendar on a page and gray out
> certain days (with CSS) to say that day is not available.
> 
> Thanks,
> 
> Matt
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



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

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



RE: [Poll] action mappings

2003-09-25 Thread Mainguy, Mike
Whoops!, I goofed up my response, let me clarify.

> From: Sgarlata Matt [mailto:[EMAIL PROTECTED]
>I just find it naturally easier to grasp what is going on with one 
>Action and one form bean for each object in my model (and normally one 
>factory or 'business delegate') plus a host of mappings.

Right, that's the way I look at it too. I guess you could call it a model or
data centric perspective of the system.   To me personally, any business
system is centered around a logical data model.  I tend to build (grow)
everything from the model out to the view.  

>From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
>The point of being easy to understand is very important for a big
application especially I think.
>
>And I don't understand why u need code duplication?
>The save action after doing update if needs to read, the forward can point
to readAction ... 
>That's what we have done al over our application.So to get the same screen
, 
>always call same read action from any other save action using proper
forward...
>So this way you have 2 types of action in your system.openActions 
>and save actions .And this approach helps you to solve many other problems
as well.

It seems like the perspective YOU are talking about is to build the system
around each atomic transaction that the system is designed to support.  This
is, to me, also a very valid way of looking at it, but, it seems like you
would end up seeing a whole bunch of trees instead of the entire forest (if
you get my drift).  

I like to be able to start out with a BIG picture and break it down into
smaller pictures until I get the level that I'm comfortable with.  It sounds
like you are more comfortable with a higher level of  (finer grained) detail
in your implementation than I am.  


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]



Re: [Poll] action mappings

2003-09-25 Thread Sgarlata Matt
Very cool :)

However, I am hesitant to depend even on DynaBean.  What if I want to use a
normal POJO bean?  Here's what I'm thinking of doing:

IInputForm.java:
public interface IInputForm { }

IDynaInputForm.java:
public itnerface IDynaInputForm extends IInputForm {
   public Object get(String name);
   public void set(String name, Object object);
   /* and maybe some other getters/setters like the
   ones in DynaActionForm */
}

MyDynaValidatorForm.java:
public MyDynaValidatorForm extends DynaValidatorForm implements
IDynaInputForm { }

Now my execute method becomes (* added for emphasis):
public List execute(*IInputForm* form, ISecurityInfo info)

Now I'm not depending on any APIs other than my own :)

What do you think?  BTW, I like that you have methods that test if a user is
in a role in your WebSecurityHolder class.  I have no clue how this didn't
occur to me earlier, and will be adding this to my API in the next few
minutes.

Matt
- Original Message - 
From: "Mainguy, Mike" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, September 25, 2003 10:28 AM
Subject: RE: [Poll] action mappings


> That is exactly the method signature I use (well, different names, but
> exactly the concept).  I actually use
> +++
> Public string commandParameter = "ProjectAction"
> Public List commandFoo(DynaBean bean, WebSecurityHolder security) {
>   ..do stuff..
> return ArrayList (or whatever) with a bunch of DynaBeans
> }
> Public DynaBean commandFoo(DynaBean bean, WebSecurityHolder security) {}
> +++
>
> Where Foo is the name of a request parameter. I have another class that
acts
> as a broker and maps the request parameters to these command objects.
>
> The end result is for a request /servlet.do?ProjectAction=Foo
> My BaseActionClass will automagically invoke the method Foo.  In addition,
> the websecurityholder has a simple method to allow you to query if the
user
> is in a specific role.
>
> The cool thing is that if you use DynaForms (or DynaValidatorForms) you
can
> map a sql query straight into a DynaBean (or a list of) using BeanUtils
and
> therefore get automagic form population without a lot of muss and fuss.
>
> I agree that #3 is probably better, but it seems that #1 is pretty popular
> and I want to make sure I'm not missing some significant advantage to
doing
> it that way.
>
> -Original Message-
> From: Sgarlata Matt [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 25, 2003 10:14 AM
> To: Struts Users Mailing List
> Subject: Re: [Poll] action mappings
>
>
> OK, I think I understand #1 now.  However, I still disagree with it ;)  If
> you are using the same form bean and display components, you can define a
> single action mapping and thus eliminate duplicate configuration
information
> in the struts-config file.  I am a zealot when it comes to violations of
the
> DRY (don't repeat yourself) principle, so in my opinion #3 is superior to
> #1.  Before I get flamed on my strong stance here, let me just mention
that
> I do understand #3 is unworkable if you need to use different form beans
for
> some reason.
>
> I like your variant of DispatchAction, and will likely do something
similar
> myself soon.  So your Command class has a signature something like below,
> right?
>
> public List execute(ActionForm form, ISecurityInfo info)
>
> One issue I have been grappling with over the last couple days is whether
> your're really decoupling yourself from the Web by using an ActionForm as
> your transfer object.  The ActionForm class seems pretty tightly coupled
to
> the servlet API to me.  Sure its methods don't return or take as
parameters
> anything directly from the javax.servlet.* API, but it does return
> references to things like the ActionServlet which clearly are dependent on
> the servlet API.  Thoughts?
>
> Matt
> - Original Message - 
> From: "Mainguy, Mike" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> Sent: Thursday, September 25, 2003 9:59 AM
> Subject: RE: [Poll] action mappings
>
>
> > You don't have to create a different ActionClass for every Operation
> > with the same display/FormBean...  I.E.  If you use the same formbean
> > and
> display
> > component, you don't want to also always create another ActionClass...
> >
> > Similar to dispatchaction except you use the pathmapping instead of
> > the request parameters.
> >
> > I actually wrote a variant of dispatchAction that, instead of calling
> > a specific execute method on my ActionClass, it maps the request to
> > another Command style class that performs an operation with only the
> > FormBean and
> a
> > security context as the input, and a List or DynaBean as the output.
> > This let me completely decouple my data access layer from any web
> > stuff and use request parameters to determine which business operation
> > I was performing.
> >
> >
> > -Original Message-
> > From: Sgarlata Matt [mailto:[EMAIL PROTECTED]
> > Sent: Thur

RE: [Poll] action mappings

2003-09-25 Thread Mainguy, Mike
Right, that's the way I look at it too. I guess you could call it a model or
data centric perspective of the system.   To me personally, any business
system is centered around a logical data model.  I tend to build (grow)
everything from the model out to the view.  

It seems like the perspective you are talking about is to build the system
around each atomic transaction that the system is designed to support.  This
is, to me, also a very valid way of looking at it, but, it seems like you
would end up seeing a whole bunch of trees instead of the entire forest (if
you get my drift).  

I like to be able to start out with a BIG picture and break it down into
smaller pictures until I get the level that I'm comfortable with.  It sounds
like you are more comfortable with a higher level of  (finer grained) detail
in your implementation than I am.  


-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 25, 2003 10:44 AM
To: Struts Users Mailing List
Subject: Re: [Poll] action mappings


I just find it naturally easier to grasp what is going on with one 
Action and one form bean for each object in my model (and normally one 
factory or 'business delegate') plus a host of mappings.

On 09/25/2003 03:59 PM Mainguy, Mike wrote:
> You don't have to create a different ActionClass for every Operation 
> with the same display/FormBean...  I.E.  If you use the same formbean 
> and display component, you don't want to also always create another 
> ActionClass...
> 
> Similar to dispatchaction except you use the pathmapping instead of 
> the request parameters.
> 
> I actually wrote a variant of dispatchAction that, instead of calling 
> a specific execute method on my ActionClass, it maps the request to 
> another Command style class that performs an operation with only the 
> FormBean and a security context as the input, and a List or DynaBean 
> as the output.  This let me completely decouple my data access layer 
> from any web stuff and use request parameters to determine which 
> business operation I was performing.
> 
> 
> -Original Message-
> From: Sgarlata Matt [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 25, 2003 9:54 AM
> To: Struts Users Mailing List
> Subject: Re: [Poll] action mappings
> 
> 
> I think for #3 it would be silly not to use a DispatchAction or 
> LookupDispatchAction, right?  It seems like you would also want 
> DispatchAction or LookupDispatchAction for #1, but I really don't 
> understand why people are using #1 at all.  Is there some reason 
> multiple action mappings are needed for the same Action?
> 
> Matt
> - Original Message -
> From: "Mainguy, Mike" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> Sent: Thursday, September 25, 2003 9:47 AM
> Subject: RE: [Poll] action mappings
> 
> 
> 
>>So far the results are as follows:
>>
>>#1 5
>>#2 1
>>#3 2
>>#4 0
>>
>>I added myself to both 1 and 3 as I've done a project both ways...
>>Now I wonder, how does everyone determine which operation you are 
>>doing?  As a parameter in the action mapping?  A big case-style (if 
>>else) statement?
>>
>>-Original Message-
>>From: Mainguy, Mike [mailto:[EMAIL PROTECTED]
>>Sent: Tuesday, September 23, 2003 11:06 AM
>>To: [EMAIL PROTECTED]
>>Subject: [Poll] action mappings
>>
>>
>>I have yet another opinion poll for struts-user...
>>
>>What are folks currently doing for action mappings in relation to CRUD
>>operations? Are you:
>>
>>#1  creating a unique Action mapping for each atomic operation
>>(potentially mapped to the same action class)
>>/createUser.do ->>  UserAction.java
>>/readUser.do   ->>  UserAction.java
>>/updateUser.do ->>  UserAction.java
>>/deleteUser.do ->>  UserAction.java
>>
>>
>>#2  creating a unique Action mapping for each atmoic operation
>>with each action having a unique class
>>/createUser.do ->>  CreateUserAction.java
>>/readUser.do   ->>  ReadUserAction.java
>>/updateUser.do ->>  UpdateUserAction.java
>>/deleteUser.do ->>  DeleteUserAction.java
>>
>>#3  creating an aggregate action class with a unique action mapping with
>>multiple operations and using form/request variable to accomplish CUD
>>/editUser.do   ->> UserAction.java   (?OP=Update, ?OP=Create,
>>?OP=Delete)
>>/displayUser.do->> UserAction.java
>>
>>
>>#4  creating an aggregate action class with a unique action mapping with
>>multiple operations
>>/editUser.do   ->> EditUserAction.java
>>/displayUser.do->> DisplayUserAction.java
>>
>>
>>Some other way (or a combination) ...
>>
>>
>>
>>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 informati

Re: [OT] Application Config Mgmt

2003-09-25 Thread Sgarlata Matt
We do development on Tomcat and testing/production on Oracle 9iAS, release
2.  To accomplish this we:
1) Store our main directory with Tomcat files in our source repository (say
in $\PROJECT)
2) Store any Oracle-specific configuration info is in a separate directory
WITH A DIRECTORY STRUCTURE MIRRORING #1 (say in $\ORACLE).
3) Write different ant targets for each deployment target.  The Tomcat
deployment just pulls code from $\PROJECT.  The Oracle deployment pulls from
$\PROJECT and then overwrites the files in $\PROJECT with stuff in $\ORACLE.

For example, if the web.xml file needs to be different for these two
deployments then we store the tomcat web.xml in $\PROJECT\WEB-INF\web.xml
and the Oracle one in $\ORACLE\WEB-INF\web.xml.  Ant happily pulls web.xml
from $\PROJECT and then overwrites it with the version from $\ORACLE when
the appropriate target is run.

This doesn't take care of other stuff like setting up datasources, but it
does help.

Matt
- Original Message - 
From: "Kevin Tung" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, September 25, 2003 10:34 AM
Subject: [OT] Application Config Mgmt


> How does everyone manage different deployment configurations?
>
> Let's say your webapp needs to run in various environments.. for example
> dev, staging and production.  Each environment has its own database
> connection info and third party SOAP endpoints.. etc.
>
> What is a good way to automate (at least partly) the management of these
> configurations so that..
>
> * The process of promoting code from dev to staging/production will
trigger
> a correct change of configuration info.
> * The configuration info can be stored in a code repository for history
> logging and accountability.
>
> I've been doing this mostly manually, but there has to be a better way..
I
> would love to hear about your approaches.
>
> Kevin
>
>
> -
> 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: Setting the page title from a tile

2003-09-25 Thread Holman, Cal
I do something a little different to pull the title out of application.properties

  
  
  
  

  
  
  
  

in template




Additionally to pass the tile name for menus to use I define a bean in the definition 
name to the request



Cal 

http://www.calandva.com/Last update 08/01/03



-Original Message-
From: Srinivas Gunturu [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 09:56
To: [EMAIL PROTECTED]
Subject: Re: Setting the page title from a tile

Matt,

We have solved this in our application by defining our tile as follows


 







In Template.jsp, you can access title using 



Hope this helps.

>>> [EMAIL PROTECTED] 09/25/03 08:51AM >>>
I have an interesting problem that I can't figure out how to solve.

We are using Tiles, as well as a custom tag library that renders
content from Velocity Templates.  These templates have HTML content in
them, but they're mostly text - and this is our CMS (for now).  The
problem is is that we've developed our app in a way only our menu needs
to know about the templates.  So /appName/static/template will show the
template page (wrapped in Tiles).  The problem is, by the time I load
the Tile, with the template, the page's title has already been set. 
Sure I could use JavaScript and set document.title in the Velocity
template, but that does no good for search engine optimization. 
Another solution I thought of is to put the title into the URL in my
menus, i.e.
/appName/static/homeownerServices?title=Homeowner%20Services - but
that's just plain ol' ugly to send as a URL (via e-mail and such).

Two other solutions I can think of:

1.  Create a action-mapping and tile for each template (i.e.
/appName/homeownerServices), and define the title in there.

2.  Parse the template name and convert it to readable titles.  This
would require that I name all my templates so they have an appropriate
title, but it just might work.  In this example, /homeownerServices
gets translated to Homeowner Services as a title.

I guess I'll go with #2 (see how simply posting these messages actually
helps to solve things!), but I wanted to see if anyone else had any
good suggestions/practices.

Thanks,

Matt


-
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]

  
Learn more about Paymentech's payment processing services at www.paymentech.com
THIS MESSAGE IS CONFIDENTIAL.  This e-mail message and any attachments are proprietary 
and confidential information intended only for the use of the recipient(s) named 
above.  If you are not the intended recipient, you may not print, distribute, or copy 
this message or any attachments.  If you have received this communication in error, 
please notify the sender by return e-mail and delete this message and any attachments 
from your computer.

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



action chaining and request.getRequestURI()

2003-09-25 Thread Franck Lefebure
Hi,
My struts-config looks like :



  

  
  
 






  


When I catch an Exception in NewsAction, I "mapping.findForward("error");"
In the doError.do, I want to record data about the Exception in a table.

The Url I used to launch this process is http://myserver/doNews.do
I want to store this url in the table but if I do something like
request.getRequestUrl() in the ErrorAction
then the result is  " doError.do ". I would like the real Url ( " doNews.do
")

Is there any solution to that ?

Thanks

--
Franck Lefebure
equipe web http://www.orangecaraibe.com
mailto:[EMAIL PROTECTED]




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



Re: [Poll] action mappings

2003-09-25 Thread Adam Hardy
I just find it naturally easier to grasp what is going on with one 
Action and one form bean for each object in my model (and normally one 
factory or 'business delegate') plus a host of mappings.

On 09/25/2003 03:59 PM Mainguy, Mike wrote:
You don't have to create a different ActionClass for every Operation with
the same display/FormBean...  I.E.  If you use the same formbean and display
component, you don't want to also always create another ActionClass...
Similar to dispatchaction except you use the pathmapping instead of the
request parameters.  

I actually wrote a variant of dispatchAction that, instead of calling a
specific execute method on my ActionClass, it maps the request to another
Command style class that performs an operation with only the FormBean and a
security context as the input, and a List or DynaBean as the output.  This
let me completely decouple my data access layer from any web stuff and use
request parameters to determine which business operation I was performing.
-Original Message-
From: Sgarlata Matt [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 25, 2003 9:54 AM
To: Struts Users Mailing List
Subject: Re: [Poll] action mappings

I think for #3 it would be silly not to use a DispatchAction or
LookupDispatchAction, right?  It seems like you would also want
DispatchAction or LookupDispatchAction for #1, but I really don't understand
why people are using #1 at all.  Is there some reason multiple action
mappings are needed for the same Action?
Matt
- Original Message - 
From: "Mainguy, Mike" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, September 25, 2003 9:47 AM
Subject: RE: [Poll] action mappings



So far the results are as follows:

#1 5
#2 1
#3 2
#4 0
I added myself to both 1 and 3 as I've done a project both ways...  
Now I wonder, how does everyone determine which operation you are 
doing?  As a parameter in the action mapping?  A big case-style (if 
else) statement?

-Original Message-
From: Mainguy, Mike [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 11:06 AM
To: [EMAIL PROTECTED]
Subject: [Poll] action mappings
I have yet another opinion poll for struts-user...

What are folks currently doing for action mappings in relation to CRUD 
operations? Are you:

#1  creating a unique Action mapping for each atomic operation
   (potentially mapped to the same action class)
/createUser.do ->>  UserAction.java
/readUser.do   ->>  UserAction.java
/updateUser.do ->>  UserAction.java
/deleteUser.do ->>  UserAction.java
#2  creating a unique Action mapping for each atmoic operation
   with each action having a unique class
/createUser.do ->>  CreateUserAction.java
/readUser.do   ->>  ReadUserAction.java
/updateUser.do ->>  UpdateUserAction.java
/deleteUser.do ->>  DeleteUserAction.java
#3  creating an aggregate action class with a unique action mapping with
   multiple operations and using form/request variable to accomplish CUD
/editUser.do   ->> UserAction.java   (?OP=Update, ?OP=Create,
?OP=Delete)
/displayUser.do->> UserAction.java
#4  creating an aggregate action class with a unique action mapping with
   multiple operations
/editUser.do   ->> EditUserAction.java
/displayUser.do->> DisplayUserAction.java
Some other way (or a combination) ...



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]
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]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This message and its contents (to include attachments) are the pro

Re: [Poll] action mappings

2003-09-25 Thread Adam Hardy
Normally a parameter in the action mapping, but other things affect it 
too, such as the cancel button.

And then a big case-style if else in my action superclass.

On 09/25/2003 03:47 PM Mainguy, Mike wrote:
So far the results are as follows:

#1 5
#2 1
#3 2
#4 0
I added myself to both 1 and 3 as I've done a project both ways...  Now I
wonder, how does everyone determine which operation you are doing?  As a
parameter in the action mapping?  A big case-style (if else) statement?
-Original Message-
From: Mainguy, Mike [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 23, 2003 11:06 AM
To: [EMAIL PROTECTED]
Subject: [Poll] action mappings

I have yet another opinion poll for struts-user...

What are folks currently doing for action mappings in relation to CRUD
operations?  
Are you:

#1  creating a unique Action mapping for each atomic operation 
(potentially mapped to the same action class)
	/createUser.do ->>  UserAction.java
	/readUser.do   ->>  UserAction.java
	/updateUser.do ->>  UserAction.java
	/deleteUser.do ->>  UserAction.java
	

#2  creating a unique Action mapping for each atmoic operation 
with each action having a unique class
	/createUser.do ->>  CreateUserAction.java
	/readUser.do   ->>  ReadUserAction.java
	/updateUser.do ->>  UpdateUserAction.java
	/deleteUser.do ->>  DeleteUserAction.java

#3  creating an aggregate action class with a unique action mapping with 
multiple operations and using form/request variable to accomplish CUD
	/editUser.do   ->> UserAction.java   (?OP=Update, ?OP=Create,
?OP=Delete)
	/displayUser.do->> UserAction.java

#4  creating an aggregate action class with a unique action mapping with 
multiple operations
	/editUser.do   ->> EditUserAction.java   
	/displayUser.do->> DisplayUserAction.java

Some other way (or a combination) ...

  

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]
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]

--
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: [Poll] action mappings

2003-09-25 Thread shirishchandra.sakhare
The point of being easy to understand is very important for a big application 
especially I think.

And I don't understand why u need code duplication?The save action after doing update 
if needs to read, the forward can point to readAction ...
That's what we have done al over our application.So to get the same screen , always 
call same read action from any other save action using proper forward...

So this way you have 2 types of action in your system.openActions and save actions 
.And this approach helps you to solve many other problems as well.



-Original Message-
From: Mainguy, Mike [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 4:35 PM
To: 'Struts Users Mailing List'
Subject: RE: [Poll] action mappings


#2 and #3 are, to me, flip sides of the same coin.  Our team is really
divided over which is better.  Currently, we're using #3 and I personally
think it's the best way, but, the argument that has been made that it is
much simpler to understand the application if there is a 1 to 1 mapping and
developers can more readily see the flow of information in a class diagram.
The other advantage that has been proposed is that you can then use your
containers security mechanism to limit access based on Role without
resorting to custom code.

My point of contention is that I don't want to have 4 classes for every
single screen (1 for Create, Read, Update, and Delete) plus 4 action
mappings...  It may be ok for a simple system, but in a large system I can
see that becoming unmanageable very quickly.  Not only that, but I tend to
make my apps very stateless, so, every single request needs to use the Read
operation so I end up with a bunch of duplicate code (i.e. Update and Create
also need to perhaps call read when they are done).




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

Sent: Thursday, September 25, 2003 10:25 AM
To: [EMAIL PROTECTED]
Subject: RE: [Poll] action mappings


Thats what prompted me to vote for 2...
Why to have unnecessary have this case statement in every action?

HAve the actions as simple handlers.Performing just simple atomic operations
and acting on whatever configuration they are provided to decide navigation

Something like 

execute(){
//Getdata from form bean
//validate(if automatic validation turned off or u have special validation
requirements) //model.getData or model.updateData //may be form.setData
return mapping.findForward("success"); }


And the voing results are wrong..I have seen 2 votes to #2 including
myself..


-Original Message-
From: Mainguy, Mike [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 3:47 PM
To: 'Struts Users Mailing List'
Subject: RE: [Poll] action mappings


So far the results are as follows:

#1 5
#2 1
#3 2
#4 0

I added myself to both 1 and 3 as I've done a project both ways...  Now I
wonder, how does everyone determine which operation you are doing?  As a
parameter in the action mapping?  A big case-style (if else) statement?

-Original Message-
From: Mainguy, Mike [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 23, 2003 11:06 AM
To: [EMAIL PROTECTED]
Subject: [Poll] action mappings


I have yet another opinion poll for struts-user...

What are folks currently doing for action mappings in relation to CRUD
operations?  
Are you:

#1  creating a unique Action mapping for each atomic operation 
(potentially mapped to the same action class)
/createUser.do ->>  UserAction.java
/readUser.do   ->>  UserAction.java
/updateUser.do ->>  UserAction.java
/deleteUser.do ->>  UserAction.java


#2  creating a unique Action mapping for each atmoic operation 
with each action having a unique class
/createUser.do ->>  CreateUserAction.java
/readUser.do   ->>  ReadUserAction.java
/updateUser.do ->>  UpdateUserAction.java
/deleteUser.do ->>  DeleteUserAction.java

#3  creating an aggregate action class with a unique action mapping with 
multiple operations and using form/request variable to accomplish CUD
/editUser.do   ->> UserAction.java   (?OP=Update, ?OP=Create,
?OP=Delete)
/displayUser.do->> UserAction.java


#4  creating an aggregate action class with a unique action mapping with 
multiple operations
/editUser.do   ->> EditUserAction.java   
/displayUser.do->> DisplayUserAction.java


Some other way (or a combination) ...

  

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 sho

RE: [Poll] action mappings

2003-09-25 Thread Michael Ruppin
+1 (#3)

--- "Mainguy, Mike" <[EMAIL PROTECTED]> wrote:
> #2 and #3 are, to me, flip sides of the same coin.  Our team is really
> divided over which is better.  Currently, we're using #3 and I personally
> think it's the best way, but, the argument that has been made that it is
> much simpler to understand the application if there is a 1 to 1 mapping and
> developers can more readily see the flow of information in a class diagram.
> The other advantage that has been proposed is that you can then use your
> containers security mechanism to limit access based on Role without
> resorting to custom code.
> 
> My point of contention is that I don't want to have 4 classes for every
> single screen (1 for Create, Read, Update, and Delete) plus 4 action
> mappings...  It may be ok for a simple system, but in a large system I can
> see that becoming unmanageable very quickly.  Not only that, but I tend to
> make my apps very stateless, so, every single request needs to use the Read
> operation so I end up with a bunch of duplicate code (i.e. Update and Create
> also need to perhaps call read when they are done).
> 
> 
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> 
> Sent: Thursday, September 25, 2003 10:25 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [Poll] action mappings
> 
> 
> Thats what prompted me to vote for 2...
> Why to have unnecessary have this case statement in every action?
> 
> HAve the actions as simple handlers.Performing just simple atomic operations
> and acting on whatever configuration they are provided to decide navigation
> 
> Something like 
> 
> execute(){
> //Getdata from form bean
> //validate(if automatic validation turned off or u have special validation
> requirements) //model.getData or model.updateData //may be form.setData
> return mapping.findForward("success"); }
> 
> 
> And the voing results are wrong..I have seen 2 votes to #2 including
> myself..
> 
> 
> -Original Message-
> From: Mainguy, Mike [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 25, 2003 3:47 PM
> To: 'Struts Users Mailing List'
> Subject: RE: [Poll] action mappings
> 
> 
> So far the results are as follows:
> 
> #1 5
> #2 1
> #3 2
> #4 0
> 
> I added myself to both 1 and 3 as I've done a project both ways...  Now I
> wonder, how does everyone determine which operation you are doing?  As a
> parameter in the action mapping?  A big case-style (if else) statement?
> 
> -Original Message-
> From: Mainguy, Mike [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, September 23, 2003 11:06 AM
> To: [EMAIL PROTECTED]
> Subject: [Poll] action mappings
> 
> 
> I have yet another opinion poll for struts-user...
> 
> What are folks currently doing for action mappings in relation to CRUD
> operations?  
> Are you:
> 
> #1  creating a unique Action mapping for each atomic operation 
> (potentially mapped to the same action class)
>   /createUser.do ->>  UserAction.java
>   /readUser.do   ->>  UserAction.java
>   /updateUser.do ->>  UserAction.java
>   /deleteUser.do ->>  UserAction.java
>   
> 
> #2  creating a unique Action mapping for each atmoic operation 
> with each action having a unique class
>   /createUser.do ->>  CreateUserAction.java
>   /readUser.do   ->>  ReadUserAction.java
>   /updateUser.do ->>  UpdateUserAction.java
>   /deleteUser.do ->>  DeleteUserAction.java
> 
> #3  creating an aggregate action class with a unique action mapping with 
> multiple operations and using form/request variable to accomplish CUD
>   /editUser.do   ->> UserAction.java   (?OP=Update, ?OP=Create,
> ?OP=Delete)
>   /displayUser.do->> UserAction.java
> 
> 
> #4  creating an aggregate action class with a unique action mapping with 
> multiple operations
>   /editUser.do   ->> EditUserAction.java   
>   /displayUser.do->> DisplayUserAction.java
> 
> 
> Some other way (or a combination) ...
> 
>   
> 
> 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]
> 
> 
> 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, 

RE: [Poll] action mappings

2003-09-25 Thread Mainguy, Mike
#2 and #3 are, to me, flip sides of the same coin.  Our team is really
divided over which is better.  Currently, we're using #3 and I personally
think it's the best way, but, the argument that has been made that it is
much simpler to understand the application if there is a 1 to 1 mapping and
developers can more readily see the flow of information in a class diagram.
The other advantage that has been proposed is that you can then use your
containers security mechanism to limit access based on Role without
resorting to custom code.

My point of contention is that I don't want to have 4 classes for every
single screen (1 for Create, Read, Update, and Delete) plus 4 action
mappings...  It may be ok for a simple system, but in a large system I can
see that becoming unmanageable very quickly.  Not only that, but I tend to
make my apps very stateless, so, every single request needs to use the Read
operation so I end up with a bunch of duplicate code (i.e. Update and Create
also need to perhaps call read when they are done).




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

Sent: Thursday, September 25, 2003 10:25 AM
To: [EMAIL PROTECTED]
Subject: RE: [Poll] action mappings


Thats what prompted me to vote for 2...
Why to have unnecessary have this case statement in every action?

HAve the actions as simple handlers.Performing just simple atomic operations
and acting on whatever configuration they are provided to decide navigation

Something like 

execute(){
//Getdata from form bean
//validate(if automatic validation turned off or u have special validation
requirements) //model.getData or model.updateData //may be form.setData
return mapping.findForward("success"); }


And the voing results are wrong..I have seen 2 votes to #2 including
myself..


-Original Message-
From: Mainguy, Mike [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 3:47 PM
To: 'Struts Users Mailing List'
Subject: RE: [Poll] action mappings


So far the results are as follows:

#1 5
#2 1
#3 2
#4 0

I added myself to both 1 and 3 as I've done a project both ways...  Now I
wonder, how does everyone determine which operation you are doing?  As a
parameter in the action mapping?  A big case-style (if else) statement?

-Original Message-
From: Mainguy, Mike [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 23, 2003 11:06 AM
To: [EMAIL PROTECTED]
Subject: [Poll] action mappings


I have yet another opinion poll for struts-user...

What are folks currently doing for action mappings in relation to CRUD
operations?  
Are you:

#1  creating a unique Action mapping for each atomic operation 
(potentially mapped to the same action class)
/createUser.do ->>  UserAction.java
/readUser.do   ->>  UserAction.java
/updateUser.do ->>  UserAction.java
/deleteUser.do ->>  UserAction.java


#2  creating a unique Action mapping for each atmoic operation 
with each action having a unique class
/createUser.do ->>  CreateUserAction.java
/readUser.do   ->>  ReadUserAction.java
/updateUser.do ->>  UpdateUserAction.java
/deleteUser.do ->>  DeleteUserAction.java

#3  creating an aggregate action class with a unique action mapping with 
multiple operations and using form/request variable to accomplish CUD
/editUser.do   ->> UserAction.java   (?OP=Update, ?OP=Create,
?OP=Delete)
/displayUser.do->> UserAction.java


#4  creating an aggregate action class with a unique action mapping with 
multiple operations
/editUser.do   ->> EditUserAction.java   
/displayUser.do->> DisplayUserAction.java


Some other way (or a combination) ...

  

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]


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.



--

  1   2   >