Re: [OT] computer performance with jsp/servlets/struts

2003-03-11 Thread Manfred Wolff
Dan Allen wrote:
I only ask this to see if I can make my life easier.  I have a PII
333MHz laptop with 216MB Ram and I am running Tomcat, JDK 1.4.1 and
some struts applications.  Just now it took ant 6 min 56 sec to
reload my application after making changes.  If I were to go and get
a decent Athlon XP or PIV computer, what should I expect for reload
times and compile times for a reasonable size webpage application?
This is the one thing that I regret when leaving PHP.  I spend close
to 1/8 of my day waiting for it to reload once my computer starts
swapping to disk.  Does anyone else have this issue?
Dan

Hi.

We use tomcat to develop und jetty for our production system ( P4 2,2 GH 
with Linux). Jetty is much faster, because he can cache the tags. Tomcat 
is much slower in compiling and working with tags in jsp.

Manfred

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


Re: relative path problem

2003-03-11 Thread Stephen Smithstone
try using an action that gets the relative path then pass that path to the 
bean maybe 



On Tuesday 11 March 2003 6:52 am, bobd wrote:
> This is a rather silly problem I have been putting off
> and now I really need to fix it...
>
> In my Struts app, bean classes are parsing and writing
> XML files on disk.  These files are currently being
> pulled in using a full directory path! (i.e.
> "/usr/local/...)  Attempts to use relative paths (from
> the location of the bean .class file) have not been
> successful.  In my view layer, JSPs can use relative
> paths just fine.  What's the trick?
>
> thanks,
>
> -bob
>
> __
> Do you Yahoo!?
> Yahoo! Web Hosting - establish your business online
> http://webhosting.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]



switching from non SSL to SSL in struts..

2003-03-11 Thread James
I've got my SSL connector configured in tomcat.. what i want to know is what
do i need to do to change to secure page from non secure pages in struts...

an example of this would be going from 'shopping cart' to 'checkout'.. is
this a configuration issue?




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



Re: [OT] computer performance with jsp/servlets/struts

2003-03-11 Thread Guido
Is there any kind of benchmark results table or technical comparation 
between tomcat, jetty, iplanet, resin...? I've been searching google 
without success... I need something because "much faster" or "much 
slower" is not enought for me.

Thank you!

Manfred Wolff wrote:

Dan Allen wrote:

I only ask this to see if I can make my life easier.  I have a PII
333MHz laptop with 216MB Ram and I am running Tomcat, JDK 1.4.1 and
some struts applications.  Just now it took ant 6 min 56 sec to
reload my application after making changes.  If I were to go and get
a decent Athlon XP or PIV computer, what should I expect for reload
times and compile times for a reasonable size webpage application?
This is the one thing that I regret when leaving PHP.  I spend close
to 1/8 of my day waiting for it to reload once my computer starts
swapping to disk.  Does anyone else have this issue?
Dan

Hi.

We use tomcat to develop und jetty for our production system ( P4 2,2 
GH with Linux). Jetty is much faster, because he can cache the tags. 
Tomcat is much slower in compiling and working with tags in jsp.

Manfred

-
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: switching from non SSL to SSL in struts..

2003-03-11 Thread Guido
Oh no! This topic again!! :P

Take a look at sslext (sslext.sourceforge.net) or search this mail list 
for it.

hth,
Guido.
James wrote:
I've got my SSL connector configured in tomcat.. what i want to know is what
do i need to do to change to secure page from non secure pages in struts...
an example of this would be going from 'shopping cart' to 'checkout'.. is
this a configuration issue?


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


Re: switching from non SSL to SSL in struts..

2003-03-11 Thread James
i found it as you replied..

thanks anyway..



"Guido" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Oh no! This topic again!! :P
>
> Take a look at sslext (sslext.sourceforge.net) or search this mail list
> for it.
>
> hth,
> Guido.
>
> James wrote:
> > I've got my SSL connector configured in tomcat.. what i want to know is
what
> > do i need to do to change to secure page from non secure pages in
struts...
> >
> > an example of this would be going from 'shopping cart' to 'checkout'..
is
> > this a configuration issue?




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



Message replacement

2003-03-11 Thread Guido
Hello

Anyone can explain me (for dumbs) how does this replacement works 
(Action sample code would be great) and what Java classes are involved?

error.number=The number {0} is greater than {1}

Thank you!
Guido.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: switching from non SSL to SSL in struts..

2003-03-11 Thread julian green
Tiz the url that the browser requests.   http or https

usually:
http is on port 80
https is on port 443
julian

James wrote:
I've got my SSL connector configured in tomcat.. what i want to know is what
do i need to do to change to secure page from non secure pages in struts...
an example of this would be going from 'shopping cart' to 'checkout'.. is
this a configuration issue?


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


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


RE: Struts Faces ea validation XML error

2003-03-11 Thread PILGRIM, Peter, FM
> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
> 
> On Mon, 10 Mar 2003, PILGRIM, Peter, FM wrote:
> 
> > Date: Mon, 10 Mar 2003 17:18:25 -
> > From: "PILGRIM, Peter, FM" <[EMAIL PROTECTED]>
> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List (E-mail)" 
> <[EMAIL PROTECTED]>
> > Subject: Struts Faces ea validation XML error
> >
> > After copying all three JSF JAR to struts-faces/WEB-INF,
> > and copying commons-logging-1.0.2.jar over WEB-INF/lib
> > I got a validation error in the Struts Faces download.
> >
> > Is the validation XML correct?
> >
> 
> I only get errors like this when I forget to include
> "/WEB-INF/validation.xml" in my webapps -- can you make sure 
> that is still
> present?
> 
> Craig

It is very weird because I have both `/WEB-INF/validation.xml'
and `/WEB-INF/validation-rules.xml' in the right place,
I also checked the `/WEB-INF/struts-config.xml' to make
sure that validator plugin is correctly set. This is 
how I downloaded the struts-faces.jar ``as is'

Something is wrong here.

> > org.apache.jasper.JasperException: Depends string "email" 
> was not found in
> > validator-rules.xml.
> > void
> > 
> org.apache.jasper.servlet.JspServletWrapper.service(javax.serv
> let.http.HttpS
> > ervletRequest, javax.servlet.http.HttpServletResponse, boolean)
> > JspServletWrapper.java:248
> > void
> > 
> org.apache.jasper.servlet.JspServlet.serviceJspFile(javax.serv
> let.http.HttpS
> > ervletRequest, javax.servlet.http.HttpServletResponse, 
> java.lang.String,
> > java.lang.Throwable, boolean)
> > JspServlet.java:295
> > void
> > 
> org.apache.jasper.servlet.JspServlet.service(javax.servlet.htt
> p.HttpServletR
> > equest, javax.servlet.http.HttpServletResponse)
> > JspServlet.java:241
> >
> > ----
> >

----

--
Peter Pilgrim,
Struts/J2EE Consultant, RBoS FM, Risk IT
Tel: +44 (0)207-375-4923



  Visit our Internet site at http://www.rbsmarkets.com

This e-mail is intended only for the addressee named above.
As this e-mail may contain confidential or privileged information,
if you are not the named addressee, you are not authorised to
retain, read, copy or disseminate this message or any part of it.
The Royal Bank of Scotland plc is registered in Scotland No 90312
Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB
 Regulated by the Financial Services Authority


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



SSL extension question

2003-03-11 Thread James
I''m using the sslext struts extension to switch from non ssl to ssl..
however i cant seem to get it working.
I use the url http://localhost:8080/MyApp to go to the welcome page.. and a
couple of pages later i need to switch to Https..

i have the jars in my /lib directory and i've made the following changes to
my struts-config.xml
what am i missing?

---

















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



Re: [ANN] Struttin' With Struts beta (newbies esp. welcome)

2003-03-11 Thread Vic Cekvenich
Excellent!!!

I will take the tutorial.
I am wondering what are you doing for your Data Base, is it JDBC or 
something else.

.V

Rick Reumann wrote:
I created a web site that walks new Struts users step by step
through the development of three VERY simple web applications in three
lessons. Each lesson adds a few more features so that they build upon
each other yet each stands alone such that if you follow the steps in
any lesson you'll have built a very basic application regardless of
which lesson you start with.
I created these because there seemed to be lacking some more recent
"walk through" Struts tutorials geared toward the very new Struts
developer. I think real newbies will find them especially useful, but
then again I could be way wrong:)
I'm considering the site a "beta" because I'm sure there will be some
mistakes. If anyone sees something I'm doing in a lesson that is way
off (or a very bad practice) please let me know. Some of the stuff I
know could be done in a more "best practice" way, but for the sake of
trying to also keep the lessons small and simple some ideas weren't
included (ie- I didn't use a constants interface for my forward
definitions).
If anyone wants to contribute, reword, or add anything please let me
know. The site is there to help others. I got really lazy in a lot of
places and didn't say much about certain things that I would have liked
to. Hopefully over time the site will improve.
Struttin' with Struts:

http://www.reumann.net/do/struts/main



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


RE: switching from non SSL to SSL in struts..

2003-03-11 Thread Dung Nguyen Huu
Hello all, 

I've used sslExt for our web application (for struts 1.0) and now I am
facing problem.
In out app, there is a need to put some small data into HttpSession for
reuse later, the problem is while switching from Http -> Https or vice
versa, the data put into HttpSession are lost if web client is Netscape
(6.1), It seems that Netscape use different session for HTTP and HTTPs...!!!
Meanwhile, our app works well with I.E.

Any idea are welcome and appreciated ?



> -Original Message-
> From: James [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 11, 2003 10:39 AM
> To: [EMAIL PROTECTED]
> Subject: Re: switching from non SSL to SSL in struts..
> 
> 
> i found it as you replied..
> 
> thanks anyway..
> 
> 
> 
> "Guido" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Oh no! This topic again!! :P
> >
> > Take a look at sslext (sslext.sourceforge.net) or search 
> this mail list
> > for it.
> >
> > hth,
> > Guido.
> >
> > James wrote:
> > > I've got my SSL connector configured in tomcat.. what i 
> want to know is
> what
> > > do i need to do to change to secure page from non secure pages in
> struts...
> > >
> > > an example of this would be going from 'shopping cart' to 
> 'checkout'..
> is
> > > this a configuration issue?
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


Re: struts database application

2003-03-11 Thread Pgdbvu
Thanks for the response Affan and also the suggestion of a message or progress bar 
while connecting to the database and generating the tree is a  good idea. I will get 
on to incorporating this feature.

Paul



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



Re: struts database application

2003-03-11 Thread Pgdbvu

Thanks Marco. I think your right about the left frame displaying the tree needing to 
be wider I'll get this done.

Paul

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



RE: [OT] computer performance with jsp/servlets/struts

2003-03-11 Thread Edgar Dollin
There were some issues with session serialization which were resolved in the
latest nightly builds.  You could try disabling session persistence although
it would be better to resolve the serialization problems.  If I understand
correctly, in a low memory production environment those serialization
mechanisms have to work.

The other issue is that the tomcat manager reload application is 10 times
faster (10-20 seconds vs 1-3 seconds on my machine 1.8g, 512mb, w2k) than a
stop and start of tomcat.  Actually, the first few times I used the reload
function it was so fast, I didn't believe it actually worked.

Edgar

> -Original Message-
> From: Dan Allen [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, March 11, 2003 12:00 AM
> To: 'Struts Users Mailing List'
> Subject: Re: [OT] computer performance with jsp/servlets/struts
> 
> 
> Another thing that could be causing the problem.  I am using 
> Ant to reload just the application and not tomcat by using 
> the manager that comes with Tomcat.  I notice that each time 
> I reload it throws Exception Errors that the sessions could 
> not be recovered.  Whenever I am swapping and exception 
> errors are thrown, it takes many, many minutes to handle 
> them.  I guess I should work on my tomcat installation 
> regarding these reloads of applications.  Anyone else see 
> this in the logs?  Maybe the reload of applications is not 
> efficient and panned out yet, since it has to recover all the 
> objects which were in the session at the time of the reload.
> 
> Dan
> 
> David Graham ([EMAIL PROTECTED]) wrote:
> 
> > P3 1Ghz., 512MB RAM and Tomcat starts in about 10 seconds.  
> Obviously 
> > don't
> > need to restart Tomcat for JSP changes which load in about 
> 5 seconds.
> > 
> > David
> > 
> > 
> > 
> > >From: Dan Allen <[EMAIL PROTECTED]>
> > >Reply-To: "Struts Users Mailing List" 
> > ><[EMAIL PROTECTED]>
> > >To: Struts-User List <[EMAIL PROTECTED]>
> > >Subject: [OT] computer performance with jsp/servlets/struts
> > >Date: Mon, 10 Mar 2003 22:09:12 -0600
> > >
> > >I only ask this to see if I can make my life easier.  I have a PII 
> > >333MHz laptop with 216MB Ram and I am running Tomcat, JDK 
> 1.4.1 and 
> > >some struts applications.  Just now it took ant 6 min 56 sec to 
> > >reload my application after making changes.  If I were to 
> go and get 
> > >a decent Athlon XP or PIV computer, what should I expect 
> for reload 
> > >times and compile times for a reasonable size webpage application?
> > >
> > >This is the one thing that I regret when leaving PHP.  I 
> spend close 
> > >to 1/8 of my day waiting for it to reload once my computer starts 
> > >swapping to disk.  Does anyone else have this issue?
> > >
> > >Dan
> 
> -- 
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
> Daniel Allen, <[EMAIL PROTECTED]>
> http://www.mojavelinux.com/
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
> Windows: where do you want your data to disappear to today?
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
> 

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



RE: Problems with multibox and checkbox

2003-03-11 Thread Jörg Maurer
Hi Jason! 

reading through your mail, i got especially attracted on your solution
combining XSLT with struts tags. I am currently doing some after-project
considerations, having been my first struts project(and also the first
for my actual company, hence having no one to having an expertise talk).
One action point on my list is the question : "How to control which
model elements map to which view elements and vice versa(especially at
runtime)." 

So i would be a great honour for me if you 

- can write me a few words because of out of what considerations you are
using XSLT and struts tags.

- devote a second of your precious time to my topic "How to control
which model elements map to which view elements and vice versa" - if and
how XSLT can help me to come up with a more generic solution. E.g. I
would like features as described in struts-layout ( taken from
http://struts.application-servers.com/) "Let's image you are running an
online shop selling books. There is one jsp to display information about
the book (title, author, size, price etc.). The customers can only view
the information, but the site administrator can view and modify the
information. Normally, you would have to make two jsps to achieve that:
one to display the information, and one to modify them (you can also
make one jsp with complicated logic stuff in it). With Struts-Layout, it
is possible to make only one jsp, without logic in it.The goals is : One
user object to create / edit / view, one DistpachAction class, one Form
class, and one jsp." - but i don't like that taglib approach very much,
because it is becoming too cohesive to the dependent frameworks.


Thank you so much for your inputJörg Maurer

-Original Message-
From: Jason Long [mailto:[EMAIL PROTECTED]
Sent: Dienstag, 11. März 2003 08:42
To: Struts Users Mailing List
Subject: RE: Problems with multibox and checkbox


I orginally thought the problem was with struts, but it seems to be an
xsl
problem I am having.   I am generating many struts forms using jsp/xml
syntax and struts.  It is working quite nicely so far.  I am using
,,... with no problems, but for some
reason my xsl style sheet renders  or 
without
html prefix.

I found the problem for anyone who may need an answer.  It was nothing
to do
with checkbox or multibox.  Since I was calling this from within and XSL
template, I needed to declare the tag library in the xsl style sheet as
well
as the jsp:root.

Jason Long - CEO and Chief Software Engineer
Supernova Software - supernovasoftware.com
BS Physics, MS  Chemical Engineering

-Original Message-
From: Jason Long [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 11, 2003 12:21 AM
To: Struts Users Mailing List
Subject: Problems with multibox and checkbox


I have tried both of the following, but I can not get this to work.




I have a group of checkboxes that I would like to have filled after a
validation attempt.
If I add either of the following I get the following rendered to the
browser.
I have radio, and text fields working fine.




What am I missing?
Do I need to set chkItems to zero length in the form reset() method?
If so, what is the syntax?

Jason Long - CEO and Chief Software Engineer
Supernova Software - supernovasoftware.com
BS Physics, MS  Chemical Engineering



-
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: The Back button on on multi-page forms ??????

2003-03-11 Thread Edgar Dollin
A form based sequence token (as opposed to struts session based token)
reduces users frustration with the lack of a back button.  If the sequence
tokens are form based users can wander to other parts of the application and
return to a still usable page.  I have found the complete removal of the
back button a relatively high user frustration issue.

Edgar

> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, March 11, 2003 1:23 AM
> To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]'
> Subject: RE: The Back button on on multi-page forms ??
> 
> 
> 
> 
> On Tue, 11 Mar 2003, Andrew Hill wrote:
> 
> > Date: Tue, 11 Mar 2003 11:06:01 +0800
> > From: Andrew Hill <[EMAIL PROTECTED]>
> > Reply-To: Struts Users Mailing List 
> <[EMAIL PROTECTED]>,
> >  [EMAIL PROTECTED]
> > To: [EMAIL PROTECTED]
> > Subject: RE: The Back button on on multi-page forms ??
> >
> > Hasnt got to that stage yet, but Im guessing that the js 
> trick wont be 
> > particularly 'appreciated'.
> >
> > Of course that code is centralised in one javascript file, 
> so can be 
> > changed once Ive had a chance to get tokens working, but Im 
> going to 
> > need some fancy code to handle the situation where the url of the 
> > previous page is resubmitted as theres a fair bit of stuff 
> that has to 
> > go into the session context that wont be there any more if 
> they have 
> > completed that operation and then try to go back into it.
> >
> > Life would be a lot easier if this was just a website with some 
> > interactive bits, however its very much more in the nature of a 
> > complex application with bucket loads of state that happens 
> to use a 
> > browser instead of a standalone client and so theres a lot 
> more 'funny 
> > stuff' going on behind the scenes than your average struts 
> app would 
> > have - none of which plays well with the back button (or refresh & 
> > multiple submit for that matter). :-(
> >
> 
> I've been known to "discourage" the use of the back button by 
> opening my apps in a browser window that doesn't have the 
> usual location bar and back button icons -- it doesn't help 
> you defend against people that know the keyboard shortcuts, 
> but I was pretty happy with how much this simple approach cut 
> down complaints about the back button not working.
> 
> Of course, it's incumbent upon the app developer to include 
> enough nice navigation controls in the page layout so as to 
> minimize the temptation to use the back button in any case ... :-)
> 
> When you get that (rare :-) *rational* user that complains 
> about the back button, ask them to show you where the back 
> button is on any traditional GUI app, and then ask them why 
> it should work in a web *application* as opposed to a web *site*.
> 
> Yes, it's tilting at windmills, but we can at least get a 
> *few* people to understand how silly this behavior is.
> 
> Craig (who is usually sympathetic to app users, but not this time)
> 

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



Character set lost when doing an include with Struts!

2003-03-11 Thread Ferran Parra
Hello all.

Has anyone ever had a problem maintaining character set in an included page?
I do!

I've tried everything:

1. using jsp format --  instead of Struts format, and nothing
works.
2. jsp include of struts action -- 
3. RequestDispatcher:


RequestDispatcher dispatcher =
request.getRequestDispatcher(forwardHomeNoticias.getPath());
dispatcher.include(request, response);

... nothing works!

In my "mother" page I have the meta tag:



In the included page I have the page directive:

<%@ page language="java" contentType="text/html; charset=iso-8859-1" %>

But ALL content in the included page -- data from the database, static html,
everything -- appears with question marks instead of accented characters.

If I include a static jsp with accented characters it appears correctly.

My struts calls are:

 //struts
action, /do/LoadNoticias/...
 //print
content

... and no matter what I do it won't print correctly.

Anyone know what the heck else I can try?

Thanks in advance,
Bob


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



Re: The Back button on on multi-page forms ??????

2003-03-11 Thread Laurent PETIT
From: "Edgar Dollin" <[EMAIL PROTECTED]>

Hello,

> [ ... ] I have found the complete removal of the
> back button a relatively high user frustration issue.

Yes, and in fact, it is not much safer as managing input validation with
only javascript code.

"Never trust the client (browser)" !

My 0.02 Euros :-p

--
Laurent.



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



RE: Message replacement

2003-03-11 Thread James Mitchell
You can find sample code in many places including the struts-example
that ships with the software.

The classes involved are as follows:
org.apache.struts.util.MessageResources.java
org.apache.struts.util.MessageResourcesFactory.java
org.apache.struts.util.PropertyMessageResources.java
org.apache.struts.util.PropertyMessageResourcesFactory.java

In the future (1.2) we will be changing this to use commons-resources,
which basically does the same thing.  


--
James Mitchell
Software Developer/Struts Evangelist
http://struts.sourceforge.net/struts-atlanta/



> -Original Message-
> From: Guido [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, March 11, 2003 4:44 AM
> To: Struts Users Mailing List
> Subject: Message replacement
> 
> 
> Hello
> 
> Anyone can explain me (for dumbs) how does this replacement works 
> (Action sample code would be great) and what Java classes are 
> involved?
> 
> error.number=The number {0} is greater than {1}
> 
> Thank you!
> Guido.
> 
> 
> -
> 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: switching from non SSL to SSL in struts..

2003-03-11 Thread Max Cooper
Netscape has (in the past, at least, and it sounds like the current version
is the same) viewed the following as different servers:
http://somehost.com/
https://somehow.com/

These are equivalent to:
http://somehost.com:80/
https://somehost.com:443/

It actually seems like a reasonable assumption to me, considering they very
well could be totally different server instances running on the same
hardware. The result is that cookies sent from somehost.com:80 are not sent
with requests to somehost.com:443. This includes the session cookie, so when
you switch you get a new session.

The common solution is to explicitly set the cookie domain of all cookies
sent by the server to simply 'somehost.com'. By explicitly setting the
cookie domain in this way, cookies set by the server on one port of
somehost.com will be sent to servers on other ports. Specifically, if the
client connects to somehost.com:80 and gets a session cookie with the domain
'somehost.com' (as opposed to 'somehost.com:80'), the browser will include
that cookie in requests to somehost.com:443 (since it matches the
'somehost.com' cookie domain, where it would not match 'somehost.com:80').
The details of doing this depend on your server, but a search for "cookie
domain" should help locate the details of setting the value.

Steve (sslext author) describes this issue in his article:
http://www.javaworld.com/javaworld/jw-02-2002/jw-0215-ssl-p3.html

It is kind of a pain to set and maintain the cookie domain as you deploy on
different servers for development, QA, production, etc. If you have a server
on qa.mycompany.net (your QA server) and the cookie domain is set to
mycompany.com (your production machine), you will get a new session with
every request, since the browser will never include the session cookie in
any of its requests (because the server name and cookie domian don't match).
I would suspect that the browser would just reject the cookie outright,
since the cookie domain is clearly not a match for the server that sent it
in the first place.

I haven't tried it, but I wonder if the session ID could be included as part
of the URL for all links/redirects/etc that jump from HTTP to HTTPS or back.
It would be a pain to take the care to rewrite all such "jumper" URLs in
this way, but that might be an easier maintenance burden to bear than
setting the cookie domain in the server config. If it works, this might be a
cool new feature for sslext (I'll forward this message to Steve to see what
he thinks). Again, I haven't tried this but it seems like it might work.

-Max

- Original Message -
From: "Dung Nguyen Huu" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, March 11, 2003 3:56 AM
Subject: RE: switching from non SSL to SSL in struts..


> Hello all,
>
> I've used sslExt for our web application (for struts 1.0) and now I am
> facing problem.
> In out app, there is a need to put some small data into HttpSession for
> reuse later, the problem is while switching from Http -> Https or vice
> versa, the data put into HttpSession are lost if web client is Netscape
> (6.1), It seems that Netscape use different session for HTTP and
HTTPs...!!!
> Meanwhile, our app works well with I.E.
>
> Any idea are welcome and appreciated ?
>
>
>
> > -Original Message-
> > From: James [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, March 11, 2003 10:39 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: switching from non SSL to SSL in struts..
> >
> >
> > i found it as you replied..
> >
> > thanks anyway..
> >
> >
> >
> > "Guido" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]
> > > Oh no! This topic again!! :P
> > >
> > > Take a look at sslext (sslext.sourceforge.net) or search
> > this mail list
> > > for it.
> > >
> > > hth,
> > > Guido.
> > >
> > > James wrote:
> > > > I've got my SSL connector configured in tomcat.. what i
> > want to know is
> > what
> > > > do i need to do to change to secure page from non secure pages in
> > struts...
> > > >
> > > > an example of this would be going from 'shopping cart' to
> > 'checkout'..
> > is
> > > > this a configuration issue?
> >
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>



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



RE: [ANN] Struttin' With Struts beta (newbies esp. welcome)

2003-03-11 Thread Robert Taylor
Good work Rick. I'm sure many users (new and not-so-new)
will greatly benefit from your efforts.

robert

> -Original Message-
> From: Rick Reumann [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 11, 2003 2:37 AM
> To: Struts Users Mailing List
> Subject: [ANN] Struttin' With Struts beta (newbies esp. welcome)
> 
> 
> I created a web site that walks new Struts users step by step
> through the development of three VERY simple web applications in three
> lessons. Each lesson adds a few more features so that they build upon
> each other yet each stands alone such that if you follow the steps in
> any lesson you'll have built a very basic application regardless of
> which lesson you start with.
> 
> I created these because there seemed to be lacking some more recent
> "walk through" Struts tutorials geared toward the very new Struts
> developer. I think real newbies will find them especially useful, but
> then again I could be way wrong:)
> 
> I'm considering the site a "beta" because I'm sure there will be some
> mistakes. If anyone sees something I'm doing in a lesson that is way
> off (or a very bad practice) please let me know. Some of the stuff I
> know could be done in a more "best practice" way, but for the sake of
> trying to also keep the lessons small and simple some ideas weren't
> included (ie- I didn't use a constants interface for my forward
> definitions).
> 
> If anyone wants to contribute, reword, or add anything please let me
> know. The site is there to help others. I got really lazy in a lot of
> places and didn't say much about certain things that I would have liked
> to. Hopefully over time the site will improve.
> 
> Struttin' with Struts:
> 
> http://www.reumann.net/do/struts/main
> 
> -- 
> Rick
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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



[OT]Re: Message replacement

2003-03-11 Thread Guido
Thank you. The idea was use only Java "standard" classes (or at least 
commons packages), not Struts dependent ones.

Maybe I can use java.text.MessageFormat I have seen at

http://java.sun.com/products/jdk/1.2/docs/api/java/text/MessageFormat.html

Regards,
guido.
James Mitchell wrote:
You can find sample code in many places including the struts-example
that ships with the software.
The classes involved are as follows:
org.apache.struts.util.MessageResources.java
org.apache.struts.util.MessageResourcesFactory.java
org.apache.struts.util.PropertyMessageResources.java
org.apache.struts.util.PropertyMessageResourcesFactory.java
In the future (1.2) we will be changing this to use commons-resources,
which basically does the same thing.  


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


struts-config.xml parse errors (can't find source)

2003-03-11 Thread Rob
I'm just throwing together a demo application to refresh myself w/ struts
but have
run into a problem where the struts-config.xml is resulting in parsing
errors, problem
is I can't figure out where the error is.  If someone could point it out I
would appreciate
it.


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




 
  
  
  
  
  



 
 
 



 
 

 
 

 
 




The error I'm getting from tomcat is, line 46 column 17 refers to a
non-existent position in the document.
While the document does have 46 lines it is the last line and column 17 is
beyond the closing > of the
 tag.

SEVERE: Parse Error at line 46 column 17: The content of element type
"struts-config" must match
"(data-sources?,form-beans?,global-exceptions?,global-forwards?,action-mappi
ngs?,controller?,message-resources*,plug-in*)".
org.xml.sax.SAXParseException: The content of element type "struts-config"
must match
"(data-sources?,form-beans?,global-exceptions?,global-forwards?,action-mappi
ngs?,controller?,message-resources*,plug-in*)".




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



Re: struts-config.xml parse errors (can't find source)

2003-03-11 Thread Stephen Smithstone
place yout  before your 


On Tuesday 11 March 2003 11:23 am, Rob wrote:
> I'm just throwing together a demo application to refresh myself w/ struts
> but have
> run into a problem where the struts-config.xml is resulting in parsing
> errors, problem
> is I can't figure out where the error is.  If someone could point it out I
> would appreciate
> it.
>
> 
>"-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
>  "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>
>
> 
>
> 
>  
>   
>   
>   
>   
>   
> 
>
> 
>  
>  
>  
> 
>
> 
> type="web.QueryAction"
>   name="QueryForm"
>   input="/WEB-INF/pages/query.jsp"
>   scope="request">
>  
>
> type="web.BrowseAction"
>   name="BrowseForm"
>   input="/WEB-INF/pages/browse.jsp"
>   scope="request">
>  
>
> type="web.NewbugAction"
>   name="NewbugForm"
>   input="/WEB-INF/pages/newbug.jsp"
>   scope="request">
>  
> 
>
> 
>
> The error I'm getting from tomcat is, line 46 column 17 refers to a
> non-existent position in the document.
> While the document does have 46 lines it is the last line and column 17 is
> beyond the closing > of the
>  tag.
>
> SEVERE: Parse Error at line 46 column 17: The content of element type
> "struts-config" must match
> "(data-sources?,form-beans?,global-exceptions?,global-forwards?,action-mapp
>i ngs?,controller?,message-resources*,plug-in*)".
> org.xml.sax.SAXParseException: The content of element type "struts-config"
> must match
> "(data-sources?,form-beans?,global-exceptions?,global-forwards?,action-mapp
>i ngs?,controller?,message-resources*,plug-in*)".
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



Re: struts-config.xml parse errors (can't find source)

2003-03-11 Thread James Holmes
Struts Console should help with issues like this as it
validates config files and can point out where in a
file a problem is.

http://www.jamesholmes.com/struts/

-james


--- Stephen Smithstone <[EMAIL PROTECTED]>
wrote:
> place yout  before your 
> 
> 
> On Tuesday 11 March 2003 11:23 am, Rob wrote:
> > I'm just throwing together a demo application to
> refresh myself w/ struts
> > but have
> > run into a problem where the struts-config.xml is
> resulting in parsing
> > errors, problem
> > is I can't figure out where the error is.  If
> someone could point it out I
> > would appreciate
> > it.
> >
> > 
> >   >  "-//Apache Software Foundation//DTD Struts
> Configuration 1.1//EN"
> > 
>
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>
> >
> > 
> >
> > 
> >  
> >   
> >   
> >   
> >   
> >   
> > 
> >
> > 
> >   type="web.QueryForm"/>
> >   type="web.BrowseForm"/>
> >   type="web.NewbugForm"/>
> > 
> >
> > 
> >   >   type="web.QueryAction"
> >   name="QueryForm"
> >   input="/WEB-INF/pages/query.jsp"
> >   scope="request">
> >  
> >
> >   >   type="web.BrowseAction"
> >   name="BrowseForm"
> >   input="/WEB-INF/pages/browse.jsp"
> >   scope="request">
> >  
> >
> >   >   type="web.NewbugAction"
> >   name="NewbugForm"
> >   input="/WEB-INF/pages/newbug.jsp"
> >   scope="request">
> >  
> > 
> >
> > 
> >
> > The error I'm getting from tomcat is, line 46
> column 17 refers to a
> > non-existent position in the document.
> > While the document does have 46 lines it is the
> last line and column 17 is
> > beyond the closing > of the
> >  tag.
> >
> > SEVERE: Parse Error at line 46 column 17: The
> content of element type
> > "struts-config" must match
> >
>
"(data-sources?,form-beans?,global-exceptions?,global-forwards?,action-mapp
> >i ngs?,controller?,message-resources*,plug-in*)".
> > org.xml.sax.SAXParseException: The content of
> element type "struts-config"
> > must match
> >
>
"(data-sources?,form-beans?,global-exceptions?,global-forwards?,action-mapp
> >i ngs?,controller?,message-resources*,plug-in*)".
> >
> >
> >
> >
> >
>
-
> > 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]
> 


__
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com

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



RE: Struts Faces ea validation XML error [SOLVED]

2003-03-11 Thread PILGRIM, Peter, FM

> -Original Message-
> From: PILGRIM, Peter, FM 
> > -Original Message-
> > From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
> > 
> > On Mon, 10 Mar 2003, PILGRIM, Peter, FM wrote:
> > 
> > > Date: Mon, 10 Mar 2003 17:18:25 -
> > > From: "PILGRIM, Peter, FM" <[EMAIL PROTECTED]>
> > > Reply-To: Struts Users Mailing List 
> <[EMAIL PROTECTED]>
> > > To: "Struts Users Mailing List (E-mail)" 
> > <[EMAIL PROTECTED]>
> > > Subject: Struts Faces ea validation XML error
> > >
> > > After copying all three JSF JAR to struts-faces/WEB-INF,
> > > and copying commons-logging-1.0.2.jar over WEB-INF/lib
> > > I got a validation error in the Struts Faces download.
> > >
> > > Is the validation XML correct?
> > >
> > 
> > I only get errors like this when I forget to include
> > "/WEB-INF/validation.xml" in my webapps -- can you make sure 
> > that is still
> > present?
> > 
> > Craig
> 
> It is very weird because I have both `/WEB-INF/validation.xml'
> and `/WEB-INF/validation-rules.xml' in the right place,
> I also checked the `/WEB-INF/struts-config.xml' to make
> sure that validator plugin is correctly set. This is 
> how I downloaded the struts-faces.jar ``as is'
> 
> Something is wrong here.

I copied the new validation.xml and validation-rules.xml from
the original Struts example in 1.1 beta 3 release over to the
Struts-Faces web app. Lo and behold, it works!

> > > org.apache.jasper.JasperException: Depends string "email" 
> > was not found in
> > > validator-rules.xml.
> > >   void
> > > 
----
> 
> ----

Mr. Brownstone, Appetite for Destruction, G & R

--
Peter Pilgrim,
Struts/J2EE Consultant, RBoS FM, Risk IT
Tel: +44 (0)207-375-4923




  Visit our Internet site at http://www.rbsmarkets.com

This e-mail is intended only for the addressee named above.
As this e-mail may contain confidential or privileged information,
if you are not the named addressee, you are not authorised to
retain, read, copy or disseminate this message or any part of it.
The Royal Bank of Scotland plc is registered in Scotland No 90312
Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB
 Regulated by the Financial Services Authority


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



weird org.apache.struts.action does not exist

2003-03-11 Thread Tom Cat
Hi, I am new to struts trying to learn something from Ted Husted's book Struts in 
Action.
I installed Tomcat and IBM JDK 1.4., then downloaded Ted's example application 
register-complete.war (which is example app on struts site too). It works fine but 
when I try to compile something using Struts - I am in a big trouble. I tried to 
recompile one of Ted's simple java files (setting CLASSPATH beforehand as this seems 
to be the usual cause for the proble I get, as I learned from mailinglist archives):

[root]/usr/local/tomcat/webapps/register-complete/WEB-INF/classes/app> echo $CLASSPATH
/usr/local/tomcat/webapps/register-complete/WEB-INF/lib/struts_1_0_2.jar;.;/usr/local/tomcat;/opt/IBMJava2-131/lib
[root]/usr/local/tomcat/webapps/register-complete/WEB-INF/classes/app> javac 
RegisterForm.java
RegisterForm.java:2: package org.apache.struts.action does not exist
import org.apache.struts.action.*;
^
RegisterForm.java:4: cannot resolve symbol
symbol  : class ActionForm
location: class app.RegisterForm
public class RegisterForm extends ActionForm {
  ^
2 errors


Somebody, please help :(
-- 
__
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup


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



[OT] Isn't LISP the same?

2003-03-11 Thread Mark Galbreath
 
Creators Admit UNIX, C Hoax 
In an announcement that has stunned the computer industry, Ken Thompson,
Dennis Ritchie and Brian Kernighan admitted that the Unix operating system 
and C programming language created by them is an elaborate prank kept alive 
for over 30 years. Speaking at the recent UnixWorld Software Development

Forum, Thompson revealed the following: 

"In 1969, AT&T had just terminated their work with the GE/Honeywell/AT&T

Multics project. Brian and I had started work with an early release of 
Pascal from Professor Niklaus Wirth's ETH labs in Switzerland and we were 
impressed with its elegant simplicity and power. Dennis had just finished 
reading 'Bored of the Rings', a National Lampoon parody of the Tolkien's
'Lord of the Rings' trilogy. As a lark, we decided to do parodies of the
Multics environment and Pascal. Dennis and I were responsible for the 
operating environment. We looked at Multics and designed the new OS to be 
as complex and cryptic as possible to maximize casual users' frustration
levels, calling it Unix as a parody of Multics, as well as other more 
risque allusions. We sold the terse command language to novitiates by 
telling them that it saved them typing. 

Then Dennis and Brian worked on a warped version of Pascal, called 'A'. 'A' 
looked a lot like Pascal, but elevated the notion of the direct memory 
address (which Wirth had banished) to the central concept of the language. 
This was Dennis's contribution, and he in fact coined the term "pointer" as 
an innocuous sounding name for a truly malevolent construct. 

Brian must be credited with the idea of having absolutely no standard I/O 
specification: this ensured that at least 50% of the typical commercial 
program would have to be re-coded when changing hardware platforms. Brian 
was also responsible for pitching this lack of I/O as a feature: it allowed 
us to describe the language as "truly portable". 

When we found others were actually creating real programs with A, we 
removed compulsory type-checking on function arguments. Later, we added a 
notion we called "casting": this allowed the programmer to treat an integer 
as though it were a 50kb user-defined structure. When we found that some
programmers were simply not using pointers, we eliminated the ability to
pass structures to functions, enforcing their use in even the simplest 
applications. We sold this, and many other features, as enhancements to the 
efficiency of the language. In this way, our prank evolved into B, BCPL, and
finally C. 

We stopped when we got a clean compile on the following syntax: 

for(;P("\n"),R-;P("|"))for(e=3DC;e-;P("_"+(*u++/8)%2))P("| "+(*u/4)%2); 

At one time, we joked about selling this to the Soviets to set their 
computer science progress back 20 or more years. 

Unfortunately, AT&T and other US corporations actually began using Unix and 
C. We decided we'd better keep mum, assuming it was just a passing phase. 

In fact, it took US companies over 20 years to develop enough expertise 
to generate useful applications using this 1960's technological parody. We 
are impressed with the tenacity of the general Unix and C programmer. In
fact, Brian, Dennis and I have never ourselves attempted to write a 
commercial application in this environment. 

We feel really guilty about the chaos, confusion and truly awesome 
programming projects that have resulted from our silly prank so long ago." 

Dennis Ritchie said: "What really tore it (just when Ada was catching on), 
was that Bjarne Stroustrup caught onto our joke. He extended it to further 
parody, C++. Like us, he was caught by surprise when nobody laughed. 
So he added multiple inheritance, virtual base classes, and later ... 
templates. All to no avail. So we now have compilers that can compile 
100,000 lines per second, but need to process header files for 25 minutes 
before they get to the meat of "Hello, World". 

Major Unix and C vendors and customers, including AT&T, Microsoft, 
Hewlett-Packard, GTE, NCR, and DEC have refused comment at this time. 

Borland International, a leading vendor of object-oriented tools, including 
the popular Turbo Pascal and Borland C++, stated they had suspected this for
a couple of years. In fact, the notoriously late Quattro Pro for 
Windows was originally written in C++. Philippe Kahn said: "After two and a 
half years programming, and massive programmer burn-outs, we re-coded the 
whole thing in Turbo Pascal in three months. I think it's fair to say that 
Turbo Pascal saved our bacon". Another Borland spokesman said that they 
would continue to enhance their Pascal products and halt further efforts to 
develop C/C++. 

Professor Wirth of the ETH institute and father of the Pascal, Modula 2 and 
Oberon structured languages, cryptically said "P.T. Barnum was right." He 
had no further comments.





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

Re: [OT]:Hiding layers in HTML

2003-03-11 Thread Mark Lowe
Start by creating a load of absolute positioned layers with a linked or 
emmbedded stype sheet.. Use id's to identify each div etc. and if you 
are using a linked style sheet place an empty id'ed attribute at the 
top off the css

i.e
/* quirck bug */
#dummy{
}

#div1 {
position:absolute;
etc
visability:hidden;
visibility:hide; //ns 4
}
etc

you can manipluate you css defined stuff in js like this

document.getElementById("div1").style.visability = "visible";

You'll also have to look for the reference for document.all and 
document.layers for ie and ns 4..

My advise you be use innerHTML and innerText and don't use this type of 
DHTML.. You'lll only have to write div code of ns4 this way.. Absolute 
positioned divs are really fiddly .. InnerHTML on table cells much 
nicer..

hope this helps

mark

Lunedì, 10 mar 2003, alle 22:41 Europe/Rome, Vinay ha scritto:

Thank you all for your replies. I think I will have to get some good 
hold on
regular expressions

I found a site which lists possible regular expressions . This should 
help
me, anyway even buying book should do

http://demo.freshwater.com/SiteScope/docs/regexp.htm

Now I have another question , which I think shouldn't be in this list 
but
was curious if anybody knows.

I have HTML page  with certain number of tables, in kind of different
layers(I have put them in field sets).
On triggering of event(liking selecting a certain checkbox) the 
different
layers should be hidden or visible. I think it should be possible be
JavaScript I think, but don't know how.

Help appreciated,

Thanks in advance
Vinay




- Original Message -
From: "Dan Allen" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Monday, March 10, 2003 3:46 PM
Subject: Re: Regular Expressions

Not that I have seen per se.  There is a site that has some pre-built
regexs but Im sorry I cant remember the URL.  Your best bet is to go 
buy
the Oreilly book "Mastering Regular Expressions"  It is pretty much 
the
bible of regex and well worth the investment.
KDE 3.1 has an awesome regular expression GUI editor, good for
people just learning how to create them.  One thing to watch out
for:
In the validator, Perl regular expressions are used.  Normally, when
you make a Perl regular expressions you have to use a delimiter,
which is typically '/'
However, in the validator definition file, you can exclude the
delimiter as the validator automatically adds it for you.  However,
this means that you must escape and instance of '/' in your regular
expression.
I have filed a bug report about this in bugzilla because the
validator should automatically escape any delimiter used in the
definition file so that this "ghost" delimiter does not have to be
accounted for.
In short, I mean

The following would be accepted:

mask
^http://[^ ]*$
instead of the current syntax

mask
^http:\/\/[^ ]*$
Since behind the scenes the regexp becomes

/^http:\/\/[^ ]*$/

I rest my case.

Dan

--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Daniel Allen, <[EMAIL PROTECTED]>
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"I used to herd dairy cows.  Now I herd linux users.  Apart
from the isolation, I think I preferred the cows.  They were
better in conversation, easier to milk, and if they annoyed me
enough, I could shoot them and eat them."
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
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: The Back button on on multi-page forms ??????

2003-03-11 Thread David Graham
I've been known to "discourage" the use of the back button by opening my
apps in a browser window that doesn't have the usual location bar and back
button icons
This is why I use Opera :-).

Of course, it's incumbent upon the app developer to include enough nice
navigation controls in the page layout so as to minimize the temptation to
use the back button in any case ... :-)
I have used some truly horrible apps that tried to remove my buttons and 
didn't provide adequate navigation.

IMHO, it's not worth fighting the user over this issue.  They want to use 
the back button so just let them.

David

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

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


How to use conditionaly required fields in validator?

2003-03-11 Thread Greg Hess
Hi All, 
 
I have seen in the Struts User's Guide
http://jakarta.apache.org/struts/userGuide/dev_validator.html new
support for conditionally required fields. I would love to take
advantage of this feature but am unclear how to implement this
functionality using the Struts validator. I can see from the example in
the user guide that the form should contain a property containing an
array of dependants that I believe would relate to a form field and its
dependants. This combined with adding the attribute
"indexedListProperty" referencing the dependants[] in a form field
validation definition. But I am unclear on how to use this
functionality.
 
Any ideas?
 
Many thanks,
 
Greg


Re: weird org.apache.struts.action does not exist

2003-03-11 Thread Guido
Try using ":" instead of ";" in your CLASSPATH if you are developing 
under Linux/UNIX.

If this doesn't work, try putting the classpath within your javac statment:

javac -classpath  RegisterForm.java

HTH
Guido.
Tom Cat wrote:
Hi, I am new to struts trying to learn something from Ted Husted's book Struts in 
Action.
I installed Tomcat and IBM JDK 1.4., then downloaded Ted's example application 
register-complete.war (which is example app on struts site too). It works fine but 
when I try to compile something using Struts - I am in a big trouble. I tried to 
recompile one of Ted's simple java files (setting CLASSPATH beforehand as this seems 
to be the usual cause for the proble I get, as I learned from mailinglist archives):
[root]/usr/local/tomcat/webapps/register-complete/WEB-INF/classes/app> echo $CLASSPATH
/usr/local/tomcat/webapps/register-complete/WEB-INF/lib/struts_1_0_2.jar;.;/usr/local/tomcat;/opt/IBMJava2-131/lib
[root]/usr/local/tomcat/webapps/register-complete/WEB-INF/classes/app> javac 
RegisterForm.java
RegisterForm.java:2: package org.apache.struts.action does not exist
import org.apache.struts.action.*;
^
RegisterForm.java:4: cannot resolve symbol
symbol  : class ActionForm
location: class app.RegisterForm
public class RegisterForm extends ActionForm {
  ^
2 errors
Somebody, please help :(


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


Re: SSL extension question

2003-03-11 Thread James
it's ok I've got it...

I missed the RequestProcessor entry in the struts-config.xml


"James" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I''m using the sslext struts extension to switch from non ssl to ssl..
> however i cant seem to get it working.
> I use the url http://localhost:8080/MyApp to go to the welcome page.. and
a
> couple of pages later i need to switch to Https..
>
> i have the jars in my /lib directory and i've made the following changes
to
> my struts-config.xml
> what am i missing?
>
> ---
> 
>
>  type="com.joe.bloggs.ListItemsAction"
> name="listItemsForm"
> scope="request"
> input="/chooseItems.jsp">
> 
> 
> 
> 
>
> 
> 
> 
> 
> 




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



Re: [Q] Log Viewing tool for Windows environment?

2003-03-11 Thread Ashish Kulkarni
Hi,
u may wanna try 
http://www.textpad.com/

this one is pretty good refresh etc when the file is
changed on computer and just press Ctrl + End key once
and it will take u always to end of file

Ashish
--- Jeff Smith <[EMAIL PROTECTED]> wrote:
> To date I have been using the brute-force log
> viewer: notepad. Is anybody
> aware of a Windows app that monitors text log files
> (like output from log4j)
> and automatically refreshes and scrolls to the end
> of the file? Such
> functionality would make my test-debug cycle less
> mouse intensive. :-)
> 
> In the UN*X world, I had the tail command for such
> purposes. But I've never
> seen anything like this for Windows.
> 
> Any suggestions?
> 
> Jefficus
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


=
A$HI$H

__
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com

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



Re: weird org.apache.struts.action does not exist

2003-03-11 Thread Mark Lowe
i'd read this  
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/index.html

take the example ant project and use it as a starting point for any  
java propjects you are doing.. This will save you all the messing  
around with classpaths etc (you still have to set them in ant's  
build.xml file however).. Go through the ant stuff to install it if you  
haven't already.

You will be able to drop any jar file in /WEB-INF/lib and it be placed  
in your classpath.

A few hours spent here will save a lot of time,,, This also gives you a  
development envionment where source is always seperate to compiled  
classes..

If you really just want to get something running now then

> cd

> vi .bash_profile

add

export CLASSPATH=$CLASSPATH:PATH_TO_STRUTS_JARS

save and exit

:wq

start a new terminal session

 cheers mark

Martedì, 11 mar 2003, alle 15:42 Europe/Rome, Guido ha scritto:

Try using ":" instead of ";" in your CLASSPATH if you are developing  
under Linux/UNIX.

If this doesn't work, try putting the classpath within your javac  
statment:

javac -classpath  RegisterForm.java

HTH
Guido.
Tom Cat wrote:
Hi, I am new to struts trying to learn something from Ted Husted's  
book Struts in Action.
I installed Tomcat and IBM JDK 1.4., then downloaded Ted's example  
application register-complete.war (which is example app on struts  
site too). It works fine but when I try to compile something using  
Struts - I am in a big trouble. I tried to recompile one of Ted's  
simple java files (setting CLASSPATH beforehand as this seems to be  
the usual cause for the proble I get, as I learned from mailinglist  
archives):
[root]/usr/local/tomcat/webapps/register-complete/WEB-INF/classes/ 
app> echo $CLASSPATH
/usr/local/tomcat/webapps/register-complete/WEB-INF/lib/ 
struts_1_0_2.jar;.;/usr/local/tomcat;/opt/IBMJava2-131/lib
[root]/usr/local/tomcat/webapps/register-complete/WEB-INF/classes/ 
app> javac RegisterForm.java
RegisterForm.java:2: package org.apache.struts.action does not exist
import org.apache.struts.action.*;
^
RegisterForm.java:4: cannot resolve symbol
symbol  : class ActionForm
location: class app.RegisterForm
public class RegisterForm extends ActionForm {
  ^
2 errors
Somebody, please help :(


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


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


RE: The Back button on on multi-page forms ??????

2003-03-11 Thread apachep2
Even same browsers on 2 different machines generate different result. So
use token to disable the Back behavior.

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED] 
Sent: March 10, 2003 5:17 PM
To: [EMAIL PROTECTED]
Subject: RE: The Back button on on multi-page forms ??

Then that is a browser specific issue.  When I hit the back button in
Opera, 
all of the form fields are just how I entered them.  Remember that the
back 
button does not contact the server so Struts has nothing to do with
this.

David



>From: "Ron Day" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Subject: RE: The Back button on on multi-page forms ??
>Date: Mon, 10 Mar 2003 16:08:10 -0600
>
>sorry, I think we are going in circles.
>
>This is a multipage form (3 to be exact but with only one actionform),
BUT
>my whole original issue was:
>
>When they hit the back button the original form content IS either
absent or
>different to their last entries (I do a reset in the actionform0.
>
>Am I doing something wrong or is this a fact of life with the back
button.
>
>ron
>
>-Original Message-
>From: David Graham [mailto:[EMAIL PROTECTED]
>Sent: Monday, March 10, 2003 3:49 PM
>To: [EMAIL PROTECTED]
>Subject: RE: The Back button on on multi-page forms ??
>
>
>If this is a multi-page form, then don't use tokens and let them use
the
>back button to correct the data.  If it's a single page form, use
tokens 
>and
>provide an update form where they can correct any mistakes they made on
the
>add form.  The difference is that the multi-page form will be
accumulating
>data in the session rather than immediately inserting it in the
database.
>
>David
>
>
>
> >From: "Ron Day" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List"
<[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Subject: RE: The Back button on on multi-page forms ??
> >Date: Mon, 10 Mar 2003 15:36:25 -0600
> >
> >I completely understand your example and how validation works.
> >
> >In my example, the error is not a validation error, it is a user
error 
>(as
> >my example said a wrong phone number)
> >Say he/she typed in a home phone number and wants to go back and
change 
>it
> >to his work phone.
> >The user instinctively will hit the back button.
> >That's where my problem starts..
> >
> >ron
> >
> >-Original Message-
> >From: David Graham [mailto:[EMAIL PROTECTED]
> >Sent: Monday, March 10, 2003 3:27 PM
> >To: [EMAIL PROTECTED]
> >Subject: RE: The Back button on on multi-page forms ??
> >
> >
> >1. User submits form with invalid data.
> >2. Form bean's validate() method returns ActionErrors
> >3. Struts *forwards* the request back to the input page with errors
> >4. Input page displays errors.
> >5. User submits form again, if invalid goto step 1.
> >
> >There is no valid reason for the user to use the back button to
correct
> >data.  Tokens prevent the user from submitting the same form twice.
> >
> >David
> >
> >
> >
> > >From: "Ron Day" <[EMAIL PROTECTED]>
> > >Reply-To: "Struts Users Mailing List"
<[EMAIL PROTECTED]>
> > >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > >Subject: RE: The Back button on on multi-page forms ??
> > >Date: Mon, 10 Mar 2003 15:07:40 -0600
> > >
> > >So, how can they correct a user error (i.e wrong phone number) on
the
> > >previous page, and resubmit the form?
> > >
> > >R
> > >
> > >-Original Message-
> > >From: David Graham [mailto:[EMAIL PROTECTED]
> > >Sent: Monday, March 10, 2003 3:01 PM
> > >To: [EMAIL PROTECTED]
> > >Subject: RE: The Back button on on multi-page forms ??
> > >
> > >
> > >Pressing the back button does not contact the server and thus
cannot 
>post
> > >any information.  When the user submits the form again, their token

>will
> >be
> > >invalid and your action will prevent a duplicate post.
> > >
> > >David
> > >
> > >
> > >
> > > >From: "Ron Day" <[EMAIL PROTECTED]>
> > > >Reply-To: "Struts Users Mailing List" 
><[EMAIL PROTECTED]>
> > > >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > >Subject: RE: The Back button on on multi-page forms ??
> > > >Date: Mon, 10 Mar 2003 14:40:43 -0600
> > > >
> > > >Maybe I'm dumb, but it is not apparent to me how the "token" is
used 
>to
> > > >make
> > > >the back button post the correct form information.
> > > >
> > > >R
> > > >
> > > >-Original Message-
> > > >From: David Graham [mailto:[EMAIL PROTECTED]
> > > >Sent: Monday, March 10, 2003 12:48 PM
> > > >To: [EMAIL PROTECTED]
> > > >Subject: RE: The Back button on on multi-page forms ??
> > > >
> > > >
> > > >You'll notice that I also pointed you to the struts-example app
that
> > >shows
> > > >you how to use the methods you found in the javadoc.
> > > >
> > > >David
> > > >
> > > >
> > > >
> > > > >From: "Ron Day" <[EMAIL PROTECTED]>
> > > > >Reply-To: "Struts Users Mailing List"
> ><[EMAIL PROTECTED]>

RE: The Back button on on multi-page forms ??????

2003-03-11 Thread apachep2
Show us your JavaScript evil. My boss insists on using Back, I have to
give me a shock.

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED] 
Sent: March 10, 2003 9:39 PM
To: Struts Users Mailing List
Subject: RE: The Back button on on multi-page forms ??


Remember that the back button does not contact the server


Some do sometimes - but Im not sure under what cicumstances - probably
depends on what sort of caching setting you have set up in your browser
-
and what browser it is - and the alignment of neptune and saturn etc..
(ie:
nothing you can rely on server side). Ive seen it happen.

At the moment Im using the evil javascript location.replace trick to
avoid
pages going into the history where possible. People who hit the back
button
end up back on the login page...

I really wanted to give them an electric shock to help the "back is bad"
concept sink in properly, but alas! - the hardware isnt in place to
administer this form of 'interactive user training' :-(

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 11 March 2003 06:17
To: [EMAIL PROTECTED]
Subject: RE: The Back button on on multi-page forms ??


Then that is a browser specific issue.  When I hit the back button in
Opera,
all of the form fields are just how I entered them.  Remember that the
back
button does not contact the server so Struts has nothing to do with
this.

David



>From: "Ron Day" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Subject: RE: The Back button on on multi-page forms ??
>Date: Mon, 10 Mar 2003 16:08:10 -0600
>
>sorry, I think we are going in circles.
>
>This is a multipage form (3 to be exact but with only one actionform),
BUT
>my whole original issue was:
>
>When they hit the back button the original form content IS either
absent or
>different to their last entries (I do a reset in the actionform0.
>
>Am I doing something wrong or is this a fact of life with the back
button.
>
>ron
>
>-Original Message-
>From: David Graham [mailto:[EMAIL PROTECTED]
>Sent: Monday, March 10, 2003 3:49 PM
>To: [EMAIL PROTECTED]
>Subject: RE: The Back button on on multi-page forms ??
>
>
>If this is a multi-page form, then don't use tokens and let them use
the
>back button to correct the data.  If it's a single page form, use
tokens
>and
>provide an update form where they can correct any mistakes they made on
the
>add form.  The difference is that the multi-page form will be
accumulating
>data in the session rather than immediately inserting it in the
database.
>
>David
>
>
>
> >From: "Ron Day" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List"
<[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Subject: RE: The Back button on on multi-page forms ??
> >Date: Mon, 10 Mar 2003 15:36:25 -0600
> >
> >I completely understand your example and how validation works.
> >
> >In my example, the error is not a validation error, it is a user
error
>(as
> >my example said a wrong phone number)
> >Say he/she typed in a home phone number and wants to go back and
change
>it
> >to his work phone.
> >The user instinctively will hit the back button.
> >That's where my problem starts..
> >
> >ron
> >
> >-Original Message-
> >From: David Graham [mailto:[EMAIL PROTECTED]
> >Sent: Monday, March 10, 2003 3:27 PM
> >To: [EMAIL PROTECTED]
> >Subject: RE: The Back button on on multi-page forms ??
> >
> >
> >1. User submits form with invalid data.
> >2. Form bean's validate() method returns ActionErrors
> >3. Struts *forwards* the request back to the input page with errors
> >4. Input page displays errors.
> >5. User submits form again, if invalid goto step 1.
> >
> >There is no valid reason for the user to use the back button to
correct
> >data.  Tokens prevent the user from submitting the same form twice.
> >
> >David
> >
> >
> >
> > >From: "Ron Day" <[EMAIL PROTECTED]>
> > >Reply-To: "Struts Users Mailing List"
<[EMAIL PROTECTED]>
> > >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > >Subject: RE: The Back button on on multi-page forms ??
> > >Date: Mon, 10 Mar 2003 15:07:40 -0600
> > >
> > >So, how can they correct a user error (i.e wrong phone number) on
the
> > >previous page, and resubmit the form?
> > >
> > >R
> > >
> > >-Original Message-
> > >From: David Graham [mailto:[EMAIL PROTECTED]
> > >Sent: Monday, March 10, 2003 3:01 PM
> > >To: [EMAIL PROTECTED]
> > >Subject: RE: The Back button on on multi-page forms ??
> > >
> > >
> > >Pressing the back button does not contact the server and thus
cannot
>post
> > >any information.  When the user submits the form again, their token
>will
> >be
> > >invalid and your action will prevent a duplicate post.
> > >
> > >David
> > >
> > >
> > >
> > > >From: "Ron Day" <[EMAIL PROTECTED]>
> > > >Reply-To: "Struts Users Mailing List"
><[EMAIL PROTECTED]>
> > > >To: "St

RE: The Back button on on multi-page forms ??????

2003-03-11 Thread apachep2
Does IRS give me a chance hitting Back, re-filing last year's tax form
and re-submitting it? :)

-Original Message-
From: Bueno Carlos M [mailto:[EMAIL PROTECTED] 
Sent: March 10, 2003 10:27 PM
To: 'Struts Users Mailing List'
Subject: RE: The Back button on on multi-page forms ??

I may be way off here, but how about coding defensively? This isn't some
special java-struts problem; it's the price of maintaining the illusion
of a
session over HTTP.

Form tokens are a good idea but the user can and will click that pesky
back
button to change what they inputted. One of two things will happen: the
browser calls up the form from cache and fills in the values or it makes
a
new HTTP request, which will give them a blank form. Since they have
already
submitted once, you have that data somewhere. So populate the dang
form
if the data exists. Simple? Simple.

It doesn't have to be complicated. A properly-built state machine (ie,
your
session or action code) should ignore input that can corrupt its
internals.
Check the state you are about to change -- if it's already changed, go
to
the next step, merge it or whatever is the Right Thing To Do. If you app
is
so fragile that someone clicking ye olde back button will mess things up
you
should look for ways to improve and simplify your design, not some
clever
client hack. 

My reasoning is this: as soon as you plug one hole another will open up.
Say
you disable the back button. What happens if the user clicks submit
twice?
What happens if they press CTRL-N and now have two windows with the same
session?

1. Users will always do what you don't expect.

2. The average user is pretty dumb.

3. Half of all users are even dumber than *that*.

4. Browsers work for them, not for you.

 -- los

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Monday, March 10, 2003 9:39 PM
To: Struts Users Mailing List
Subject: RE: The Back button on on multi-page forms ??



Remember that the back button does not contact the server


Some do sometimes - but Im not sure under what cicumstances - probably
depends on what sort of caching setting you have set up in your browser
-
and what browser it is - and the alignment of neptune and saturn etc..
(ie:
nothing you can rely on server side). Ive seen it happen.

At the moment Im using the evil javascript location.replace trick to
avoid
pages going into the history where possible. People who hit the back
button
end up back on the login page...

I really wanted to give them an electric shock to help the "back is bad"
concept sink in properly, but alas! - the hardware isnt in place to
administer this form of 'interactive user training' :-(

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 11 March 2003 06:17
To: [EMAIL PROTECTED]
Subject: RE: The Back button on on multi-page forms ??


Then that is a browser specific issue.  When I hit the back button in
Opera,
all of the form fields are just how I entered them.  Remember that the
back
button does not contact the server so Struts has nothing to do with
this.

David



>From: "Ron Day" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Subject: RE: The Back button on on multi-page forms ??
>Date: Mon, 10 Mar 2003 16:08:10 -0600
>
>sorry, I think we are going in circles.
>
>This is a multipage form (3 to be exact but with only one actionform),
BUT
>my whole original issue was:
>
>When they hit the back button the original form content IS either
absent or
>different to their last entries (I do a reset in the actionform0.
>
>Am I doing something wrong or is this a fact of life with the back
button.
>
>ron
>
>-Original Message-
>From: David Graham [mailto:[EMAIL PROTECTED]
>Sent: Monday, March 10, 2003 3:49 PM
>To: [EMAIL PROTECTED]
>Subject: RE: The Back button on on multi-page forms ??
>
>
>If this is a multi-page form, then don't use tokens and let them use
the
>back button to correct the data.  If it's a single page form, use
tokens
>and
>provide an update form where they can correct any mistakes they made on
the
>add form.  The difference is that the multi-page form will be
accumulating
>data in the session rather than immediately inserting it in the
database.
>
>David
>
>
>
> >From: "Ron Day" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List"
<[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Subject: RE: The Back button on on multi-page forms ??
> >Date: Mon, 10 Mar 2003 15:36:25 -0600
> >
> >I completely understand your example and how validation works.
> >
> >In my example, the error is not a validation error, it is a user
error
>(as
> >my example said a wrong phone number)
> >Say he/she typed in a home phone number and wants to go back and
change
>it
> >to his work phone.
> >The user instinctively will hit the back button.
> >That's where my problem starts..

How define a DynaActionForm to display a collection ?

2003-03-11 Thread Heligon Sandra

I would like to define a DynaActionForm that is used to display
a collection in a JSP page.

For example the DTO object of the business tier is a
CustomerObject with the following properties:

- First Name 
- Last Name
- Age
- Country
- Identifier

For a customer detail view I have the following DynaActionForm:








How must I define/declare the DynaActionForm associated to the JSP
page that display
the list of customers ?



I can perhaps use the same DynaActionForm for the two pages ?

In this case which is the code to update or create the collection of
DTO object (CustomerObject ) ?



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

Thomson is the leader in solutions and technologies for the entertainment
and media industries and serves its customers under its four strategic
brands: Technicolor, Grass Valley, RCA and THOMSON. 
More about Thomson: http://www.thomson.net/videochain 



RE: [Q] Log Viewing tool for Windows environment?

2003-03-11 Thread James Mitchell
I also use Textpad exclusively for anything that Eclipse won't do.  The
refresh feature is nice since it doesn't lock open files so you can
monitor your log files.

I also take advantage of the custom Tools buttons for launching ant,
it's nice to be able to jump around in a text-editor-view of the output
from ant instead of dealing with a command window.


--
James Mitchell
Software Developer/Struts Evangelist
http://struts.sourceforge.net/struts-atlanta/



> -Original Message-
> From: Ashish Kulkarni [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, March 11, 2003 9:56 AM
> To: Struts Users Mailing List
> Subject: Re: [Q] Log Viewing tool for Windows environment?
> 
> 
> Hi,
> u may wanna try 
> http://www.textpad.com/
> 
> this one is pretty good refresh etc when the file is
> changed on computer and just press Ctrl + End key once
> and it will take u always to end of file
> 
> Ashish
> --- Jeff Smith <[EMAIL PROTECTED]> wrote:
> > To date I have been using the brute-force log
> > viewer: notepad. Is anybody
> > aware of a Windows app that monitors text log files
> > (like output from log4j)
> > and automatically refreshes and scrolls to the end
> > of the file? Such
> > functionality would make my test-debug cycle less
> > mouse intensive. :-)
> > 
> > In the UN*X world, I had the tail command for such
> > purposes. But I've never
> > seen anything like this for Windows.
> > 
> > Any suggestions?
> > 
> > Jefficus
> > 
> > 
> >
> -
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> 
> 
> =
> A$HI$H
> 
> __
> Do you Yahoo!?
> Yahoo! Web Hosting - establish your business online
> http://webhosting.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: OT Filename using file download within an action

2003-03-11 Thread Susan Bradeen
Roland,

Have you found that Netscape *never* shows the correct file name (without 
the .do) when downloading? It appears to me that if Mozilla "understands" 
the file content type, the file name will appear correctly in the download 
dialog box. But if it doesn't (meaning application/octet-stream), then it 
displays the .do at the end of the file name. Apparently IE determines the 
content type differently (figures out what the file type is itself), so 
therefore displays a correct file name. 

How are you setting the content type in your download? I am currently 
trying something like the following: 

String mimeType = 
URLConnection.getFileNameMap().getContentTypeFor(fileName);
if (mimeType != null) {response.setContentType(mimeType);}
else {response.setContentType("application/octet-stream");}
response.setHeader("Content-Disposition", "attachment; filename=" + 
fileName);

Although I am not exactly sure where this (URLConnection) content type 
information comes from. I hesitate to manually list out content types, 
since there are so many, but perhaps that is what most people do?

Sorry I can't provide an answer, but I would be interested to hear if you 
gain some insight on this.

Thanks,
Susan Bradeen

On 03/10/2003 12:40:26 PM "Roland Berger" wrote:

> Hi all
> 
> Craig has described in the thread "File upload/download design question" 
how
> to download a file from within an action. Others have described how to 
set
> the Header so that the browser is promting for the right filename:
> 
> response.setHeader("Content-Disposition","attachment; filename=\"" +
> myFileName+ "\";");
> 
> The later does not work with netscape version 7 ( it does work with IE 6 
).
> In the popup, the browser suggests  the filename like this: 
.do
> . One year has passed by since and world has become more clever 
(sometimes I
> think the opposite). Is there a more definitv guide to suggest the 
filename
> of the download?
> 
> Thank's
> Roland
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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



Re: [ANN] Struttin' With Struts beta (newbies esp. welcome)

2003-03-11 Thread Rick Reumann
On Tue, 11 Mar 2003 06:49:54 -0500
Vic Cekvenich <[EMAIL PROTECTED]> wrote:

> Excellent!!!
> 
> I will take the tutorial.
> I am wondering what are you doing for your Data Base, is it JDBC or 
> something else.

Thank you Vic.  

Actually since the lessons are very basic they don't even really touch
the Model layer. They stop with a simple dummy call to service methods
like:

EmployeeDTO insertEmployee( EmployeeDTO employee ) { return employee; }
 
My goal eventually is to build up to some model layer
approaches on Database connectivity etc, but of course would have to run
that stuff by you gurus :) as I'm still very weak in that area myself. 

Tentative lessons I'd like to see:

Lesson IV -
   Tiles
   internationalization

Lesson V -
   Accessing your model layer ( proper use of factories, services, DAOs
etc.)   
   nested tags

It would be cool if someone wanted to create any of the above lessons
following the same pattern of dealing with inserting/updating an
employee. If each lesson follows the same functionality (with just added
components/features) it makes it much easier for a new person to follow.


> > Struttin' with Struts:
> > 
> > http://www.reumann.net/do/struts/main
> > 
 

-- 
Rick Reumann

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



Re: [Q] Log Viewing tool for Windows environment?

2003-03-11 Thread unicoletti
cygwin has tail...
and grep and awk...

www.cygwin.com

Umberto

Quoting Ashish Kulkarni <[EMAIL PROTECTED]>:

> Hi,
> u may wanna try 
> http://www.textpad.com/
> 
> this one is pretty good refresh etc when the file is
> changed on computer and just press Ctrl + End key once
> and it will take u always to end of file
> 
> Ashish
> --- Jeff Smith <[EMAIL PROTECTED]> wrote:
> > To date I have been using the brute-force log
> > viewer: notepad. Is anybody
> > aware of a Windows app that monitors text log files
> > (like output from log4j)
> > and automatically refreshes and scrolls to the end
> > of the file? Such
> > functionality would make my test-debug cycle less
> > mouse intensive. :-)
> > 
> > In the UN*X world, I had the tail command for such
> > purposes. But I've never
> > seen anything like this for Windows.
> > 
> > Any suggestions?
> > 
> > Jefficus
> > 
> > 
> >
> -
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> 
> 
> =
> A$HI$H
> 
> __
> Do you Yahoo!?
> Yahoo! Web Hosting - establish your business online
> http://webhosting.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]



Newbie question

2003-03-11 Thread James
How can i mask the url in the browser so the user does not see the request
parameters..?

ie /localhost/myapp/find?id=3  - is what is currently displayed...





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



Re: How define a DynaActionForm to display a collection ?

2003-03-11 Thread Mark Lowe
		
			
			
			
		

in action

DynaActionForm theForm = (DynaActionForm) form;

theForm.set("firstName",myValue);

that should be what you need

cheers mark



Martedì, 11 mar 2003, alle 16:15 Europe/Rome, Heligon Sandra ha scritto:

I would like to define a DynaActionForm that is used to display
a collection in a JSP page.
For example the DTO object of the business tier is a
CustomerObject with the following properties:
- First Name
- Last Name
- Age
- Country
- Identifier

For a customer detail view I have the following DynaActionForm:







How must I define/declare the DynaActionForm associated to the JSP
page that display
the list of customers ?


	I can perhaps use the same DynaActionForm for the two pages ?

In this case which is the code to update or create the collection of
DTO object (CustomerObject ) ?


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

Thomson is the leader in solutions and technologies for the 
entertainment
and media industries and serves its customers under its four strategic
brands: Technicolor, Grass Valley, RCA and THOMSON.
More about Thomson: http://www.thomson.net/videochain



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


RE: [OT] Isn't LISP the same?

2003-03-11 Thread du Plessis, Corneil C
And James Gosling was part of it as well!

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: 11 March, 2003 16:21
To: struts
Subject: [OT] Isn't LISP the same?


 
Creators Admit UNIX, C Hoax 
In an announcement that has stunned the computer industry, Ken Thompson,
Dennis Ritchie and Brian Kernighan admitted that the Unix operating system 
and C programming language created by them is an elaborate prank kept alive 
for over 30 years. Speaking at the recent UnixWorld Software Development

Forum, Thompson revealed the following: 

"In 1969, AT&T had just terminated their work with the GE/Honeywell/AT&T

Multics project. Brian and I had started work with an early release of 
Pascal from Professor Niklaus Wirth's ETH labs in Switzerland and we were 
impressed with its elegant simplicity and power. Dennis had just finished 
reading 'Bored of the Rings', a National Lampoon parody of the Tolkien's
'Lord of the Rings' trilogy. As a lark, we decided to do parodies of the
Multics environment and Pascal. Dennis and I were responsible for the 
operating environment. We looked at Multics and designed the new OS to be 
as complex and cryptic as possible to maximize casual users' frustration
levels, calling it Unix as a parody of Multics, as well as other more 
risque allusions. We sold the terse command language to novitiates by 
telling them that it saved them typing. 

Then Dennis and Brian worked on a warped version of Pascal, called 'A'. 'A' 
looked a lot like Pascal, but elevated the notion of the direct memory 
address (which Wirth had banished) to the central concept of the language. 
This was Dennis's contribution, and he in fact coined the term "pointer" as 
an innocuous sounding name for a truly malevolent construct. 

Brian must be credited with the idea of having absolutely no standard I/O 
specification: this ensured that at least 50% of the typical commercial 
program would have to be re-coded when changing hardware platforms. Brian 
was also responsible for pitching this lack of I/O as a feature: it allowed 
us to describe the language as "truly portable". 

When we found others were actually creating real programs with A, we 
removed compulsory type-checking on function arguments. Later, we added a 
notion we called "casting": this allowed the programmer to treat an integer 
as though it were a 50kb user-defined structure. When we found that some
programmers were simply not using pointers, we eliminated the ability to
pass structures to functions, enforcing their use in even the simplest 
applications. We sold this, and many other features, as enhancements to the 
efficiency of the language. In this way, our prank evolved into B, BCPL, and
finally C. 

We stopped when we got a clean compile on the following syntax: 

for(;P("\n"),R-;P("|"))for(e=3DC;e-;P("_"+(*u++/8)%2))P("| "+(*u/4)%2); 

At one time, we joked about selling this to the Soviets to set their 
computer science progress back 20 or more years. 

Unfortunately, AT&T and other US corporations actually began using Unix and 
C. We decided we'd better keep mum, assuming it was just a passing phase. 

In fact, it took US companies over 20 years to develop enough expertise 
to generate useful applications using this 1960's technological parody. We 
are impressed with the tenacity of the general Unix and C programmer. In
fact, Brian, Dennis and I have never ourselves attempted to write a 
commercial application in this environment. 

We feel really guilty about the chaos, confusion and truly awesome 
programming projects that have resulted from our silly prank so long ago." 

Dennis Ritchie said: "What really tore it (just when Ada was catching on), 
was that Bjarne Stroustrup caught onto our joke. He extended it to further 
parody, C++. Like us, he was caught by surprise when nobody laughed. 
So he added multiple inheritance, virtual base classes, and later ... 
templates. All to no avail. So we now have compilers that can compile 
100,000 lines per second, but need to process header files for 25 minutes 
before they get to the meat of "Hello, World". 

Major Unix and C vendors and customers, including AT&T, Microsoft, 
Hewlett-Packard, GTE, NCR, and DEC have refused comment at this time. 

Borland International, a leading vendor of object-oriented tools, including 
the popular Turbo Pascal and Borland C++, stated they had suspected this for
a couple of years. In fact, the notoriously late Quattro Pro for 
Windows was originally written in C++. Philippe Kahn said: "After two and a 
half years programming, and massive programmer burn-outs, we re-coded the 
whole thing in Turbo Pascal in three months. I think it's fair to say that 
Turbo Pascal saved our bacon". Another Borland spokesman said that they 
would continue to enhance their Pascal products and halt further efforts to 
develop C/C++. 

Professor Wirth of the ETH institute and father of the Pascal, Modula 2 and 
Oberon structured languages, c

RE: Newbie question

2003-03-11 Thread Jarnot Voytek Contr AU HQ/SC
do a post instead of a get

--
Voytek Jarnot
Quidquid latine dictum sit, altum viditur.


> -Original Message-
> From: James [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 11, 2003 9:23 AM
> To: [EMAIL PROTECTED]
> Subject: Newbie question
> 
> 
> How can i mask the url in the browser so the user does not 
> see the request
> parameters..?
> 
> ie /localhost/myapp/find?id=3  - is what is currently displayed...
> 
> 
> 
> 
> 
> -
> 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: Newbie question

2003-03-11 Thread Stephen Smithstone
id first pass it to a the action needed then do a redirect to another action 
that would get rid of the url for you maybe

On Tuesday 11 March 2003 3:22 pm, James wrote:
> How can i mask the url in the browser so the user does not see the request
> parameters..?
>
> ie /localhost/myapp/find?id=3  - is what is currently displayed...
>
>
>
>
>
> -
> 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: Newbie question

2003-03-11 Thread Jamesey
I am doing a post...

but the url still shows localhost/myapp/find.do?id=3

"Jarnot Voytek Contr AU HQ/SC" <[EMAIL PROTECTED]> wrote in
message
news:[EMAIL PROTECTED]
> do a post instead of a get
>
> --
> Voytek Jarnot
> Quidquid latine dictum sit, altum viditur.
>
>
> > -Original Message-
> > From: James [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, March 11, 2003 9:23 AM
> > To: [EMAIL PROTECTED]
> > Subject: Newbie question
> >
> >
> > How can i mask the url in the browser so the user does not
> > see the request
> > parameters..?
> >
> > ie /localhost/myapp/find?id=3  - is what is currently displayed...
> >
> >
> >
> >
> >
> > -
> > 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: Newbie question

2003-03-11 Thread Mark Galbreath
Use HTTP POST instead of GET.

Mark

-Original Message-
From: James [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 11, 2003 10:23 AM
To: [EMAIL PROTECTED]
Subject: Newbie question


How can i mask the url in the browser so the user does not see the request
parameters..?

ie /localhost/myapp/find?id=3  - is what is currently displayed...





-
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: Newbie question

2003-03-11 Thread apachep2
Do you intentionally append id=3 to the url? 

-Original Message-
From: Jamesey [mailto:[EMAIL PROTECTED] 
Sent: March 11, 2003 10:29 AM
To: [EMAIL PROTECTED]
Subject: Re: Newbie question

I am doing a post...

but the url still shows localhost/myapp/find.do?id=3

"Jarnot Voytek Contr AU HQ/SC" <[EMAIL PROTECTED]> wrote in
message
news:[EMAIL PROTECTED]
> do a post instead of a get
>
> --
> Voytek Jarnot
> Quidquid latine dictum sit, altum viditur.
>
>
> > -Original Message-
> > From: James [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, March 11, 2003 9:23 AM
> > To: [EMAIL PROTECTED]
> > Subject: Newbie question
> >
> >
> > How can i mask the url in the browser so the user does not
> > see the request
> > parameters..?
> >
> > ie /localhost/myapp/find?id=3  - is what is currently displayed...
> >
> >
> >
> >
> >
> >
-
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >




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

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



RE: How define a DynaActionForm to display a collection ?

2003-03-11 Thread Heligon Sandra
Your example is for a "single" person.
But is it possible to define a DynaActionForm that
represents a collection of objects.
And how do the initialization of the DynaActionForm ?


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

Thomson is the leader in solutions and technologies for the entertainment
and media industries and serves its customers under its four strategic
brands: Technicolor, Grass Valley, RCA and THOMSON. 
More about Thomson: http://www.thomson.net/videochain 

Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: 11 March 2003 16:26
To: Struts Users Mailing List
Subject: Re: How define a DynaActionForm to display a collection ?










in action

DynaActionForm theForm = (DynaActionForm) form;

theForm.set("firstName",myValue);

that should be what you need

cheers mark



Martedì, 11 mar 2003, alle 16:15 Europe/Rome, Heligon Sandra ha scritto:

>
>   I would like to define a DynaActionForm that is used to display
>   a collection in a JSP page.
>
>   For example the DTO object of the business tier is a
>   CustomerObject with the following properties:
>
>   - First Name
>   - Last Name
>   - Age
>   - Country
>   - Identifier
>   
>   For a customer detail view I have the following DynaActionForm:
>type="org.apache.struts.validator.DynaValidatorForm">
>initial="" />
>initial="" />
>   
>  initial="" />
>initial="" />
>   
>
>   How must I define/declare the DynaActionForm associated to the JSP
> page that display
>   the list of customers ?
>   
>type="org.apache.struts.validator.DynaValidatorForm">
>
>   I can perhaps use the same DynaActionForm for the two pages ?
>
>   In this case which is the code to update or create the collection of
> DTO object (CustomerObject ) ?
>
>
>
> ---
> As of February 12, 2003 Thomson unifies its email addresses on a 
> worldwide
> basis.Please note my new email address: [EMAIL PROTECTED]
>
> Thomson is the leader in solutions and technologies for the 
> entertainment
> and media industries and serves its customers under its four strategic
> brands: Technicolor, Grass Valley, RCA and THOMSON.
> More about Thomson: http://www.thomson.net/videochain
>


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


Re: Newbie question

2003-03-11 Thread Jamesey
nope.. its just the property's of my Dynabean..

when i sumbit and the form posts that what i get..


"apachep2" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Do you intentionally append id=3 to the url?
>
> -Original Message-
> From: Jamesey [mailto:[EMAIL PROTECTED]
> Sent: March 11, 2003 10:29 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Newbie question
>
> I am doing a post...
>
> but the url still shows localhost/myapp/find.do?id=3
>
> "Jarnot Voytek Contr AU HQ/SC" <[EMAIL PROTECTED]> wrote in
> message
> news:[EMAIL PROTECTED]
> > do a post instead of a get
> >
> > --
> > Voytek Jarnot
> > Quidquid latine dictum sit, altum viditur.
> >
> >
> > > -Original Message-
> > > From: James [mailto:[EMAIL PROTECTED]
> > > Sent: Tuesday, March 11, 2003 9:23 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Newbie question
> > >
> > >
> > > How can i mask the url in the browser so the user does not
> > > see the request
> > > parameters..?
> > >
> > > ie /localhost/myapp/find?id=3  - is what is currently displayed...
> > >
> > >
> > >
> > >
> > >
> > >
> -
> > > 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: Newbie question

2003-03-11 Thread Dejan Krsmanovic
What is the method for form? It should be POST, not GET.
Dejan
- Original Message -
From: "Jamesey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 11, 2003 4:34 PM
Subject: Re: Newbie question


> nope.. its just the property's of my Dynabean..
>
> when i sumbit and the form posts that what i get..
>
>
> "apachep2" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Do you intentionally append id=3 to the url?
> >
> > -Original Message-
> > From: Jamesey [mailto:[EMAIL PROTECTED]
> > Sent: March 11, 2003 10:29 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Newbie question
> >
> > I am doing a post...
> >
> > but the url still shows localhost/myapp/find.do?id=3
> >
> > "Jarnot Voytek Contr AU HQ/SC" <[EMAIL PROTECTED]> wrote in
> > message
> > news:[EMAIL PROTECTED]
> > > do a post instead of a get
> > >
> > > --
> > > Voytek Jarnot
> > > Quidquid latine dictum sit, altum viditur.
> > >
> > >
> > > > -Original Message-
> > > > From: James [mailto:[EMAIL PROTECTED]
> > > > Sent: Tuesday, March 11, 2003 9:23 AM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Newbie question
> > > >
> > > >
> > > > How can i mask the url in the browser so the user does not
> > > > see the request
> > > > parameters..?
> > > >
> > > > ie /localhost/myapp/find?id=3  - is what is currently displayed...
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > -
> > > > 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: Newbie question

2003-03-11 Thread Jamesey
ok... it is POST... all my forms are POSTS..




"Dejan Krsmanovic" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> What is the method for form? It should be POST, not GET.
> Dejan
> - Original Message -
> From: "Jamesey" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, March 11, 2003 4:34 PM
> Subject: Re: Newbie question
>
>
> > nope.. its just the property's of my Dynabean..
> >
> > when i sumbit and the form posts that what i get..
> >
> >
> > "apachep2" <[EMAIL PROTECTED]> wrote in message
> >
news:[EMAIL PROTECTED]
> > > Do you intentionally append id=3 to the url?
> > >
> > > -Original Message-
> > > From: Jamesey [mailto:[EMAIL PROTECTED]
> > > Sent: March 11, 2003 10:29 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: Newbie question
> > >
> > > I am doing a post...
> > >
> > > but the url still shows localhost/myapp/find.do?id=3
> > >
> > > "Jarnot Voytek Contr AU HQ/SC" <[EMAIL PROTECTED]> wrote in
> > > message
> > >
news:[EMAIL PROTECTED]
> > > > do a post instead of a get
> > > >
> > > > --
> > > > Voytek Jarnot
> > > > Quidquid latine dictum sit, altum viditur.
> > > >
> > > >
> > > > > -Original Message-
> > > > > From: James [mailto:[EMAIL PROTECTED]
> > > > > Sent: Tuesday, March 11, 2003 9:23 AM
> > > > > To: [EMAIL PROTECTED]
> > > > > Subject: Newbie question
> > > > >
> > > > >
> > > > > How can i mask the url in the browser so the user does not
> > > > > see the request
> > > > > parameters..?
> > > > >
> > > > > ie /localhost/myapp/find?id=3  - is what is currently displayed...
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > -
> > > > > 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: Oracle Data Source Config

2003-03-11 Thread Austin Lowry
Maybe I should clarify my question.

The Weblogic connection pool works fine, the problem is that it returns 
a Weblogic connection object which is not suitable for use by 
OracleXMLQuery. I must have an Oracle connection object, such as 
OracleConnectionPoolDataSource for OracleXMLQuery to behave properly. My 
question is basicly, does anyone have a good way to implement Oracle 
connection pooling with Struts?

Thanks.

Marco Tedone wrote:

If Weblogic release a connection pool under a jndi name, you can get a
connection from the pool. I've done it with Jboss.
 

-Original Message-
From: Austin Lowry [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 10, 2003 4:09 PM
To: [EMAIL PROTECTED]
Subject: Oracle Data Source Config

I've hit a bump in the road with my development because I have to be 
able to use an Oracle connection in order to use a class vital to my 
application. This made my Weblogic connection pool unusable 
because it 
uses it's own connection objects that use the Oracle driver. 
I think my 
best option at this point is to use the Struts . Does 
anyone have any experience with using Oracle and 
OracleConnectionPoolDataSource or OracleConnectionCacheImpl? I'm not 
really sure how to set this up and make sure I get back an Oracle 
connection object that I can use. Also, is there a better way to 
implement the connection pool and still return an Oracle connection 
object than through Struts? Thanks for your help.

   

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


 



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


Getting reference to ActionForward dynamically how?????

2003-03-11 Thread Rick Ashley
Hello,

Is it possible to get reference to ActionForward object dynamically,
not by giving findForward method it's name?
If Struts-config.xml is following:


   
Can I get name frontpage dynamically not hardcoded or is it possible
to use /app/login to create a new ActionForward instance?
Something like
return new ActionForward("/app/login");

- br





_
Surf together with new Shared Browsing 
http://join.msn.com/?page=features/browse&pgmarket=en-gb&XAPID=74&DI=1059

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


Re: Getting reference to ActionForward dynamically how?????

2003-03-11 Thread Dirk Markert
Hello Rick,



Tuesday, March 11, 2003, 4:48:29 PM, you wrote:

RA> Hello,

RA> Is it possible to get reference to ActionForward object dynamically,
RA> not by giving findForward method it's name?

RA> If Struts-config.xml is following:

RA> 
RA> 

RA> Can I get name frontpage dynamically not hardcoded or is it possible
RA> to use /app/login to create a new ActionForward instance?
RA> Something like

RA> return new ActionForward("/app/login");

Try something like:

 
 

ActionForward forward = new ActionForward(mapping.findForward("frontpage").getPath());

Then use
   ConvertUtils
from Struts-Scaffold to add your param.

RA> - br





RA> _
RA> Surf together with new Shared Browsing 
RA> http://join.msn.com/?page=features/browse&pgmarket=en-gb&XAPID=74&DI=1059


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



-- 
Best regards,
Dirk


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



comparing strings with tags/online reference

2003-03-11 Thread Curley, John

Hi, All:

How do you compare strings (if you can) with JSTL?  I am having trouble
finding a good online reference (if anyone knows of one, please let me
know).

I have a string that I am getting from an object that is in a collection in
one of my forms.

I have used the c:choose and c:if core JSTL successfully but only with a
boolean value (here is an example):


  
  

  

  
  

  


...

The only problem is that I used this test with one value of boolean type.
Now I know that I have to make the c:when (or c:if) test attribute resolve
to a boolean condition: how can I use this (or similar tag) to do a string
compare?

I guess a big issue for me is finding a good online reference since I am new
to JSTL.

Any help would be great.

Thanks,
John

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



Re: Newbie question

2003-03-11 Thread Jamesey
in fact the html:form action='blah blah' defaults to post.. and i'm sure its
doing it cos i've viewed the source.. so now i wondering why the jiminy
blazes i'm still getting parameterized urls...

aaaragh


"Dejan Krsmanovic" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> What is the method for form? It should be POST, not GET.
> Dejan
> - Original Message -
> From: "Jamesey" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, March 11, 2003 4:34 PM
> Subject: Re: Newbie question
>
>
> > nope.. its just the property's of my Dynabean..
> >
> > when i sumbit and the form posts that what i get..
> >
> >
> > "apachep2" <[EMAIL PROTECTED]> wrote in message
> >
news:[EMAIL PROTECTED]
> > > Do you intentionally append id=3 to the url?
> > >
> > > -Original Message-
> > > From: Jamesey [mailto:[EMAIL PROTECTED]
> > > Sent: March 11, 2003 10:29 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: Newbie question
> > >
> > > I am doing a post...
> > >
> > > but the url still shows localhost/myapp/find.do?id=3
> > >
> > > "Jarnot Voytek Contr AU HQ/SC" <[EMAIL PROTECTED]> wrote in
> > > message
> > >
news:[EMAIL PROTECTED]
> > > > do a post instead of a get
> > > >
> > > > --
> > > > Voytek Jarnot
> > > > Quidquid latine dictum sit, altum viditur.
> > > >
> > > >
> > > > > -Original Message-
> > > > > From: James [mailto:[EMAIL PROTECTED]
> > > > > Sent: Tuesday, March 11, 2003 9:23 AM
> > > > > To: [EMAIL PROTECTED]
> > > > > Subject: Newbie question
> > > > >
> > > > >
> > > > > How can i mask the url in the browser so the user does not
> > > > > see the request
> > > > > parameters..?
> > > > >
> > > > > ie /localhost/myapp/find?id=3  - is what is currently displayed...
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > -
> > > > > 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: comparing strings with tags/online reference

2003-03-11 Thread Stephen Smithstone



use eq or == 

On Tuesday 11 March 2003 4:03 pm, Curley, John wrote:
> Hi, All:
>
> How do you compare strings (if you can) with JSTL?  I am having trouble
> finding a good online reference (if anyone knows of one, please let me
> know).
>
> I have a string that I am getting from an object that is in a collection in
> one of my forms.
>
> I have used the c:choose and c:if core JSTL successfully but only with a
> boolean value (here is an example):
>
> 
>   
>   
> 
>   
> 
>   
>   
> 
>   
> 
>
> ...
>
> The only problem is that I used this test with one value of boolean type.
> Now I know that I have to make the c:when (or c:if) test attribute resolve
> to a boolean condition: how can I use this (or similar tag) to do a string
> compare?
>
> I guess a big issue for me is finding a good online reference since I am
> new to JSTL.
>
> Any help would be great.
>
> Thanks,
> John
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



RE: comparing strings with tags/online reference

2003-03-11 Thread Jarnot Voytek Contr AU HQ/SC
have you seen this: http://www.manning.com/bayern/appendixA.pdf

the last example on this page has the answer you need:
http://www-106.ibm.com/developerworks/java/library/j-jstl0211.html

--
Voytek Jarnot
Quidquid latine dictum sit, altum viditur.



> -Original Message-
> From: Curley, John [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 11, 2003 10:03 AM
> To: 'Struts Users Mailing List'
> Subject: comparing strings with tags/online reference
> 
> 
> 
> Hi, All:
> 
> How do you compare strings (if you can) with JSTL?  I am 
> having trouble
> finding a good online reference (if anyone knows of one, please let me
> know).
> 
> I have a string that I am getting from an object that is in a 
> collection in
> one of my forms.
> 
> I have used the c:choose and c:if core JSTL successfully but 
> only with a
> boolean value (here is an example):
> 
> 
>   
>   
> 
>   
> 
>   
>   
> 
>   
> 
> 
> ...
> 
> The only problem is that I used this test with one value of 
> boolean type.
> Now I know that I have to make the c:when (or c:if) test 
> attribute resolve
> to a boolean condition: how can I use this (or similar tag) 
> to do a string
> compare?
> 
> I guess a big issue for me is finding a good online reference 
> since I am new
> to JSTL.
> 
> Any help would be great.
> 
> Thanks,
> John
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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



RE: The Back button on on multi-page forms ??????

2003-03-11 Thread Arnaud HERITIER
You can use :






With this tags in your header, a lot of browsers will not keep the page in
their cache.
So when the user will use the back button, the browser will re-submit the
request to the server.

It can help to know where the user is in your webapp.

Arnaud

> -Message d'origine-
> De : apachep2 [mailto:[EMAIL PROTECTED]
> Envoye : mardi 11 mars 2003 16:15
> A : 'Struts Users Mailing List'
> Objet : RE: The Back button on on multi-page forms ??
>
>
> Does IRS give me a chance hitting Back, re-filing last year's tax form
> and re-submitting it? :)
>
> -Original Message-
> From: Bueno Carlos M [mailto:[EMAIL PROTECTED]
> Sent: March 10, 2003 10:27 PM
> To: 'Struts Users Mailing List'
> Subject: RE: The Back button on on multi-page forms ??
>
> I may be way off here, but how about coding defensively? This
> isn't some
> special java-struts problem; it's the price of maintaining
> the illusion
> of a
> session over HTTP.
>
> Form tokens are a good idea but the user can and will click that pesky
> back
> button to change what they inputted. One of two things will
> happen: the
> browser calls up the form from cache and fills in the values
> or it makes
> a
> new HTTP request, which will give them a blank form. Since they have
> already
> submitted once, you have that data somewhere. So populate the dang
> form
> if the data exists. Simple? Simple.
>
> It doesn't have to be complicated. A properly-built state machine (ie,
> your
> session or action code) should ignore input that can corrupt its
> internals.
> Check the state you are about to change -- if it's already changed, go
> to
> the next step, merge it or whatever is the Right Thing To Do.
> If you app
> is
> so fragile that someone clicking ye olde back button will
> mess things up
> you
> should look for ways to improve and simplify your design, not some
> clever
> client hack.
>
> My reasoning is this: as soon as you plug one hole another
> will open up.
> Say
> you disable the back button. What happens if the user clicks submit
> twice?
> What happens if they press CTRL-N and now have two windows
> with the same
> session?
>
> 1. Users will always do what you don't expect.
>
> 2. The average user is pretty dumb.
>
> 3. Half of all users are even dumber than *that*.
>
> 4. Browsers work for them, not for you.
>
>  -- los
>
> -Original Message-
> From: Andrew Hill [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 10, 2003 9:39 PM
> To: Struts Users Mailing List
> Subject: RE: The Back button on on multi-page forms ??
>
>
> 
> Remember that the back button does not contact the server
> 
>
> Some do sometimes - but Im not sure under what cicumstances - probably
> depends on what sort of caching setting you have set up in
> your browser
> -
> and what browser it is - and the alignment of neptune and saturn etc..
> (ie:
> nothing you can rely on server side). Ive seen it happen.
>
> At the moment Im using the evil javascript location.replace trick to
> avoid
> pages going into the history where possible. People who hit the back
> button
> end up back on the login page...
>
> I really wanted to give them an electric shock to help the
> "back is bad"
> concept sink in properly, but alas! - the hardware isnt in place to
> administer this form of 'interactive user training' :-(
>
> -Original Message-
> From: David Graham [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, 11 March 2003 06:17
> To: [EMAIL PROTECTED]
> Subject: RE: The Back button on on multi-page forms ??
>
>
> Then that is a browser specific issue.  When I hit the back button in
> Opera,
> all of the form fields are just how I entered them.  Remember that the
> back
> button does not contact the server so Struts has nothing to do with
> this.
>
> David
>
>
>
> >From: "Ron Day" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List"
> <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Subject: RE: The Back button on on multi-page forms ??
> >Date: Mon, 10 Mar 2003 16:08:10 -0600
> >
> >sorry, I think we are going in circles.
> >
> >This is a multipage form (3 to be exact but with only one
> actionform),
> BUT
> >my whole original issue was:
> >
> >When they hit the back button the original form content IS either
> absent or
> >different to their last entries (I do a reset in the actionform0.
> >
> >Am I doing something wrong or is this a fact of life with the back
> button.
> >
> >ron
> >
> >-Original Message-
> >From: David Graham [mailto:[EMAIL PROTECTED]
> >Sent: Monday, March 10, 2003 3:49 PM
> >To: [EMAIL PROTECTED]
> >Subject: RE: The Back button on on multi-page forms ??
> >
> >
> >If this is a multi-page form, then don't use tokens and let them use
> the
> >back button to correct the data.  If it's a single page form, use
> tokens
> >and
> >provide an update form where they can correct any mistakes
> they made on
> the
> >add form.  The difference is that the multi-page form will be
> a

Re: Newbie question

2003-03-11 Thread Dejan Krsmanovic
Then you are probably doing redirection somwere in your action class...
I am just guessing!
Dejan


- Original Message -
From: "Jamesey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 11, 2003 5:03 PM
Subject: Re: Newbie question


> in fact the html:form action='blah blah' defaults to post.. and i'm sure
its
> doing it cos i've viewed the source.. so now i wondering why the jiminy
> blazes i'm still getting parameterized urls...
>
> aaaragh
>
>
> "Dejan Krsmanovic" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > What is the method for form? It should be POST, not GET.
> > Dejan
> > - Original Message -
> > From: "Jamesey" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, March 11, 2003 4:34 PM
> > Subject: Re: Newbie question
> >
> >
> > > nope.. its just the property's of my Dynabean..
> > >
> > > when i sumbit and the form posts that what i get..
> > >
> > >
> > > "apachep2" <[EMAIL PROTECTED]> wrote in message
> > >
> news:[EMAIL PROTECTED]
> > > > Do you intentionally append id=3 to the url?
> > > >
> > > > -Original Message-
> > > > From: Jamesey [mailto:[EMAIL PROTECTED]
> > > > Sent: March 11, 2003 10:29 AM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Re: Newbie question
> > > >
> > > > I am doing a post...
> > > >
> > > > but the url still shows localhost/myapp/find.do?id=3
> > > >
> > > > "Jarnot Voytek Contr AU HQ/SC" <[EMAIL PROTECTED]> wrote
in
> > > > message
> > > >
> news:[EMAIL PROTECTED]
> > > > > do a post instead of a get
> > > > >
> > > > > --
> > > > > Voytek Jarnot
> > > > > Quidquid latine dictum sit, altum viditur.
> > > > >
> > > > >
> > > > > > -Original Message-
> > > > > > From: James [mailto:[EMAIL PROTECTED]
> > > > > > Sent: Tuesday, March 11, 2003 9:23 AM
> > > > > > To: [EMAIL PROTECTED]
> > > > > > Subject: Newbie question
> > > > > >
> > > > > >
> > > > > > How can i mask the url in the browser so the user does not
> > > > > > see the request
> > > > > > parameters..?
> > > > > >
> > > > > > ie /localhost/myapp/find?id=3  - is what is currently
displayed...
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > >
> -
> > > > > > To unsubscribe, e-mail:
[EMAIL PROTECTED]
> > > > > > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > > > > >
> > > >
> > > >
> > > >
> > > >
> > >
> -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>



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



Re: DynaActionForm

2003-03-11 Thread Robert McIntosh
Out of curiosity, couldn't something like the FastHashMap be used to 
implement this? Or does the second note in the JavaDocs (about not cross 
platform) keep it out?

- Robert

Craig R. McClanahan wrote:

On Mon, 10 Mar 2003 [EMAIL PROTECTED] wrote:

 

Date: Mon, 10 Mar 2003 17:07:29 -0700
From: [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
Subject: DynaActionForm
Hi,
We are creating a derivitive of DynaActionForm that needs to add
FormPropertyConfigs to the FormBeanConfig at runtime however are running
into this frozen config thing. How can we get around this and why does
Struts prevent this in the first place?
   

Struts freezes the configuration information because it uses HashMaps to
store the XxxConfig beans, and we don't want to have to synchronize on
them for every request (such as FindActionConfig()) just on the off chance
that someone might be trying to modify the configuration data.  Freezing
ensures that nobody will run into mysterious results from trying to read a
HashMap that someone else is trying to modify.
If you can calculate all your dynamic stuff at webapp startup time, you're
still in luck -- the freeze happens after PlugIns are initialized, so you
can use one of them to set up the stuff that was not in the config files.
If you really need to modify these structures at runtime, you're going to
need to create modified versions of the appropriate config classes -- and
be sure you synchronize on the accesses (paying the inevitable performance
cost of this).
 

Thank you!
   

Craig

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



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


Re: [Q] Log Viewing tool for Windows environment?

2003-03-11 Thread Jeff Smith
I am posting this summary for the benefit of any other newbies who might be
anxiously following the thread looking for answers.

To recap, there have been 3 distinct suggestions posted here:
1) Cygwin
2) GNUWin32
3) Textpad

I probably invited the first two with my lament about missing "tail" from my
Unix days. But I am firmly entrenched in my current Windows-based dev
environment, so options 1 and 2 (which are tantamount to changing my shell
system) are perhaps overkill for my personal needs.

Textpad is not a bad solution, as it seems to do what I want. But in a
perfect world, why should I have to hit Ctl-E if I don't have to?

The winner (for my needs - your mileage may vary) is the invisible
suggestion that came through private email from Bryan. He pointed me to
Tail4Win which does exactly what I want. It reloads the file every time it
changes and automatically scrolls to the end.

So that is what I'm using - at least until the jEdit guys act on my
suggestion to add a log-viewer mode to jEdit.

Thanks to everyone for their suggestions. I'm sure each one is going to be
exactly the right solution for some person following this thread.

Jefficus

- Original Message -
From: "Jeff Smith" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, March 10, 2003 8:22 PM
Subject: [Q] Log Viewing tool for Windows environment?


> To date I have been using the brute-force log viewer: notepad. Is anybody
> aware of a Windows app that monitors text log files (like output from
log4j)
> and automatically refreshes and scrolls to the end of the file? Such
> functionality would make my test-debug cycle less mouse intensive. :-)
>
> In the UN*X world, I had the tail command for such purposes. But I've
never
> seen anything like this for Windows.
>
> Any suggestions?
>
> Jefficus
>
>
> -
> 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: Oracle Data Source Config

2003-03-11 Thread Robert McIntosh
I would venture to say that just about any generic connection pooling 
library/implementation is going to wrap the underlying connection so 
that the pool can do its job, as they generally override the close() 
methods at the very least. Does the Oracle driver/connection have a 
specific method for executing the query? If it doesn't and it uses the 
basic executeQuery() type of methods on the JDBC statement, it would 
seem that it would work, since connection pool wrappers are just going 
to pass along the query to the underlying driver anyway, which would be 
your oracle one. If you have to use a specific method though, you might 
be out of luck.

- Robert

Austin Lowry wrote:

Maybe I should clarify my question.

The Weblogic connection pool works fine, the problem is that it 
returns a Weblogic connection object which is not suitable for use by 
OracleXMLQuery. I must have an Oracle connection object, such as 
OracleConnectionPoolDataSource for OracleXMLQuery to behave properly. 
My question is basicly, does anyone have a good way to implement 
Oracle connection pooling with Struts?

Thanks.

Marco Tedone wrote:

If Weblogic release a connection pool under a jndi name, you can get a
connection from the pool. I've done it with Jboss.
 

-Original Message-
From: Austin Lowry [mailto:[EMAIL PROTECTED] Sent: Monday, 
March 10, 2003 4:09 PM
To: [EMAIL PROTECTED]
Subject: Oracle Data Source Config

I've hit a bump in the road with my development because I have to be 
able to use an Oracle connection in order to use a class vital to my 
application. This made my Weblogic connection pool unusable because 
it uses it's own connection objects that use the Oracle driver. I 
think my best option at this point is to use the Struts 
. Does anyone have any experience with using Oracle 
and OracleConnectionPoolDataSource or OracleConnectionCacheImpl? I'm 
not really sure how to set this up and make sure I get back an 
Oracle connection object that I can use. Also, is there a better way 
to implement the connection pool and still return an Oracle 
connection object than through Struts? Thanks for your help.

  


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


 



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


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


Re: How define a DynaActionForm to display a collection ?

2003-03-11 Thread Rick Reumann
On Tue, 11 Mar 2003 16:37:38 +0100
Heligon Sandra <[EMAIL PROTECTED]> wrote:

> Your example is for a "single" person.
> But is it possible to define a DynaActionForm that
> represents a collection of objects.
> And how do the initialization of the DynaActionForm ?

You can define a Collection in a DynaActionForm. I like to initialize
these Collections in a SetUpAction that will populate my DynaActionForm
before forwarding to the JSP page of interest.

-- 
Rick Reumann

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



RE: Getting reference to ActionForward dynamically how?????

2003-03-11 Thread Zheng, Gang
To dynamically create an ActionForward instance, you just call the
constructor of the ActionForward class.

Here's what I did from within my log-in action:

  String path="/defaultPage.do?action=new";
  ActionForward forward = new ActionForward(path, true);
return forward;

- GZ

-Original Message-
From: Rick Ashley [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 11, 2003 10:48 AM
To: [EMAIL PROTECTED]
Subject: Getting reference to ActionForward dynamically how?


Hello,

Is it possible to get reference to ActionForward object dynamically, not by
giving findForward method it's name?

If Struts-config.xml is following:




Can I get name frontpage dynamically not hardcoded or is it possible to use
/app/login to create a new ActionForward instance? Something like

return new ActionForward("/app/login");

- br





_
Surf together with new Shared Browsing 
http://join.msn.com/?page=features/browse&pgmarket=en-gb&XAPID=74&DI=1059


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

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



Re: [Q] Log Viewing tool for Windows environment?

2003-03-11 Thread Ivan N. Zhidov
Where does one get Tail4Win? I searched Google for it and didn't find it.

Cheers,
Ivan
- Original Message -
From: "Jeff Smith" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, March 11, 2003 11:27 AM
Subject: Re: [Q] Log Viewing tool for Windows environment?


> I am posting this summary for the benefit of any other newbies who might
be
> anxiously following the thread looking for answers.
>
> To recap, there have been 3 distinct suggestions posted here:
> 1) Cygwin
> 2) GNUWin32
> 3) Textpad
>
> I probably invited the first two with my lament about missing "tail" from
my
> Unix days. But I am firmly entrenched in my current Windows-based dev
> environment, so options 1 and 2 (which are tantamount to changing my shell
> system) are perhaps overkill for my personal needs.
>
> Textpad is not a bad solution, as it seems to do what I want. But in a
> perfect world, why should I have to hit Ctl-E if I don't have to?
>
> The winner (for my needs - your mileage may vary) is the invisible
> suggestion that came through private email from Bryan. He pointed me to
> Tail4Win which does exactly what I want. It reloads the file every time it
> changes and automatically scrolls to the end.
>
> So that is what I'm using - at least until the jEdit guys act on my
> suggestion to add a log-viewer mode to jEdit.
>
> Thanks to everyone for their suggestions. I'm sure each one is going to be
> exactly the right solution for some person following this thread.
>
> Jefficus
>
> - Original Message -
> From: "Jeff Smith" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Monday, March 10, 2003 8:22 PM
> Subject: [Q] Log Viewing tool for Windows environment?
>
>
> > To date I have been using the brute-force log viewer: notepad. Is
anybody
> > aware of a Windows app that monitors text log files (like output from
> log4j)
> > and automatically refreshes and scrolls to the end of the file? Such
> > functionality would make my test-debug cycle less mouse intensive. :-)
> >
> > In the UN*X world, I had the tail command for such purposes. But I've
> never
> > seen anything like this for Windows.
> >
> > Any suggestions?
> >
> > Jefficus
> >
> >
> > -
> > 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: relative path problem

2003-03-11 Thread Jeff Smith
I find that paths can be stated as absolute, from the root of my web-app.

So, for example, my style sheets are linked as:


This seems to work, but it introduces a secondary problem. What if I change
the name of my app? I suppose I could always put the app-name as a constant
and reference it that way...

I have seen a couple of examples that use "./styles/default.css" so I am
assuming that works too. But I haven't actually tried changing my references
yet. That would solve my secondary problem as well as your initial one.

Hope that helps,
Jefficus


- Original Message -
From: "bobd" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, March 10, 2003 11:52 PM
Subject: relative path problem


> This is a rather silly problem I have been putting off
> and now I really need to fix it...
>
> In my Struts app, bean classes are parsing and writing
> XML files on disk.  These files are currently being
> pulled in using a full directory path! (i.e.
> "/usr/local/...)  Attempts to use relative paths (from
> the location of the bean .class file) have not been
> successful.  In my view layer, JSPs can use relative
> paths just fine.  What's the trick?
>
> thanks,
>
> -bob
>
> __
> Do you Yahoo!?
> Yahoo! Web Hosting - establish your business online
> http://webhosting.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: How define a DynaActionForm to display a collection ?

2003-03-11 Thread Heligon Sandra
Has someone an example of struts-config.xml file and
a such SetUpAction with DynaActionForm and Collection ?


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

Thomson is the leader in solutions and technologies for the entertainment
and media industries and serves its customers under its four strategic
brands: Technicolor, Grass Valley, RCA and THOMSON. 
More about Thomson: http://www.thomson.net/videochain 

Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED]
Sent: 11 March 2003 17:31
To: Struts Users Mailing List
Subject: Re: How define a DynaActionForm to display a collection ?


On Tue, 11 Mar 2003 16:37:38 +0100
Heligon Sandra <[EMAIL PROTECTED]> wrote:

> Your example is for a "single" person.
> But is it possible to define a DynaActionForm that
> represents a collection of objects.
> And how do the initialization of the DynaActionForm ?

You can define a Collection in a DynaActionForm. I like to initialize
these Collections in a SetUpAction that will populate my DynaActionForm
before forwarding to the JSP page of interest.

-- 
Rick Reumann

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


RE: [Q] Log Viewing tool for Windows environment?

2003-03-11 Thread James Mitchell
You don't have to hit anything, when Textpad detects that the source
file it is displaying has been updated, by default it prompts you to
refresh, but this is configurable to these choices:
1. Prompt
2. Auto-Refresh
3. Ignore


I leave this setting at 'Prompt', which is really handy when:

A) I want to see the new changes immediately (log files, output from
tests, whatever)

or

B) I can keep the old copy when I really screwed something up (like 
   accidentally updating a file in cvs that had changes that weren't 
   checked in yet, but that *never* happens.honest :P ) 



--
James Mitchell
Software Developer/Struts Evangelist
http://struts.sourceforge.net/struts-atlanta/



> -Original Message-
> From: Jeff Smith [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, March 11, 2003 11:27 AM
> To: Struts Users Mailing List
> Subject: Re: [Q] Log Viewing tool for Windows environment?
> 
> 
> I am posting this summary for the benefit of any other 
> newbies who might be
> anxiously following the thread looking for answers.
> 
> To recap, there have been 3 distinct suggestions posted here:
> 1) Cygwin
> 2) GNUWin32
> 3) Textpad
> 
> I probably invited the first two with my lament about missing 
> "tail" from my
> Unix days. But I am firmly entrenched in my current Windows-based dev
> environment, so options 1 and 2 (which are tantamount to 
> changing my shell
> system) are perhaps overkill for my personal needs.
> 
> Textpad is not a bad solution, as it seems to do what I want. But in a
> perfect world, why should I have to hit Ctl-E if I don't have to?
> 
> The winner (for my needs - your mileage may vary) is the invisible
> suggestion that came through private email from Bryan. He 
> pointed me to
> Tail4Win which does exactly what I want. It reloads the file 
> every time it
> changes and automatically scrolls to the end.
> 
> So that is what I'm using - at least until the jEdit guys act on my
> suggestion to add a log-viewer mode to jEdit.
> 
> Thanks to everyone for their suggestions. I'm sure each one 
> is going to be
> exactly the right solution for some person following this thread.
> 
> Jefficus
> 
> - Original Message -
> From: "Jeff Smith" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Monday, March 10, 2003 8:22 PM
> Subject: [Q] Log Viewing tool for Windows environment?
> 
> 
> > To date I have been using the brute-force log viewer: 
> notepad. Is anybody
> > aware of a Windows app that monitors text log files (like 
> output from
> log4j)
> > and automatically refreshes and scrolls to the end of the file? Such
> > functionality would make my test-debug cycle less mouse 
> intensive. :-)
> >
> > In the UN*X world, I had the tail command for such 
> purposes. But I've
> never
> > seen anything like this for Windows.
> >
> > Any suggestions?
> >
> > Jefficus
> >
> >
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



Re: [OT]: Struts, Web Development, J2EE, and what is too much?

2003-03-11 Thread Robert McIntosh
Tony made some good points, and my take is that from your requirements, 
you may not need EJBs. However, if you layered your app sufficiently, 
then if you end up needing them later on, it shouldn't be too much of a 
problem. Of course I am assuming you are referring to Entity beans in 
this case...

As for when to use EJBs, what I have always recommended to our clients 
is that EJBs are good for large scale applications that run on clustered 
machines and require transactions at the entity bean level. The 
transactions are good if you have multiple apps and clients that are 
modifying the same data. If your app is largely read only, it is the 
only one interacting with the data and you aren't worried about 
concurrent modifcation, then you probably don't need entity beans. Yes, 
most app servers can cache and mark entity beans as read-only or mostly 
read-only for performance, but there are other ways of doing the same thing.

Another thing to consider is how your object model is designed. If you 
have lots of inheritance, entity beans aren't going to fit you well. 
Same can be said if you have complex query requirements (joins, 
relationships that the object model doesn't support, etc.).

Then again, in some cases as Nash pointed out, EJBs can be simplier from 
the perspective that any good app server can build the database for you 
and with tools like XDoclet, you don't have to write deployment 
descriptors and you don't have to maintain (i.e. code) the interfaces 
for home, remote and local.

- Robert

Aaron O'Hara wrote:

I know this question has probably been asked before, and that biased
publications have had their opinions on it, but I wanted to get some
feedback regarding some "real user experience" regarding the use of EJB
in a web application used along with Struts.
I am creating a web application and I have decided to use struts.  The
application needs to be high performance, uses a single database (so it
doesn't have heterogeneous transactional db requirements).  I have
designed the application in layers, and it will only have a web
interface.  It's starting small, but will grow to have many functions.
Even though I'm confident that I need not invest in EJB's, I don't want
to develop the application to find out I should have used them (hence
why I'm creating this post).
In what scenarios have people found the use of EJB beneficial?  When
have they been overkill?  Does struts integrate smoothly with EJBs?
My fear is that I'll make the application overly complex by implementing
EJBs, but I'd like to hear from people with experience building large
web-only projects with struts.
Thanks,

Aaron



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


Logic tags and collections?

2003-03-11 Thread niksa_os
How can I make something like this with Struts or someone have better idea?

I have few Admin: MainAdmin, UserAdmin, EmailAdmin.
MainAdmin can do anything, UserAdmin manage users and emails, and EmailAdmin
make emails only.

So, I need this:
-without Struts, I make Collection in session and

If session.getAdminTypeCollection contain MainAdmin {
do something
If session.getAdminTypeCollection contain UserAdmin OR MainAdmin {
do something
If session.getAdminTypeCollection contain EmailAdmin OR UserAdmin OR
MainAdmin {
do something
} End EmailAdmin
} End UserAdmin
} End MainAdmin

For MainAdmin Collection:
Collection.add(MainAdmin)
Collection.add(UserAdmin)
Collection.add(EmailAdmin)

For UserAdmin Collection:
Collection.add(UserAdmin)
Collection.add(EmailAdmin)

For EmailAdmin Collection:
Collection.add(EmailAdmin)

-do something are links

MainAdmin see all links
UserAdmin see UserAdmin and EmailAdmin links
EmailAdmin only EmailAdmin links

I can't use role or principal or anything from JAAS.

So, I need somehow to check Coolection with logic:present or some others
tags?

Thanks.

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



Re: [ANN] Struttin' With Struts beta (newbies esp. welcome)

2003-03-11 Thread Mark Zeltser
Rick,

Good job, somehow I can't unzip war files, I am getting corrupt zip file
exception.

Mark.

Rick Reumann wrote:

> I created a web site that walks new Struts users step by step
> through the development of three VERY simple web applications in three
> lessons. Each lesson adds a few more features so that they build upon
> each other yet each stands alone such that if you follow the steps in
> any lesson you'll have built a very basic application regardless of
> which lesson you start with.
>
> I created these because there seemed to be lacking some more recent
> "walk through" Struts tutorials geared toward the very new Struts
> developer. I think real newbies will find them especially useful, but
> then again I could be way wrong:)
>
> I'm considering the site a "beta" because I'm sure there will be some
> mistakes. If anyone sees something I'm doing in a lesson that is way
> off (or a very bad practice) please let me know. Some of the stuff I
> know could be done in a more "best practice" way, but for the sake of
> trying to also keep the lessons small and simple some ideas weren't
> included (ie- I didn't use a constants interface for my forward
> definitions).
>
> If anyone wants to contribute, reword, or add anything please let me
> know. The site is there to help others. I got really lazy in a lot of
> places and didn't say much about certain things that I would have liked
> to. Hopefully over time the site will improve.
>
> Struttin' with Struts:
>
> http://www.reumann.net/do/struts/main
>
> --
> Rick
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

--
NOTICE: If received in error, please destroy and notify sender.  Sender
does not waive confidentiality or privilege, and use is prohibited.



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



Re: How define a DynaActionForm to display a collection ?

2003-03-11 Thread Mark Lowe
i believe not i'd take a look at the responses and then look at writing 
an ActionForm if you must poulate you form from the action form...

I would still recommend that you maniplate forms from your action, my 
understanding this is the way of doing this...

If you question was charatistically is can anyone do my work for me 
then I guess that may also be no..

Here's my straight forward example again..


			
			
			


in action

DynaActionForm theForm = (DynaActionForm) form;

theForm.set("firstName",myValue);

that should be what you need

if you were populating form db results you would iterate through your 
query in the action and populate your form

while(rs.next()) {
theForm.set("firstName",rs.getString("first_name");
}
Martedì, 11 mar 2003, alle 17:36 Europe/Rome, Heligon Sandra ha scritto:

Has someone an example of struts-config.xml file and
a such SetUpAction with DynaActionForm and Collection ?
---
As of February 12, 2003 Thomson unifies its email addresses on a 
worldwide
basis.Please note my new email address: [EMAIL PROTECTED]

Thomson is the leader in solutions and technologies for the 
entertainment
and media industries and serves its customers under its four strategic
brands: Technicolor, Grass Valley, RCA and THOMSON.
More about Thomson: http://www.thomson.net/videochain

Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED]
Sent: 11 March 2003 17:31
To: Struts Users Mailing List
Subject: Re: How define a DynaActionForm to display a collection ?
On Tue, 11 Mar 2003 16:37:38 +0100
Heligon Sandra <[EMAIL PROTECTED]> wrote:
Your example is for a "single" person.
But is it possible to define a DynaActionForm that
represents a collection of objects.
And how do the initialization of the DynaActionForm ?
You can define a Collection in a DynaActionForm. I like to initialize
these Collections in a SetUpAction that will populate my DynaActionForm
before forwarding to the JSP page of interest.
--
Rick Reumann
-
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: Oracle Data Source Config

2003-03-11 Thread Austin Lowry
Apparently there is some portion of the Oracle connection that the 
OracleXMLQuery class needs. To quote Oracle support: "Must use an Oracle 
connection pool and not the web logic pool. Because the XML API requires 
an Oracle conn object."

My current approach is going to be to initialize an Oracle connection 
pool that utilizes OracleConnectionCacheImpl from a servlet at server 
startup and placing it in the servlet context. (Thanks to Claude for 
your help here.) This introduces another problem in that I will have to 
pass the connection to my business objects from my action classes, but I 
think it will work. Any ideas are welcome. Thanks.

~Austin

Robert McIntosh wrote:

I would venture to say that just about any generic connection pooling 
library/implementation is going to wrap the underlying connection so 
that the pool can do its job, as they generally override the close() 
methods at the very least. Does the Oracle driver/connection have a 
specific method for executing the query? If it doesn't and it uses the 
basic executeQuery() type of methods on the JDBC statement, it would 
seem that it would work, since connection pool wrappers are just going 
to pass along the query to the underlying driver anyway, which would 
be your oracle one. If you have to use a specific method though, you 
might be out of luck.

- Robert

Austin Lowry wrote:

Maybe I should clarify my question.

The Weblogic connection pool works fine, the problem is that it 
returns a Weblogic connection object which is not suitable for use by 
OracleXMLQuery. I must have an Oracle connection object, such as 
OracleConnectionPoolDataSource for OracleXMLQuery to behave properly. 
My question is basicly, does anyone have a good way to implement 
Oracle connection pooling with Struts?

Thanks.

Marco Tedone wrote:

If Weblogic release a connection pool under a jndi name, you can get a
connection from the pool. I've done it with Jboss.
 

-Original Message-
From: Austin Lowry [mailto:[EMAIL PROTECTED] Sent: Monday, 
March 10, 2003 4:09 PM
To: [EMAIL PROTECTED]
Subject: Oracle Data Source Config

I've hit a bump in the road with my development because I have to 
be able to use an Oracle connection in order to use a class vital 
to my application. This made my Weblogic connection pool unusable 
because it uses it's own connection objects that use the Oracle 
driver. I think my best option at this point is to use the Struts 
. Does anyone have any experience with using Oracle 
and OracleConnectionPoolDataSource or OracleConnectionCacheImpl? 
I'm not really sure how to set this up and make sure I get back an 
Oracle connection object that I can use. Also, is there a better 
way to implement the connection pool and still return an Oracle 
connection object than through Struts? Thanks for your help.

  


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


 



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


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




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


RE: Logic tags and collections?

2003-03-11 Thread Edgar Dollin
Try struts menu http://sourceforge.net/project/struts-menu.

Edgar

> -Original Message-
> From: niksa_os [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, March 11, 2003 11:37 AM
> To: 'Struts Users Mailing List'
> Subject: Logic tags and collections?
> 
> 
> How can I make something like this with Struts or someone 
> have better idea?
> 
> I have few Admin: MainAdmin, UserAdmin, EmailAdmin.
> MainAdmin can do anything, UserAdmin manage users and emails, 
> and EmailAdmin make emails only.
> 
> So, I need this:
> -without Struts, I make Collection in session and
> 
> If session.getAdminTypeCollection contain MainAdmin {
> do something
> If session.getAdminTypeCollection contain UserAdmin OR MainAdmin {
> do something
> If session.getAdminTypeCollection contain EmailAdmin OR 
> UserAdmin OR MainAdmin {
> do something
> } End EmailAdmin
> } End UserAdmin
> } End MainAdmin
> 
> For MainAdmin Collection:
> Collection.add(MainAdmin)
> Collection.add(UserAdmin)
> Collection.add(EmailAdmin)
> 
> For UserAdmin Collection:
> Collection.add(UserAdmin)
> Collection.add(EmailAdmin)
> 
> For EmailAdmin Collection:
> Collection.add(EmailAdmin)
> 
> -do something are links
> 
> MainAdmin see all links
> UserAdmin see UserAdmin and EmailAdmin links
> EmailAdmin only EmailAdmin links
> 
> I can't use role or principal or anything from JAAS.
> 
> So, I need somehow to check Coolection with logic:present or 
> some others tags?
> 
> Thanks.
> 

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



File Upload problem and Size Validation

2003-03-11 Thread Hemanth Setty
Hi all,
I am havig a problem on FileUploads in RC1...This problem occurs when I 
use the FormFile feature of struts. If the size of the file is lesser 
than the limit specified by the controller, everything seems to work 
fine...but when the size exceeds the limit then it fails on the 
validate() method of the form. But it does not redirect back to the same 
page. It returns to any empty page. The log level of debug shows correct 
redirects and even debug statements on the jsp prints out.. I dont know 
what the error could be.
I even tried the same thing with the struts-upload webapp that comes 
with RC1 and it was doing the same thing.
Any suggestions.??
Thanks
Hemanth



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


Re: Oracle Data Source Config

2003-03-11 Thread Robert McIntosh
Well that sucks. Putting the Oracle cache in the servlet context is a 
good alternative though. A simple Struts plugin would be an elegant way 
to do that I would think.

- Robert

Austin Lowry wrote:

Apparently there is some portion of the Oracle connection that the 
OracleXMLQuery class needs. To quote Oracle support: "Must use an 
Oracle connection pool and not the web logic pool. Because the XML API 
requires an Oracle conn object."

My current approach is going to be to initialize an Oracle connection 
pool that utilizes OracleConnectionCacheImpl from a servlet at server 
startup and placing it in the servlet context. (Thanks to Claude for 
your help here.) This introduces another problem in that I will have 
to pass the connection to my business objects from my action classes, 
but I think it will work. Any ideas are welcome. Thanks.

~Austin

Robert McIntosh wrote:

I would venture to say that just about any generic connection pooling 
library/implementation is going to wrap the underlying connection so 
that the pool can do its job, as they generally override the close() 
methods at the very least. Does the Oracle driver/connection have a 
specific method for executing the query? If it doesn't and it uses 
the basic executeQuery() type of methods on the JDBC statement, it 
would seem that it would work, since connection pool wrappers are 
just going to pass along the query to the underlying driver anyway, 
which would be your oracle one. If you have to use a specific method 
though, you might be out of luck.

- Robert

Austin Lowry wrote:

Maybe I should clarify my question.

The Weblogic connection pool works fine, the problem is that it 
returns a Weblogic connection object which is not suitable for use 
by OracleXMLQuery. I must have an Oracle connection object, such as 
OracleConnectionPoolDataSource for OracleXMLQuery to behave 
properly. My question is basicly, does anyone have a good way to 
implement Oracle connection pooling with Struts?

Thanks.

Marco Tedone wrote:

If Weblogic release a connection pool under a jndi name, you can get a
connection from the pool. I've done it with Jboss.
 

-Original Message-
From: Austin Lowry [mailto:[EMAIL PROTECTED] Sent: Monday, 
March 10, 2003 4:09 PM
To: [EMAIL PROTECTED]
Subject: Oracle Data Source Config

I've hit a bump in the road with my development because I have to 
be able to use an Oracle connection in order to use a class vital 
to my application. This made my Weblogic connection pool unusable 
because it uses it's own connection objects that use the Oracle 
driver. I think my best option at this point is to use the Struts 
. Does anyone have any experience with using Oracle 
and OracleConnectionPoolDataSource or OracleConnectionCacheImpl? 
I'm not really sure how to set this up and make sure I get back an 
Oracle connection object that I can use. Also, is there a better 
way to implement the connection pool and still return an Oracle 
connection object than through Struts? Thanks for your help.

  




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


 



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


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




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


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


Re: Oracle Data Source Config

2003-03-11 Thread David Graham
This introduces another problem in that I will have to pass the connection 
to my business objects from my action classes, but I think it will work. 
Any ideas are welcome. Thanks.
You can either put the DataSource in JNDI for your business objects to look 
up or pass the DataSource into the business layer directly.  There's no 
reason to pass Connection objects into the business layer.

David

_
The new MSN 8: advanced junk mail protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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


RE: ActionServlet Action caching problem

2003-03-11 Thread Whitmire, Jeffrey
Found it.  Turns out it wasn't a caching problem at all.  I have a threaded
job manager that was being used by this action class.  There was a weird
exception being thrown that wasn't getting caught which was locking the
thread.  This action was getting reused by Struts, but never did anything
because it was still blocking on the locked thread.

I've fixed it and learned much, but is there any way to get more control
over the caching?  Do you have to subclass ActionServlet or the
RequestProcessor to do that?  I would think there would be instances where
you would want a pool of actions instead of only one instance of each.  Once
this release gets out I'm going to look at it more, but I was just curious
about whether anybody has looked into this.

Jeff.

-Original Message-
From: Whitmire, Jeffrey [mailto:[EMAIL PROTECTED]
Sent: Monday, March 10, 2003 4:07 PM
To: '[EMAIL PROTECTED]'
Subject: ActionServlet Action caching problem


I've got a weird one.  I'm hoping that somebody else has encountered this
before and can help.  We are in the midst of load testing our app before
rolling it out to production.  I have one action class (only one) that
starts failing well over an hour into the test.

It appears that the instance of that action class cached by the
ActionServlet becomes invalid.  I can see no reason why the change in
behaviour, but at some point the RequestProcessor gets an instance to the
Action that is no longer valid.  It is not null, but it never executes it.
The rest of the app works perfectly, but that button (tied to that specific
Action) never works again until the tomcat instance is restarted.  It just
hangs, and the last indication in the log is the RequestProcessor finding
and returning an instance of that action class.

Has anyone ever had problems with Action instances going stale?  or some
other config problem that could cause this?

Thanks, I'm a bit desparate,
Jeff.

-
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 define a DynaActionForm to display a collection ?

2003-03-11 Thread Rick Reumann
On Tue, 11 Mar 2003 17:36:09 +0100
Heligon Sandra <[EMAIL PROTECTED]> wrote:

> Has someone an example of struts-config.xml file and
> a such SetUpAction with DynaActionForm and Collection ?

In a form-bean declarations, where YourDyanForm is a subclass of a
DynaActionForm(DynaValidatorForm):



 { snip }

 { snip }



Then in you Action class...


execute(..) {
ArrayList someList = someBusinessClass.getMeListOfObjectsIneed();
formBean.set("myCollection" someList );

//forward to jsp page
}


The reason you'll want to subclass DynaActionForm is if you do some
validation you probably will have to override the reset method.  

-- 
Rick Reumann

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



Re: DynaActionForm

2003-03-11 Thread khalim
Hi,
We have put our code that manipulates the FormBeanConfigs in the init() 
method of our custom Plugin which is called before freeze. Our code adds 
some FormPropertyConfigs to the FormBeanConfigs. However we now get errors 
that the new property configs that we defined do not exist when calls are 
made to getDynaClass().getDynaProperty() because it appears that the 
introspect() method on DynaActionFormClass is called once which populates 
the dyna properties hash table/map in in DynaActionFormClass before init() 
on our plugin is called. 

How can we get the DynaActionFormClass for the DynaActionForm's configs 
that we are modifying to essentially re-introspect and rebuild their dyna 
properties themselves with our updated FormBeanConfigs? 

Karina






"Craig R. McClanahan" <[EMAIL PROTECTED]>
03/10/2003 07:55 PM
Please respond to "Struts Users Mailing List"

 
To: Struts Users Mailing List <[EMAIL PROTECTED]>
cc: 
Subject:Re: DynaActionForm




On Mon, 10 Mar 2003 [EMAIL PROTECTED] wrote:

> Date: Mon, 10 Mar 2003 17:07:29 -0700
> From: [EMAIL PROTECTED]
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
> Subject: DynaActionForm
>
> Hi,
> We are creating a derivitive of DynaActionForm that needs to add
> FormPropertyConfigs to the FormBeanConfig at runtime however are running
> into this frozen config thing. How can we get around this and why does
> Struts prevent this in the first place?
>

Struts freezes the configuration information because it uses HashMaps to
store the XxxConfig beans, and we don't want to have to synchronize on
them for every request (such as FindActionConfig()) just on the off chance
that someone might be trying to modify the configuration data.  Freezing
ensures that nobody will run into mysterious results from trying to read a
HashMap that someone else is trying to modify.

If you can calculate all your dynamic stuff at webapp startup time, you're
still in luck -- the freeze happens after PlugIns are initialized, so you
can use one of them to set up the stuff that was not in the config files.
If you really need to modify these structures at runtime, you're going to
need to create modified versions of the appropriate config classes -- and
be sure you synchronize on the accesses (paying the inevitable performance
cost of this).

> Thank you!

Craig


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





Re: [ANN] Struttin' With Struts beta (newbies esp. welcome)

2003-03-11 Thread Rick Reumann
On Tue, 11 Mar 2003 11:53:39 -0500
Mark Zeltser <[EMAIL PROTECTED]> wrote:
 
> Good job, somehow I can't unzip war files, I am getting corrupt zip
> file exception.

I haven't tried to unzip a war file on Windows. Can you rename it to
.zip and see what happens? You should just be able to plop it in your
webapps directory and it'll expand for you.

> > Struttin' with Struts:
> >
> > http://www.reumann.net/do/struts/main
 


-- 
Rick Reumann

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



Re: DynaActionForm

2003-03-11 Thread khalim
A followup to the post below.

To attempt to re-initialize the DynaProperties on DynaActionFormClass we 
are calling DynaActionFormClass.createDynaActionFormClass(FormBeanConfig)

This method seems misleading, since what it actually does is simply get an 
existing DynaActionFormClass and only creates it if it does not already 
exist. Hence why trying to re-create it does not work after manipulating 
our FormBeanConfig in init() in the plugin.

seems like this could be called getDynaActionFormClass(FormBeanConfig) 
which could then call createDynaActionFormClass(FormBeanConfig) to 
actually create it if it does not exist. This would allow developers to 
force it to re-create when needed by calling the createDynaActionFormClass 
method.







[EMAIL PROTECTED]
03/11/2003 10:23 AM
Please respond to "Struts Users Mailing List"

 
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
cc: [EMAIL PROTECTED]
Subject:Re: DynaActionForm


Hi,
We have put our code that manipulates the FormBeanConfigs in the init() 
method of our custom Plugin which is called before freeze. Our code adds 
some FormPropertyConfigs to the FormBeanConfigs. However we now get errors 

that the new property configs that we defined do not exist when calls are 
made to getDynaClass().getDynaProperty() because it appears that the 

introspect() method on DynaActionFormClass is called once which populates 
the dyna properties hash table/map in in DynaActionFormClass before init() 

on our plugin is called. 

How can we get the DynaActionFormClass for the DynaActionForm's configs 
that we are modifying to essentially re-introspect and rebuild their dyna 
properties themselves with our updated FormBeanConfigs? 

Karina






"Craig R. McClanahan" <[EMAIL PROTECTED]>
03/10/2003 07:55 PM
Please respond to "Struts Users Mailing List"

 
To: Struts Users Mailing List <[EMAIL PROTECTED]>
cc: 
Subject:Re: DynaActionForm




On Mon, 10 Mar 2003 [EMAIL PROTECTED] wrote:

> Date: Mon, 10 Mar 2003 17:07:29 -0700
> From: [EMAIL PROTECTED]
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
> Subject: DynaActionForm
>
> Hi,
> We are creating a derivitive of DynaActionForm that needs to add
> FormPropertyConfigs to the FormBeanConfig at runtime however are running
> into this frozen config thing. How can we get around this and why does
> Struts prevent this in the first place?
>

Struts freezes the configuration information because it uses HashMaps to
store the XxxConfig beans, and we don't want to have to synchronize on
them for every request (such as FindActionConfig()) just on the off chance
that someone might be trying to modify the configuration data.  Freezing
ensures that nobody will run into mysterious results from trying to read a
HashMap that someone else is trying to modify.

If you can calculate all your dynamic stuff at webapp startup time, you're
still in luck -- the freeze happens after PlugIns are initialized, so you
can use one of them to set up the stuff that was not in the config files.
If you really need to modify these structures at runtime, you're going to
need to create modified versions of the appropriate config classes -- and
be sure you synchronize on the accesses (paying the inevitable performance
cost of this).

> Thank you!

Craig


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







RE: ActionServlet Action caching problem

2003-03-11 Thread David Graham
RequestProcessor.processActionCreate() is probably where you could customize 
how many Action instances to create.  I'm not sure why you would need 
multiple instances but the customization is available.

David



From: "Whitmire, Jeffrey" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Subject: RE: ActionServlet Action caching problem
Date: Tue, 11 Mar 2003 12:16:33 -0500
Found it.  Turns out it wasn't a caching problem at all.  I have a threaded
job manager that was being used by this action class.  There was a weird
exception being thrown that wasn't getting caught which was locking the
thread.  This action was getting reused by Struts, but never did anything
because it was still blocking on the locked thread.
I've fixed it and learned much, but is there any way to get more control
over the caching?  Do you have to subclass ActionServlet or the
RequestProcessor to do that?  I would think there would be instances where
you would want a pool of actions instead of only one instance of each.  
Once
this release gets out I'm going to look at it more, but I was just curious
about whether anybody has looked into this.

Jeff.

-Original Message-
From: Whitmire, Jeffrey [mailto:[EMAIL PROTECTED]
Sent: Monday, March 10, 2003 4:07 PM
To: '[EMAIL PROTECTED]'
Subject: ActionServlet Action caching problem
I've got a weird one.  I'm hoping that somebody else has encountered this
before and can help.  We are in the midst of load testing our app before
rolling it out to production.  I have one action class (only one) that
starts failing well over an hour into the test.
It appears that the instance of that action class cached by the
ActionServlet becomes invalid.  I can see no reason why the change in
behaviour, but at some point the RequestProcessor gets an instance to the
Action that is no longer valid.  It is not null, but it never executes it.
The rest of the app works perfectly, but that button (tied to that specific
Action) never works again until the tomcat instance is restarted.  It just
hangs, and the last indication in the log is the RequestProcessor finding
and returning an instance of that action class.
Has anyone ever had problems with Action instances going stale?  or some
other config problem that could cause this?
Thanks, I'm a bit desparate,
Jeff.
-
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]


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

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


RE: [OT]: Struts, Web Development, J2EE, and what is too much?

2003-03-11 Thread Molitor, Stephen
Aaron,

You've opened up a big can of worms!  There is much debate on this topic.

Regarding entity beans and transactions:  The recommended practice is to use
the 'Session Facade' pattern to wrap access to your entity beans  inside a
stateless EJB session bean.  The reason is remote calls to entity EJB's are
too slow.  Instead, only use local interfaces for you entity beans.  Your
Struts actions would never talk to entity beans directly; instead they would
call 'service' methods on session beans.  This also means you need lots of
little data transfer beans to transfer the data in and out of the session
facade.  (Or you can sacrifice explicitness and type safety and use
dyna-beans.)  The session facade also provides a good place for transaction
boundaries.  An action will usually call one method on the session bean, and
that method is a transaction.  The user hits a button, and either all his
changes or saved, or they all get rolled back.  That kind of 'atomic
request' is a nice simple transaction model that works for most situations.

However, there is a lot of extra effort involved in creating the session
facades and data transfer objects, and keeping them in sync.  Example:  the
xPetStore application, which shows how to use xDoclet, was implemented
twice, once using EJB, and once using just Servlets and Hibernate (an open
source O/R mapping tool).  Excluding the code that xDoclet generated for
you, the EJB version still had more than twice as many lines of source code
in the business tier compared to the Hibernate version.  So even with a tool
like Xdoclet, there is still significant extra cost to doing EJB.

Also, as Robert alluded to, EJB entity beans don't really support
object-oriented development.  A good OO domain model is typically fine
grained, with inheritance, relationships to other objects, etc.  The fact
that entity beans don't allow re-entrancy (object 'a' calls a method on
object 'b', which calls a method on 'a'), inhibits your entity model.  Of
course, if your business model is simple, that might be OK.

IMHO, the only compelling reason to use EJB is if you need to provide access
to remote Java clients to your business tier.  (Web services are another
option that also supports non-Java clients.  But they do add overhead.)
Even there, I would just use session beans, not entity beans.  In our app,
we're using Struts with Hibernate and doing everything in the web container.
We have a servlet filter that start, stops and rolls back the transaction;
the 'atomic request' approach.  Getting EJB out of the mix really simplified
things for us.  We do have a few cases where a remote Java client needs to
talk to our business tier, so we will probably use EJB remote session
facades for that.  But we'll only do the extra work when and where we need
it.  Hibernate allows you to declaratively cache read-only objects.  (Or
read-write too, if you're not using a cluster.)  

Ted Husted has an example app on his page using Struts and Hibernate.  OJB
is another popular option.  Long term, JDO may or may not catch on .  All of
these tools over true transparent, object-oriented persistence, in stark
contrast to EJB entity beans.

Steve


-Original Message-
From: Robert McIntosh [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 11, 2003 10:39 AM
To: Struts Users Mailing List
Subject: Re: [OT]: Struts, Web Development, J2EE, and what is too much?


Tony made some good points, and my take is that from your requirements, 
you may not need EJBs. However, if you layered your app sufficiently, 
then if you end up needing them later on, it shouldn't be too much of a 
problem. Of course I am assuming you are referring to Entity beans in 
this case...

As for when to use EJBs, what I have always recommended to our clients 
is that EJBs are good for large scale applications that run on clustered 
machines and require transactions at the entity bean level. The 
transactions are good if you have multiple apps and clients that are 
modifying the same data. If your app is largely read only, it is the 
only one interacting with the data and you aren't worried about 
concurrent modifcation, then you probably don't need entity beans. Yes, 
most app servers can cache and mark entity beans as read-only or mostly 
read-only for performance, but there are other ways of doing the same thing.

Another thing to consider is how your object model is designed. If you 
have lots of inheritance, entity beans aren't going to fit you well. 
Same can be said if you have complex query requirements (joins, 
relationships that the object model doesn't support, etc.).

Then again, in some cases as Nash pointed out, EJBs can be simplier from 
the perspective that any good app server can build the database for you 
and with tools like XDoclet, you don't have to write deployment 
descriptors and you don't have to maintain (i.e. code) the interfaces 
for home, remote and local.

- Robert

Aaron O'Hara wrote:

>I know this question has probably b

Character set lost when doing an include with Struts!

2003-03-11 Thread Robert Bowen
Hello all.

Has anyone ever had a problem maintaining character set in an included page?
I do!

I've tried everything:

1. using jsp format --  instead of Struts format, and nothing
works.

2. jsp include of struts action -- 

3. RequestDispatcher:



RequestDispatcher dispatcher =
request.getRequestDispatcher(forwardHomeNoticias.getPath());

dispatcher.include(request, response);

.. nothing works!

In my "mother" page I have the meta tag:



In the included page I have the page directive:

<%@ page language="java" contentType="text/html; charset=iso-8859-1" %>

But ALL content in the included page -- data from the database, static html,
everything -- appears with question marks instead of accented characters.

If I include a static jsp with accented characters it appears correctly.

My struts calls are:

 //struts action,
/do/LoadNoticias/...

 //print
content

.. and no matter what I do it won't print correctly.

Anyone know what the heck else I can try?

Thanks in advance,

Bob





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



RE: ActionServlet Action caching problem

2003-03-11 Thread Whitmire, Jeffrey
I'll have to look into it, but it seems to me that if the action is doing a
non-trivial amount of work (which mine is), then if there are multiple
requests, they will get serialized through the single instance of the
action.  It may be that I need to redesign how my action works, but
currently it will submit a job and block until it completes.  If there were
a pool of actions instead of a single one it seems like it would be more
efficient.

Jeff.

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 11, 2003 12:40 PM
To: [EMAIL PROTECTED]
Subject: RE: ActionServlet Action caching problem


RequestProcessor.processActionCreate() is probably where you could customize

how many Action instances to create.  I'm not sure why you would need 
multiple instances but the customization is available.

David



>From: "Whitmire, Jeffrey" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
>Subject: RE: ActionServlet Action caching problem
>Date: Tue, 11 Mar 2003 12:16:33 -0500
>
>Found it.  Turns out it wasn't a caching problem at all.  I have a threaded
>job manager that was being used by this action class.  There was a weird
>exception being thrown that wasn't getting caught which was locking the
>thread.  This action was getting reused by Struts, but never did anything
>because it was still blocking on the locked thread.
>
>I've fixed it and learned much, but is there any way to get more control
>over the caching?  Do you have to subclass ActionServlet or the
>RequestProcessor to do that?  I would think there would be instances where
>you would want a pool of actions instead of only one instance of each.  
>Once
>this release gets out I'm going to look at it more, but I was just curious
>about whether anybody has looked into this.
>
>Jeff.

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



Re: Oracle Data Source Config

2003-03-11 Thread Austin Lowry
I've tried something simillar to this too. JNDI seemed like the best 
place to reference it to me, since I already had a class to retrieve 
connections from the Weblogic pool in place. It turned out that while I 
could place the OracleConnectionPoolDataSource in JNDI, what I need to 
do is put the entire pool there, but the OracleConnectionCacheImpl 
object is not serializable, and therefore throws a 
java.io.NotSerializableException when I try to put it in JNDI. Unless 
anyone else has any ideas, I guess I'm stuck with the servel context. 
Thanks.

David Graham wrote:

This introduces another problem in that I will have to pass the 
connection to my business objects from my action classes, but I think 
it will work. Any ideas are welcome. Thanks.


You can either put the DataSource in JNDI for your business objects to 
look up or pass the DataSource into the business layer directly.  
There's no reason to pass Connection objects into the business layer.

David

_
The new MSN 8: advanced junk mail protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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




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


Re-post : Problem with character sets doing struts include. Accented characters getting garbled!!

2003-03-11 Thread Robert Bowen
Hello all.

Has anyone ever had a problem maintaining character set in an included page?
I do!

I've tried everything:

1. using jsp format --  instead of Struts format, and nothing
works.

2. jsp include of struts action -- 

3. RequestDispatcher:



RequestDispatcher dispatcher =
request.getRequestDispatcher(forwardHomeNoticias.getPath());

dispatcher.include(request, response);

. nothing works!

In my "mother" page I have the meta tag:



In the included page I have the page directive:

<%@ page language="java" contentType="text/html; charset=iso-8859-1" %>

But ALL content in the included page -- data from the database, static html,
everything -- appears with question marks instead of accented characters.

If I include a static jsp with accented characters it appears correctly.

My struts calls are:

 //struts action,
/do/LoadNoticias/...

 //print
content

. and no matter what I do it won't print correctly.

Anyone know what the heck else I can try?

Thanks in advance,

Bob




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



Re: ActionServlet Action caching problem

2003-03-11 Thread nash e. foster
My execute/perform methods aren't normally synchronized. The javadocs 
don't indicate they expect it to be, so, calls to that methods 
shouldn't get "blocked". However, you could have concurrency problems 
if you're using static, class, or instance variables. The 
execute/perform method should limit itself to using local variables or 
data passed by reference and you won't have this problem. Unless you 
explicitly declare some class methods synchronized, in which case 
you're exactly right. If you do that, however, you ought to mean to 
produce that effect and limit your critical section to a small block of 
code-- ideally one that doesn't block on anything. ;-)

Maybe I'm out to lunch, though. Its been a while since I've coded java 
threads.

-nash

On Tuesday, March 11, 2003, at 12:52  PM, Whitmire, Jeffrey wrote:

I'll have to look into it, but it seems to me that if the action is 
doing a
non-trivial amount of work (which mine is), then if there are multiple
requests, they will get serialized through the single instance of the
action.  It may be that I need to redesign how my action works, but
currently it will submit a job and block until it completes.  If there 
were
a pool of actions instead of a single one it seems like it would be 
more
efficient.

Jeff.


***
This message is intended only for the use of the intended recipient and
may contain information that is PRIVILEGED and/or CONFIDENTIAL.  If you
are not the intended recipient, you are hereby notified that any use,
dissemination, disclosure or copying of this communication is strictly
prohibited.  If you have received this communication in error, please
destroy all copies of this message and its attachments and notify us
immediately.
***
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


action chaining and session scope.

2003-03-11 Thread Rajesh . Jayabalan
Hi,

 In my app I have an action forwarding to another action, with both their
different formbean in session scope, I do not understand why the reset for the
formbean is called. I have a log message in the reset method. Is this a bug ? I
am using struts 1.1 b3.

Regards
Rajesh J





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



RE: ActionServlet Action caching problem

2003-03-11 Thread David Graham
The servlet container is multi-threaded with many threads calling the 1 
action's execute method.  So, you don't have to worry about pooling actions. 
 If your execute method doesn't use instance variables, then it doesn't 
need to be synchronized.

Even though there's only 1 instance of each Action, it can be executed 
simultaneously by many threads.

David



From: "Whitmire, Jeffrey" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Subject: RE: ActionServlet Action caching problem
Date: Tue, 11 Mar 2003 12:52:45 -0500
I'll have to look into it, but it seems to me that if the action is doing a
non-trivial amount of work (which mine is), then if there are multiple
requests, they will get serialized through the single instance of the
action.  It may be that I need to redesign how my action works, but
currently it will submit a job and block until it completes.  If there were
a pool of actions instead of a single one it seems like it would be more
efficient.
Jeff.

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 11, 2003 12:40 PM
To: [EMAIL PROTECTED]
Subject: RE: ActionServlet Action caching problem
RequestProcessor.processActionCreate() is probably where you could 
customize

how many Action instances to create.  I'm not sure why you would need
multiple instances but the customization is available.
David



>From: "Whitmire, Jeffrey" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
>Subject: RE: ActionServlet Action caching problem
>Date: Tue, 11 Mar 2003 12:16:33 -0500
>
>Found it.  Turns out it wasn't a caching problem at all.  I have a 
threaded
>job manager that was being used by this action class.  There was a weird
>exception being thrown that wasn't getting caught which was locking the
>thread.  This action was getting reused by Struts, but never did anything
>because it was still blocking on the locked thread.
>
>I've fixed it and learned much, but is there any way to get more control
>over the caching?  Do you have to subclass ActionServlet or the
>RequestProcessor to do that?  I would think there would be instances 
where
>you would want a pool of actions instead of only one instance of each.
>Once
>this release gets out I'm going to look at it more, but I was just 
curious
>about whether anybody has looked into this.
>
>Jeff.

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


Migrating 1.1b2 to 1.1rc1

2003-03-11 Thread Greg Hess
Hi All,
 
I am migrating my Struts 1.1b2 web app to 1.1rc1 to take advantage of
the new requiredif validation rule. I have removed all struts libs and
all taglib tld's and replaced with the new ones provided with the
struts-blank.war in the rc1 distribution. 
 
When I try and access my web app the first page gives me the following
error:
java.lang.NoSuchMethodError:
org.apache.struts.util.RequestUtils.computeURL(Ljavax/servlet/jsp/PageCo
ntext;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/S
tring;Ljava/util/Map;Ljava/lang/String;Z)Ljava/lang/String;
at
org.apache.struts.taglib.html.LinkTag.calculateURL(LinkTag.java:495)
at
org.apache.struts.taglib.html.LinkTag.doStartTag(LinkTag.java:353)
at
_shared._header__jsp._jspService(/wbwebsite/shared/header.jsp:45)
at com.caucho.jsp.JavaPage.service(JavaPage.java:75)
at com.caucho.jsp.Page.subservice(Page.java:485)
at
com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:182
)
at
com.caucho.server.http.Invocation.service(Invocation.java:312)
at
com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
at
com.caucho.server.http.QRequestDispatcher.include(QRequestDispatcher.jav
a:360)
at
com.caucho.server.http.QRequestDispatcher.include(QRequestDispatcher.jav
a:267)
at com.caucho.jsp.QPageContext.include(QPageContext.java:538)
at _home._index__jsp._jspService(_index__jsp.java:28)
at com.caucho.jsp.JavaPage.service(JavaPage.java:75)
at com.caucho.jsp.Page.subservice(Page.java:485)
at
com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:182
)
at
com.caucho.server.http.Invocation.service(Invocation.java:312)
at
com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
at
com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:221)
at
com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:163
)
at com.caucho.server.TcpConnection.run(TcpConnection.java:137)
at java.lang.Thread.run(Thread.java:536)
 
I am not sure what I am doing wrong, any help much appreciated.
 
Thanks,
Greg
 


Re: Migrating 1.1b2 to 1.1rc1

2003-03-11 Thread Khalid K.
I checked the Java DOC, and it looks like
org.apache.struts.util.RequestUtils.computeURL() is deprecated.

Khalid

- Original Message -
From: "Greg Hess" <[EMAIL PROTECTED]>
To: "Struts" <[EMAIL PROTECTED]>
Sent: Tuesday, March 11, 2003 10:33 AM
Subject: Migrating 1.1b2 to 1.1rc1


> Hi All,
>
> I am migrating my Struts 1.1b2 web app to 1.1rc1 to take advantage of
> the new requiredif validation rule. I have removed all struts libs and
> all taglib tld's and replaced with the new ones provided with the
> struts-blank.war in the rc1 distribution.
>
> When I try and access my web app the first page gives me the following
> error:
> java.lang.NoSuchMethodError:
> org.apache.struts.util.RequestUtils.computeURL(Ljavax/servlet/jsp/PageCo
> ntext;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/S
> tring;Ljava/util/Map;Ljava/lang/String;Z)Ljava/lang/String;
> at
> org.apache.struts.taglib.html.LinkTag.calculateURL(LinkTag.java:495)
> at
> org.apache.struts.taglib.html.LinkTag.doStartTag(LinkTag.java:353)
> at
> _shared._header__jsp._jspService(/wbwebsite/shared/header.jsp:45)
> at com.caucho.jsp.JavaPage.service(JavaPage.java:75)
> at com.caucho.jsp.Page.subservice(Page.java:485)
> at
> com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:182
> )
> at
> com.caucho.server.http.Invocation.service(Invocation.java:312)
> at
> com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
> at
> com.caucho.server.http.QRequestDispatcher.include(QRequestDispatcher.jav
> a:360)
> at
> com.caucho.server.http.QRequestDispatcher.include(QRequestDispatcher.jav
> a:267)
> at com.caucho.jsp.QPageContext.include(QPageContext.java:538)
> at _home._index__jsp._jspService(_index__jsp.java:28)
> at com.caucho.jsp.JavaPage.service(JavaPage.java:75)
> at com.caucho.jsp.Page.subservice(Page.java:485)
> at
> com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:182
> )
> at
> com.caucho.server.http.Invocation.service(Invocation.java:312)
> at
> com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
> at
> com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:221)
> at
> com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:163
> )
> at com.caucho.server.TcpConnection.run(TcpConnection.java:137)
> at java.lang.Thread.run(Thread.java:536)
>
> I am not sure what I am doing wrong, any help much appreciated.
>
> Thanks,
> Greg
>
>


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



generating select options from a previous select

2003-03-11 Thread Clauson, Kelly
Hello,

I have a form with two select tags. I want the options for the second to be
dependent on the option chosen for the first. What is the best way to
accomplish this? If java script is the answer, how do I obtain the value of
the option chosen in the first select (I'm new to web apps)?

What I've tried to do is create the options for the second select in the
form bean given the value of the first, but of course, the set method for
the property associated with the first select is not called until the form
is submitted.



  
  
  
  
  
  
  
  
  

...
 

Thanks for helping,
Kelly

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



  1   2   3   >