Re: JSP won't compile on Tomcat v4.1.28 on OpenVMS

2004-09-03 Thread Vic
I did not see any posts about this on the Tomcat user list. The group 
there is very good.
.V

Chuck Chopp wrote:
Wendy Smoak wrote:
Have you asked on tomcat-user?  If you think Tomcat is misbehaving, 
they may
have more insight into what it could be.

Yes, I've posted some inquiries there as well.  It is looking like the 
Tomcat implementation on OpenVMS is damaged and I'm taking up the 
discussion over on comp.os.vms.



--
Please post on Rich Internet Applications User Interface (RiA/SoA)

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


Re: JSP won't compile on Tomcat v4.1.28 on OpenVMS

2004-09-03 Thread Chuck Chopp
Wendy Smoak wrote:
Have you asked on tomcat-user?  If you think Tomcat is misbehaving, they may
have more insight into what it could be.
Yes, I've posted some inquiries there as well.  It is looking like the 
Tomcat implementation on OpenVMS is damaged and I'm taking up the discussion 
over on comp.os.vms.

--
Chuck Chopp
ChuckChopp (at) rtfmcsi (dot) com http://www.rtfmcsi.com
RTFM Consulting Services Inc. 864 801 2795 voice & voicemail
103 Autumn Hill Road  864 801 2774 fax
Greer, SC  29651
Do not send me unsolicited commercial email.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: JSP won't compile on Tomcat v4.1.28 on OpenVMS

2004-09-03 Thread Jim Barrows


> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] Behalf Of Chuck Chopp
> Sent: Friday, September 03, 2004 3:43 PM
> To: [EMAIL PROTECTED]
> Subject: Re: JSP won't compile on Tomcat v4.1.28 on OpenVMS
> 
> 
> Jim Barrows wrote:
> 
> > You've elimated the OS & Security Manager.  That leaves us 
> with a version of the VM that knows about WEB-INF or Tomcat.
> > It's possible Tomcat is doint something weird based on OS.
> 
> I back-rev'd down to JDK v1.4.1 from JDK v1.4.2 on OpenVMS 
> and the problem 
> still occurs.  The Tomcat version has remained constant.
> 
> I've taken up the discussion on comp.os.vms in an effort to get some 
> platform-specific support for the Compaq Secure Web Server - 
> Java Servlet 
> v2.1 [CSWS_JAVA v2.1] product, which is what Tomcat is known 
> as on OpenVMS. 

The name change is interesting...I'm wondering if they tinkered with the code...

Good luck!

>   I don't know if Tomcat source code used for that build is 
> available or 
> not, but I've asked about it in a posting over on comp.os.vms 
> so I'll see 
> what kind of response I get there.
> 
> 
> -- 
> Chuck Chopp
> 
> ChuckChopp (at) rtfmcsi (dot) com http://www.rtfmcsi.com
> 
> RTFM Consulting Services Inc. 864 801 2795 voice & voicemail
> 103 Autumn Hill Road  864 801 2774 fax
> Greer, SC  29651
> 
> Do not send me unsolicited commercial email.
> 
> 
> -
> 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: JSP won't compile on Tomcat v4.1.28 on OpenVMS

2004-09-03 Thread Chuck Chopp
Jim Barrows wrote:
You've elimated the OS & Security Manager.  That leaves us with a version of the VM 
that knows about WEB-INF or Tomcat.
It's possible Tomcat is doint something weird based on OS.
I back-rev'd down to JDK v1.4.1 from JDK v1.4.2 on OpenVMS and the problem 
still occurs.  The Tomcat version has remained constant.

I've taken up the discussion on comp.os.vms in an effort to get some 
platform-specific support for the Compaq Secure Web Server - Java Servlet 
v2.1 [CSWS_JAVA v2.1] product, which is what Tomcat is known as on OpenVMS. 
 I don't know if Tomcat source code used for that build is available or 
not, but I've asked about it in a posting over on comp.os.vms so I'll see 
what kind of response I get there.

--
Chuck Chopp
ChuckChopp (at) rtfmcsi (dot) com http://www.rtfmcsi.com
RTFM Consulting Services Inc. 864 801 2795 voice & voicemail
103 Autumn Hill Road  864 801 2774 fax
Greer, SC  29651
Do not send me unsolicited commercial email.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Hibernate VS ibatis, which is better?

2004-09-03 Thread Ted Husted
On Thu, 02 Sep 2004 10:33:44 -0500, David Durham wrote:
> Way to shut down a perfectly good thread, Ted.  -)  BTW, I read
> your book.  When's the book covering 2.0 due?

2.0 of what? :)

As it stands, my only plan is to work on open-source documents. Lately, I've been 
working on an update of Clinton's (very excellent) iBATIS Developer's Guide.

An early release is available at the iBATIS.NET site. 


I added the summary from this thread to the working copy, but haven't posted it yet.

-T.



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



Re: JSP won't compile on Tomcat v4.1.28 on OpenVMS

2004-09-03 Thread Wendy Smoak
From: "Chuck Chopp" <[EMAIL PROTECTED]>
> I would expect that there would be some sort of explicit exclusion
affecting
> "WEB-INF" and that this should appear somewhere in the Tomcat
configuration
> files.  So far, I've  been unable to find any references to "WEB-INF" that
> involves anything security related.  This was the result of examining all
> files found doing a brute-force search of files in the file system.

Have you asked on tomcat-user?  If you think Tomcat is misbehaving, they may
have more insight into what it could be.

-- 
Wendy Smoak


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



Re: JSP won't compile on Tomcat v4.1.28 on OpenVMS

2004-09-03 Thread Chuck Chopp
Brett Connor wrote:
Hmm, I'm getting a half relevent memory flash here. Weblogic took some 
time to catch on to the fact that JSPs could be under WEB-INF even 
though the client could not directly get them from there, I think it was 
not explicit in the JSP spec in the very earliest of days. I don't know 
the history of the OpenVMS port of tomcat, but there's a chance that 
it's using some unusual way of opening the JSPs, perhaps using the same 
mechanism that clients use, and getting fouled up here. I think I would 
have a peruse of the tomcat source if you can get it for your port, see 
if there's anything helpful in there. I know it's not the most enjoyable 
of tasks wading through a ton of code you don't know (I'm assuming you 
don't), but I've been watching this thread for about a week now, perhaps 
it's time.
In the O'Reilly "Programming Jakarta Struts" [1st Ed.], on pages 379-380, 
this very same issue is discussed in connection with WebLogic.  It appears 
to related to a difference of interpretations of section SRV.6.5 of the 
Servlet specification.  The fact that it is working OK with the Tomcat 
imlementations on WinXP & NetWare lead me to expect that it should work 
equally well with other Tomcat implementations, too.  However, maybe Tomcat 
v4.1.24 has this as a bug while v4.1.28 & v4.1.30 handle the situation properly.

If I can get the source code for the Tomcat implementation on OpenVMS I will 
take the time to review it and compare it with the source code from the 
implementation that I downloaded for use on WinXP.

--
Chuck Chopp
ChuckChopp (at) rtfmcsi (dot) com http://www.rtfmcsi.com
RTFM Consulting Services Inc. 864 801 2795 voice & voicemail
103 Autumn Hill Road  864 801 2774 fax
Greer, SC  29651
Do not send me unsolicited commercial email.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: JSP won't compile on Tomcat v4.1.28 on OpenVMS

2004-09-03 Thread Jim Barrows


> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] Behalf Of Chuck Chopp
> Sent: Friday, September 03, 2004 1:35 PM
> To: [EMAIL PROTECTED]
> Subject: Re: JSP won't compile on Tomcat v4.1.28 on OpenVMS
> 
> 
> Jim Barrows wrote:
> 
> > Any of the security manager related files.  I don't know 
> what they are off the top of my head.  That's what it sounds 
> like to me anyway, since Tomcat does not normally exclude 
> WEB-INF, it's something outside tomcat.
> 
> I would expect that there would be some sort of explicit 
> exclusion affecting 
> "WEB-INF" and that this should appear somewhere in the Tomcat 
> configuration 
> files.  So far, I've  been unable to find any references to 
> "WEB-INF" that 
> involves anything security related.  This was the result of 
> examining all 
> files found doing a brute-force search of files in the file system.

You've elimated the OS & Security Manager.  That leaves us with a version of the VM 
that knows about WEB-INF or Tomcat.
It's possible Tomcat is doint something weird based on OS.


> 
> 
> -- 
> Chuck Chopp
> 
> ChuckChopp (at) rtfmcsi (dot) com http://www.rtfmcsi.com
> 
> RTFM Consulting Services Inc. 864 801 2795 voice & voicemail
> 103 Autumn Hill Road  864 801 2774 fax
> Greer, SC  29651
> 
> Do not send me unsolicited commercial email.
> 
> 
> -
> 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: JSP won't compile on Tomcat v4.1.28 on OpenVMS

2004-09-03 Thread Chuck Chopp
Jim Barrows wrote:
Any of the security manager related files.  I don't know what they are off the top of my head.  That's what it sounds like to me anyway, since Tomcat does not normally exclude WEB-INF, it's something outside tomcat.
I would expect that there would be some sort of explicit exclusion affecting 
"WEB-INF" and that this should appear somewhere in the Tomcat configuration 
files.  So far, I've  been unable to find any references to "WEB-INF" that 
involves anything security related.  This was the result of examining all 
files found doing a brute-force search of files in the file system.

--
Chuck Chopp
ChuckChopp (at) rtfmcsi (dot) com http://www.rtfmcsi.com
RTFM Consulting Services Inc. 864 801 2795 voice & voicemail
103 Autumn Hill Road  864 801 2774 fax
Greer, SC  29651
Do not send me unsolicited commercial email.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: ARRRGGGGHHHH!!! I'm being stupid again....

2004-09-03 Thread Bill Siggelkow
Jim -- if you create your own subclass of ActionMapping and use the 
set-property it *will be* per path.

Jim Barrows wrote:


Yeah, but I wanted this on a per path basis, not per class.  That way the web designer could configure the wizard any which way without geting into the Spring config.

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


Re: Still more / Re: ValidatorResults are empty? (in Struts 1.2.2 with the new Commons Validator)

2004-09-03 Thread Niall Pemberton
Casey,

Sorry about that, I submitted the patch that screwed up the results map.
I've just applied a change to FieldChecks that should resolve this. The code
freeze for the Struts 1.2.3 release is 6pm Pacific Time today - so it should
be available soon in that distro.

Niall

- Original Message - 
From: "Casey Forbes" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 03, 2004 4:44 PM
Subject: Still more / Re: ValidatorResults are empty? (in Struts 1.2.2 with
the new Commons Validator)


> Okay - I started tapping out this question too soon and jumped to the
> wrong conclusion.  My applications are still broken but it isn't the fault
> of commons-validator.
>
> It looks like the resolution to this bug is the thing that is hurting me:
> http://issues.apache.org/bugzilla/show_bug.cgi?id=26413
>
> Basically, boolean pass/fail results are now returned from the FieldCheck
> and stuffed into the validation result map instead of the converted values
> that I used to get in Struts 1.1.
>
> Shouldn't this be documented in the Release Notes?
>
> Casey
>
>
>
> On Fri, 3 Sep 2004, Casey Forbes wrote:
>
> > Hi all,
> >
> > This is sort of a commons-validator question but I know that
> > there are some folks here that know all about the validator...
> >
> > I just upgraded to Struts 1.2.2 from 1.1 and I broke all of my
applications
> > :(
> >
> > It looks like ValidatorForm.getResultValueMap() will always return an
empty
> > map because Validator.validate() always returns an empty
ValidatorResults
> > object. (The last line of the validate method returns a brand new
> > ValidatorResults object)
> >
> > CVS tells me that this was changed in Validator.java rev 1.33 back in
> > February so I guess that it is going to stay this way. I'm not sure what
to
> > do now because I have a dozen applications (and hundreds of forms) that
were
> > using the validator results to get the Integers, Dates, or whatever that
the
> > validator converted for me.
> >
> > Will Struts 1.2.2 work properly with the commons-validator that
> > was packaged with Struts 1.1? Does anybody have any other ideas?
> > Am I missing something?
> >
> > Thanks,
> > Casey
> >
> >
> >
>
> -
> 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-Friday] Group Sing-along

2004-09-03 Thread Jim Barrows
> -Original Message-
> From: Bryce Fischer [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 03, 2004 1:15 PM
> To: Struts Users Mailing List
> Subject: Re: [OT-Friday] Group Sing-along 
> 
> Jim Barrows wrote:
> 
> >  
> >
> >>-Original Message-
> >>From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow
> >>Sent: Friday, September 03, 2004 1:04 PM
> >>To: [EMAIL PROTECTED]
> >>Subject: Re: [OT-Friday] Group Sing-along
> >>
> >>
> >>Jim Barrows wrote:
> >>
> >>
> >>
> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow
> Sent: Friday, September 03, 2004 12:57 PM
> To: [EMAIL PROTECTED]
> Subject: [OT-Friday] Group Sing-along
> 
> 
> Okay -- its Friday and I thought we could have a group 
> 
> 
> >>sing-along -- 
> >>
> >>
> I'll start 
> 
> 
> 
> >>-
> >>
> >>
> Ohhh ... I am a lumberjack and I'm okay ...
>    (now everybody else join in...)
> 
> 
> >>>Oh, you wood have to go there.
> >>>  
> >>>
> >>Yeah -- just something I've been pining for ...
> >>
> >>
> >
> >Oakay... now you're going out on a limb.
> >  
> >
> 
> That reminds me... Just got a promotion here at the Tree 
> factory.. I'm 
> now a branch manager...

I saw that in the paper, people are abuzz about it.  Seems everyone thought you were 
going to leaf.

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



RE: ARRRGGGGHHHH!!! I'm being stupid again....

2004-09-03 Thread Jim Barrows


> -Original Message-
> From: Bryce Fischer [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 03, 2004 1:14 PM
> To: Struts Users Mailing List
> Subject: Re: ARRR!!! I'm being stupid again
> 
> 
> Jim Barrows wrote:
> 
> >  
> >
> >>-Original Message-
> >>From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow
> >>
> >>Jim, I know it seems like its unrelated but its really not 
> >>... when you 
> >>create an  element you are really defining an instance of 
> >>ActionMapping (which extends ActionConfig). One of the 
> >>"properties" of 
> >>the ActionMapping is the type of the Action. Another is the path, 
> >>whether to validate or not -- etc. If anything, the 
> confusion lies in 
> >>the name of the element -- it might be less confusing (but 
> >>more verbose) 
> >>it it were .
> >>
> >>
> >
> >WHat I was trying to do, was create a generic wizard action 
> class, and use the set-property to set the maximum number of 
> pages in the wizard, and be able to use that setup for 
> multiple different wizards.  Setting that value per action 
> would have been perfect.
> >  
> >
> 
> Have you considered using Spring?  Works well with Struts, and allows 
> you to inject values like that.

Yeah, but I wanted this on a per path basis, not per class.  That way the web designer 
could configure the wizard any which way without geting into the Spring config.


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



Re: [OT-Friday] Group Sing-along

2004-09-03 Thread Bryce Fischer
Jim Barrows wrote:
 

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow
Sent: Friday, September 03, 2004 1:04 PM
To: [EMAIL PROTECTED]
Subject: Re: [OT-Friday] Group Sing-along
Jim Barrows wrote:
   

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow
Sent: Friday, September 03, 2004 12:57 PM
To: [EMAIL PROTECTED]
Subject: [OT-Friday] Group Sing-along
Okay -- its Friday and I thought we could have a group 
   

sing-along -- 
   

I'll start 

   

-
   

Ohhh ... I am a lumberjack and I'm okay ...
  (now everybody else join in...)
   

Oh, you wood have to go there.
 

Yeah -- just something I've been pining for ...
   

Oakay... now you're going out on a limb.
 

That reminds me... Just got a promotion here at the Tree factory.. I'm 
now a branch manager...

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


Re: ARRRGGGGHHHH!!! I'm being stupid again....

2004-09-03 Thread Bryce Fischer
Jim Barrows wrote:
 

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow
Jim, I know it seems like its unrelated but its really not 
... when you 
create an  element you are really defining an instance of 
ActionMapping (which extends ActionConfig). One of the 
"properties" of 
the ActionMapping is the type of the Action. Another is the path, 
whether to validate or not -- etc. If anything, the confusion lies in 
the name of the element -- it might be less confusing (but 
more verbose) 
it it were .
   

WHat I was trying to do, was create a generic wizard action class, and use the set-property to set the maximum number of pages in the wizard, and be able to use that setup for multiple different wizards.  Setting that value per action would have been perfect.
 

Have you considered using Spring?  Works well with Struts, and allows 
you to inject values like that.

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


RE: [OT-Friday] Group Sing-along

2004-09-03 Thread Jim Barrows


> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow
> Sent: Friday, September 03, 2004 1:04 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [OT-Friday] Group Sing-along
> 
> 
> Jim Barrows wrote:
> 
> > 
> >>-Original Message-
> >>From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow
> >>Sent: Friday, September 03, 2004 12:57 PM
> >>To: [EMAIL PROTECTED]
> >>Subject: [OT-Friday] Group Sing-along
> >>
> >>
> >>Okay -- its Friday and I thought we could have a group 
> sing-along -- 
> >>I'll start 
> >>
> -
> >>
> >>Ohhh ... I am a lumberjack and I'm okay ...
> >>(now everybody else join in...)
> > 
> > 
> > Oh, you wood have to go there.
> Yeah -- just something I've been pining for ...

Oakay... now you're going out on a limb.

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



RE: Page refresh

2004-09-03 Thread meena r
Well ,this requires that the end-user's browser has a
java plug-in installed. We are trying to look at
approaches where there wouldn't be any addtln set up
required on the client side.

Thanks
Meena


--- Jim Barrows <[EMAIL PROTECTED]> wrote:

> 
> 
> > -Original Message-
> > From: meena r [mailto:[EMAIL PROTECTED]
> > Sent: Friday, September 03, 2004 12:29 PM
> > To: Struts Users Mailing List
> > Subject: Page refresh
> > 
> > 
> > Hi,
> > 
> > I am currently working on a Struts based project
> where
> > we have a requirement to fetch details/images from
> the
> > server(Webshere 5.0) and display to it to the user
> > without allowing the page to re-fresh. We are in
> the
> > process of seeing whether we can use Iframes or
> > Xml-Rpc for remote scripting. Would be great to
> have
> > any input along this direction.
> 
> So, if I understand you correctly... you wnat images
> to change wihtout the user hvaing to do anything on
> the page but drool and stare?
> 
> An applet comes to mind as being simple...  
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 




___
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush

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



Re: [OT-Friday] Group Sing-along

2004-09-03 Thread Bill Siggelkow
Jim Barrows wrote:

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow
Sent: Friday, September 03, 2004 12:57 PM
To: [EMAIL PROTECTED]
Subject: [OT-Friday] Group Sing-along
Okay -- its Friday and I thought we could have a group sing-along -- 
I'll start 
-

Ohhh ... I am a lumberjack and I'm okay ...
   (now everybody else join in...)

Oh, you wood have to go there.
Yeah -- just something I've been pining for ...
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: [OT-Friday] Group Sing-along

2004-09-03 Thread Jim Barrows


> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow
> Sent: Friday, September 03, 2004 12:57 PM
> To: [EMAIL PROTECTED]
> Subject: [OT-Friday] Group Sing-along
> 
> 
> Okay -- its Friday and I thought we could have a group sing-along -- 
> I'll start 
> -
> 
> Ohhh ... I am a lumberjack and I'm okay ...
> (now everybody else join in...)

Oh, you wood have to go there.

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



[OT-Friday] Group Sing-along

2004-09-03 Thread Bill Siggelkow
Okay -- its Friday and I thought we could have a group sing-along -- 
I'll start 
-

Ohhh ... I am a lumberjack and I'm okay ...
   (now everybody else join in...)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: ARRRGGGGHHHH!!! I'm being stupid again....

2004-09-03 Thread Jim Barrows


> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow
> Sent: Friday, September 03, 2004 12:46 PM
> To: [EMAIL PROTECTED]
> Subject: Re: ARRR!!! I'm being stupid again
> 
> 
> Jim, I know it seems like its unrelated but its really not 
> ... when you 
> create an  element you are really defining an instance of 
> ActionMapping (which extends ActionConfig). One of the 
> "properties" of 
> the ActionMapping is the type of the Action. Another is the path, 
> whether to validate or not -- etc. If anything, the confusion lies in 
> the name of the element -- it might be less confusing (but 
> more verbose) 
> it it were .

WHat I was trying to do, was create a generic wizard action class, and use the 
set-property to set the maximum number of pages in the wizard, and be able to use that 
setup for multiple different wizards.  Setting that value per action would have been 
perfect.


> 
> Jim Barrows wrote:
> 
> > 
> >>-Original Message-
> >>From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow
> >>Sent: Friday, September 03, 2004 11:42 AM
> >>To: [EMAIL PROTECTED]
> >>Subject: Re: ARRR!!! I'm being stupid again
> >>
> >>
> >>Hmmm ... don't know where I originally linked these synapses 
> >>but here's 
> >>a wiki page -- http://wiki.apache.org/struts/ActionMapping
> > 
> > 
> > So, I have to subclass an unrelated object *SIGH*.  Oh 
> well, have to do it the "hard" way
> > 
> > 
> >>- Bill
> >>
> >>Jim Barrows wrote:
> >>
> >>
> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow
> Sent: Friday, September 03, 2004 10:08 AM
> To: [EMAIL PROTECTED]
> Subject: Re: ARRR!!! I'm being stupid again
> 
> 
> The  in nested  applies to the 
> ActionMapping 
> object not the Action.
> >>>
> >>>
> >>>Oh that makes sense in a SCO kind of way...
> >>>
> >>>Just so I can bookmark that info... where did you find it?
> >>>
> >>>
> >>>
> Jim Barrows wrote:
> 
> 
> >I'm trying to use the set-property tag in the struts-config 
> 
> file.  I know I'm being stupid, but what exactly is it?
> 
> 
> >It's not finding the property to set.
> >
> >Okay if I have in my struts-config.xml:
> > 
> type="com.sssc.shtuff.actions.LoanAppWizardAction" 
> scope="session">
> 
> > 
> >
> > 
> > 
> > 
> >
> >
> >and this in my action class:
> >public class LoanAppWizardAction extends Action {
> >
> > blah
> >
> >   /**Read only property from inside this action that 
> 
> indicates what number is
> 
> 
> >* the last page.
> >*/
> >   private int maxNumberOfPages = 0;
> >
> >Lots o' blah
> >   
> >   /**
> >* @return
> >*/
> >   public int getMaxNumberOfPages() {
> >   return maxNumberOfPages;
> >   }
> >   
> >   public void setMaxNumberOfPages(int i) {
> >   maxNumberOfPages = i;
> >   }
> >}
> >Then I should end up with maxNumberOfPages set to 2, and not:
> >The following exception was logged 
> 
> java.lang.NoSuchMethodException: Bean has no property named 
> maxNumberOfPages
> 
> 
> 
> >>
> >>-
> >>
> 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: ARRRGGGGHHHH!!! I'm being stupid again....

2004-09-03 Thread Bill Siggelkow
Jim, I know it seems like its unrelated but its really not ... when you 
create an  element you are really defining an instance of 
ActionMapping (which extends ActionConfig). One of the "properties" of 
the ActionMapping is the type of the Action. Another is the path, 
whether to validate or not -- etc. If anything, the confusion lies in 
the name of the element -- it might be less confusing (but more verbose) 
it it were .

Jim Barrows wrote:

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow
Sent: Friday, September 03, 2004 11:42 AM
To: [EMAIL PROTECTED]
Subject: Re: ARRR!!! I'm being stupid again
Hmmm ... don't know where I originally linked these synapses 
but here's 
a wiki page -- http://wiki.apache.org/struts/ActionMapping

So, I have to subclass an unrelated object *SIGH*.  Oh well, have to do it the 
"hard" way

- Bill
Jim Barrows wrote:

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow
Sent: Friday, September 03, 2004 10:08 AM
To: [EMAIL PROTECTED]
Subject: Re: ARRR!!! I'm being stupid again
The  in nested  applies to the ActionMapping 
object not the Action.

Oh that makes sense in a SCO kind of way...
Just so I can bookmark that info... where did you find it?

Jim Barrows wrote:

I'm trying to use the set-property tag in the struts-config 
file.  I know I'm being stupid, but what exactly is it?

It's not finding the property to set.
Okay if I have in my struts-config.xml:
type="com.sssc.shtuff.actions.LoanAppWizardAction" scope="session">





and this in my action class:
public class LoanAppWizardAction extends Action {
blah
  /**Read only property from inside this action that 
indicates what number is

   * the last page.
   */
  private int maxNumberOfPages = 0;
Lots o' blah
  
  /**
   * @return
   */
  public int getMaxNumberOfPages() {
  return maxNumberOfPages;
  }
  
  public void setMaxNumberOfPages(int i) {
  maxNumberOfPages = i;
  }
}
Then I should end up with maxNumberOfPages set to 2, and not:
The following exception was logged 
java.lang.NoSuchMethodException: Bean has no property named 
maxNumberOfPages


-
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: Page refresh

2004-09-03 Thread Jim Barrows


> -Original Message-
> From: meena r [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 03, 2004 12:29 PM
> To: Struts Users Mailing List
> Subject: Page refresh
> 
> 
> Hi,
> 
> I am currently working on a Struts based project where
> we have a requirement to fetch details/images from the
> server(Webshere 5.0) and display to it to the user
> without allowing the page to re-fresh. We are in the
> process of seeing whether we can use Iframes or
> Xml-Rpc for remote scripting. Would be great to have
> any input along this direction.

So, if I understand you correctly... you wnat images to change wihtout the user hvaing 
to do anything on the page but drool and stare?

An applet comes to mind as being simple...  

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



RE: Datagrid lige funktionallity

2004-09-03 Thread Jim Barrows


> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] Behalf Of Anders Jacobsen
> Sent: Friday, September 03, 2004 12:22 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Datagrid lige funktionallity
> 
> 
> >You've already been pointed at the displaytag, however, 
> something else you
> might want to think about.  Most of the sites I've seen 
> developed in
> .NET screem they've been developed by a Windows >developer... 
> mostly because
> the UI is lacking and in some cases, it's using a table 
> list like the
> one your describing.
> 
> What excatly is the issue with table-like editing? Let´s say 
> we are building
> an webapplication for managin a gasoline station. The manager 
> has to cahnge
> to gasoline prizes on all 15 types of fuel every 4 hour. A table-like
> editing for this seems for me vey intuitive. At least better 
> than clicking
> on each and every gasoline prize, be redirected to a new page 
> where you can
> edit the prize. Press save end be redirected to the gasoline 
> overview again.
> Just an example but pretty much describe my future application
> functionality.


In that case, yes... 


> 
> I have looked at dsiplaytag and it seems nice. But is dosent 
> excatly solve
> my problem. Again. Im problably used to have most of these 
> common controls
> ready-to-use from within the framework.

The common controls are out there, you just have to find them.

Hmmm let's see
Action puts list of gasoline types into request scope... then in page you do:


Where each element in the list is of type:
public class GasPrice {
private String type;
private double price;
  
   blah
}

Gets you a two column list of type and price.

How to modify the display tag so that you have a text box that you can use for update, 
I'll leave to you.



> 
> To be hornest I see time-spending issues with my new 
> platform. I worry that
> my productivity is going down because I still (with struts) 
> have do alot
> more typing than before. Agree or disagree?

Depends on the tag libs you want.  There is a learning curve with Java... there is so 
much out there, and from so many different places that it takes a while to learn what 
you need and what you don't.  Once you start getting a handle on where to look to find 
things (sourceforge, java.net) your productivity starts going way up.

I can do a comlete UseCase in generally 4-6 hours, with test harness and 
documentation.  What you've described above should take about 4 hours, that's with 
building a test harness as well.



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



Re: Datagrid lige funktionallity

2004-09-03 Thread Vic
I think Java is more typing, but still higher overall project productivity.
Tools get you to be 90% compleate, but then the last mile is a killer. 
(and sometimes the 90% compleate has to be re-done to get that last mile).

Use displaytag a lot and you will get used to it.
.V
Anders Jacobsen wrote:
You've already been pointed at the displaytag, however, something else you
might want to think about.  Most of the sites I've seen developed in
.NET screem they've been developed by a Windows >developer... mostly because
the UI is lacking and in some cases, it's using a table list like the
one your describing.
What excatly is the issue with table-like editing? Let´s say we are building
an webapplication for managin a gasoline station. The manager has to cahnge
to gasoline prizes on all 15 types of fuel every 4 hour. A table-like
editing for this seems for me vey intuitive. At least better than clicking
on each and every gasoline prize, be redirected to a new page where you can
edit the prize. Press save end be redirected to the gasoline overview again.
Just an example but pretty much describe my future application
functionality.
I have looked at dsiplaytag and it seems nice. But is dosent excatly solve
my problem. Again. Im problably used to have most of these common controls
ready-to-use from within the framework.
To be hornest I see time-spending issues with my new platform. I worry that
my productivity is going down because I still (with struts) have do alot
more typing than before. Agree or disagree?
Thanks in regards
Anders, Denmark

--
Please post on Rich Internet Applications User Interface (RiA/SoA)

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


Page refresh

2004-09-03 Thread meena r
Hi,

I am currently working on a Struts based project where
we have a requirement to fetch details/images from the
server(Webshere 5.0) and display to it to the user
without allowing the page to re-fresh. We are in the
process of seeing whether we can use Iframes or
Xml-Rpc for remote scripting. Would be great to have
any input along this direction.

Thanks
Meena



__
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

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



Re: Datagrid lige funktionallity

2004-09-03 Thread Anders Jacobsen
>You've already been pointed at the displaytag, however, something else you
might want to think about.  Most of the sites I've seen developed in
.NET screem they've been developed by a Windows >developer... mostly because
the UI is lacking and in some cases, it's using a table list like the
one your describing.

What excatly is the issue with table-like editing? Let´s say we are building
an webapplication for managin a gasoline station. The manager has to cahnge
to gasoline prizes on all 15 types of fuel every 4 hour. A table-like
editing for this seems for me vey intuitive. At least better than clicking
on each and every gasoline prize, be redirected to a new page where you can
edit the prize. Press save end be redirected to the gasoline overview again.
Just an example but pretty much describe my future application
functionality.

I have looked at dsiplaytag and it seems nice. But is dosent excatly solve
my problem. Again. Im problably used to have most of these common controls
ready-to-use from within the framework.

To be hornest I see time-spending issues with my new platform. I worry that
my productivity is going down because I still (with struts) have do alot
more typing than before. Agree or disagree?

Thanks in regards
Anders, Denmark





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



RE: ARRRGGGGHHHH!!! I'm being stupid again....

2004-09-03 Thread Jim Barrows


> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow
> Sent: Friday, September 03, 2004 11:42 AM
> To: [EMAIL PROTECTED]
> Subject: Re: ARRR!!! I'm being stupid again
> 
> 
> Hmmm ... don't know where I originally linked these synapses 
> but here's 
> a wiki page -- http://wiki.apache.org/struts/ActionMapping

So, I have to subclass an unrelated object *SIGH*.  Oh well, have to do it the 
"hard" way

> 
> - Bill
> 
> Jim Barrows wrote:
> 
> >>-Original Message-
> >>From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow
> >>Sent: Friday, September 03, 2004 10:08 AM
> >>To: [EMAIL PROTECTED]
> >>Subject: Re: ARRR!!! I'm being stupid again
> >>
> >>
> >>The  in nested  applies to the ActionMapping 
> >>object not the Action.
> > 
> > 
> > Oh that makes sense in a SCO kind of way...
> > 
> > Just so I can bookmark that info... where did you find it?
> > 
> > 
> >>Jim Barrows wrote:
> >>
> >>>I'm trying to use the set-property tag in the struts-config 
> >>
> >>file.  I know I'm being stupid, but what exactly is it?
> >>
> >>>It's not finding the property to set.
> >>>
> >>>Okay if I have in my struts-config.xml:
> >>> >>
> >>type="com.sssc.shtuff.actions.LoanAppWizardAction" scope="session">
> >>
> >>>   
> >>>
> >>>   
> >>>   
> >>>   
> >>>
> >>>
> >>>and this in my action class:
> >>>public class LoanAppWizardAction extends Action {
> >>>
> >>>   blah
> >>>
> >>>/**Read only property from inside this action that 
> >>
> >>indicates what number is
> >>
> >>> * the last page.
> >>> */
> >>>private int maxNumberOfPages = 0;
> >>>
> >>>Lots o' blah
> >>>
> >>>/**
> >>> * @return
> >>> */
> >>>public int getMaxNumberOfPages() {
> >>>return maxNumberOfPages;
> >>>}
> >>>
> >>>public void setMaxNumberOfPages(int i) {
> >>>maxNumberOfPages = i;
> >>>}
> >>>}
> >>>Then I should end up with maxNumberOfPages set to 2, and not:
> >>>The following exception was logged 
> >>
> >>java.lang.NoSuchMethodException: Bean has no property named 
> >>maxNumberOfPages
> >>
> >>
> >>
> -
> >>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: ARRRGGGGHHHH!!! I'm being stupid again....

2004-09-03 Thread Jim Barrows


> -Original Message-
> From: Kris Schneider [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 03, 2004 11:33 AM
> To: Struts Users Mailing List
> Subject: RE: ARRR!!! I'm being stupid again
> 
> 
> Not sure if it's *explicitly* part of any official docs, but 
> it can be inferred
> from the struts-config DTD. The comment for  includes:
> 
> The "action" element describes an ActionMapping object...
> 
> The comment for  includes:
> 
> When the object representing the surrounding element is 
> instantiated, the
> accessor for the indicated property is called and passed the 
> indicated value.


I read that, and thought, oh it sets the action class, since that's what's surrounding 
the set-property.  *SIGH* Okay...



> 
> Quoting Jim Barrows <[EMAIL PROTECTED]>:
> 
> > > -Original Message-
> > > From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow
> > > Sent: Friday, September 03, 2004 10:08 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: ARRR!!! I'm being stupid again
> > > 
> > > 
> > > The  in nested  applies to the 
> ActionMapping 
> > > object not the Action.
> > 
> > Oh that makes sense in a SCO kind of way...
> > 
> > Just so I can bookmark that info... where did you find it?
> > 
> > > 
> > > Jim Barrows wrote:
> > > > I'm trying to use the set-property tag in the struts-config 
> > > file.  I know I'm being stupid, but what exactly is it?
> > > > It's not finding the property to set.
> > > > 
> > > > Okay if I have in my struts-config.xml:
> > > >  > > type="com.sssc.shtuff.actions.LoanAppWizardAction" 
> scope="session">
> > > > 
> > > > 
> > > > 
> > > >  path="/demographics.jsp">
> > > > 
> > > > 
> > > > 
> > > > 
> > > > and this in my action class:
> > > > public class LoanAppWizardAction extends Action {
> > > > 
> > > > blah
> > > > 
> > > > /**Read only property from inside this action that 
> > > indicates what number is
> > > >  * the last page.
> > > >  */
> > > > private int maxNumberOfPages = 0;
> > > > 
> > > > Lots o' blah
> > > > 
> > > > /**
> > > >  * @return
> > > >  */
> > > > public int getMaxNumberOfPages() {
> > > > return maxNumberOfPages;
> > > > }
> > > > 
> > > > public void setMaxNumberOfPages(int i) {
> > > > maxNumberOfPages = i;
> > > > }
> > > > }
> > > > Then I should end up with maxNumberOfPages set to 2, and not:
> > > > The following exception was logged 
> > > java.lang.NoSuchMethodException: Bean has no property named 
> > > maxNumberOfPages
> 
> -- 
> Kris Schneider 
> D.O.Tech   
> 
> -
> 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: JSP won't compile on Tomcat v4.1.28 on OpenVMS

2004-09-03 Thread Brett Connor
Chuck Chopp wrote:

I did some more testing with adding additional JSPs to my test webapp.
Here's what I have
/index.jsp
/login.jsp
/success.jsp
/Form/page01.jsp
/WEB-INF/form/page02.jsp
/WEB-INF/page03.jsp
I have "index.jsp" set up as my welcome page.  It uses the tag 
"logic:redirect" to redirect the browser to the action named "login" 
which uses "login.jsp" as its input form.  After the "login" action 
completes, it forwards to an action named "success" which displays 
"success.jsp".  The "success.jsp" page has 3 submit buttons on it, one 
each for "page01.jsp", "page02.jsp" and "page03.jsp".  The "success" 
action has 3 forwards defined for it so that any of those 3 pages can 
be forwarded to depending on which one of the submit buttons is 
clicked in the browser.

Testing has shown that *any* JSP file located within  "WEB-INF" or in 
any subfolder under "WEB-INF" cannot be compiled by Jasper when the 
webapp is deployed on my OpenVMS system.  If I deploy the app to WinXP 
or NetWare and run it on the Tomcat implementations on those systems 
there is no problem getting all of the JSPs to compile as they are 
being accessed.

I've reviewed the "conf/server.xml" and "conf/catalina.policy" files 
on the OpenVMS Tomcat implementation and they are identical to the 
files on my WinXP system.

What other configuration files do I need to review to rule out a 
configuration error that could cause this problem?

Hmm, I'm getting a half relevent memory flash here. Weblogic took some 
time to catch on to the fact that JSPs could be under WEB-INF even 
though the client could not directly get them from there, I think it was 
not explicit in the JSP spec in the very earliest of days. I don't know 
the history of the OpenVMS port of tomcat, but there's a chance that 
it's using some unusual way of opening the JSPs, perhaps using the same 
mechanism that clients use, and getting fouled up here. I think I would 
have a peruse of the tomcat source if you can get it for your port, see 
if there's anything helpful in there. I know it's not the most enjoyable 
of tasks wading through a ton of code you don't know (I'm assuming you 
don't), but I've been watching this thread for about a week now, perhaps 
it's time.
Good luck.

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


Re: ARRRGGGGHHHH!!! I'm being stupid again....

2004-09-03 Thread Bill Siggelkow
Hmmm ... don't know where I originally linked these synapses but here's 
a wiki page -- http://wiki.apache.org/struts/ActionMapping

- Bill
Jim Barrows wrote:
-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow
Sent: Friday, September 03, 2004 10:08 AM
To: [EMAIL PROTECTED]
Subject: Re: ARRR!!! I'm being stupid again
The  in nested  applies to the ActionMapping 
object not the Action.

Oh that makes sense in a SCO kind of way...
Just so I can bookmark that info... where did you find it?

Jim Barrows wrote:
I'm trying to use the set-property tag in the struts-config 
file.  I know I'm being stupid, but what exactly is it?
It's not finding the property to set.
Okay if I have in my struts-config.xml:
type="com.sssc.shtuff.actions.LoanAppWizardAction" scope="session">





and this in my action class:
public class LoanAppWizardAction extends Action {
blah
   /**Read only property from inside this action that 
indicates what number is
* the last page.
*/
   private int maxNumberOfPages = 0;
Lots o' blah
   
   /**
* @return
*/
   public int getMaxNumberOfPages() {
   return maxNumberOfPages;
   }
   
   public void setMaxNumberOfPages(int i) {
   maxNumberOfPages = i;
   }
}
Then I should end up with maxNumberOfPages set to 2, and not:
The following exception was logged 
java.lang.NoSuchMethodException: Bean has no property named 
maxNumberOfPages

-
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: ARRRGGGGHHHH!!! I'm being stupid again....

2004-09-03 Thread Kris Schneider
Not sure if it's *explicitly* part of any official docs, but it can be inferred
from the struts-config DTD. The comment for  includes:

The "action" element describes an ActionMapping object...

The comment for  includes:

When the object representing the surrounding element is instantiated, the
accessor for the indicated property is called and passed the indicated value.

Quoting Jim Barrows <[EMAIL PROTECTED]>:

> > -Original Message-
> > From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow
> > Sent: Friday, September 03, 2004 10:08 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: ARRR!!! I'm being stupid again
> > 
> > 
> > The  in nested  applies to the ActionMapping 
> > object not the Action.
> 
> Oh that makes sense in a SCO kind of way...
> 
> Just so I can bookmark that info... where did you find it?
> 
> > 
> > Jim Barrows wrote:
> > > I'm trying to use the set-property tag in the struts-config 
> > file.  I know I'm being stupid, but what exactly is it?
> > > It's not finding the property to set.
> > > 
> > > Okay if I have in my struts-config.xml:
> > >  > type="com.sssc.shtuff.actions.LoanAppWizardAction" scope="session">
> > > 
> > >   
> > > 
> > >   
> > >   
> > >   
> > > 
> > > 
> > > and this in my action class:
> > > public class LoanAppWizardAction extends Action {
> > > 
> > >   blah
> > > 
> > > /**Read only property from inside this action that 
> > indicates what number is
> > >  * the last page.
> > >  */
> > > private int maxNumberOfPages = 0;
> > > 
> > > Lots o' blah
> > > 
> > > /**
> > >  * @return
> > >  */
> > > public int getMaxNumberOfPages() {
> > > return maxNumberOfPages;
> > > }
> > > 
> > > public void setMaxNumberOfPages(int i) {
> > > maxNumberOfPages = i;
> > > }
> > > }
> > > Then I should end up with maxNumberOfPages set to 2, and not:
> > > The following exception was logged 
> > java.lang.NoSuchMethodException: Bean has no property named 
> > maxNumberOfPages

-- 
Kris Schneider 
D.O.Tech   

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



Re: form bean for jsp form with indexed text property

2004-09-03 Thread dhay

Look in the archives.  There's tons of stuff on this there.

I posted a full working example recently too.




|-+>
| |   "viji.george"|
| |   <[EMAIL PROTECTED]|
| |   nd.com>  |
| ||
| |   09/03/2004 08:07 |
| |   AM   |
| |   Please respond to|
| |   "Struts Users|
| |   Mailing List"|
| ||
|-+>
  
>|
  |
|
  |   To:   <[EMAIL PROTECTED]>
   |
  |   cc:  
|
  |   Subject:  form bean for jsp form with indexed text property  
|
  
>|




Hi friends,
i have a jsp page in which many records that are retrieved from a db are
stored in an collection.
i think, to put the value in the text property i will have to use indexed
property, but what do i do for the form bean???
Is the following code true :

i suppose nameList is an ArrayList with data in it.
It contains a bean with 2 attributes " id " and " name "
i want to display both attributes in different text properties.

in which attribute of text property do i write the name of the data member?

And in the form bean on submit...
till now the attributes, 2 of them were of type string in the bean, when i
allow indexed property for text then how do i store values in form bean?

thank you.
Viji George
Information Systems,
The Arvind Mills Ltd.,
Naroda, Ahmedabad.
Phone-(079)22203030
Ext -2352
 [EMAIL PROTECTED]
(See attached file: C.htm)



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

RE: ARRRGGGGHHHH!!! I'm being stupid again....

2004-09-03 Thread Jim Barrows
> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow
> Sent: Friday, September 03, 2004 10:08 AM
> To: [EMAIL PROTECTED]
> Subject: Re: ARRR!!! I'm being stupid again
> 
> 
> The  in nested  applies to the ActionMapping 
> object not the Action.

Oh that makes sense in a SCO kind of way...

Just so I can bookmark that info... where did you find it?

> 
> Jim Barrows wrote:
> > I'm trying to use the set-property tag in the struts-config 
> file.  I know I'm being stupid, but what exactly is it?
> > It's not finding the property to set.
> > 
> > Okay if I have in my struts-config.xml:
> >  type="com.sssc.shtuff.actions.LoanAppWizardAction" scope="session">
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > and this in my action class:
> > public class LoanAppWizardAction extends Action {
> > 
> > blah
> > 
> > /**Read only property from inside this action that 
> indicates what number is
> >  * the last page.
> >  */
> > private int maxNumberOfPages = 0;
> > 
> > Lots o' blah
> > 
> > /**
> >  * @return
> >  */
> > public int getMaxNumberOfPages() {
> > return maxNumberOfPages;
> > }
> > 
> > public void setMaxNumberOfPages(int i) {
> > maxNumberOfPages = i;
> > }
> > }
> > Then I should end up with maxNumberOfPages set to 2, and not:
> > The following exception was logged 
> java.lang.NoSuchMethodException: Bean has no property named 
> maxNumberOfPages
> 
> 
> -
> 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: ARRRGGGGHHHH!!! I'm being stupid again....

2004-09-03 Thread Martin Gainty
To quote Fawcette-
"It doesn't take much to be a bean. A class just needs a public constructor
that takes no arguments and get and set methods for each significant
property such that a property named foo will have getFoo() and setFoo()
methods. Technically, it must just support introspection, but that is
usually achieved by using the get and set naming convention. Here is a
simple Stuff bean for our experiments that has a String and an integer for
properties
public class Stuff {
   private int k = 1;
   private String s = "hello";

   public Stuff() {}
   public int getK() {return k;}
   public String getS(){return s;}
   public void setK(int i) {k=i;}
   public void setS(String t){s=t;}
};"

/*I noticed that I did not see your properties break out to a separate Bean
Classwith a public constructor as well as get/set for each property*/

HTH,
Martin
- Original Message -
From: "Jim Barrows" <[EMAIL PROTECTED]>
To: "Struts User List (E-mail)" <[EMAIL PROTECTED]>
Sent: Friday, September 03, 2004 1:02 PM
Subject: ARRR!!! I'm being stupid again


I'm trying to use the set-property tag in the struts-config file.  I know
I'm being stupid, but what exactly is it?
It's not finding the property to set.

Okay if I have in my struts-config.xml:









and this in my action class:
public class LoanAppWizardAction extends Action {

blah

/**Read only property from inside this action that indicates what number
is
 * the last page.
 */
private int maxNumberOfPages = 0;

Lots o' blah

/**
 * @return
 */
public int getMaxNumberOfPages() {
return maxNumberOfPages;
}

public void setMaxNumberOfPages(int i) {
maxNumberOfPages = i;
}
}
Then I should end up with maxNumberOfPages set to 2, and not:
The following exception was logged java.lang.NoSuchMethodException: Bean has
no property named maxNumberOfPages

-
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: JSP won't compile on Tomcat v4.1.28 on OpenVMS

2004-09-03 Thread Jim Barrows


> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] Behalf Of Chuck Chopp
> Sent: Friday, September 03, 2004 10:03 AM
> To: [EMAIL PROTECTED]
> Subject: Re: JSP won't compile on Tomcat v4.1.28 on OpenVMS
> 
> 
> Jim Barrows wrote:
> 
> 
> What other configuration files do I need to review to rule out a 
> configuration error that could cause this problem?

Any of the security manager related files.  I don't know what they are off the top of 
my head.  That's what it sounds like to me anyway, since Tomcat does not normally 
exclude WEB-INF, it's something outside tomcat.


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



Re: Redirect to action

2004-09-03 Thread Chuck Chopp
Jim Barrows wrote:

-Original Message-
From: Ciaran Hanley [mailto:[EMAIL PROTECTED]
Sent: Friday, September 03, 2004 8:13 AM
To: Struts User Mailing List
Subject: Redirect to action
The struts logic user documentation shows the use of a 
redirect to an action
is permitted


http://struts.apache.org/userGuide/struts-logic.html#redirect

But when I use it I get the following error:

"Attribute action invalid for tag redirect according to TLD"

This is where I call the tag:


 


Is this a mistake in the documentation? Or is there another 
way to redirect
from within a JSP?

This is correct I think I'd check jar versions and tld versions etc.

I am using struts 1.1 if that makes any difference.
Small world... I just got bit by this in the past day or so.  In yoru case, 
the redirect tag would be used as follows:


If it was the forward tag, then it would be as follows:

The 2 tags are different w/respect to the attributes they use.
--
Chuck Chopp
ChuckChopp (at) rtfmcsi (dot) com http://www.rtfmcsi.com
RTFM Consulting Services Inc. 864 801 2795 voice & voicemail
103 Autumn Hill Road  864 801 2774 fax
Greer, SC  29651
Do not send me unsolicited commercial email.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: forwarding to an action w/o an input JSP

2004-09-03 Thread Chuck Chopp
Wendy Smoak wrote:
From: "Chuck Chopp" <[EMAIL PROTECTED]>
That's the part that's getting me.  I'm using JDK versions that are only a
"-" dash away from each other.  I've got JDK v1.4.2-5 on WinXP and JDK
v1.4.2-2 on OpenVMS.

They're running on different hardware (I assume) and definitely under
different operating systems.  That's a lot different than moving from one
dash-version to another on the same platform.
Yes, WinXP is on a 2.4 GHz Mobile P4 based DELL laptop.  OpenVMS is running 
on an Alpha processor in an AlphaServer DS10L rackmount system.

The JDK/JRE on WinXP was downloaded directly from Sun and the Tomcat kit was 
downloaded from the Apache/Jakarta web site.  The JDK/JRE on OpenVMS was 
downloaded from HP's web site, as was the OpenVMS-specific Tomcat kit.


They _ought_ to function exactly the same (the promise of write once, run
anywhere!) but these "other" JVM's (including the one we use for HP-UX)
often require some tweaking to work right.  When we first started, Tomcat
would inexplicably crash every so often.  It took recompiling the HP-UX
kernel with some different tuning parameters to make everything work
correctly.
Yes, I was counting on "write once, run anywhere" in this case.  I'm doing 
something *very* basic here that should work fine w/o any problems 
regardless of the platform it is on as long as the Tomcat & JDK/JRE are at 
or above the required minimum versions.

OpenVMS isn't a unix derivative, so there's no recompiling of the kernel to 
be done, per-se.  There are other types of system parameter tuning that can 
be done on OpenVMS, and I've gone through and granted unlimited resources to 
the account that runs the JVM that Tomcat runs within.

--
Chuck Chopp
ChuckChopp (at) rtfmcsi (dot) com http://www.rtfmcsi.com
RTFM Consulting Services Inc. 864 801 2795 voice & voicemail
103 Autumn Hill Road  864 801 2774 fax
Greer, SC  29651
Do not send me unsolicited commercial email.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: ARRRGGGGHHHH!!! I'm being stupid again....

2004-09-03 Thread Bill Siggelkow
The  in nested  applies to the ActionMapping 
object not the Action.

Jim Barrows wrote:
I'm trying to use the set-property tag in the struts-config file.  I know I'm being 
stupid, but what exactly is it?
It's not finding the property to set.
Okay if I have in my struts-config.xml:






and this in my action class:
public class LoanAppWizardAction extends Action {
blah
/**Read only property from inside this action that indicates what number is
 * the last page.
 */
private int maxNumberOfPages = 0;
Lots o' blah

/**
 * @return
 */
public int getMaxNumberOfPages() {
return maxNumberOfPages;
}

public void setMaxNumberOfPages(int i) {
maxNumberOfPages = i;
}
}
Then I should end up with maxNumberOfPages set to 2, and not:
The following exception was logged java.lang.NoSuchMethodException: Bean has no property named maxNumberOfPages

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


Re: JSP won't compile on Tomcat v4.1.28 on OpenVMS

2004-09-03 Thread Chuck Chopp
Jim Barrows wrote:
I've seen issues with Linux where just because the server was started under a user who 
had rwx permissions on a file, for some reason the thread doing the rwx didn't.  
Havne't seen that in a while and I don't if it was the Linux did threads, Java did 
threads, or the way Java did threads on linux.  So, it might be worthwhile looking 
into it farther if nothing else works.
Hm.. that sounds like a classpath issue... is anything else in the same directory as login_jsp.java being found?  
Course... it also sounds like a permissions issue too...  OS, java or OS&Java.

I did some more testing with adding additional JSPs to my test webapp.
Here's what I have
/index.jsp
/login.jsp
/success.jsp
/Form/page01.jsp
/WEB-INF/form/page02.jsp
/WEB-INF/page03.jsp
I have "index.jsp" set up as my welcome page.  It uses the tag 
"logic:redirect" to redirect the browser to the action named "login" which 
uses "login.jsp" as its input form.  After the "login" action completes, it 
forwards to an action named "success" which displays "success.jsp".  The 
"success.jsp" page has 3 submit buttons on it, one each for "page01.jsp", 
"page02.jsp" and "page03.jsp".  The "success" action has 3 forwards defined 
for it so that any of those 3 pages can be forwarded to depending on which 
one of the submit buttons is clicked in the browser.

Testing has shown that *any* JSP file located within  "WEB-INF" or in any 
subfolder under "WEB-INF" cannot be compiled by Jasper when the webapp is 
deployed on my OpenVMS system.  If I deploy the app to WinXP or NetWare and 
run it on the Tomcat implementations on those systems there is no problem 
getting all of the JSPs to compile as they are being accessed.

I've reviewed the "conf/server.xml" and "conf/catalina.policy" files on the 
OpenVMS Tomcat implementation and they are identical to the files on my 
WinXP system.

What other configuration files do I need to review to rule out a 
configuration error that could cause this problem?

TIA,
Chuck
--
Chuck Chopp
ChuckChopp (at) rtfmcsi (dot) com http://www.rtfmcsi.com
RTFM Consulting Services Inc. 864 801 2795 voice & voicemail
103 Autumn Hill Road  864 801 2774 fax
Greer, SC  29651
Do not send me unsolicited commercial email.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


ARRRGGGGHHHH!!! I'm being stupid again....

2004-09-03 Thread Jim Barrows
I'm trying to use the set-property tag in the struts-config file.  I know I'm being 
stupid, but what exactly is it?
It's not finding the property to set.

Okay if I have in my struts-config.xml:









and this in my action class:
public class LoanAppWizardAction extends Action {

blah

/**Read only property from inside this action that indicates what number is
 * the last page.
 */
private int maxNumberOfPages = 0;

Lots o' blah

/**
 * @return
 */
public int getMaxNumberOfPages() {
return maxNumberOfPages;
}

public void setMaxNumberOfPages(int i) {
maxNumberOfPages = i;
}
}
Then I should end up with maxNumberOfPages set to 2, and not:
The following exception was logged java.lang.NoSuchMethodException: Bean has no 
property named maxNumberOfPages

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



Re: JSP tag in a tag

2004-09-03 Thread Bill Siggelkow
Essentially -- the c:set so tag does not create a scripting variable 
like the bean:define tag -- not an issue for you since you it looks like 
you're using the html-el tags.

Bill Siggelkow
Dean A. Hoover wrote:
Thanks. Is that equivalent to:

 ddrivetip('');

??

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


Re: [general] managing common files

2004-09-03 Thread Craig McClanahan
On Fri, 3 Sep 2004 12:16:57 -0400, Dan Allen <[EMAIL PROTECTED]> wrote:
> I want to get some feedback on how other developers handle the
> management of certain common files across multiple project trees.
> 
> I am developing about a dozen different web modules right now, each
> with its own project tree.  However, certain resources are used in all
> of the projects, such as build.xml and build.properties.  I would like
> to keep these files in CVS, but I don't want the files duplicated in
> every single CVS module because a change to one would still require a
> syncronization across all the projects.  At the same time, I want the
> project tree to be able to stand alone so that it isn't dependent on a
> "common" folder.  My question is, where do I store it and how do I get
> the most recent version?
> 
> The response I most anticipate is to have a target in build.xml that
> reaches out to a common directory and pulls the newest version into
> the project tree.  Then the common folder will have its own CVS module
> and all updates to such common files should occur only in the common
> folder and not on the file inside of the particular project which uses
> it.  Running the target allows a project tree to be brought "up to
> date" ready for export as a standalone project tree.
> 
> Am I on the money or is there a better way to handle such resources?
> 
> Dan

One approach I've seen to this issue lets you have the primary
benefits of sharing common resource files like this, but also allows
limited forms of customization in a way that feels like subclassing a
Java class.

Instead of sharing the build.xml file itself, the idea is to share
subordinate build scripts that contain common targets ... say
"build-common.xml".  Then, for each project that needs to share the
common targets, you'd provide a "starter" version of build.xml (as
part of a project template or something) that included the code to
pull over the build-common.xml file (in an "init" target of some
sort), and had prebuilt versions of all the targets which simply
delegate to the common version:





Now, by default, individual projects are sharing all the guts of the
common tasks, but you are free to customize a little if needed ...
either by setting properties in the project's own file (the inheritAll
setting passes them on), or by inserting Ant tasks before and/or after
the call to the delegated target -- or, in rare cases, you might need
to completely replace the common target with different logic, and skip
the delegation call.

If you've ever glanced at Maven, you'll probably recognize this as the
fundamental design pattern Maven encourages - a common repository for
all the targets (although Maven calls them goals), with the ability to
decorate using preGoal and postGoal settings.  You have to buy into
Maven as a whole if you want to use it, though; but it's possible to
emulate this particular concept by carefully crafted Ant build.xml
files that use delegation.

Craig

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



Re: [OT] Setting up a struts project in IDEA

2004-09-03 Thread Lucas Gonzalez Pearson
Denis,
place the cursor over the TLD reference ( it will be probably in RED )...
and then press ALT + ENTER and idea will take care of everything for you.
(It will add it to the project resources list)

Exitos
Lucas

- Original Message - 
From: "Denis Avdic" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, September 03, 2004 11:40 AM
Subject: [OT] Setting up a struts project in IDEA


> Hello,
>
> I switched to IntelliJ IDEA 4.5 recently and I finally got an
> opportunity to set up a pure struts project for a demo.  I unpacked
> struts-blank, and guessed at various settings IDEA asked me when I
> tried to set up a project.  Now I can't get the IDE to recognize the
> tld's anywhere, I am not sure what path root it is using or how to set
> it.  I've tried searching online for a tutorial on how to set up a
> struts project for development in IDEA, but I didn't have any luck.
>
> Is there anyone out there using IDEA 4.5 that has a list of settings,
> paths and other things that need to be set in order for all the bells
> and whistles to work?
>
> Thanks,
>
> Denis
>
> -
> 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: [general] managing common files

2004-09-03 Thread Ovidiu EFTIMIE
Have you tested Maven ? http://maven.apache.org


On Fri, 3 Sep 2004 09:26:37 -0700, Jim Barrows <[EMAIL PROTECTED]> wrote:
> 
> 
> > -Original Message-
> > From: Dan Allen [mailto:[EMAIL PROTECTED]
> > Sent: Friday, September 03, 2004 9:17 AM
> > To: Struts Users Mailing List
> > Subject: [general] managing common files
> >
> >
> >
> > The response I most anticipate is to have a target in build.xml that
> > reaches out to a common directory and pulls the newest version into
> > the project tree.  Then the common folder will have its own CVS module
> > and all updates to such common files should occur only in the common
> > folder and not on the file inside of the particular project which uses
> > it.  Running the target allows a project tree to be brought "up to
> > date" ready for export as a standalone project tree.
> >
> > Am I on the money or is there a better way to handle such resources?
> 
> You're close... the problem is that what happens if one project has to customize one 
> of your base files?  Your ant task needs to be smart enough to not stomp on that 
> customization.  Then there's question of is the pain of managing "common" files 
> really worth it?
> 
> I've found that trying to manage common files across projects is usually more pain 
> then it's worth in a lot of ways.  I typically use either appfuse, or one of my base 
> project setups as a template to get started, and then just don't manage the common 
> files anymore.  Each project gets updated as it needs it.
> 
> When I go to shops where they try and keep all the common files together, I've 
> noticed that they start running into a LOT of classpath issues, and other conflicts 
> that I just don't deal with because I don't try and gather things together.  The 
> shops generally claim it's easier... until we start comparing set up times and 
> deployment times.  I generally can just war up my project and drop it off on the 
> server, while they have to tinker with it until all the libraries are correct.  Or 
> worse, they can't upgrade to some new version, because it (the new jar version) will 
> break their old code, so they end up having to reinvent the wheel.
> 
> Since a WAR file is supposed to be a self-supported unit that doesn't need anything 
> else, I try to keep it that way.  If I can't just drop it off on the server, I 
> usually find myself with more headaches then I really care to deal with.
> 
> 
> 
> -
> 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: [general] managing common files

2004-09-03 Thread Jim Barrows


> -Original Message-
> From: Dan Allen [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 03, 2004 9:17 AM
> To: Struts Users Mailing List
> Subject: [general] managing common files
> 
> 
> 
> The response I most anticipate is to have a target in build.xml that
> reaches out to a common directory and pulls the newest version into
> the project tree.  Then the common folder will have its own CVS module
> and all updates to such common files should occur only in the common
> folder and not on the file inside of the particular project which uses
> it.  Running the target allows a project tree to be brought "up to
> date" ready for export as a standalone project tree.
> 
> Am I on the money or is there a better way to handle such resources?

You're close... the problem is that what happens if one project has to customize one 
of your base files?  Your ant task needs to be smart enough to not stomp on that 
customization.  Then there's question of is the pain of managing "common" files really 
worth it?

I've found that trying to manage common files across projects is usually more pain 
then it's worth in a lot of ways.  I typically use either appfuse, or one of my base 
project setups as a template to get started, and then just don't manage the common 
files anymore.  Each project gets updated as it needs it.

When I go to shops where they try and keep all the common files together, I've noticed 
that they start running into a LOT of classpath issues, and other conflicts that I 
just don't deal with because I don't try and gather things together.  The shops 
generally claim it's easier... until we start comparing set up times and deployment 
times.  I generally can just war up my project and drop it off on the server, while 
they have to tinker with it until all the libraries are correct.  Or worse, they can't 
upgrade to some new version, because it (the new jar version) will break their old 
code, so they end up having to reinvent the wheel.  

Since a WAR file is supposed to be a self-supported unit that doesn't need anything 
else, I try to keep it that way.  If I can't just drop it off on the server, I usually 
find myself with more headaches then I really care to deal with.

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



[general] managing common files

2004-09-03 Thread Dan Allen
I want to get some feedback on how other developers handle the
management of certain common files across multiple project trees.

I am developing about a dozen different web modules right now, each
with its own project tree.  However, certain resources are used in all
of the projects, such as build.xml and build.properties.  I would like
to keep these files in CVS, but I don't want the files duplicated in
every single CVS module because a change to one would still require a
syncronization across all the projects.  At the same time, I want the
project tree to be able to stand alone so that it isn't dependent on a
"common" folder.  My question is, where do I store it and how do I get
the most recent version?

The response I most anticipate is to have a target in build.xml that
reaches out to a common directory and pulls the newest version into
the project tree.  Then the common folder will have its own CVS module
and all updates to such common files should occur only in the common
folder and not on the file inside of the particular project which uses
it.  Running the target allows a project tree to be brought "up to
date" ready for export as a standalone project tree.

Am I on the money or is there a better way to handle such resources?

Dan
 
-- 
Open Source Advocacy
http://www.mojavelinux.com

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



Re: Struts & bean property capitalization - minor problem

2004-09-03 Thread Craig McClanahan
On Fri, 03 Sep 2004 06:59:10 +, Janne Mattila
<[EMAIL PROTECTED]> wrote:
> Reading the specification clarified how things work, thank you. It's much
> nicer to know the reason why things happen than just what immediate fix
> would solve the problem. It seems that if bean.getEMail() is a given, JSP
> page has to have
> 
> 
> 
> in order to work.
> 
> Actually, I do not think getEMail() method breaks any conventions. The
> reason property="eMail" does not work is because "to support the occasional
> use of all upper-case names, property name is not modified if first two
> characters are upper case". It seems to me that there is a fix for
> properties that break the naming convention (all upper case), but that fix
> breaks some cases that actually follow the naming convention ("eMail"). At
> least I did not see a rule that forbids a property name having the first
> "word" being only one character (is there one? I did not read much else
> besides chapters 8.3 and 8.8...).
> 

Not a problem ... a property named "streetAddress" would mean your
methods are getStreetAddress() and setStreetAddress().

You might also want to glance at the section about BeanInfo classes,
where you can actually declare any methods you want to be your getter
and setter methods.

Craig

> Don't worry, I'm not going to use bean.getEMail() :)
> 
> >From: Craig McClanahan <[EMAIL PROTECTED]>
> >Reply-To: Craig McClanahan <[EMAIL PROTECTED]>
> >To: Struts Users Mailing List <[EMAIL PROTECTED]>
> >Subject: Re: Struts & bean property capitalization - minor problem
> >Date: Thu, 2 Sep 2004 20:48:39 -0700
> 
> 
> >
> >On Thu, 02 Sep 2004 14:07:37 +, Janne Mattila
> ><[EMAIL PROTECTED]> wrote:
> > > -formBean method getEeMail() and  > > property="eeMail"/> => works
> > > -formBean method getEmail() and  > > property="email"/> =>works
> > > - formBean method getEMail() and  > > property="eMail"/> =>
> > >
> > > => org.apache.jasper.JasperException: No getter method for property
> >eMail of
> > > bean org.apache.struts.taglib.html.BEAN
> > >
> > > I don't know what method struts tries to find. Eclipse creates getter as
> > > getEMail() when I name a property "eMail". I think getEMail() is just
> >fine
> > > getter for variable "eMail". (of course, one could argue whether
> >variable
> > > name should be "email" instead, but lets not go there)
> > >
> > > I am using 1.1, would a later release solve this?
> > >
> >
> >Using a later release won't change anything, because the
> >commons-beanutils code that Struts uses under the covers requires you
> >to either follow the property naming conventions in the JavaBeans spec
> >(http://java.sun.com/products/javabeans/docs/spec.html), or provide
> >BeanInfo classes to tell the server what your property getter and
> >setter methods really are.  Property names like "eMail" break the
> >conventions, and are thus not recognized.  See the spec for more
> >details on all of this.
> >
> >Craig
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> _
> Add photos to your e-mail 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: Redirect to action

2004-09-03 Thread Jim Barrows


> -Original Message-
> From: Ciaran Hanley [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 03, 2004 8:13 AM
> To: Struts User Mailing List
> Subject: Redirect to action
> 
> 
> The struts logic user documentation shows the use of a 
> redirect to an action
> is permitted
> 
>  
> 
> http://struts.apache.org/userGuide/struts-logic.html#redirect
> 
>  
> 
> But when I use it I get the following error:
> 
>  
> 
> "Attribute action invalid for tag redirect according to TLD"
> 
>  
> 
> This is where I call the tag:
> 
>  
> 
> 
> 
>   
> 
> 
> 
>  
> 
> Is this a mistake in the documentation? Or is there another 
> way to redirect
> from within a JSP?

This is correct I think I'd check jar versions and tld versions etc.

> 
> I am using struts 1.1 if that makes any difference.
> 
>  
> 
> Thanks
> 
> 

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



Re: forwarding to an action w/o an input JSP

2004-09-03 Thread Wendy Smoak
From: "Chuck Chopp" <[EMAIL PROTECTED]>
> That's the part that's getting me.  I'm using JDK versions that are only a
> "-" dash away from each other.  I've got JDK v1.4.2-5 on WinXP and JDK
> v1.4.2-2 on OpenVMS.

They're running on different hardware (I assume) and definitely under
different operating systems.  That's a lot different than moving from one
dash-version to another on the same platform.

They _ought_ to function exactly the same (the promise of write once, run
anywhere!) but these "other" JVM's (including the one we use for HP-UX)
often require some tweaking to work right.  When we first started, Tomcat
would inexplicably crash every so often.  It took recompiling the HP-UX
kernel with some different tuning parameters to make everything work
correctly.

-- 
Wendy Smoak


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



RE: Tiles in Rows and Columns (Problem Solved)

2004-09-03 Thread Jim Barrows


> -Original Message-
> From: Caroline Jen [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 03, 2004 6:41 AM
> To: Struts Users Mailing List
> Subject: RE: Tiles in Rows and Columns (Problem Solved)
> 
> 
> Thanks, Jim, for your support.  I made a stupid
> mistake.  The "View Source" helps in diagnosing
> problems.

Yes it does glad I could help!


> --- Jim Barrows <[EMAIL PROTECTED]> wrote:
> 
> > 
> > 
> > > -Original Message-
> > > From: Caroline Jen [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, September 02, 2004 12:41 PM
> > > To: Struts Users Mailing List
> > > Subject: RE: Tiles in Rows and Columns
> > > 
> > > 
> > > It does not work. There are three rows. The second
> > row
> > > has two columns. 
> > > 
> > > I am able to display the first row, "the column on
> > my
> > > right hand side in the second row", and the third
> > row.
> > > The column on my left hand side in the second row
> > is
> > > not shown.
> > 
> > Okay, what happens when you comment out the tiles
> > stuf, and just put some test text in the table?
> > If that works ( and I think it will), then you know
> > it's not on the Frame.jsp page you have problems.
> > One of the little tricks I use when developing tiles
> > is to have at the top and bottom of each jsp  page:
> > 
> > blah
> > 
> > 
> > That way I can at least tell if the page is being
> > included.  This helps mostly when you're looking at
> > what is being generated in the browser.
> > Everything looks like it should be working.. so I'm
> > wondering what is exactly is ending up on the page
> > when you view source.
> > 
> > 
> > 
> > > 
> > > Here is the Frame.jsp which defines the layout:
> > > code: 
> > > 
> > > 
> > > <%@ taglib uri="/tags/struts-tiles" prefix="tiles"
> > %>
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > >
> > >   
> > >
> > > 
> > > 
> > >
> > >   
> > >
> > >
> > >   
> > >
> > > 
> > > 
> > >
> > >   
> > >
> > 
> > 
> > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > My tiles-def.xml looks like:
> > > code: 
> > > 
> > > 
> > >  > >"-//Apache Software Foundation//DTD Tiles
> > > Configuration//EN"
> > >   
> > >
> >
> "http://jakarta.apache.org/struts/dtds/tiles-config.dtd";>
> > >  
> > > 
> > >  > > path="/frame/common/layouts/Frame.jsp">
> > >> > value="/frame/common/upperbar.jsp"/>
> > >> > value="/frame/common/links.jsp"/>
> > >   
> > >> > value="/frame/common/lowerbar.jsp"/>
> > > 
> > >  > > extends=".frame.Base">
> > >> > value="/frame/content/home.jsp"/>
> > > 
> > > 
> > > 
> > > 
> > > 
> > > The links.jsp (the one that is now shown) looks
> > like:
> > > code: 
> > > 
> > > 
> > > WELCOME TO HSIN-CI
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > Member Tools
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > Update My Account
> > > 
> > > 
> > > 
> > > 
> > > 
> > > Required Information
> > > 
> > > 
> > > 
> > > 
> > > 
> > > Additional Information
> > > 
> > > 
> > > 
> > > 
> > > 
> > > Asset Information
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > And the home.jsp looks like:
> > > code: 
> > > 
> > > 
> > > <%@ taglib uri="/tags/struts-html" prefix="html"
> > %>
> > > <%@ taglib uri="/tags/struts-bean" prefix="bean"
> > %>
> > > <%@ taglib uri="/tags/struts-logic" prefix="logic"
> > %>
> > > <%@ taglib uri="/tags/request" prefix="req" %>
> > >  
> > > 
> > > 
> > > HSIN-CI ALL MEMBERS PAGE
> > > 
> > > 
> > >  
> > >  
> > > 
> > > Sign in
> > > 
> > > 
> > >  
> > >  
> > > 
> > > Register
> > > 
> > > 
> > > 
> > > 
> > > 
> > > --- Jim Barrows <[EMAIL PROTECTED]> wrote:
> > > 
> > > > 
> > > > 
> > > > > -Original Message-
> > > > > From: Caroline Jen
> > [mailto:[EMAIL PROTECTED]
> > > > > Sent: Thursday, September 02, 2004 11:50 AM
> > > > > To: Struts Users Mailing List
> > > > > Subject: RE: Tiles in Rows and Columns
> > 
> === message truncated ===
> 
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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



RE: forwarding to an action w/o an input JSP

2004-09-03 Thread Jim Barrows


> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] Behalf Of Chuck Chopp
> Sent: Thursday, September 02, 2004 6:47 PM
> To: [EMAIL PROTECTED]
> Subject: Re: forwarding to an action w/o an input JSP
> 
> 
> Jim Barrows wrote:
> 
> > I would immediately suspect either the JVM, or the 
> underlying OS and the permissions of.  Maybe even the way the 
> security manager is setup on the JVM.
> 
> That's the part that's getting me.  I'm using JDK versions 
> that are only a 
> "-" dash away from each other.  I've got JDK v1.4.2-5 on 
> WinXP and JDK 
> v1.4.2-2 on OpenVMS.  I'm looking into the security manager 
> issue to see if 
> there's anything involved there that might prevent JSPs from 
> being compiled 
> when they are located in a subfolder located under "WEB-INF". 
>  I'm confident 
> that the underlying O.S. file system permissions are not a 
> factor, though, 
> as the user account that was specifically created to run 
> Apache & Tomcat was 
> explicitly set to be the owner of that entire folder 
> hierarchy and ACLs were 
> added that grant that user full permissions to the folders & files.

I've seen issues with Linux where just because the server was started under a user who 
had rwx permissions on a file, for some reason the thread doing the rwx didn't.  
Havne't seen that in a while and I don't if it was the Linux did threads, Java did 
threads, or the way Java did threads on linux.  So, it might be worthwhile looking 
into it farther if nothing else works.


> 
> The underlying issue appears to be that the login_jsp.java 
> file is not being 
> found and thus the Java compiler ends up throwing a 
> ClassNotFound exception.

Hm.. that sounds like a classpath issue... is anything else in the same 
directory as login_jsp.java being found?  
Course... it also sounds like a permissions issue too...  OS, java or OS&Java.

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



RE: forwarding to an action w/o an input JSP

2004-09-03 Thread Jim Barrows


> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] Behalf Of Chuck Chopp
> Sent: Thursday, September 02, 2004 6:39 PM
> To: [EMAIL PROTECTED]
> Subject: Re: forwarding to an action w/o an input JSP
> 
> 
> Wendy Smoak wrote:
> 
> > Good list!  Add to that, you're working with open source 
> stuff, which will
> > change right out from under you if you're not paying attention.
> 
> LOL...  isn't that a hidden part of the definition of open 
> source stuff? 

I've found that it's worse dealing with proprietary software... especially MS.  MS 
might have cleaned up their act in the regard, but I doubt it.  With open source you 
just need to keep the occasional eye on the web page, and if you're really paranoid, 
the source code.  Try doing that with Proprietary.

> The faster development cycle makes it hard to freeze the 
> technology long 
> enough to get fluent in it.  Mentally keeping up with new 
> features being 
> released in "reference" releases while at the same time being 
> limited by 
> lagging implementations on certain platforms keep my thinking 
> spread out a 
> bit thin.  That's just the nature of the open source beast, though.

I dunno...  I upgrade things when they release and don't pay a lot of attention to 
RC's.

> 
> > Just keep asking questions, you're doing fine.  It won't be 
> long until
> > you're answering other newbies' questions.  And if you 
> think you're all
> > alone, look back in the list archives for my name... talk 
> about confused!
> > Some of my early posts read like I randomly selected words 
> from the Struts
> > website and strung them together.
> 
> It'll come along soon.  It will just take getting through all 
> of the tasks 
> successfully one time [meaning several failed attempts happen 
> first] and 
> then it will all click.
> 
> > The lightbulb will come on soon. :) [Weird, I used that 
> phrase in my note
> > suggesting debugging struts-example.war and deleted it 
> thinking it was too
> > flip.]
> 
> Nah that's not flip sounding at all.  That's how it works 
> for me most of 
> the time.  The light simply comes on as if a voice said "let there be 
> comprehension" and suddenly it all makes sense.
> 
> 
> -- 
> Chuck Chopp
> 
> ChuckChopp (at) rtfmcsi (dot) com http://www.rtfmcsi.com
> 
> RTFM Consulting Services Inc. 864 801 2795 voice & voicemail
> 103 Autumn Hill Road  864 801 2774 fax
> Greer, SC  29651
> 
> Do not send me unsolicited commercial email.
> 
> 
> -
> 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: Staying relative

2004-09-03 Thread Jim Barrows


> -Original Message-
> From: Dave Bender [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 02, 2004 6:38 PM
> To: [EMAIL PROTECTED]
> Subject: Staying relative
> 
> 
> 
> /app1/areas/group1/section1
> /app1/areas/group1/section2
> /app1/areas/group1/section3
>   ...
> /app1/areas/group2/section1
> /app1/areas/group2/section2
> /app1/areas/group2/section3

Why are making this a real division rather then a logical one?  Do the users really 
care if they're url is /areas/group1/section1 as opposed to /uploadFile?  No, in fact 
they probably would prefer to have the details of where things are hidden from them.
When a user logs in, you also get their group, section etc etc and store it in the 
session.  You use that information to store the file upload, or do anything that is 
file specific.  Your ui shouldn't care what the physical is, and just deal with the 
logical.

One of the cool things about JSP/Servlets is that there does not have to be, and 
should not be (from a purist engineering perspective) direct relationship between the 
URL and your file structure.

>   ...
> 
> Where I'm having trouble is staying in the same section.  If 
> a member of group1 goes to section1, and my actions are 
> defined like this :
> 
>  
> 
> that takes the user to /app1/input.do, which is outside the 
> "section".  If I change my actions to specify the absolute 
> path for each Action, it works, but I have to create six sets 
> of actions, one for each section, like this:
> 
>   path="/app1/areas/group1/section1/input" />
>  
> That works, but ... is that how I'm *supposed* to to do it?  
> I'm just getting started and I've got a butt-load of Actions. 
>  I don't want to manage them in sextuples.  That seems 
> repetitive and error prone, along with being a maintenance headache.  
> 
> Any help would be appreciated.  It seems like this problem 
> must have been solved elegantly somehow, but I'm lost as to how.
> 
> Dave
> 

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



Still more / Re: ValidatorResults are empty? (in Struts 1.2.2 with the new Commons Validator)

2004-09-03 Thread Casey Forbes
Okay - I started tapping out this question too soon and jumped to the 
wrong conclusion.  My applications are still broken but it isn't the fault 
of commons-validator.

It looks like the resolution to this bug is the thing that is hurting me:
http://issues.apache.org/bugzilla/show_bug.cgi?id=26413
Basically, boolean pass/fail results are now returned from the FieldCheck 
and stuffed into the validation result map instead of the converted values 
that I used to get in Struts 1.1.

Shouldn't this be documented in the Release Notes?
Casey

On Fri, 3 Sep 2004, Casey Forbes wrote:
Hi all,
This is sort of a commons-validator question but I know that
there are some folks here that know all about the validator...
I just upgraded to Struts 1.2.2 from 1.1 and I broke all of my applications 
:(

It looks like ValidatorForm.getResultValueMap() will always return an empty 
map because Validator.validate() always returns an empty ValidatorResults 
object. (The last line of the validate method returns a brand new 
ValidatorResults object)

CVS tells me that this was changed in Validator.java rev 1.33 back in 
February so I guess that it is going to stay this way. I'm not sure what to 
do now because I have a dozen applications (and hundreds of forms) that were 
using the validator results to get the Integers, Dates, or whatever that the 
validator converted for me.

Will Struts 1.2.2 work properly with the commons-validator that
was packaged with Struts 1.1? Does anybody have any other ideas?
Am I missing something?
Thanks,
Casey

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


Re: JSP tag in a tag

2004-09-03 Thread Dean A. Hoover
Thanks. Is that equivalent to:

 ddrivetip('');

??
Dean Hoover
Bill Siggelkow wrote:
You are on the right track, Dean. Do something like the following:

ddrivetip('');




Bill Siggelkow
Dean A. Hoover wrote:
I'm using JSTL and struts and I'm not sure
how to stuff an fmt:message into an html:link
Here's the partial JSP:
');" 
onmouseout="hideddrivetip();">

Jasper barfs on this with:
EditEmail.jsp(35,162) equal symbol expected
I figure its because all of the JSP custom tags get resolved at
the same time, right? So, what I think I need to do is get the
message that would be output by fmt:message into a variable
and then use the variable in the html:link attribute. Am I on
the right track? How would you go about it?
Thanks.
Dean Hoover

-
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 long does it take to master appfuse?

2004-09-03 Thread Jim Barrows


> -Original Message-
> From: struts Dude [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 02, 2004 6:03 PM
> To: Struts Users Mailing List
> Subject: Re: How long does it take to master appfuse?
> 
> 
> 
> - Original Message - 
> From: "Jim Barrows" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Friday, September 03, 2004 3:52 AM
> Subject: RE: How long does it take to master appfuse?
> 
> 
> >>Another way of saying this is
> >>, is using appfuse overkill for a simple web app
> >> that doesn't use J2EE?
> 
> >Not really.. you have to use JSP/Servlet portions of J2EE at 
> least... 
> >IIRC JNDI is also part of J2EE..
> 
> So appfuse is great for developing non-EJB web app?

Or for developing EJB based web app.  It does a lot of the boilerplate functionality 
for you, such as login/logout, remember-me, login-before-you-need-to, menus, unit test 
framework, system test framework, etc etc and ties in everything together.
Won't help at all with making EJB easy.  Not sure anything makes that mess easy.

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



Re: [OT] Setting up a struts project in IDEA

2004-09-03 Thread DGraham

TLDs:

In my foo.jsp, I have:
<%@ taglib uri="/WEB-INF/struts-logic.tld"
prefix="logic" %>


Settings>Resources
1. Configure External Resources>Add
        a.
URI = /WEB-INF/struts-logic.tld
        b.
PATH = C:\vss\PhoenixWeb\web\WEB-INF\struts-logic.tld

What other problems are you having?

Dennis






Denis Avdic <[EMAIL PROTECTED]>

09/03/2004 10:40 AM



Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>





To
Struts Users Mailing List
<[EMAIL PROTECTED]>


cc



Subject
[OT] Setting up a struts
project in IDEA








Hello, 

I switched to IntelliJ IDEA 4.5 recently and I finally got an
opportunity to set up a pure struts project for a demo.  I unpacked
struts-blank, and guessed at various settings IDEA asked me when I
tried to set up a project.  Now I can't get the IDE to recognize the
tld's anywhere, I am not sure what path root it is using or how to set
it.  I've tried searching online for a tutorial on how to set up a
struts project for development in IDEA, but I didn't have any luck.

Is there anyone out there using IDEA 4.5 that has a list of settings,
paths and other things that need to be set in order for all the bells
and whistles to work?

Thanks, 

Denis

-
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: forwarding to an action w/o an input JSP

2004-09-03 Thread Jim Barrows


> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] Behalf Of Chuck Chopp
> Sent: Thursday, September 02, 2004 4:20 PM
> To: [EMAIL PROTECTED]
> Subject: Re: forwarding to an action w/o an input JSP
> 
> 
> Jim Barrows wrote:
> 
> > Back, next and reload will do to a struts app what they do 
> with any other app:  Allow the user to break your application 
> in new and interesting ways.
> 
> I've seen the term "tokens" used in some postings here that 
> appear to be 
> dealing with the same issue.  Am I on the right track if I 
> begin researching 
> tokens [as they relate to Struts apps] in the context of 
> dealing with the 
> backward/forward button issue?

Yes, tokens and the redirect-after-get pattern.. basically redirect after processing a 
form to make everything work correctly.

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



Re: JSP tag in a tag

2004-09-03 Thread Bill Siggelkow
You are on the right track, Dean. Do something like the following:

ddrivetip('');




Bill Siggelkow
Dean A. Hoover wrote:
I'm using JSTL and struts and I'm not sure
how to stuff an fmt:message into an html:link
Here's the partial JSP:
');" 
onmouseout="hideddrivetip();">

Jasper barfs on this with:
EditEmail.jsp(35,162) equal symbol expected
I figure its because all of the JSP custom tags get resolved at
the same time, right? So, what I think I need to do is get the
message that would be output by fmt:message into a variable
and then use the variable in the html:link attribute. Am I on
the right track? How would you go about it?
Thanks.
Dean Hoover

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


Re: ValidatorResults are empty? (in Struts 1.2.2 with the new Commons Validator)

2004-09-03 Thread Bill Siggelkow
Hmmm ... looking at the Validator.validate() method it seems it should 
only return an empty ValidatorResults if there is no Form configuration 
associated with the ValidatorForm object.

public ValidatorResults validate() throws ValidatorException {
Locale locale = (Locale) this.getParameterValue(LOCALE_PARAM);
if (locale == null) {
locale = Locale.getDefault();
}
this.setParameter(VALIDATOR_PARAM, this);
Form form = this.resources.getForm(locale, this.formName);
if (form != null) {
this.setParameter(FORM_PARAM, this);
return form.validate(
this.parameters,
this.resources.getValidatorActions(),
this.page);
}
return new ValidatorResults();
}
I haven't debug to see if this is true so YMMV.
Bill Siggelkow
Casey Forbes wrote:
Hi all,
This is sort of a commons-validator question but I know that
there are some folks here that know all about the validator...
I just upgraded to Struts 1.2.2 from 1.1 and I broke all of my 
applications :(

It looks like ValidatorForm.getResultValueMap() will always return an 
empty map because Validator.validate() always returns an empty 
ValidatorResults object. (The last line of the validate method returns a 
brand new ValidatorResults object)

CVS tells me that this was changed in Validator.java rev 1.33 back in 
February so I guess that it is going to stay this way. I'm not sure what 
to do now because I have a dozen applications (and hundreds of forms) 
that were using the validator results to get the Integers, Dates, or 
whatever that the validator converted for me.

Will Struts 1.2.2 work properly with the commons-validator that
was packaged with Struts 1.1? Does anybody have any other ideas?
Am I missing something?
Thanks,
Casey

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


JSP tag in a tag

2004-09-03 Thread Dean A. Hoover
I'm using JSTL and struts and I'm not sure
how to stuff an fmt:message into an html:link
Here's the partial JSP:
');" 
onmouseout="hideddrivetip();">

Jasper barfs on this with:
EditEmail.jsp(35,162) equal symbol expected
I figure its because all of the JSP custom tags get resolved at
the same time, right? So, what I think I need to do is get the
message that would be output by fmt:message into a variable
and then use the variable in the html:link attribute. Am I on
the right track? How would you go about it?
Thanks.
Dean Hoover
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Sorry / Re: ValidatorResults are empty? (in Struts 1.2.2 with the new Commons Validator)

2004-09-03 Thread Casey Forbes
Agh. I'm blind.
Disregard my message and have a good weekend.
Casey
On Fri, 3 Sep 2004, Casey Forbes wrote:
Hi all,
This is sort of a commons-validator question but I know that
there are some folks here that know all about the validator...
I just upgraded to Struts 1.2.2 from 1.1 and I broke all of my applications 
:(

It looks like ValidatorForm.getResultValueMap() will always return an empty 
map because Validator.validate() always returns an empty ValidatorResults 
object. (The last line of the validate method returns a brand new 
ValidatorResults object)

CVS tells me that this was changed in Validator.java rev 1.33 back in 
February so I guess that it is going to stay this way. I'm not sure what to 
do now because I have a dozen applications (and hundreds of forms) that were 
using the validator results to get the Integers, Dates, or whatever that the 
validator converted for me.

Will Struts 1.2.2 work properly with the commons-validator that
was packaged with Struts 1.1? Does anybody have any other ideas?
Am I missing something?
Thanks,
Casey

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


Redirect to action

2004-09-03 Thread Ciaran Hanley
The struts logic user documentation shows the use of a redirect to an action
is permitted

 

http://struts.apache.org/userGuide/struts-logic.html#redirect

 

But when I use it I get the following error:

 

"Attribute action invalid for tag redirect according to TLD"

 

This is where I call the tag:

 



  



 

Is this a mistake in the documentation? Or is there another way to redirect
from within a JSP?

I am using struts 1.1 if that makes any difference.

 

Thanks



ValidatorResults are empty? (in Struts 1.2.2 with the new Commons Validator)

2004-09-03 Thread Casey Forbes
Hi all,
This is sort of a commons-validator question but I know that
there are some folks here that know all about the validator...
I just upgraded to Struts 1.2.2 from 1.1 and I broke all of my 
applications :(

It looks like ValidatorForm.getResultValueMap() will always return an 
empty map because Validator.validate() always returns an empty 
ValidatorResults object. (The last line of the validate method returns a 
brand new ValidatorResults object)

CVS tells me that this was changed in Validator.java rev 1.33 back in 
February so I guess that it is going to stay this way. I'm not sure what 
to do now because I have a dozen applications (and hundreds of forms) that 
were using the validator results to get the Integers, Dates, or whatever 
that the validator converted for me.

Will Struts 1.2.2 work properly with the commons-validator that
was packaged with Struts 1.1? Does anybody have any other ideas?
Am I missing something?
Thanks,
Casey

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


Re: [OT] Setting up a struts project in IDEA

2004-09-03 Thread David Durham
Denis Avdic wrote:
Is there anyone out there using IDEA 4.5 that has a list of settings,
paths and other things that need to be set in order for all the bells
and whistles to work?
I've got it installed and I can't stand what they did with Projects.  
With 3.0, it was easy to add a project and add libraries and classes to 
your classpath.  The web-app support was pretty good.  Now you're forced 
into choosing from their "modules."  The whole stinks like shit, if you 
ask me.  Maybe I'm missing something, though.  I'll be following this 
thread -- assuming it goes somewhere.

--
Dave

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


[OT] Setting up a struts project in IDEA

2004-09-03 Thread Denis Avdic
Hello, 

I switched to IntelliJ IDEA 4.5 recently and I finally got an
opportunity to set up a pure struts project for a demo.  I unpacked
struts-blank, and guessed at various settings IDEA asked me when I
tried to set up a project.  Now I can't get the IDE to recognize the
tld's anywhere, I am not sure what path root it is using or how to set
it.  I've tried searching online for a tutorial on how to set up a
struts project for development in IDEA, but I didn't have any luck.

Is there anyone out there using IDEA 4.5 that has a list of settings,
paths and other things that need to be set in order for all the bells
and whistles to work?

Thanks, 

Denis

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



compile with jspc in ant for tomcat 5

2004-09-03 Thread Gilbert, Antoine
Hi

 

I'am trying to compile some jsp of a dir with this kind of ant code :

 

 

   

 

 

   

 

 

   

 

 

   

 

 

   

 

 

 



  



 

And I get an error. I'm just figuring if I'm doing something wrong..

 

No public execute() in class org.apache.jasper.JspC

TestJSPC.xml [4] No public execute() in class org.apache.jasper.JspC

at
org.apache.tools.ant.TaskAdapter.checkTaskClass(TaskAdapter.java:71)

at
org.apache.tools.ant.TaskAdapter.checkProxyClass(TaskAdapter.java:86)

at
org.apache.tools.ant.AntTypeDefinition.checkClass(AntTypeDefinition.java
:249)

at
org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:453)

at
org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:177)

at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)

at org.apache.tools.ant.Task.perform(Task.java:364)



wildcard mappings & tiles

2004-09-03 Thread Nicolas De Loof

Hello,

I've submitted a patch that extends use of wildcard mappings to tiles definitions. 
Please Wildcard users, could you try
it and give me feedback ?

You can download a patched struts build at 
http://loof.free.fr/struts-1.2.3-wildcardtiles.jar

Nico.



Our name has changed.  Please update your address book to the following format: 
"[EMAIL PROTECTED]".

This message contains information that may be privileged or confidential and is the 
property of the Capgemini Group. It is intended only for the person to whom it is 
addressed. If you are not the intended recipient,  you are not authorized to read, 
print, retain, copy, disseminate,  distribute, or use this message or any part 
thereof. If you receive this  message in error, please notify the sender immediately 
and delete all  copies of this message.


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



Re: never, ever bury an exception!

2004-09-03 Thread Andrew Hill
Yep. If theres one thing I hate its spending hours on a friday night 
tracing through some other developers code to find why something in the 
api they expose doesnt work and eventually coming to:

catch(Throwable t)
{
  return null;
}
deep in the bowels of it and knowing that I cant even fix it without 
breaking all the other stuff that others have written that now depend on 
this behaviour

garrgh!
Yee, Richard K, CTR,, DMDCWEST wrote:
Dan,
Thanks for sharing your pain. You should check out Jalopy on SourceForge. It
is a code formatter and code inspector. It allows you to format your java
code according to your organization's conventions and also inspect it for
some of the items in Joshua Bloch's Effective Java book. The code inspector
capability includes detecting empty catch and finally clauses. There are
integrations with several IDE's and Ant. We use Jalopy to format and catch
bad programming practices and integrate it as part of the build process.
Regards,
Richard
-Original Message-
From: Dan Allen [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 02, 2004 10:46 AM
To: Struts Users Mailing List
Subject: never, ever bury an exception!

I know that this might be obvious, but I am telling you all just so that you
can learn from my pain.  Because of time pressure, I accidently left an
caught exception in the following state:
catch (Exception e)
{
  // TODO: do something with me
}
For the last couple of days the application server has been coming crashing
down.  The problem was that this particular exception was being thrown as
the result of a StackOverflow error.  When the exception was silenced, the
execution would go back around and throw the StackOverflow error again
inside a loop.  Eventually, memory would become expended and the app server
would die.  But because the error is totally silenced, no reason is given
for the crash because the app server didn't receive any messages.
At the very, very least, log the error.  That will give you an inkling of an
idea as to where the server might be dying.  Even if there is no way you
think that the code you wrote would lead to a StackOverflow (or some other
accumulating problem), do it anyway.  Point is, you are better safe then
sorry.  I am an idiot for leaving that exception in that state, but at least
I learned my lesson.
Dan

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


RE: Staying relative

2004-09-03 Thread Joe Germuska
At 8:22 AM -0500 9/3/04, Dave Bender wrote:
Joe,
Thanks for the reply.  I'll take a look at modules this morning. 
That seems like a good solution.  If I understand them correctly, I 
can create six different modules that all point to the same 
collection of actions and they'd all keep the users 'in their own 
spot.'
Hm, that's a good point.  Normally each module would use a different 
struts-config file, but if the files are really identical, I don't 
see why you couldn't point each module to use the same file.  Struts 
also supports using multiple config files (additively) so you could 
have each module use a shared config file and then have a 
supplemental config file for the module-specific elements.

On your second point, having different paths vs. creating a session 
variable, here's my thinking so far (I'm open to doing things 
differently; this is just how I'm coming into it as a Struts newbie):

- I'm using the URLs to determine which section the user is in. 
That's what's making it critical that I have control of the URLs.
In the nightly builds, there is support for using wildcards in action 
mappings.  That might help.  Not only can you map a pattern, but you 
can use the "match groups" as parameters to the action so that each 
action could know in which context it was executing.  It sounds like 
this is what you're doing logically anyway.  In fact, as I think 
about it, if you really use the same config file, then each action 
probably wouldn't know under which "group" it was executing.  Are you 
actually analyzing the URL in the action, or just changing the config 
so that each URL is slightly different and carries with it slightly 
different config parameters?

Note that Struts 1.2.2 was cut a few days ago, and except for the 
fact that it depends on JDK 1.4 (by accident), there's nothing wrong 
with it.  The binary distribution includes a wrong version of the 
commons-validator jar, but you can get that from somewhere else. 
Struts 1.2.3 should be cut next week correcting those two problems.

- I thought about using a session variable, but it seems more 
unwieldy than using URLs.  A detail I didn't mention in my initial 
posting is that some of the users of the site will be in more than 
one group.  It's conceivable that they could jump from one section 
to another midway through a work-flow.
OK, then you have a case.  Still, you could keep pushing parameters 
and get the same result.  Ultimately here I think you'll just have to 
make a style call.  It will probably take some time, and i suppose 
odds are good that you'll decide you would have done it differently 
by the time you're done!  (I do that all the time...)

Keep us posted.
Joe
--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
"In fact, when I die, if I don't hear 'A Love Supreme,' I'll turn 
back; I'll know I'm in the wrong place."
   - Carlos Santana

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


RE: Tiles in Rows and Columns (Problem Solved)

2004-09-03 Thread Caroline Jen
Thanks, Jim, for your support.  I made a stupid
mistake.  The "View Source" helps in diagnosing
problems.
--- Jim Barrows <[EMAIL PROTECTED]> wrote:

> 
> 
> > -Original Message-
> > From: Caroline Jen [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, September 02, 2004 12:41 PM
> > To: Struts Users Mailing List
> > Subject: RE: Tiles in Rows and Columns
> > 
> > 
> > It does not work. There are three rows. The second
> row
> > has two columns. 
> > 
> > I am able to display the first row, "the column on
> my
> > right hand side in the second row", and the third
> row.
> > The column on my left hand side in the second row
> is
> > not shown.
> 
> Okay, what happens when you comment out the tiles
> stuf, and just put some test text in the table?
> If that works ( and I think it will), then you know
> it's not on the Frame.jsp page you have problems.
> One of the little tricks I use when developing tiles
> is to have at the top and bottom of each jsp  page:
> 
> blah
> 
> 
> That way I can at least tell if the page is being
> included.  This helps mostly when you're looking at
> what is being generated in the browser.
> Everything looks like it should be working.. so I'm
> wondering what is exactly is ending up on the page
> when you view source.
> 
> 
> 
> > 
> > Here is the Frame.jsp which defines the layout:
> > code: 
> > 
> > 
> > <%@ taglib uri="/tags/struts-tiles" prefix="tiles"
> %>
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> >   
> >
> > 
> > 
> >
> >   
> >
> >
> >   
> >
> > 
> > 
> >
> >   
> >
> 
> 
> 
> > 
> > 
> > 
> > 
> > 
> > 
> > My tiles-def.xml looks like:
> > code: 
> > 
> > 
> >  >"-//Apache Software Foundation//DTD Tiles
> > Configuration//EN"
> >   
> >
>
"http://jakarta.apache.org/struts/dtds/tiles-config.dtd";>
> >  
> > 
> >  > path="/frame/common/layouts/Frame.jsp">
> >> value="/frame/common/upperbar.jsp"/>
> >> value="/frame/common/links.jsp"/>
> >   
> >> value="/frame/common/lowerbar.jsp"/>
> > 
> >  > extends=".frame.Base">
> >> value="/frame/content/home.jsp"/>
> > 
> > 
> > 
> > 
> > 
> > The links.jsp (the one that is now shown) looks
> like:
> > code: 
> > 
> > 
> > WELCOME TO HSIN-CI
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > Member Tools
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > Update My Account
> > 
> > 
> > 
> > 
> > 
> > Required Information
> > 
> > 
> > 
> > 
> > 
> > Additional Information
> > 
> > 
> > 
> > 
> > 
> > Asset Information
> > 
> > 
> > 
> > 
> > 
> > 
> > And the home.jsp looks like:
> > code: 
> > 
> > 
> > <%@ taglib uri="/tags/struts-html" prefix="html"
> %>
> > <%@ taglib uri="/tags/struts-bean" prefix="bean"
> %>
> > <%@ taglib uri="/tags/struts-logic" prefix="logic"
> %>
> > <%@ taglib uri="/tags/request" prefix="req" %>
> >  
> > 
> > 
> > HSIN-CI ALL MEMBERS PAGE
> > 
> > 
> >  
> >  
> > 
> > Sign in
> > 
> > 
> >  
> >  
> > 
> > Register
> > 
> > 
> > 
> > 
> > 
> > --- Jim Barrows <[EMAIL PROTECTED]> wrote:
> > 
> > > 
> > > 
> > > > -Original Message-
> > > > From: Caroline Jen
> [mailto:[EMAIL PROTECTED]
> > > > Sent: Thursday, September 02, 2004 11:50 AM
> > > > To: Struts Users Mailing List
> > > > Subject: RE: Tiles in Rows and Columns
> 
=== message truncated ===


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



RE: Staying relative

2004-09-03 Thread Paul-J Woodward
Have you thought of making a common superclass for your actions - that
class could implement the all session tracking functionality you need.

Paul

Global Equity Derivatives Technology
Deutsche Bank [/]
Office +44 (0)20 754 55458
Mobile +44 (0)7736 299483
Fax +44 (0)20 7547 2752


-Original Message-
From: Dave Bender [mailto:[EMAIL PROTECTED] 
Sent: 03 September 2004 14:23
To: Struts Users Mailing List
Subject: RE: Staying relative

Joe, 

Thanks for the reply.  I'll take a look at modules this morning.  That
seems like a good solution.  If I understand them correctly, I can
create six different modules that all point to the same collection of
actions and they'd all keep the users 'in their own spot.'

On your second point, having different paths vs. creating a session
variable, here's my thinking so far (I'm open to doing things
differently; this is just how I'm coming into it as a Struts newbie):

- I'm using the URLs to determine which section the user is in.  That's
what's making it critical that I have control of the URLs.  

- I thought about using a session variable, but it seems more unwieldy
than using URLs.  A detail I didn't mention in my initial posting is
that some of the users of the site will be in more than one group.  It's
conceivable that they could jump from one section to another midway
through a work-flow.  

If they do so and the application is watching the URLs, a switch in
sections should be quick and easy to find.   If I'm using a session
variable, I need to pay attention to that with every request.  That
seems like more responsibility than I want to take on if I don't have
to. 

Now, on to those modules

Dave






-Original Message-
From: Joe Germuska [mailto:[EMAIL PROTECTED]
Sent: Friday, September 03, 2004 7:52 AM
To: Struts Users Mailing List
Subject: Re: Staying relative


Dave:

One way to get Struts to rewrite action paths with more context is to 
use modules; if your users really stay "within" an area, then using 
Modules to partition your app will result in all Struts URL rewriting 
to prepend the paths with both the servlet context path and the 
module context path.

But as I'm absorbing your application design, I'm not sure I see why 
you have different paths; if you want to reuse the same pages and if 
the behavior is essentially the same, then why not establish a "group 
identifier" in the session at user authentication time, and then just 
use a single tree of behaviors in which all the code is aware that 
users have group IDs and that the code's behavior is likely to be 
dependent on the value of that ID.

Have I oversimplified your app?  Even if you can come up with 
exceptions, you still might be better off shifting the awareness of 
groups into code and out of the config.

Does this help?

Joe



At 8:38 PM -0500 9/2/04, Dave Bender wrote:
>I'm new to Struts and liking it so far.  But I'm stumped on how I 
>can get a user of my web application to stay in the same 
>subdirectory throughout the workflow without going through a lot of 
>hoops. 
>
>Here's what I mean.  Our application will be used by 100 people 
>divided into six work groups.  Each group has access only to their 
>section of the web site.  And each section of the web site will have 
>about five different functions, for example an upload a file 
>section, an Events listing section, an bulletin board section.
>
>The code/functionality in each section is identical from group to 
>group, so I want to use the same set of JSPs and Actions for each 
>group.  (That re-use thing.)
>
>To make the security managable, I've organized the site (and 
>corresponding URLs) in a directory hierarchy like this:
>
>/app1/areas/group1/section1
>/app1/areas/group1/section2
>/app1/areas/group1/section3
>   ...
>/app1/areas/group2/section1
>/app1/areas/group2/section2
>/app1/areas/group2/section3
>   ...
>
>Where I'm having trouble is staying in the same section.  If a 
>member of group1 goes to section1, and my actions are defined like 
>this :
>
>  
>
>that takes the user to /app1/input.do, which is outside the 
>"section".  If I change my actions to specify the absolute path for 
>each Action, it works, but I have to create six sets of actions, one 
>for each section, like this:
>
>  
>
>That works, but ... is that how I'm *supposed* to to do it?  I'm 
>just getting started and I've got a butt-load of Actions.  I don't 
>want to manage them in sextuples.  That seems repetitive and error 
>prone, along with being a maintenance headache. 
>
>Any help would be appreciated.  It seems like this problem must have 
>been solved elegantly somehow, but I'm lost as to how.
>
>Dave


-- 
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
"In fact, when I die, if I don't hear 'A Love Supreme,' I'll turn 
back; I'll know I'm in the wrong place."
- Carlo

Re: [OT] someone using Outlook 2003, please tell me it can't be this LAME...

2004-09-03 Thread Bryce Fischer
My big issue with Outlook, is that its support for IMAP leaves a lot to 
be desired. With IMAP, deleting is a two part process, marking message 
as deleted, and purging. Outlook has no way to automatically purge 
deleted messages, and it drives me nuts. Every other IMAP client I have 
seen does this. Thunderbird, which I use now, has the option to purge 
when you close. Outlook, you have to delete the message, then use a menu 
item to purge (or you can put the button on your tool bar). I've gone on 
the Outlook newsgroup, and the only response you get is "you need to 
purge using the menu item". Funny thing is, Outlook Express has this 
feature...

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


RE: Staying relative

2004-09-03 Thread Dave Bender
Joe, 

Thanks for the reply.  I'll take a look at modules this morning.  That seems like a 
good solution.  If I understand them correctly, I can create six different modules 
that all point to the same collection of actions and they'd all keep the users 'in 
their own spot.'

On your second point, having different paths vs. creating a session variable, here's 
my thinking so far (I'm open to doing things differently; this is just how I'm coming 
into it as a Struts newbie):

- I'm using the URLs to determine which section the user is in.  That's what's making 
it critical that I have control of the URLs.  

- I thought about using a session variable, but it seems more unwieldy than using 
URLs.  A detail I didn't mention in my initial posting is that some of the users of 
the site will be in more than one group.  It's conceivable that they could jump from 
one section to another midway through a work-flow.  

If they do so and the application is watching the URLs, a switch in sections should be 
quick and easy to find.   If I'm using a session variable, I need to pay attention to 
that with every request.  That seems like more responsibility than I want to take on 
if I don't have to. 

Now, on to those modules

Dave






-Original Message-
From: Joe Germuska [mailto:[EMAIL PROTECTED]
Sent: Friday, September 03, 2004 7:52 AM
To: Struts Users Mailing List
Subject: Re: Staying relative


Dave:

One way to get Struts to rewrite action paths with more context is to 
use modules; if your users really stay "within" an area, then using 
Modules to partition your app will result in all Struts URL rewriting 
to prepend the paths with both the servlet context path and the 
module context path.

But as I'm absorbing your application design, I'm not sure I see why 
you have different paths; if you want to reuse the same pages and if 
the behavior is essentially the same, then why not establish a "group 
identifier" in the session at user authentication time, and then just 
use a single tree of behaviors in which all the code is aware that 
users have group IDs and that the code's behavior is likely to be 
dependent on the value of that ID.

Have I oversimplified your app?  Even if you can come up with 
exceptions, you still might be better off shifting the awareness of 
groups into code and out of the config.

Does this help?

Joe



At 8:38 PM -0500 9/2/04, Dave Bender wrote:
>I'm new to Struts and liking it so far.  But I'm stumped on how I 
>can get a user of my web application to stay in the same 
>subdirectory throughout the workflow without going through a lot of 
>hoops. 
>
>Here's what I mean.  Our application will be used by 100 people 
>divided into six work groups.  Each group has access only to their 
>section of the web site.  And each section of the web site will have 
>about five different functions, for example an upload a file 
>section, an Events listing section, an bulletin board section.
>
>The code/functionality in each section is identical from group to 
>group, so I want to use the same set of JSPs and Actions for each 
>group.  (That re-use thing.)
>
>To make the security managable, I've organized the site (and 
>corresponding URLs) in a directory hierarchy like this:
>
>/app1/areas/group1/section1
>/app1/areas/group1/section2
>/app1/areas/group1/section3
>   ...
>/app1/areas/group2/section1
>/app1/areas/group2/section2
>/app1/areas/group2/section3
>   ...
>
>Where I'm having trouble is staying in the same section.  If a 
>member of group1 goes to section1, and my actions are defined like 
>this :
>
>  
>
>that takes the user to /app1/input.do, which is outside the 
>"section".  If I change my actions to specify the absolute path for 
>each Action, it works, but I have to create six sets of actions, one 
>for each section, like this:
>
>  
>
>That works, but ... is that how I'm *supposed* to to do it?  I'm 
>just getting started and I've got a butt-load of Actions.  I don't 
>want to manage them in sextuples.  That seems repetitive and error 
>prone, along with being a maintenance headache. 
>
>Any help would be appreciated.  It seems like this problem must have 
>been solved elegantly somehow, but I'm lost as to how.
>
>Dave


-- 
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
"In fact, when I die, if I don't hear 'A Love Supreme,' I'll turn 
back; I'll know I'm in the wrong place."
- Carlos Santana

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


Re: Staying relative

2004-09-03 Thread Joe Germuska
Dave:
One way to get Struts to rewrite action paths with more context is to 
use modules; if your users really stay "within" an area, then using 
Modules to partition your app will result in all Struts URL rewriting 
to prepend the paths with both the servlet context path and the 
module context path.

But as I'm absorbing your application design, I'm not sure I see why 
you have different paths; if you want to reuse the same pages and if 
the behavior is essentially the same, then why not establish a "group 
identifier" in the session at user authentication time, and then just 
use a single tree of behaviors in which all the code is aware that 
users have group IDs and that the code's behavior is likely to be 
dependent on the value of that ID.

Have I oversimplified your app?  Even if you can come up with 
exceptions, you still might be better off shifting the awareness of 
groups into code and out of the config.

Does this help?
Joe

At 8:38 PM -0500 9/2/04, Dave Bender wrote:
I'm new to Struts and liking it so far.  But I'm stumped on how I 
can get a user of my web application to stay in the same 
subdirectory throughout the workflow without going through a lot of 
hoops. 

Here's what I mean.  Our application will be used by 100 people 
divided into six work groups.  Each group has access only to their 
section of the web site.  And each section of the web site will have 
about five different functions, for example an upload a file 
section, an Events listing section, an bulletin board section.

The code/functionality in each section is identical from group to 
group, so I want to use the same set of JSPs and Actions for each 
group.  (That re-use thing.)

To make the security managable, I've organized the site (and 
corresponding URLs) in a directory hierarchy like this:

/app1/areas/group1/section1
/app1/areas/group1/section2
/app1/areas/group1/section3
  ...
/app1/areas/group2/section1
/app1/areas/group2/section2
/app1/areas/group2/section3
  ...
Where I'm having trouble is staying in the same section.  If a 
member of group1 goes to section1, and my actions are defined like 
this :

 
that takes the user to /app1/input.do, which is outside the 
"section".  If I change my actions to specify the absolute path for 
each Action, it works, but I have to create six sets of actions, one 
for each section, like this:

 
That works, but ... is that how I'm *supposed* to to do it?  I'm 
just getting started and I've got a butt-load of Actions.  I don't 
want to manage them in sextuples.  That seems repetitive and error 
prone, along with being a maintenance headache. 

Any help would be appreciated.  It seems like this problem must have 
been solved elegantly somehow, but I'm lost as to how.

Dave

--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
"In fact, when I die, if I don't hear 'A Love Supreme,' I'll turn 
back; I'll know I'm in the wrong place."
   - Carlos Santana

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


RE: Jboss database config?

2004-09-03 Thread Marco Mistroni
Hello,  
Not sure if it helps, but did u remember to add a realm entry in
the login-config.xml file?

And, as well, add an entry  to your ds.xml..

Regards
marco


-Original Message-
From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED] 
Sent: 27 August 2004 19:12
To: Struts User List ([EMAIL PROTECTED])
Subject: Jboss database config?

Once more for a Jboss newby please?

I can't get connected to my database. The sybase-ds.xml is as follows:
















  
ds.Freqs

jdbc:sybase:Tds:146.142.44.41:4100
com.sybase.jdbc2.jdbc.SybDriver
Slattery_T
xxx
 
org.jboss.resource.adapter.jdbc.vendor.Syba
seEx
ceptionSorter




  




The Java code in my app is:

InitialContext ic = new InitialContext();
datasource  = (DataSource) ic.lookup("ds.Freqs");

This throws a NamingException with this message: ds.Freqs not bound 

The server log seems to show ds.Freqs being created. 

Any clues?


--
Tim Slattery
[EMAIL PROTECTED]


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


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



form bean for jsp form with indexed text property

2004-09-03 Thread viji.george



Hi friends,
i have a jsp page in which many records that are retrieved from a db are 
stored in an collection.
i think, to put the value in the text property i will have to use indexed 
property, but what do i do for the form bean??? 
Is the following code true :
 
i suppose nameList is an ArrayList with data in it.
It contains a bean with 2 attributes " id " and " name "
i want to display both attributes in different text properties. 
        
in which attribute of text property do i write the name of the data 
member?
 
And in the form bean on submit...
till now the attributes, 2 of them were of type string in the bean, when i 
allow indexed property for text then how do i store values in form bean?
 
thank you.
Viji GeorgeInformation Systems,The Arvind Mills Ltd.,Naroda, 
Ahmedabad. Phone-(079)22203030Ext -2352[EMAIL PROTECTED]


Re: never, ever bury an exception!

2004-09-03 Thread Brett Connor
Koon Yue Lam wrote:
Hi !!
I agree with all of you but still have a question. If my application
is divided into a few layers, say:
Web <---> BizDelegate --- <---> EJB  
 |__<--> DAO / server side program

My practice is catch all SQLException in DAO(s), but never throws
excepion from my DAO, all DAOs will return primitive, at least a
boolean to indicate the query is success or not
 

It is because there is nothing to do with the above layers when
something goes wrong in DB.
 

Not sure I follow your logic here. The exception is just a flagging 
mechanism, and as such is more reliable / harder to ignore than 
returning a boolean (although the start of this thread pointed out, it's 
not foolproof!). Whether the next layer can do anything about it is a 
different matter. In practice this is the part that most systems fall 
down on - having proper information available to the user, but you still 
need a sure way to know that _something_ needs doing.

However if every method have a try -- catch block, especially in EJB
and DAO layers, it would become a speed lose.
My suggestion is to try a test case with both styles, and benchmark 
them. Given the performance hit with Java anyway I don't think you'll 
find a measurable difference. I don't think it's worth compromising 
stability / maintainability over. But see what the measurements indicate 
to you.

My practice is to catch
ALL kind of Exception in just BizDelegate, whenever an exception is
caught, it return some primitive to the above Web layer. Because the
data between Web and BizDelegate can be throught network, sending an
Exception would be much inefficient than just True of False.
 

How often are exceptions going to be thrown? Sending an exception should 
only happen in _exceptional_ circumstances, they are not part of the 
normal flow control. Just how fast does your system need to fail?!? :-)

The bottom line is, my Web layer doesn't need to know what going
wrong, it just need to know IS IT going wrong. Then forward to some
error pages, or maybe retry one more time.
 

The aspect that lets most exception based systems down IMHO is that the 
context information is not available or presented to the user in many 
cases. This is the hardest thing to get right with exceptions, and 
requires the most up-front thought to do a really good job. This is 
usually (from a users perspective) not "what went wrong" as much as 
"what was I trying to do, with what information, when something went 
wrong with aspect X".
If returning booleans helps you with that, fine. Well structured 
exception types and handlers is just as capable, with the advantage 
(stated above) that they're harder to accidentally ignore.

But it still can't suit to all situation, some methods in BizDelegate
will thorws Exception of the type BizDelegateException. When the web
layer can do something to the exception, BizDelegate will include the
Exception thrown from under layer to the cause of
BizDelegateException, then throw up to Web layer.
Is it sounds good ??
 

That's a typical approach; Java itself has moved more towards nested 
exceptions in recent versions. The trick still IMHO is how to get 
relevent user meaningful context available at the point where it's 
reported. In some ways, the further removed and isolated the reporting 
is from the sources of error the less easy it is without some effort, 
yet again lots of IMHO all through this.

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


Re: Indexed Property!!

2004-09-03 Thread Fulco
Maybe you should expose your problem with some more details ;o)
RamKumar wrote:
Hi,
  Indexed property methods are not getting called if i use expression language in 
html:multibox tag. Why is this?. I am using  tomcat 5.0.
Any clues,
thanks,
Ramkumar
 


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