Re: [VOTE] Should this list discontinue it's long, treasuredheritage of "relaxed fridays"?

2002-08-30 Thread Andreas Mack

On Fri, 2002-08-30 at 16:47, Eddie Bush wrote:
> Do you feel this list should discontinue it's long heritage of "relaxed 
> fridays"?
> 
> (   )  Yes
> ( X )  No
> 

-- 
Andreas Mack <[EMAIL PROTECTED]>
mediales. GmbH http://www.mediales.de



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: is it a bug?

2002-08-30 Thread congzhebin

what you mean?do you mean you can deploy the samples successfully on weblogic6.1 or 
you don't use weblogic?

yes,the tomcat works well with the struts1.1,i am now using the tomcat to deploy the 
struts1.1.




- Original Message - 
From: "Trieu, Danny" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Saturday, August 31, 2002 12:37 AM
Subject: RE: is it a bug?


> I think there is something wrong with Weblogic.  I didn't have the problem
> you described, but my was not able to use the struts1.1b2 on weblogic7.0 at
> all.  It keep complain about the servlet is not executable by the container
> because of some methods not implemented  And it works fine on tomcat4.0
> 
> -Original Message-
> From: congzhebin [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, August 30, 2002 9:18 AM
> To: Struts Users Mailing List
> Subject: is it a bug?
> 
> 
> hello
> idownload the struts1.1-b2 tonight to explore the new feature of the
> struts.but when i try to deploy the samples to weblogic6.1sp2,i
> failed.following is the exception when i deploy the struts-example.war.but i
> can deploy them to tomcat4.0,i don't know if it is a bug?how can i solve the
> problem to make the struts1.1-b2 can work with weblogic?
> 
> 
> 
> java.lang.NullPointerException
> at
> weblogic.management.internal.MBeanProxy.getAttribute(MBeanProxy.java:253)
> at
> weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:187)
> at $Proxy8.isDeployed(Unknown Source)
> at
> weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager
> .java:744)
> at
> weblogic.management.mbeans.custom.ApplicationManager.update(ApplicationManag
> er.java:206)
> at java.lang.reflect.Method.invoke(Native Method)
> at
> weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
> .java:636)
> at
> weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:6
> 21)
> at
> weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
> nImpl.java:359)
> at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
> at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
> at
> weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
> at
> weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
> at $Proxy5.update(Unknown Source)
> at
> weblogic.management.console.webapp._domain.__upload_app._jspService(__upload
> _app.java:149)
> at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
> at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
> :265)
> at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
> :200)
> at
> weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
> l.java:241)
> at
> weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:112)
> at
> weblogic.management.console.actions.ForwardAction.perform(ForwardAction.java
> :35)
> at
> weblogic.management.console.actions.internal.ActionServlet.doAction(ActionSe
> rvlet.java:171)
> at
> weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServ
> let.java:85)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
> :265)
> at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
> :200)
> at
> weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
> ntext.java:2495)
> at
> weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
> :2204)
> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
> 
>   
> Current Date
> Fri Aug 30 23:40:09 CST 2002
> 
> Console Release Build
> 
> 
> Console Build
> 
> 
> Server Release Build
> 6.1.2.0
> 
> Server Build
> WebLogic Server 6.1 SP2  12/18/2001 11:13:46 #154529 
> 
> All Server Product Versions
> WebLogic Server 6.1 SP2  12/18/2001 11:13:46 #154529 
> WebLogic XML Module 6.1 SP2  12/18/2001 11:28:02 #154529 
> 
> 
> Server System Properties
> awt.toolkit = sun.awt.windows.WToolkit bea.home = E:\\bea file.encoding =
> GBK file.encoding.pkg = sun.io file.separator = \ java.awt.fonts =
> java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment java.awt.printerjob
> = sun.awt.windows.WPrinterJob java.class.path =
> E:\bea\wlserver6.1\lib\cr_wls60f.jar;.;.\lib\weblogic_sp.jar;.\lib\weblogic.
> jar java.class.version = 47.0 java.ext.dirs = E:\bea\jdk131\jre\lib\ext
> java.home = E:\bea\jdk131\jre java.io.tmpdir = C:\tmp\ java.library.path =
> E:\bea\jdk131\bin;.;E:\WINNT\System32;E:\WINNT;.\bin;g:\oracle\ora90\bin;E:\
> JBuilder7\jdk1.3.1\bin;e:\oracle\ora90\bin;e:

Re: Documentation for writing custom validators available?

2002-08-30 Thread Eddie Bush

David Winterfeldt has a site ... but I can't think of it right off.  I'm 
"reasonably certain" part of the URL has part of his last name in it, 
but I don't remember how much -- and searching the archive for his last 
name would probably give an exhaustive list.  *goes to check folder* ... 
you're in luck!

http://home.earthlink.net/~dwinterfeldt/

Try that out.  I don't know if you'll find it any more/less helpful than 
Chuck's book, but it's another resource :-)

Regards,

Eddie

David Geary wrote:

> Is there any documentation available that shows how to implement a 
> custom validator for a field form with the validator? I've read the 
> section in the O'Reilly book, but I found it to be more confusing than 
> helpful.
>
> Thanks,
>
>
> david 




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Create a custom tag that uses struts HTML tags?

2002-08-30 Thread Eddie Bush

Have you discovered the  tag yet?  Sounds to me like this 
is what you're wanting ... no need to re-invent the wheel if you don't 
have to.  (you said definition - that's tiles nomenclature - that's why 
I made my assumption ... ).  If you're not looking at tiles, you may 
want to.  It's conceivable it may suit your needs (defining reusable 
"chunks" which can be rendered at any given point).

Of course, if I _totally_ missed your point, just repost with more 
information.

Regards,

Eddie

John Averty wrote:

>Hi,
>
>I'm a new struts user, and I couldn't find any information that helped;
>
>I'd like to create a custom tag which represents a super-componant such as a 
>"properties list" tag.
>
>The idea would be to:
>1) dynamically specify which fields to be renderered
>2) at the same time ensure that the rendering of such list of properties is 
>consistant accross different pages of the application, without having to rely on "low 
>level" HTML (such as tables, etc) on each page.
>
>So the question is: 
>
>How can I reference Struts tags from withing my tag
> - without having to put a lot of snipet code in the jsp page (I'd like just the tag 
>and a definition name)
> - still having the struts built-in validations mechanism work.
>
>I'm assuming I might be able to get to the struts tags by some sort of introspecion 
>mechanism, but I'm not clear on how to have the validation perform.
>
>Any help grandly apprecitated.
>
>Chheers,
>
>John.
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Documentation for writing custom validators available?

2002-08-30 Thread David Geary

Is there any documentation available that shows how to implement a 
custom validator for a field form with the validator? I've read the 
section in the O'Reilly book, but I found it to be more confusing than 
helpful.

Thanks,


david


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: [taglibs] Create a custom tag that uses struts HTML tags?

2002-08-30 Thread James Mitchell

Could you explain this a bit further.

I've written a few tags myself, but I'm not exactly sure what you are trying
to do.



James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta




> -Original Message-
> From: John Averty [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 30, 2002 5:06 PM
> To: [EMAIL PROTECTED]
> Subject: Create a custom tag that uses struts HTML tags?
>
>
> Hi,
>
> I'm a new struts user, and I couldn't find any information that helped;
>
> I'd like to create a custom tag which represents a
> super-componant such as a "properties list" tag.
>
> The idea would be to:
> 1) dynamically specify which fields to be renderered
> 2) at the same time ensure that the rendering of such list of
> properties is consistant accross different pages of the
> application, without having to rely on "low level" HTML (such as
> tables, etc) on each page.
>
> So the question is:
>
> How can I reference Struts tags from withing my tag
>  - without having to put a lot of snipet code in the jsp page
> (I'd like just the tag and a definition name)
>  - still having the struts built-in validations mechanism work.
>
> I'm assuming I might be able to get to the struts tags by some
> sort of introspecion mechanism, but I'm not clear on how to have
> the validation perform.
>
> Any help grandly apprecitated.
>
> Chheers,
>
> John.
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [VOTE] Should this list discontinue it's long, treasured heri tage of "relaxed fridays"?

2002-08-30 Thread Ted Husted

+1

Martin Cooper wrote:

>>Do you feel this list should discontinue it's long heritage 
>>of "relaxed 
>>fridays"?
>>
>>(   )  Yes
>>(   )  No
>>
>   ( X )  Don't particularly care, as long as it's only on FRIDAY.


+1

Craig R. McClanahan wrote:
 > I'm not interested in squashing the fun.  I am interested in going 
back to
 > the balance we had before -- mostly on topic, a few human interest topics
 > (on Fridays mostly), and useful interaction on the topic of the frameork.
 > It doesn't take a lot of abuse of ~1800 people's mailboxes to destroy the
 > sense of community that we've worked hard to build.
 >
 > OK guys -- can we go back to Struts now?
 >
 > Craig McClanahan



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Struts Presentation at AJUG

2002-08-30 Thread James Holmes

FYI

I got this info posted in CVS and when the next
website update is done it will be online.

-james


--- [EMAIL PROTECTED] wrote:
> For anyone that is interested, the presentation and
> demo 
> Struts application that I gave at the Atlanta Java
> Users 
> Group (AJUG) this month is available for download.
> 
> The presentation is 115 slides and is in PDF format.
> The 
> demo application uses OJB and Hypersonic. Note: make
> 
> sure to read the file called "readme.first" included
> 
> with the ZIP file. There's some setup that you'll
> need 
> to do for OJB and HyperSonic.
> 
> The presentation is available at:  
> http://www.ajug.org/meetings/download/struts.pdf
> 
> and the demo app is at: 
>
http://www.ajug.org/meetings/download/struts_demo.zip
> 
> I'm not sure how long the links will be there, so
> grab 
> them fast.
> 
> BTW, there were over 200 people at the presentation,
> 
> which is the biggest yet. Just another indicator how
> 
> popular the framework has become.
> 
> Enjoy,
> Chuck Cavaness
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Help me shake the cobwebs out... (also http://www.computer-programmer.org/articles/struts/ is back up)

2002-08-30 Thread Jason Rosen

I created a Plug-in to initialize a connection to a proprietary Data Access
layer for a CRM package I have to use.  On initialization, my Plug-in just
creates a connection to my datasource (using the CRM package's Java API) and
stashes a reference to the connection in the ServletContext.  Then I have a
BaseAction class that retrieves the reference and makes it available to all
Actions that subclass the BaseAction.  When my app is shut down, the Plug-in
ensures there are no more transactions for the connection, and destroys the
connection when all transactions are finished.

Worked out pretty well - gives me the ability to have connection pooling for
all my Actions using the CRM proprietary Data Access APIs.

-Original Message-
From: Craig Tataryn [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 30, 2002 2:02 PM
To: Struts Users Mailing List
Subject: Re: Help me shake the cobwebs out... (also
http://www.computer-programmer.org/articles/struts/ is back up)


That's ok Joe, I understand.

The one thing I do when I subscribe to a mail group is say to myself "Am I
here to help myself or to help others?"  Nine times out of ten it ends up
being both.  If I respond to someone's query I only do so if I legitimately
have something to contribute, I never respond if it is going to be
condesending.  When I dedicate myself to helping a mailing list, I answer
people's questions in hopes that they may one day answer some of mine.  Yes,
I should have queried the manuals closer, my bad.  Remember sarcasim should
be left for Usenet :)  If I respond with an RTFM type post, I usually
provide a link to the document I wish the user to read, or atleast a quote.
I know some people abuse this level of help, but on a whole it helps the
group.

In my RTFM'ing I understand the concept behind Dynaforms, but was wondering
if someone could provide an example?

And Plugins, still not clear on how/when I would use such a thing.  Is there
a specific example someone has at the top of their head?

Thanks,

Craig.

- Original Message -
From: "Joe Barefoot" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, August 30, 2002 4:11 PM
Subject: RE: Help me shake the cobwebs out... (also
http://www.computer-programmer.org/articles/struts/ is back up)


> You're welcome.  Sorry I was a bit terse/militant, but this list has been
spammed with so much crap lately it's starting to overwhelm my usually
pacific demeanour. :)
>
> peace,
> Joe
>
> > -Original Message-
> > From: Craig Tataryn [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, August 30, 2002 1:12 PM
> > To: Struts Users Mailing List
> > Subject: Re: Help me shake the cobwebs out... (also
> > http://www.computer-programmer.org/articles/struts/ is back up)
> >
> >
> > Thank you for your answer.  I actually found the answer in the taglib
> > documentation for html:form, I hadn't seen it before.
> >
> > Craig.
> >
> >
> > - Original Message -
> > From: "Joe Barefoot" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Friday, August 30, 2002 2:10 PM
> > Subject: RE: Help me shake the cobwebs out...
> >
> >
> > > The Struts controller knows what form bean to instantiate
> > because you put
> > a form bean name reference in your action mapping.  The
> > mapping must contain
> > the URL for your action.  In your JSP  tag, you
> > reference an
> > action's URL.  The controller simply matches this URL to your
> > form bean
> > reference through the actionMapping, then grabs the form bean
> > class type
> > from your  declaration in your struts-config, and
> > instantiates
> > that class to populate with values from your request.  If you
> > have no form
> > bean reference in your action mapping, then you cannot use an
> > 
> > tag which refers to that action mapping's URL, as Sri already
> > pointed out
> > below.
> > >
> > > b.t..w, if you had take the time to RTFM since yesterday,
> > you could have
> > answered your own question and then some.  The Struts user
> > manual is a nice
> > quick start for configuration, and the JavaDocs are quite
> > comprehensive.
> > Click on a package, then it's description, and you will get plenty of
> > documentation, particularly with the tag packages.
> > >
> > > peace,
> > > Joe
> > >
> > > -Original Message-
> > > From: Sri Sankaran [mailto:[EMAIL PROTECTED]]
> > > Sent: Fri 8/30/2002 10:47 AM
> > > To: Struts Users Mailing List
> > > Cc:
> > > Subject: RE: Help me shake the cobwebs out...
> > >
> > >
> > >
> > > You haven't mentioned if there is *any* form-bean
> > associated with this
> > action mapping.  You are forced to specify one only if you use the
> >  tag.
> > >
> > > So, since you are simply refreshing the page it worked.
> > >
> > > Did I miss something?
> > >
> > > Sri
> > >
> > > -Original Message-
> > > From: Craig Tataryn [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, August 30, 2002 10:30 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re

RE: [VOTE] Should this list discontinue it's long, treasuredheri tage of "relaxed fridays"?

2002-08-30 Thread Martin Cooper



> -Original Message-
> From: Eddie Bush [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 30, 2002 7:47 AM
> To: Struts Users List
> Subject: [VOTE] Should this list discontinue it's long, treasured
> heritage of "relaxed fridays"?
> 
> 
> Do you feel this list should discontinue it's long heritage 
> of "relaxed 
> fridays"?
> 
> (   )  Yes
> (   )  No
  ( X )  Don't particularly care, as long as it's only on FRIDAY.

--
Martin Cooper


> 
> ---
> 
> Rather than being a jerk, as some people don't mind to do, I 
> thought it 
> would be very much in the spirit of your community to let 
> everyone have 
> a say.  Cast your vote!
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




JavaServer Faces and Struts

2002-08-30 Thread Sandra Cann

Craig,

You'd mentioned in one email on this list "more news when JSR-127
eventually goes to public draft." 

Now that that's happened I was wondering if you might tell us more about
how you see things happening as related to "a good integration between
Struts and JavaServer Faces is clearly important, and I will be in a
pretty good position to make sure that it happens :-)." I was curious
how your role as lead on both projects has influenced your ideas for how
they integrate together? 

It was my understanding that there was some overlap between JSF and
Struts. How do you see this changing if at all?

How do you expect the spec to influence the future direction of Struts?


Sandra
[EMAIL PROTECTED]

P.S. Expresso 4.1ea4 is available for download; and we expect very soon
releasing a full 4.1 release.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: newbie question

2002-08-30 Thread Craig Tataryn

Hi Anand, you will not be able to run a Struts application directly under 
Apache web server.  You need either do one of two things:

1) Dump Apache web server all together, but Apache is good for serving 
static pages so you may want to take option two:
2) Have Apache running along side of Jakarta Tomcat, to find out how to do 
that, read this: 
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-apache-howto.html.  
Basically what it amounts to is you let Apache know about Tomcat and you 
tell it which URL contexts will trigger Apache to pass the request along to 
Tomcat for processing.

So for instance if you might set it up so all requests to 
http://mysite.com/servlet get passed along to Tomcat, or perhaps you will do 
it by extension so that all files ending in .jsp will be handled by Tomcat.

Hope that helps,

Craig.

>From: "anand v" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: newbie question
>Date: Fri, 30 Aug 2002 20:38:25 +
>
>Hi,
>
>I could make the strut example work on my server.. Redhat 7.1
>
>My next goal is to just make this exmple work as it is from
>my site which is say http://mysite.com
>
>How can I do that?? Is that I have to copy all the struts-example
>directory to my site root directory?? I am using Apache webserver.
>
>My root directory for this site is /home/mysite
>
>Thanks
>
>Anand
>
>
>_
>Chat with friends online, try MSN Messenger: http://messenger.msn.com
>
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>


Craig W. Tataryn
Programmer/Analyst
Compuware

_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Create a custom tag that uses struts HTML tags?

2002-08-30 Thread John Averty

Hi,

I'm a new struts user, and I couldn't find any information that helped;

I'd like to create a custom tag which represents a super-componant such as a 
"properties list" tag.

The idea would be to:
1) dynamically specify which fields to be renderered
2) at the same time ensure that the rendering of such list of properties is consistant 
accross different pages of the application, without having to rely on "low level" HTML 
(such as tables, etc) on each page.

So the question is: 

How can I reference Struts tags from withing my tag
 - without having to put a lot of snipet code in the jsp page (I'd like just the tag 
and a definition name)
 - still having the struts built-in validations mechanism work.

I'm assuming I might be able to get to the struts tags by some sort of introspecion 
mechanism, but I'm not clear on how to have the validation perform.

Any help grandly apprecitated.

Chheers,

John.



Re: Help me shake the cobwebs out... (also http://www.computer-programmer.org/articles/struts/ is back up)

2002-08-30 Thread Craig Tataryn

That's ok Joe, I understand.

The one thing I do when I subscribe to a mail group is say to myself "Am I
here to help myself or to help others?"  Nine times out of ten it ends up
being both.  If I respond to someone's query I only do so if I legitimately
have something to contribute, I never respond if it is going to be
condesending.  When I dedicate myself to helping a mailing list, I answer
people's questions in hopes that they may one day answer some of mine.  Yes,
I should have queried the manuals closer, my bad.  Remember sarcasim should
be left for Usenet :)  If I respond with an RTFM type post, I usually
provide a link to the document I wish the user to read, or atleast a quote.
I know some people abuse this level of help, but on a whole it helps the
group.

In my RTFM'ing I understand the concept behind Dynaforms, but was wondering
if someone could provide an example?

And Plugins, still not clear on how/when I would use such a thing.  Is there
a specific example someone has at the top of their head?

Thanks,

Craig.

- Original Message -
From: "Joe Barefoot" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, August 30, 2002 4:11 PM
Subject: RE: Help me shake the cobwebs out... (also
http://www.computer-programmer.org/articles/struts/ is back up)


> You're welcome.  Sorry I was a bit terse/militant, but this list has been
spammed with so much crap lately it's starting to overwhelm my usually
pacific demeanour. :)
>
> peace,
> Joe
>
> > -Original Message-
> > From: Craig Tataryn [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, August 30, 2002 1:12 PM
> > To: Struts Users Mailing List
> > Subject: Re: Help me shake the cobwebs out... (also
> > http://www.computer-programmer.org/articles/struts/ is back up)
> >
> >
> > Thank you for your answer.  I actually found the answer in the taglib
> > documentation for html:form, I hadn't seen it before.
> >
> > Craig.
> >
> >
> > - Original Message -
> > From: "Joe Barefoot" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Friday, August 30, 2002 2:10 PM
> > Subject: RE: Help me shake the cobwebs out...
> >
> >
> > > The Struts controller knows what form bean to instantiate
> > because you put
> > a form bean name reference in your action mapping.  The
> > mapping must contain
> > the URL for your action.  In your JSP  tag, you
> > reference an
> > action's URL.  The controller simply matches this URL to your
> > form bean
> > reference through the actionMapping, then grabs the form bean
> > class type
> > from your  declaration in your struts-config, and
> > instantiates
> > that class to populate with values from your request.  If you
> > have no form
> > bean reference in your action mapping, then you cannot use an
> > 
> > tag which refers to that action mapping's URL, as Sri already
> > pointed out
> > below.
> > >
> > > b.t..w, if you had take the time to RTFM since yesterday,
> > you could have
> > answered your own question and then some.  The Struts user
> > manual is a nice
> > quick start for configuration, and the JavaDocs are quite
> > comprehensive.
> > Click on a package, then it's description, and you will get plenty of
> > documentation, particularly with the tag packages.
> > >
> > > peace,
> > > Joe
> > >
> > > -Original Message-
> > > From: Sri Sankaran [mailto:[EMAIL PROTECTED]]
> > > Sent: Fri 8/30/2002 10:47 AM
> > > To: Struts Users Mailing List
> > > Cc:
> > > Subject: RE: Help me shake the cobwebs out...
> > >
> > >
> > >
> > > You haven't mentioned if there is *any* form-bean
> > associated with this
> > action mapping.  You are forced to specify one only if you use the
> >  tag.
> > >
> > > So, since you are simply refreshing the page it worked.
> > >
> > > Did I miss something?
> > >
> > > Sri
> > >
> > > -Original Message-
> > > From: Craig Tataryn [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, August 30, 2002 10:30 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: Help me shake the cobwebs out...
> > >
> > >
> > > 
> > >Anyone?
> > >Anyone?
> > >Anyone?
> > > 
> > >
> > >
> > > >From: "Craig Tataryn" <[EMAIL PROTECTED]>
> > > >Reply-To: [EMAIL PROTECTED]
> > > >To: [EMAIL PROTECTED]
> > > >Subject: Help me shake the cobwebs out...
> > > >Date: Thu, 29 Aug 2002 17:52:33 -0500
> > > >
> > > >Alrighty, really have been out of the loop for the last year w.r.t
> > > >Struts,
> > > >last time I used it was pre-1.0.  However, I will be using it on a
> > project
> > > >shortly and I have been brushing up.  Can you help me with
> > this query?  I
> > > >have set a simple demo where I have made a loginUser
> > Action, who's input
> > > >attribute is "/form/loginUser.jsp".  Inside the execute
> > method of this
> > > >action, I simply return mappings.getInputForward();
> > > >
> > > >Fair enough typically in my controller I might have some logic to
> > > >figure
> > > >out if the user was valid, and if they are I would f

RE: Link Question

2002-08-30 Thread Bartley, Chris P

Your example should work, but it could be a little more elegant.  You might
first try creating a global forward to your /editServer.do action.
Something like this:

   

Then, you can use the  tag to create a link (it'll rewrite the
URL for you, too, so you don't need to worry about the context path and
such):

   Edit

That'll render a link that looks something like this:

   Edit

If you want to add a single value to the URL in the query string, read about
the paramId, paramName, paramProperty, and paramScope attributes for the
 tag in the Struts docs.  If you need to pass multiple values in
the query string, you can use a Map.

Oh, i should note that the examples above are for Struts 1.0.2.  I haven't
tried 1.1 yet, so there may be easier ways to do things.

chris

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 30, 2002 3:39 PM
> To: [EMAIL PROTECTED]
> Subject: Link Question 
> 
> 
> Hi all,
> 
> I am new to Struts and I am trying to pass some parameters to 
> the Action 
> class when a link is clicked.
> I have tried many different ways but nothing works for me.
> 
> I need something like following.
> 
>  onClick="set some 
> data to be seen by the Action class");
> 
> thanks
> 
> kamal
> 
> 
> The information contained in this message may be privileged 
> and confidential and protected from disclosure.  If the 
> reader of this message is not the intended recipient, or an 
> employee or agent responsible for delivering this message to 
> the intended recipient, you are hereby notified that any 
> reproduction, dissemination or distribution of this 
> communication is strictly prohibited. If you have received 
> this communication in error, please notify us immediately by 
> replying to the message and deleting it from your computer.
> 
> Thank you.
> Tellabs
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Link Question

2002-08-30 Thread Kamal . K . Kang

Hi all,

I am new to Struts and I am trying to pass some parameters to the Action 
class when a link is clicked.
I have tried many different ways but nothing works for me.

I need something like following.

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




newbie question

2002-08-30 Thread anand v

Hi,

I could make the strut example work on my server.. Redhat 7.1

My next goal is to just make this exmple work as it is from
my site which is say http://mysite.com

How can I do that?? Is that I have to copy all the struts-example
directory to my site root directory?? I am using Apache webserver.

My root directory for this site is /home/mysite

Thanks

Anand


_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




[ANNOUNCE] Struts Book Moves Ahead

2002-08-30 Thread Ted Husted

The publication date for Developing Web Applications with Struts by Ted 
Husted, Cedric Dumoulin, George Franciscus, and David Winterfeldt 
(Foreword by Craig R. McClanahan) has been advanced to October 2002.
Details about the book are available at Ted Husted's Struts site

http://husted.com/struts/book.html

Several other Struts books are slated for release. Links are available 
on the Struts Resource page

http://jakarta.apache.org/struts/resources/books.html

###

-- Ted Husted, Husted dot Com, Fairport NY US
-- Author, Java Web Development with Struts
-- Order it today:
-- http://husted.com/struts/book.html



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




[ANNOUNCE] MockObjects 0.4 released

2002-08-30 Thread Ted Husted

Unit testing is a hot topic among Struts developers. StrutsTestCase 
 provides a slick mock object 
for testing Struts Actions with JUnit (or Cactus). The MockObjects 
projects provides a base API for creating tests for the rest of the 
objects in your Java application.

http://mockobjects.sourceforge.net

Developers working with the MockObjects project include Struts 
committers Vincent Masool and Ted Husted.

###

-- Ted Husted, Husted dot Com, Fairport NY US
-- Author, Java Web Development with Struts
-- Order it today:
-- http://husted.com/struts/book.html



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




[ANNOUNCE] Artimus 1.0 beta 2 available

2002-08-30 Thread Ted Husted

Artimus is a sample Struts application for posting news articles that 
uses JDBC, Lucene, and the Struts Scaffold toolkit.

Artimus may be downloaded from the Struts Example Application site on 
SourceForge

http://sourceforge.net/projects/struts

Other developers with example applications that they would like to 
donate to the community are invited to join the Struts Sourceforge site.

-- Ted Husted, Husted dot Com, Fairport NY US
-- Author, Java Web Development with Struts
-- Order it today:
-- http://husted.com/struts/book.html



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Java Server Faces and Developer Life Comments

2002-08-30 Thread Elderclei R Reami

Hi James,

I guess you were talking about Avalon, which is a nice tool to model functional flow, 
but it's not exactly what we 
want.

Hope we have easier life soon, or M$ will surely dominate other development niche. 
People using WSAD says it's 
extremely slow, but I've never used it.

Regards,
Elder
PS: Now it's time for [Beer]

On Fri, 30 Aug 2002 14:35:52 -0500, "James Higginbotham" 
<[EMAIL PROTECTED]> escreveu :

> De: "James Higginbotham" <[EMAIL PROTECTED]>
> Data: Fri, 30 Aug 2002 14:35:52 -0500
> Para: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Assunto: RE: Java Server Faces and Developer Life Comments
> 
> I have to agree with your assessment: Struts is a fabulous framework,
> and now we need a real application development environment to sit on top
> of it. Kudos to all those writing graphical interfaces to struts, but
> most of them are just GUI panels on top of the config files. I saw one
> (can't recall the name) that was commercial and offered page flow mgmt
> as well - nice addition, but still not where I want to be. 
> 
> My preferred way of working would be simliar to the old days of
> NetDynamics (before Sun bought them and closed them up - yeah, yeah,
> became part of iPlanet - whatever!). Define your project, define your
> datasource(s), define your pages, define your page fields, bind the data
> fields from your sources to your page fields. Its sort of like
> Powerbuilder or M$ tools, but would use the appropriate design patterns.
> NetD wrote their own app server, since j2ee wasn't out until they were
> bought by Sun, and servlets were just something cute. Toward the end,
> they started to support EJB 1.0 and even allowed your page fields to
> bind to EJB methods (!) rather than to your datasource - viola! Instant
> data binding to your business methods. They offered page templates
> (before JSP) with the option of diving into the action and page code to
> fix things, and offered many ways for most sites (esp intranets that
> need to publish data quickly) to get going very fast. 
> 
> Now, can this fix everything? No! Can this get rid of your expense
> developers? No! There are still hard problems to solve, and right/wrong
> ways to do things.. Can this help your developers spend less time
> messing with config files, page workflows (wizards, etc), and simple
> data binding tasks and more time working on the application at hand? I
> believe so.. 
> 
> Oh, and if there is someone out there who is writing, has written, or
> intends to write something like this - contact me, I really would like
> to help or be a beta tester!
> 
> Enjoy the weekend!
> James
> 
> > -Original Message-
> > From: Elderclei R Reami [mailto:[EMAIL PROTECTED]] 
> > Sent: Friday, August 30, 2002 9:36 AM
> > To: [EMAIL PROTECTED]
> > Subject: Java Server Faces and Developer Life Comments
> > 
> > 
> > Hi,
> > 
> > I've just finished my first Struts project, and it's been a 
> > great experience on how to do and not to do things. This 
> > list has been of great help, as well.
> > 
> > Anyway, I have some comments to make. Please, don't flame me, 
> > because it's just a view someone that needs 
> > to be productive.
> > 
> > I've developed a project some time ago using .Net framework 
> > and Visual Studio. Wonderful experience, very very 
> > much productive. Creation of a web interface is just a matter 
> > of point and click. First impression: "that's what I 
> > need for mass production, short 'sell, implement, bill' 
> > cycles". Graphical components do keep state during calls, 
> > integration is event-oriented, which makes it easy like 
> > Visual Basic or Delphi traditional dev. Really easy to learn 
> > and use.
> > 
> > About Struts: hard to use, lack of good development tools, 
> > but years light ahead of pure JSP development. Struts 
> > has all the chances of being the way to go. It just needs to 
> > be made easier to use, what means: GUI 
> > development. I've seen some options: "Eclipse+EasyStruts", 
> > StrutsBuilder, StrutsConsole - great tools, but none 
> > of them really make GUI+Struts integration easy, they are 
> > more like wizards, and need a lot of work yet.
> > 
> > Even though, I'm passionate about Java, I need to recognize: 
> > M$ really makes UI development a lot easier than 
> > Sun/Java/Open Source Community. If you ever developed a VB 
> > app and a Swing-based Java app, knows what I 
> > mean. The point is: M$ approach is make it easy, our approach 
> > is make it generic, and conceptually beautiful. M$ 
> > approach is "sell it, do it fast with small costs, have more profit".
> > 
> > I haven't read the entire JSF spec, but I've seen the 
> > tutorial, and as far as I understand it, JSF does not make 
> > programming UI interface much easier than Struts.
> > 
> > Any comments? The matter is: I have a family, and want to get 
> > home earlier, not 4:00AM. A lot of philosophy and 
> > online psychoterapy for FRIDAY, but... :)
> > 
> > Cheers,
> > Elderclei R Re

Re: Is having serveral actions mappings to one Action bad design?

2002-08-30 Thread Ted Husted

To be clear, I don't use switch statements or anything like that in my 
applications. I use the parameter to either call methods (like 
DispatchAction) or instantiate objects (like ActionForms).

I generally use only standard "toolkit" Actions in my apps, and hand off 
all the business logic to other objects. There is usually a base class 
with most of the utilty methods and properties and then a subclass for 
each business operation. Most of the development happens in the 
subclasses, so everything stays loosely coupled.

The command pattern holds everything together, but the commands lead to 
multiple objects, not a ball of mud.

-Ted.


Francis Lui wrote:

> Hi 
> 
> I've read alot about Ted's thoughts on using one action for serveral different 
>action mappings and using mapping.getParameter to decide which code to execute.  He 
>mentions it's uselful for grouping themed operations (eg. operations on a 
>shoppingCart, customer, etc).
> 
> I like the idea in theory since it does mean fewer action classes need to be 
>instantiated and it groups related operations in one class.  
> 
> On the other hand,
> 
> It results in the same problems prior to struts where you'd have a 
>ShoppingCartServlet, CustomerServlet etc and each servlet would be given an "action" 
>parameter.  Eg. In the servlet you'd have a big if else block to choose what code to 
>execute with lots of methods for each posible action for ShoppingCarts, or Customers, 
>etc.  All this code makes it harder to maintain and more people lining up to modify 
>that class.  In a way it takes away the cool thing about Struts using the Command 
>pattern allowing for a "AddToShoppingCartAction", "DeleteShoppingCartAction", etc 
>into a "ShoppingCartManagementAction".
> 
> Having separate action classes does take up more memory sine they exist for the life 
>of the web app but their smaller, less contention to modify.  Code reuse b/w actions 
>could still be achieived via subclassing.
> 
> Yet I still like Ted's idea :)
> 
> DispatchAction is a hyrbrid of the two usages of Actions but it makes validation for 
>different types of actions a lot tricker---eg. same strut mapping different parameter 
>meaning you can only have one form bean for all actions and your validate needs to do 
>a big if else check on parameter to see which validition to execute.
> 
> Does anybody have any ideas on which design they preferor are there other ways 
>as well to design web apps with struts.
> 
> Thanks
> 
> Francis
> 
> 
> 
> -
> Do You Yahoo!?
> Yahoo! Finance - Get real-time stock quotes
> 


-- 
-- Ted Husted, Husted dot Com, Fairport NY US
-- Author, Java Web Development with Struts
-- Order it today:
-- http://husted.com/struts/book.html



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Java Server Faces and Developer Life Comments

2002-08-30 Thread David Geary

Elderclei R Reami wrote:

>Hi,
>
>Even though, I'm passionate about Java, I need to recognize: M$ really makes UI 
>development a lot easier than Sun/Java/Open Source Community. If you ever developed a 
>VB app and a Swing-based Java app, knows what I mean.
>
FWIW, I agree that .NET is a great deal easier to use than any open 
source J2EE combo pack currently available. Last fall, I was invited to 
a 3-day, all expenses paid workshop that introduced .NET to Java 
authors, (since when would Sun do anything like that for MS authors?) 
and I was blown away by the simplicity and elegance of .NET.

Also, I noticed that Scott McNealy himself made a comment in a recent 
interview to the effect that "whoever advertises the most wins". I'm an 
avid reader of the New York Times and I've noticed numerous full-page 
.NET advertisements in that newspaper over the past few months and zero 
adds for Java or J2EE. One degree of freedom. Indeed.

Finally, as a Java author, I've watched in abject horror as Java book 
sales have plummeted over the past year and .NET books have gradually 
gained ground. Watch out, J2EE, the .NET juggernaut is at your back and 
coming up fast.

>I haven't read the entire JSF spec, but I've seen the tutorial, and as far as I 
>understand it, JSF does not make programming UI interface much easier than Struts.
>
Actually, it's much worse than that. After reading through the JSF 
tutorial, JSF makes developing UIs *more difficult* than Struts. As it's 
currently spec'd, JSF can't hold a candle to Struts, even though it's 
obviously a blatant,  inelegant Struts imitation. Want to use form beans 
with JSF? You've got to create them yourself with . Want 
validation with JSF? Get ready to write some Java code and plug it into 
the framework. All that for what -- 2 years of development (not to 
mention a year late)?

I just sent feedback to the JSF expert group stating my concerns with 
JSF and I suggest that others on this mailing list read the tutorial and 
spec and do the same.

In the spirit of the Friday biere messages: c'est dommage!


david

>
>
>Any comments? The matter is: I have a family, and want to get home earlier, not 
>4:00AM. A lot of philosophy and 
>online psychoterapy for FRIDAY, but... :)
>
>Cheers,
>Elderclei R Reami
>Vertis Tecnologia
>+55 11 3887-0835
>www.vertisnet.com.br
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Help me shake the cobwebs out... (also http://www.computer-programmer.org/articles/struts/ is back up)

2002-08-30 Thread Joe Barefoot

You're welcome.  Sorry I was a bit terse/militant, but this list has been spammed with 
so much crap lately it's starting to overwhelm my usually pacific demeanour. :)

peace,
Joe

> -Original Message-
> From: Craig Tataryn [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 30, 2002 1:12 PM
> To: Struts Users Mailing List
> Subject: Re: Help me shake the cobwebs out... (also
> http://www.computer-programmer.org/articles/struts/ is back up)
> 
> 
> Thank you for your answer.  I actually found the answer in the taglib
> documentation for html:form, I hadn't seen it before.
> 
> Craig.
> 
> 
> - Original Message -
> From: "Joe Barefoot" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Friday, August 30, 2002 2:10 PM
> Subject: RE: Help me shake the cobwebs out...
> 
> 
> > The Struts controller knows what form bean to instantiate 
> because you put
> a form bean name reference in your action mapping.  The 
> mapping must contain
> the URL for your action.  In your JSP  tag, you 
> reference an
> action's URL.  The controller simply matches this URL to your 
> form bean
> reference through the actionMapping, then grabs the form bean 
> class type
> from your  declaration in your struts-config, and 
> instantiates
> that class to populate with values from your request.  If you 
> have no form
> bean reference in your action mapping, then you cannot use an 
> 
> tag which refers to that action mapping's URL, as Sri already 
> pointed out
> below.
> >
> > b.t..w, if you had take the time to RTFM since yesterday, 
> you could have
> answered your own question and then some.  The Struts user 
> manual is a nice
> quick start for configuration, and the JavaDocs are quite 
> comprehensive.
> Click on a package, then it's description, and you will get plenty of
> documentation, particularly with the tag packages.
> >
> > peace,
> > Joe
> >
> > -Original Message-
> > From: Sri Sankaran [mailto:[EMAIL PROTECTED]]
> > Sent: Fri 8/30/2002 10:47 AM
> > To: Struts Users Mailing List
> > Cc:
> > Subject: RE: Help me shake the cobwebs out...
> >
> >
> >
> > You haven't mentioned if there is *any* form-bean 
> associated with this
> action mapping.  You are forced to specify one only if you use the
>  tag.
> >
> > So, since you are simply refreshing the page it worked.
> >
> > Did I miss something?
> >
> > Sri
> >
> > -Original Message-
> > From: Craig Tataryn [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, August 30, 2002 10:30 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Help me shake the cobwebs out...
> >
> >
> > 
> >Anyone?
> >Anyone?
> >Anyone?
> > 
> >
> >
> > >From: "Craig Tataryn" <[EMAIL PROTECTED]>
> > >Reply-To: [EMAIL PROTECTED]
> > >To: [EMAIL PROTECTED]
> > >Subject: Help me shake the cobwebs out...
> > >Date: Thu, 29 Aug 2002 17:52:33 -0500
> > >
> > >Alrighty, really have been out of the loop for the last year w.r.t
> > >Struts,
> > >last time I used it was pre-1.0.  However, I will be using it on a
> project
> > >shortly and I have been brushing up.  Can you help me with 
> this query?  I
> > >have set a simple demo where I have made a loginUser 
> Action, who's input
> > >attribute is "/form/loginUser.jsp".  Inside the execute 
> method of this
> > >action, I simply return mappings.getInputForward();
> > >
> > >Fair enough typically in my controller I might have some logic to
> > >figure
> > >out if the user was valid, and if they are I would forward 
> them to some
> > >other handler, if they were invalid I would set some error 
> messages and
> > >then do what I did above with the getInputForward() method.
> > >
> > >However, I then did this in my browser:
> > >
> > >http://localhost:8080/mywebapp/form/loginUser.jsp and it 
> worked!  How
> > >did
> > >the Struts controller know what form bean to create for that
> loginUser.jsp?
> > >  Is it because I have loginUser.jsp as my input attribute 
> of the action?
> > >What if I wanted to use the same input view (jsp file) for 
> two separate
> > >handlers?  How would it decide then which form bean to create?
> > >
> > >Also, can someone give me the Coles notes version on:
> > >1) DnyaForms
> > >2) Plugins
> > >
> > >Thanks!
> > >
> > >
> > >Craig W. Tataryn
> > >Programmer/Analyst
> > >Compuware
> > >
> > >_
> > >Join the world's largest e-mail service with MSN Hotmail.
> > >http://www.hotmail.com
> > >
> > >
> > >--
> > >To unsubscribe, e-mail:
> > >
> > >For additional commands, e-mail:
> > >
> > >
> >
> >
> > Craig W. Tataryn
> > Programmer/Analyst
> > Compuware
> >
> > _
> > Send and receive Hotmail on your mobile device: 
http://mobile.msn.com
>

Re: Help me shake the cobwebs out... (also http://www.computer-programmer.org/articles/struts/ is back up)

2002-08-30 Thread Craig Tataryn

Thank you for your answer.  I actually found the answer in the taglib
documentation for html:form, I hadn't seen it before.

Craig.


- Original Message -
From: "Joe Barefoot" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, August 30, 2002 2:10 PM
Subject: RE: Help me shake the cobwebs out...


> The Struts controller knows what form bean to instantiate because you put
a form bean name reference in your action mapping.  The mapping must contain
the URL for your action.  In your JSP  tag, you reference an
action's URL.  The controller simply matches this URL to your form bean
reference through the actionMapping, then grabs the form bean class type
from your  declaration in your struts-config, and instantiates
that class to populate with values from your request.  If you have no form
bean reference in your action mapping, then you cannot use an 
tag which refers to that action mapping's URL, as Sri already pointed out
below.
>
> b.t..w, if you had take the time to RTFM since yesterday, you could have
answered your own question and then some.  The Struts user manual is a nice
quick start for configuration, and the JavaDocs are quite comprehensive.
Click on a package, then it's description, and you will get plenty of
documentation, particularly with the tag packages.
>
> peace,
> Joe
>
> -Original Message-
> From: Sri Sankaran [mailto:[EMAIL PROTECTED]]
> Sent: Fri 8/30/2002 10:47 AM
> To: Struts Users Mailing List
> Cc:
> Subject: RE: Help me shake the cobwebs out...
>
>
>
> You haven't mentioned if there is *any* form-bean associated with this
action mapping.  You are forced to specify one only if you use the
 tag.
>
> So, since you are simply refreshing the page it worked.
>
> Did I miss something?
>
> Sri
>
> -Original Message-
> From: Craig Tataryn [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 30, 2002 10:30 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Help me shake the cobwebs out...
>
>
> 
>Anyone?
>Anyone?
>Anyone?
> 
>
>
> >From: "Craig Tataryn" <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: [EMAIL PROTECTED]
> >Subject: Help me shake the cobwebs out...
> >Date: Thu, 29 Aug 2002 17:52:33 -0500
> >
> >Alrighty, really have been out of the loop for the last year w.r.t
> >Struts,
> >last time I used it was pre-1.0.  However, I will be using it on a
project
> >shortly and I have been brushing up.  Can you help me with this query?  I
> >have set a simple demo where I have made a loginUser Action, who's input
> >attribute is "/form/loginUser.jsp".  Inside the execute method of this
> >action, I simply return mappings.getInputForward();
> >
> >Fair enough typically in my controller I might have some logic to
> >figure
> >out if the user was valid, and if they are I would forward them to some
> >other handler, if they were invalid I would set some error messages and
> >then do what I did above with the getInputForward() method.
> >
> >However, I then did this in my browser:
> >
> >http://localhost:8080/mywebapp/form/loginUser.jsp and it worked!  How
> >did
> >the Struts controller know what form bean to create for that
loginUser.jsp?
> >  Is it because I have loginUser.jsp as my input attribute of the action?
> >What if I wanted to use the same input view (jsp file) for two separate
> >handlers?  How would it decide then which form bean to create?
> >
> >Also, can someone give me the Coles notes version on:
> >1) DnyaForms
> >2) Plugins
> >
> >Thanks!
> >
> >
> >Craig W. Tataryn
> >Programmer/Analyst
> >Compuware
> >
> >_
> >Join the world's largest e-mail service with MSN Hotmail.
> >http://www.hotmail.com
> >
> >
> >--
> >To unsubscribe, e-mail:
> >
> >For additional commands, e-mail:
> >
> >
>
>
> Craig W. Tataryn
> Programmer/Analyst
> Compuware
>
> _
> Send and receive Hotmail on your mobile device: http://mobile.msn.com
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>
>
>






> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Help me shake the cobwebs out...

2002-08-30 Thread Eddie Bush

The absolute best recommendation I think that could be made to you is:

1)  http://www.theserverside.com/  <--- Click here
2)  Search for "Struts Book Review"
3)  Read
4)  http://www.bookpool.com/  <--- Go order it :-)

(No, I'm not being paid a commission by Chuck, I just think he did a 
fine job and deserves to reap the rewards)

That one resource will answer so many questions for you that, if you 
haven't read it yet, you _really_ should.  Another good "how-to tricks 
and tips" is Ted Husted's "Struts Tips" which he posts on 
basebeans.com's MVC Programmers list.  Fortunately, you can also get at 
(many of) them by going over to http://www.husted.com.

Regards,

Eddie

Craig Tataryn wrote:

> Alrighty, really have been out of the loop for the last year w.r.t 
> Struts, last time I used it was pre-1.0.  However, I will be using it 
> on a project shortly and I have been brushing up.  Can you help me 
> with this query?  I have set a simple demo where I have made a 
> loginUser Action, who's input attribute is "/form/loginUser.jsp".  
> Inside the execute method of this action, I simply return 
> mappings.getInputForward();
>
> Fair enough typically in my controller I might have some logic to 
> figure out if the user was valid, and if they are I would forward them 
> to some other handler, if they were invalid I would set some error 
> messages and then do what I did above with the getInputForward() method.
>
> However, I then did this in my browser:
>
> http://localhost:8080/mywebapp/form/loginUser.jsp and it worked!  How 
> did the Struts controller know what form bean to create for that 
> loginUser.jsp?  Is it because I have loginUser.jsp as my input 
> attribute of the action?  What if I wanted to use the same input view 
> (jsp file) for two separate handlers?  How would it decide then which 
> form bean to create?
>
> Also, can someone give me the Coles notes version on:
> 1) DnyaForms
> 2) Plugins
>
> Thanks!
>
> 
> Craig W. Tataryn
> Programmer/Analyst
> Compuware 




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Help me shake the cobwebs out...

2002-08-30 Thread Craig Tataryn

Yes, there is a form bean associated with my action mapping, as well as an
input attribute set to that jsp page I was talking about earlier.  I don't
believe the file was being loaded from the cache as I had a debug session
open in eclipse on my form bean and it tripped the getUserName() method :)

So, back to my original Q, how is struts making the association of that jsp
with the proper formbean?  Is it looking up the jsp page accross all action
mappings and if it finds a match on the input attribute it then sets up the
form bean based on that action?

Thanks,

Craig.

- Original Message -
From: "Sri Sankaran" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, August 30, 2002 1:47 PM
Subject: RE: Help me shake the cobwebs out...


You haven't mentioned if there is *any* form-bean associated with this
action mapping.  You are forced to specify one only if you use the
 tag.

So, since you are simply refreshing the page it worked.

Did I miss something?

Sri

-Original Message-
From: Craig Tataryn [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 30, 2002 10:30 AM
To: [EMAIL PROTECTED]
Subject: Re: Help me shake the cobwebs out...



   Anyone?
   Anyone?
   Anyone?



>From: "Craig Tataryn" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Help me shake the cobwebs out...
>Date: Thu, 29 Aug 2002 17:52:33 -0500
>
>Alrighty, really have been out of the loop for the last year w.r.t
>Struts,
>last time I used it was pre-1.0.  However, I will be using it on a project
>shortly and I have been brushing up.  Can you help me with this query?  I
>have set a simple demo where I have made a loginUser Action, who's input
>attribute is "/form/loginUser.jsp".  Inside the execute method of this
>action, I simply return mappings.getInputForward();
>
>Fair enough typically in my controller I might have some logic to
>figure
>out if the user was valid, and if they are I would forward them to some
>other handler, if they were invalid I would set some error messages and
>then do what I did above with the getInputForward() method.
>
>However, I then did this in my browser:
>
>http://localhost:8080/mywebapp/form/loginUser.jsp and it worked!  How
>did
>the Struts controller know what form bean to create for that loginUser.jsp?
>  Is it because I have loginUser.jsp as my input attribute of the action?
>What if I wanted to use the same input view (jsp file) for two separate
>handlers?  How would it decide then which form bean to create?
>
>Also, can someone give me the Coles notes version on:
>1) DnyaForms
>2) Plugins
>
>Thanks!
>
>
>Craig W. Tataryn
>Programmer/Analyst
>Compuware
>
>_
>Join the world's largest e-mail service with MSN Hotmail.
>http://www.hotmail.com
>
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>
>


Craig W. Tataryn
Programmer/Analyst
Compuware

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


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Java Server Faces and Developer Life Comments

2002-08-30 Thread James Higginbotham

I have to agree with your assessment: Struts is a fabulous framework,
and now we need a real application development environment to sit on top
of it. Kudos to all those writing graphical interfaces to struts, but
most of them are just GUI panels on top of the config files. I saw one
(can't recall the name) that was commercial and offered page flow mgmt
as well - nice addition, but still not where I want to be. 

My preferred way of working would be simliar to the old days of
NetDynamics (before Sun bought them and closed them up - yeah, yeah,
became part of iPlanet - whatever!). Define your project, define your
datasource(s), define your pages, define your page fields, bind the data
fields from your sources to your page fields. Its sort of like
Powerbuilder or M$ tools, but would use the appropriate design patterns.
NetD wrote their own app server, since j2ee wasn't out until they were
bought by Sun, and servlets were just something cute. Toward the end,
they started to support EJB 1.0 and even allowed your page fields to
bind to EJB methods (!) rather than to your datasource - viola! Instant
data binding to your business methods. They offered page templates
(before JSP) with the option of diving into the action and page code to
fix things, and offered many ways for most sites (esp intranets that
need to publish data quickly) to get going very fast. 

Now, can this fix everything? No! Can this get rid of your expense
developers? No! There are still hard problems to solve, and right/wrong
ways to do things.. Can this help your developers spend less time
messing with config files, page workflows (wizards, etc), and simple
data binding tasks and more time working on the application at hand? I
believe so.. 

Oh, and if there is someone out there who is writing, has written, or
intends to write something like this - contact me, I really would like
to help or be a beta tester!

Enjoy the weekend!
James

> -Original Message-
> From: Elderclei R Reami [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, August 30, 2002 9:36 AM
> To: [EMAIL PROTECTED]
> Subject: Java Server Faces and Developer Life Comments
> 
> 
> Hi,
> 
> I've just finished my first Struts project, and it's been a 
> great experience on how to do and not to do things. This 
> list has been of great help, as well.
> 
> Anyway, I have some comments to make. Please, don't flame me, 
> because it's just a view someone that needs 
> to be productive.
> 
> I've developed a project some time ago using .Net framework 
> and Visual Studio. Wonderful experience, very very 
> much productive. Creation of a web interface is just a matter 
> of point and click. First impression: "that's what I 
> need for mass production, short 'sell, implement, bill' 
> cycles". Graphical components do keep state during calls, 
> integration is event-oriented, which makes it easy like 
> Visual Basic or Delphi traditional dev. Really easy to learn 
> and use.
> 
> About Struts: hard to use, lack of good development tools, 
> but years light ahead of pure JSP development. Struts 
> has all the chances of being the way to go. It just needs to 
> be made easier to use, what means: GUI 
> development. I've seen some options: "Eclipse+EasyStruts", 
> StrutsBuilder, StrutsConsole - great tools, but none 
> of them really make GUI+Struts integration easy, they are 
> more like wizards, and need a lot of work yet.
> 
> Even though, I'm passionate about Java, I need to recognize: 
> M$ really makes UI development a lot easier than 
> Sun/Java/Open Source Community. If you ever developed a VB 
> app and a Swing-based Java app, knows what I 
> mean. The point is: M$ approach is make it easy, our approach 
> is make it generic, and conceptually beautiful. M$ 
> approach is "sell it, do it fast with small costs, have more profit".
> 
> I haven't read the entire JSF spec, but I've seen the 
> tutorial, and as far as I understand it, JSF does not make 
> programming UI interface much easier than Struts.
> 
> Any comments? The matter is: I have a family, and want to get 
> home earlier, not 4:00AM. A lot of philosophy and 
> online psychoterapy for FRIDAY, but... :)
> 
> Cheers,
> Elderclei R Reami
> Vertis Tecnologia
> +55 11 3887-0835
> www.vertisnet.com.br
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Using Struts in Weblogic & Eclipse [OT]

2002-08-30 Thread Michael Lee

Buddy, this sounds pretty OT. I'll help you, but you should know this isn't
a struts question...
The way to do this is...
Put this line in the start up path of weblogic where
java..weblogic.Server

-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_shmem,address=
abconn,server=y,suspend=n

In your IDE, enable remote debugging, hook or attach into localhost or
wherever your 'remotely' debugging, choose transport type and address. In
our case we use dt_shmem which is shared memory and an address of abconn
which is a unique id of the process to debug. If you debug remotely then
most likely you will use dt_socket and then address will be port.
This is good info. If you want any more then go to
http://java.sun.com/products/jpda/doc/conninv.html
Now no more questions OT and RTFM.   :)
Michael Lee
Architect
AfterBOT
[EMAIL PROTECTED]

- Original Message -
From: "Jesse Alexander (KADA 11)" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, August 30, 2002 3:08 AM
Subject: RE: Using Struts in Weblogic & Eclipse


> Use remote-debugging. Simply add the remote debugging parameters to
WLS-startup,
> configure remote-debugging in Eclipse and go ahead...
>
> hth
> Alexander
>
> -Original Message-
> From: Madhavan Srinivasan [mailto:[EMAIL PROTECTED]]
> Sent: Donnerstag, 29. August 2002 22:12
> To: Struts Users Mailing List
> Subject: Using Struts in Weblogic & Eclipse
>
>
> Friends
>
> I use weblogic 7.0 and eclipse 2.0.
> I try to integrate struts sample app with weblogic and eclipse.
> I installed easie weblogic plugin to eclipse, so I could start weblogic
server from eclipse.
> Now I want to debug the web application of the weblogic server instance
thru eclipse IDE.
> If there is anybody have the procedures please inform me.
>
> Thanks
> Madhavan
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Is having serveral actions mappings to one Action bad design?

2002-08-30 Thread Rick Reumann



On Friday, August 30, 2002, 2:27:25 PM, Francis wrote:

FL> Does anybody have any ideas on which design they preferor are
FL> there other ways as well to design web apps with struts.

I've been using the DispatchAction design now and really like it.
I'm actually lazy and use the one DispatchAction for everything.

The only thing that I find a little awkward and I posted a while
ago about this but didn't get any responses. I'm wondering how
people deal with issue of looking at the struts-config file and
being able to tell what is really being called in the
dispatchAction.

If you don't use the DispatchAction it's pretty straightfoward as
you you can tell looking at the action mapping which action class
is called. With the DispatchAction it's not always as clear since
you can't tell by looking at the action mapping what dispatch
method will be called in the DispatchAction. It's also possible
that multiple dispatch parameters can call that same action
mapping. What I usually do is comment above the action mapping the
different dispatch parameters that can be called for the action
mapping.  I'm wondering if anyone else has any ideas how they
handle this situation?


-- 

Rick
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Re[2]: [Buttons] How do i code this in struts

2002-08-30 Thread Bartley, Chris P

I think the problem is that you're trying to combine both a static string
("MyWindow=window.open('") with a runtime expression, which doesn't
work...at least the way you have it.  In general, stuff like this:

   

Won't work and needs to be written as:

   
   
So, for you, try something like this:

   

Replace the "foofoofoo" and "barbarbar" with the appropriate javascript
stuff...something like this (i haven't tested this, of course, so excuse any
single/double quote typos):

   '/>

chris

> -Original Message-
> From: Susmita Pati [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 30, 2002 2:13 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Re[2]: [Buttons] How do i code this in struts
> 
> 
> My struts wise code
>   styleClass="MenuButton"
> onclick="MyWindow=window.open('<%=proc.getBigBrotherReport)%>',
> 'MyWindow','toolbar=yes,location=yes,directories=yes,status=ye
> s,menubar=yes,
> scrollbars=yes,resizable=yes,width=750,height=580');MyWindow.focus(); 
> return false;"/>
> 
> 
> 
> -Original Message-
> From: Rick Reumann [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 30, 2002 3:08 PM
> To: Struts Users Mailing List
> Subject: Re[2]: [Buttons] How do i code this in struts
> 
> 
> 
> 
> On Friday, August 30, 2002, 2:32:50 PM, Susmita wrote:
> 
> SP>  How do i change <%= proc.getBigBrotherReport()%> to be 
> struts complaint
> as
> SP> its giving me an error out there
> 
> What are you doing "struts-wise" that is giving you the error? Can
> you paste the struts code you are trying to use vs the non struts
> code that you just posted.
> 
> -- 
> 
> Rick
> mailto:[EMAIL PROTECTED]
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Re[2]: [Buttons] How do i code this in struts

2002-08-30 Thread Susmita Pati

My struts wise code
 



-Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 30, 2002 3:08 PM
To: Struts Users Mailing List
Subject: Re[2]: [Buttons] How do i code this in struts




On Friday, August 30, 2002, 2:32:50 PM, Susmita wrote:

SP>  How do i change <%= proc.getBigBrotherReport()%> to be struts complaint
as
SP> its giving me an error out there

What are you doing "struts-wise" that is giving you the error? Can
you paste the struts code you are trying to use vs the non struts
code that you just posted.

-- 

Rick
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re[2]: [Buttons] How do i code this in struts

2002-08-30 Thread Rick Reumann



On Friday, August 30, 2002, 2:32:50 PM, Susmita wrote:

SP>  How do i change <%= proc.getBigBrotherReport()%> to be struts complaint as
SP> its giving me an error out there

What are you doing "struts-wise" that is giving you the error? Can
you paste the struts code you are trying to use vs the non struts
code that you just posted.

-- 

Rick
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [Buttons] How do i code this in struts

2002-08-30 Thread Brian Hickey

You might also try dropping the single quotes around your scriptlet tag...

B

- Original Message -
From: "Susmita Pati" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, August 30, 2002 2:53 PM
Subject: RE: [Buttons] How do i code this in struts


> I had used
>   onclick="MyWindow=window.open('<%=
>
proc.getBigBrotherReport()%>','MyWindow','toolbar=yes,location=yes,directori
>
es=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=750,height=
> 580');MyWindow.focus();
> return false;"/>
>
> The method does return me a string. I am getting the following error:
>
> The request sent by the client was syntactically incorrect
> (/<%=%20proc.getBigBrotherReport()%>).
>
> Susmita
>
> -Original Message-
> From: Sri Sankaran [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 30, 2002 2:48 PM
> To: Struts Users Mailing List
> Subject: RE: [Buttons] How do i code this in struts
>
>
> What do you mean Struts-compliant?  Struts is not involved here since you
> are using a standard html tag.  Make sure that the getBigBrotherReport()
> method returns a string representation of a URL.
>
> Sri
>
> > -Original Message-
> > From: Susmita Pati [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, August 30, 2002 2:33 PM
> > To: 'Struts Users Mailing List'
> > Subject: RE: [Buttons] How do i code this in struts
> >
> >
> > Hi All
> >
> > I have the following in my jsp
> >  > class="MenuButton" onClick="MyWindow=window.open('<%=
> > proc.getBigBrotherReport()%>','MyWindow','toolbar=yes,location
> > =yes,directori
> > es=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,wid
> > th=750,height=
> > 580');MyWindow.focus();
> > return false;"
> >   />
> >
> >
> >  How do i change <%= proc.getBigBrotherReport()%> to be
> > struts complaint as its giving me an error out there
> >
> > TIA
> > Susmita
> >
> > --
> > To unsubscribe, e-mail:
> >  [EMAIL PROTECTED]>
> > For
> > additional commands,
> > e-mail: 
> >
> >
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: [Buttons] How do i code this in struts

2002-08-30 Thread Sri Sankaran

Also, my personal preference would be to have the entire value of the onclick 
attribute generated by the scriptlet instead of embedding a scriptlet.

Sri

> -Original Message-
> From: Kevin A. Smith 
> Sent: Friday, August 30, 2002 2:57 PM
> To: Struts Users Mailing List
> Subject: RE: [Buttons] How do i code this in struts
> 
> 
> Take out the space between <%= and proc.getBigBrotherReport().
> 
> -Original Message-
> From: Susmita Pati [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 30, 2002 2:54 PM
> To: 'Struts Users Mailing List'
> Subject: RE: [Buttons] How do i code this in struts
> 
> 
> I had used 
>   styleClass="MenuButton" onclick="MyWindow=window.open('<%=
> proc.getBigBrotherReport()%>','MyWindow','toolbar=yes,location
> =yes,directori
> es=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,wid
> th=750,height=
> 580');MyWindow.focus(); 
> return false;"/>
> 
> The method does return me a string. I am getting the following error:
> 
> The request sent by the client was syntactically incorrect 
> (/<%=%20proc.getBigBrotherReport()%>).
> 
> Susmita
> 
> -Original Message-
> From: Sri Sankaran [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 30, 2002 2:48 PM
> To: Struts Users Mailing List
> Subject: RE: [Buttons] How do i code this in struts
> 
> 
> What do you mean Struts-compliant?  Struts is not involved 
> here since you are using a standard html tag.  Make sure that 
> the getBigBrotherReport() method returns a string 
> representation of a URL.
> 
> Sri
> 
> > -Original Message-
> > From: Susmita Pati [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, August 30, 2002 2:33 PM
> > To: 'Struts Users Mailing List'
> > Subject: RE: [Buttons] How do i code this in struts
> > 
> > 
> > Hi All
> > 
> > I have the following in my jsp
> >  > class="MenuButton" onClick="MyWindow=window.open('<%=
> > proc.getBigBrotherReport()%>','MyWindow','toolbar=yes,location
> > =yes,directori
> > es=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,wid
> > th=750,height=
> > 580');MyWindow.focus(); 
> > return false;"
> >   />
> > 
> > 
> >  How do i change <%= proc.getBigBrotherReport()%> to be
> > struts complaint as its giving me an error out there
> > 
> > TIA
> > Susmita
> > 
> > --
> > To unsubscribe, e-mail:   
> >  [EMAIL PROTECTED]>
> > For
> > additional commands, 
> > e-mail: 
> > 
> > 
> 
> --
> To unsubscribe, e-mail: 
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: [Buttons] How do i code this in struts

2002-08-30 Thread Susmita Pati

didnt work  :(

-Original Message-
From: Kevin A. Smith [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 30, 2002 2:57 PM
To: Struts Users Mailing List
Subject: RE: [Buttons] How do i code this in struts


Take out the space between <%= and proc.getBigBrotherReport().

-Original Message-
From: Susmita Pati [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 30, 2002 2:54 PM
To: 'Struts Users Mailing List'
Subject: RE: [Buttons] How do i code this in struts


I had used 
 

The method does return me a string. I am getting the following error:

The request sent by the client was syntactically incorrect
(/<%=%20proc.getBigBrotherReport()%>).

Susmita

-Original Message-
From: Sri Sankaran [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 30, 2002 2:48 PM
To: Struts Users Mailing List
Subject: RE: [Buttons] How do i code this in struts


What do you mean Struts-compliant?  Struts is not involved here since you
are using a standard html tag.  Make sure that the getBigBrotherReport()
method returns a string representation of a URL.

Sri

> -Original Message-
> From: Susmita Pati [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, August 30, 2002 2:33 PM
> To: 'Struts Users Mailing List'
> Subject: RE: [Buttons] How do i code this in struts
> 
> 
> Hi All
> 
> I have the following in my jsp
>  class="MenuButton" onClick="MyWindow=window.open('<%=
> proc.getBigBrotherReport()%>','MyWindow','toolbar=yes,location
> =yes,directori
> es=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,wid
> th=750,height=
> 580');MyWindow.focus(); 
> return false;"
>   />
> 
> 
>  How do i change <%= proc.getBigBrotherReport()%> to be 
> struts complaint as its giving me an error out there
> 
> TIA
> Susmita
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: [Buttons] How do i code this in struts

2002-08-30 Thread Kevin A. Smith

Take out the space between <%= and proc.getBigBrotherReport().

-Original Message-
From: Susmita Pati [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 30, 2002 2:54 PM
To: 'Struts Users Mailing List'
Subject: RE: [Buttons] How do i code this in struts


I had used 
 

The method does return me a string. I am getting the following error:

The request sent by the client was syntactically incorrect
(/<%=%20proc.getBigBrotherReport()%>).

Susmita

-Original Message-
From: Sri Sankaran [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 30, 2002 2:48 PM
To: Struts Users Mailing List
Subject: RE: [Buttons] How do i code this in struts


What do you mean Struts-compliant?  Struts is not involved here since you
are using a standard html tag.  Make sure that the getBigBrotherReport()
method returns a string representation of a URL.

Sri

> -Original Message-
> From: Susmita Pati [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, August 30, 2002 2:33 PM
> To: 'Struts Users Mailing List'
> Subject: RE: [Buttons] How do i code this in struts
> 
> 
> Hi All
> 
> I have the following in my jsp
>  class="MenuButton" onClick="MyWindow=window.open('<%=
> proc.getBigBrotherReport()%>','MyWindow','toolbar=yes,location
> =yes,directori
> es=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,wid
> th=750,height=
> 580');MyWindow.focus(); 
> return false;"
>   />
> 
> 
>  How do i change <%= proc.getBigBrotherReport()%> to be 
> struts complaint as its giving me an error out there
> 
> TIA
> Susmita
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: [Buttons] How do i code this in struts

2002-08-30 Thread Susmita Pati

I had used 
 

The method does return me a string. I am getting the following error:

The request sent by the client was syntactically incorrect
(/<%=%20proc.getBigBrotherReport()%>).

Susmita

-Original Message-
From: Sri Sankaran [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 30, 2002 2:48 PM
To: Struts Users Mailing List
Subject: RE: [Buttons] How do i code this in struts


What do you mean Struts-compliant?  Struts is not involved here since you
are using a standard html tag.  Make sure that the getBigBrotherReport()
method returns a string representation of a URL.

Sri

> -Original Message-
> From: Susmita Pati [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, August 30, 2002 2:33 PM
> To: 'Struts Users Mailing List'
> Subject: RE: [Buttons] How do i code this in struts
> 
> 
> Hi All
> 
> I have the following in my jsp
>  class="MenuButton" onClick="MyWindow=window.open('<%=
> proc.getBigBrotherReport()%>','MyWindow','toolbar=yes,location
> =yes,directori
> es=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,wid
> th=750,height=
> 580');MyWindow.focus(); 
> return false;"
>   />
> 
> 
>  How do i change <%= proc.getBigBrotherReport()%> to be 
> struts complaint as its giving me an error out there
> 
> TIA
> Susmita
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: [Buttons] How do i code this in struts

2002-08-30 Thread Sri Sankaran

What do you mean Struts-compliant?  Struts is not involved here since you are using a 
standard html tag.  Make sure that the getBigBrotherReport() method returns a string 
representation of a URL.

Sri

> -Original Message-
> From: Susmita Pati [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, August 30, 2002 2:33 PM
> To: 'Struts Users Mailing List'
> Subject: RE: [Buttons] How do i code this in struts
> 
> 
> Hi All
> 
> I have the following in my jsp
>  class="MenuButton" onClick="MyWindow=window.open('<%=
> proc.getBigBrotherReport()%>','MyWindow','toolbar=yes,location
> =yes,directori
> es=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,wid
> th=750,height=
> 580');MyWindow.focus(); 
> return false;"
>   />
> 
> 
>  How do i change <%= proc.getBigBrotherReport()%> to be 
> struts complaint as its giving me an error out there
> 
> TIA
> Susmita
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [OT] HttpServletRequest.getParameterMap()

2002-08-30 Thread Eddie Bush

Ah - yes it's the servlet specification version I should be looking at - 
NOT the JDK version.  That's an important point, since the problem I'm 
solving needs to live in a 2.2 spec container (don't ask!).

Thanks!

Eddie

*goes off to re-invent the wheel*

Craig R. McClanahan wrote:

>On Fri, 30 Aug 2002, Eddie Bush wrote:
>
>>Date: Fri, 30 Aug 2002 13:31:57 -0500
>>From: Eddie Bush <[EMAIL PROTECTED]>
>>Subject: [OT] HttpServletRequest.getParameterMap()
>>
>>Is this only available in 1.4?  I don't see it in the 1.3 docs, but I
>>*want* to!  I could make handy use of that functionality.
>>
>It's in Servlet 2.3 (not 1.3), but look on the ServletRequest page since
>it's inherited (along with all the other parameter related methods).
>
>>Thanks!
>>
>>Eddie
>>
>Craig
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [OT] HttpServletRequest.getParameterMap()

2002-08-30 Thread Craig R. McClanahan



On Fri, 30 Aug 2002, Eddie Bush wrote:

> Date: Fri, 30 Aug 2002 13:31:57 -0500
> From: Eddie Bush <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users List <[EMAIL PROTECTED]>
> Subject: [OT] HttpServletRequest.getParameterMap()
>
> Is this only available in 1.4?  I don't see it in the 1.3 docs, but I
> *want* to!  I could make handy use of that functionality.
>

It's in Servlet 2.3 (not 1.3), but look on the ServletRequest page since
it's inherited (along with all the other parameter related methods).

> Thanks!
>
> Eddie

Craig


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: text input and style sheets

2002-08-30 Thread Brian Hickey

Mark,

Check the doc first, but I think you will find the following should work:




this assumes you have a form bean with the get/set property named startDate
and containing a default value of "01/01/2000". If you don't want to access
the bean for a default, simply use the value= attribute to designate the
default.

Using a form bean has a benefit. You code the reset() and validate() methods
yourself. You control what the user sees on error.

Brian

- Original Message -
From: "Mark Silva" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, August 30, 2002 2:15 PM
Subject: text input and style sheets


Our HTML/design person has created our text input boxes with the following
code



I am trying to figure out a couple things...
1. How do I implement the class attribute within a stuts tag.  I am assuming
this is a CSS thing, since I haven't used it before.  anyone know?

2.  How do I set a default value for the input field?  if I said it
explicitly like so:



then the associated form does not repopulate the form field if there is an
error.  is the only way to do this, to make it an initial value in the form
object?


thanks,
mark silva

--
To unsubscribe, e-mail:

For additional commands, e-mail:





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: [Buttons] How do i code this in struts

2002-08-30 Thread Susmita Pati

Hi All

I have the following in my jsp



 How do i change <%= proc.getBigBrotherReport()%> to be struts complaint as
its giving me an error out there

TIA
Susmita

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




[OT] HttpServletRequest.getParameterMap()

2002-08-30 Thread Eddie Bush

Is this only available in 1.4?  I don't see it in the 1.3 docs, but I 
*want* to!  I could make handy use of that functionality.

Thanks!

Eddie



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Is having serveral actions mappings to one Action bad design?

2002-08-30 Thread Francis Lui


Hi 

I've read alot about Ted's thoughts on using one action for serveral different action 
mappings and using mapping.getParameter to decide which code to execute.  He mentions 
it's uselful for grouping themed operations (eg. operations on a shoppingCart, 
customer, etc).

I like the idea in theory since it does mean fewer action classes need to be 
instantiated and it groups related operations in one class.  

On the other hand,

It results in the same problems prior to struts where you'd have a 
ShoppingCartServlet, CustomerServlet etc and each servlet would be given an "action" 
parameter.  Eg. In the servlet you'd have a big if else block to choose what code to 
execute with lots of methods for each posible action for ShoppingCarts, or Customers, 
etc.  All this code makes it harder to maintain and more people lining up to modify 
that class.  In a way it takes away the cool thing about Struts using the Command 
pattern allowing for a "AddToShoppingCartAction", "DeleteShoppingCartAction", etc into 
a "ShoppingCartManagementAction".

Having separate action classes does take up more memory sine they exist for the life 
of the web app but their smaller, less contention to modify.  Code reuse b/w actions 
could still be achieived via subclassing.

Yet I still like Ted's idea :)

DispatchAction is a hyrbrid of the two usages of Actions but it makes validation for 
different types of actions a lot tricker---eg. same strut mapping different parameter 
meaning you can only have one form bean for all actions and your validate needs to do 
a big if else check on parameter to see which validition to execute.

Does anybody have any ideas on which design they preferor are there other ways as 
well to design web apps with struts.

Thanks

Francis



-
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes


RE: text input and style sheets

2002-08-30 Thread Karr, David

> -Original Message-
> From: Mark Silva [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 30, 2002 11:16 AM
> To: Struts Users Mailing List
> Subject: text input and style sheets
> 
> Our HTML/design person has created our text input boxes with 
> the following code
> 
>  maxlength="10" size="10" value="01/01/2000">
> 
> I am trying to figure out a couple things...
> 1. How do I implement the class attribute within a stuts tag. 
>  I am assuming this is a CSS thing, since I haven't used it 
> before.  anyone know? 

This would be answered if you would read the Struts Taglib API description,
for the "" tag, in particular.  I'm sure the documentation could
be improved (like making it clear exactly what HTML attributes are created),
but it describes all of the tags and their attributes.  Check the
"styleClass" attribute.

> 2.  How do I set a default value for the input field?  if I 
> said it explicitly like so:
> 
>maxlength="10" size="10" value="01/01/2000">
>   
>   then the associated form does not repopulate the form 
> field if there is an error.  is the only way to do this, to 
> make it an initial value in the form object?

You populate the field with an initial value by setting an associated field
on the ActionForm and referencing that property in your Struts tag.  If you
do that, the redisplay of the page on error will have the value they
entered.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Help me shake the cobwebs out...

2002-08-30 Thread Joe Barefoot

The Struts controller knows what form bean to instantiate because you put a form bean 
name reference in your action mapping.  The mapping must contain the URL for your 
action.  In your JSP  tag, you reference an action's URL.  The controller 
simply matches this URL to your form bean reference through the actionMapping, then 
grabs the form bean class type from your  declaration in your 
struts-config, and instantiates that class to populate with values from your request.  
If you have no form bean reference in your action mapping, then you cannot use an 
 tag which refers to that action mapping's URL, as Sri already pointed out 
below.
 
b.t..w, if you had take the time to RTFM since yesterday, you could have answered your 
own question and then some.  The Struts user manual is a nice quick start for 
configuration, and the JavaDocs are quite comprehensive.  Click on a package, then 
it's description, and you will get plenty of documentation, particularly with the tag 
packages.
 
peace,
Joe

-Original Message- 
From: Sri Sankaran [mailto:[EMAIL PROTECTED]] 
Sent: Fri 8/30/2002 10:47 AM 
To: Struts Users Mailing List 
Cc: 
Subject: RE: Help me shake the cobwebs out...



You haven't mentioned if there is *any* form-bean associated with this action 
mapping.  You are forced to specify one only if you use the  tag.

So, since you are simply refreshing the page it worked.

Did I miss something?

Sri

-Original Message-
From: Craig Tataryn [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 30, 2002 10:30 AM
To: [EMAIL PROTECTED]
Subject: Re: Help me shake the cobwebs out...



   Anyone?
   Anyone?
   Anyone?



>From: "Craig Tataryn" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Help me shake the cobwebs out...
>Date: Thu, 29 Aug 2002 17:52:33 -0500
>
>Alrighty, really have been out of the loop for the last year w.r.t
>Struts,
>last time I used it was pre-1.0.  However, I will be using it on a project
>shortly and I have been brushing up.  Can you help me with this query?  I
>have set a simple demo where I have made a loginUser Action, who's input
>attribute is "/form/loginUser.jsp".  Inside the execute method of this
>action, I simply return mappings.getInputForward();
>
>Fair enough typically in my controller I might have some logic to
>figure
>out if the user was valid, and if they are I would forward them to some
>other handler, if they were invalid I would set some error messages and
>then do what I did above with the getInputForward() method.
>
>However, I then did this in my browser:
>
>http://localhost:8080/mywebapp/form/loginUser.jsp and it worked!  How
>did
>the Struts controller know what form bean to create for that loginUser.jsp?
>  Is it because I have loginUser.jsp as my input attribute of the action? 
>What if I wanted to use the same input view (jsp file) for two separate
>handlers?  How would it decide then which form bean to create?
>
>Also, can someone give me the Coles notes version on:
>1) DnyaForms
>2) Plugins
>
>Thanks!
>
>
>Craig W. Tataryn
>Programmer/Analyst
>Compuware
>
>_
>Join the world's largest e-mail service with MSN Hotmail.
>http://www.hotmail.com
>
>
>--
>To unsubscribe, e-mail:  
>
>For additional commands, e-mail:
>
>


Craig W. Tataryn
Programmer/Analyst
Compuware

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


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




<>
--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


text input and style sheets

2002-08-30 Thread Mark Silva

Our HTML/design person has created our text input boxes with the following code



I am trying to figure out a couple things...
1. How do I implement the class attribute within a stuts tag.  I am assuming this is a 
CSS thing, since I haven't used it before.  anyone know? 

2.  How do I set a default value for the input field?  if I said it explicitly like so:



then the associated form does not repopulate the form field if there is an 
error.  is the only way to do this, to make it an initial value in the form object?


thanks, 
mark silva

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: stateful vs. stateless Actions / Struts design question

2002-08-30 Thread Craig R. McClanahan



On Fri, 30 Aug 2002, Heydtmann, Dirk wrote:

> Date: Fri, 30 Aug 2002 12:48:55 -0500
> From: "Heydtmann, Dirk" <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: stateful vs. stateless Actions / Struts design question
>
> Hi,
>
> In our company we are thinking of extending the RequestProcessor and
> overriding processActionCreate(), in order to optionally (based on a custom
> ActionMapping property) store Actions on the session rather than sharing
> Action instances across sessions. This is to minimize impact to our existing
> applications, as we are replacing our legacy MVC framework with Struts.
>

I guess this would also let you use instance variables in the Action
classes (although you still need to be mindful that multiple simultaneous
requests per session are still possible).

> I suppose that the Struts design reason for keeping Actions stateless was
> that (a) this is more lightweight and (b) state is normally tracked in the
> ActionForm beans. Is this correct? (Unfortunately, our legacy apps do not
> use form beans yet). Any thoughts, comments?
>

Those are two good reasons.  A more important one has to do with the
architectural role for Actions -- they should be seen primarily as
adapters between the web tier APIs (request, session, and so on) and your
business tier objects.  An Action is, unavoidably, tied to servlet APIs.
Business logic objects should not be -- you want to be able to reuse them
in non-web-tier environments as well.

The canonical application design, then, is to create a stateful session
EJB (or equivalent sort of JavaBean if you're not using EJBs) that
contains the actual business logic methods.  The API for these beans
should *not* include any web tier imports (i.e. don't import any class
that starts "javax.servlet") -- that would compromise reusability.

If you use this approach, an Action should basically just implement the
Adapter pattern [GoF], translating things like request parameters and
cookies (and form beans -- you don't want your business logic importing
Struts classes either) into the types of value objects or other data that
your business logic classes require.  Actions that do this kind of thing
don't need to maintain any state, so there is no reason to spend the
overhead of having more than one instance of them hanging around.


> Thanks
>
> Dirk Heydtmann
>

Craig


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Java Server Faces and Developer Life Comments

2002-08-30 Thread Joe Barefoot

No flames, but here's my .02:  
 
Sure, some M$ development tools shorten the cycle for creating GUI widgets, and 
apparently web interfaces as well according to the email below.  But here's my 
(different) experience with Visual Studio and MFC whilst creating a windows 
application a couple of years ago:  There's a finite number of ways to create any 
particular GUI, and you better make sure you know what the 'right' way is, because the 
development environment doesn't give a damn how you want to piece the GUI framework 
together, and is not at all forgiving.  Also, if you make a mistake somewhere along 
the way in your wizard or visual dev. environment, and want to make a spot manual 
change, good luck.  Do it through the interface or suffer the consequences.  Finally, 
the MFC classes' API just plain sucks, IMHO.  It may have improved lately, and I know 
.NET has better interfaces, but frankly debugging my MFC app. was a real pain in part 
because the APIs were not intuitive, and I found myself reading usage docs for the 
most trivial of function calls.  I have rarely found this to be the case with Java's 
core APIs, J2EE, or Jakarta's projects.  That experience has jaded me quite a bit 
towards M$ development, I'm afraid.
 
If you want to create a nice desktop app. quickly, sure, go with Visual Studio.  For 
enterprise development, I just don't endorse M$'s one-size-fits-all approach.  I'd 
much rather have choices. :)
 
peace,
Joe

-Original Message- 
From: Dan Cancro [mailto:[EMAIL PROTECTED]] 
Sent: Fri 8/30/2002 10:37 AM 
To: 'Struts Users Mailing List' 
Cc: 
Subject: RE: Java Server Faces and Developer Life Comments



I agree.  I'm really glad someone finally brought this up.  Microsoft
products make development a lot easier.  All religious bias aside, I think
most opensource advocates are pragmatically banking on opensource eventually
becoming as easy to use as Microsoft stuff, but without the downsides of
Microsoft software, like cost and vendor lock-in for example.  Opensource
products have just focused on functionality first, and ease of use second.
I think the ease of use part won't really take off until a victor emerges
from the functionality phase, and there are still a bunch of contenders
competing for that title.  Or maybe I'm wrong and folks just think GUI tools
for building GUI apps are for sissies.

> -Original Message-
> From: Elderclei R Reami [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 30, 2002 7:36 AM
> To: [EMAIL PROTECTED]
> Subject: Java Server Faces and Developer Life Comments
>
>
> Hi,
>
> I've just finished my first Struts project, and it's been a
> great experience on how to do and not to do things. This
> list has been of great help, as well.
>
> Anyway, I have some comments to make. Please, don't flame me,
> because it's just a view someone that needs
> to be productive.
>
> I've developed a project some time ago using .Net framework
> and Visual Studio. Wonderful experience, very very
> much productive. Creation of a web interface is just a matter
> of point and click. First impression: "that's what I
> need for mass production, short 'sell, implement, bill'
> cycles". Graphical components do keep state during calls,
> integration is event-oriented, which makes it easy like
> Visual Basic or Delphi traditional dev. Really easy to learn
> and use.
>
> About Struts: hard to use, lack of good development tools,
> but years light ahead of pure JSP development. Struts
> has all the chances of being the way to go. It just needs to
> be made easier to use, what means: GUI
> development. I've seen some options: "Eclipse+EasyStruts",
> StrutsBuilder, StrutsConsole - great tools, but none
> of them really make GUI+Struts integration easy, they are
> more like wizards, and need a lot of work yet.
>
> Even though, I'm passionate about Java, I need to recognize:
> M$ really makes UI development a lot easier than
> Sun/Java/Open Source Community. If you ever developed a VB
> app and a Swing-based Java app, knows what I
> mean. The point is: M$ approach is make it easy, our approach
> is make it generic, and conceptually beautiful. M$
> approach is "sell it, do it fast with small costs, have more profit".
>
> I haven't read the entire JSF spec, but I've seen the
> tutorial, and as far as I understand it, JSF does not make
> programming UI interface much easier than Struts

Re[2]: [VOTE] Should this list discontinue it's long,treasured herit age of "relaxed fridays"?

2002-08-30 Thread Rick Reumann



On Friday, August 30, 2002, 1:47:41 PM, Tony wrote:

HT>  Not only do excessive e-mails flood inboxes they also pollute
HT> mail archive including the search results. 

Actually that's the one thing that hurts the most I believe about
the off topic posts. Granted if you search on "validator" you
shouldn't end up with search results back on "Why Guiness is
better than Bass Ale" but you never know... plus the extra posts
in the database I'm sure make it take longer to search. As it is I
find using the Struts archives are real chore. Actually my first
choice would be have a better search tool for the archives (if
that's possible) and then have the plethora of off-topic posts ...
prefaced with an [OT] subject line of course.

OT plug: The Bat rules as far as powerful e-mail clients go. Check
it out some time. http://www.ritlabs.com/the_bat/index.html
Probably the most powerful client out there for filtering e-mails.


-- 

Rick
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [NEWBIE] STRUTS, TC and JDBC Realm

2002-08-30 Thread Eddie Bush

I don't know the exact name.  I'd look for "Security Filter" or 
"security-filter" - something along those lines.  Search the struts-user 
archive, if you can -- that *might* help (thought I abhor the 
"functionality" [if you can call it that] of the search engine).  Short 
of that helping, Max (the guy doing the filter, I believe) is around 
quite frequently.  Hopefully he will chip in.

Regards,

Eddie

Dan Payne wrote:

>Do you know which project it is on sourceforge?  Sounds like a good
>solution.  Thanks Eddie.
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: [NEWBIE] STRUTS, TC and JDBC Realm

2002-08-30 Thread Dan Payne

Found it.  Disregard request.  Thanks again.  Here's the link for anyone
else interested:

http://sourceforge.net/projects/securityfilter/

-Dan

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 30, 2002 12:25 PM
To: Struts Users Mailing List
Subject: Re: [NEWBIE] STRUTS, TC and JDBC Realm


This was discussed some time ago.  There are a couple of solutions:
*  There is a security-filter project on sourceforge to address this
*  You can setup a redirect action that is secure (thus it will
invoke the CMA) and have it setup so that your redirect action just
redirects to wherever you specified by a parmeter
(?redirectURL=/some/path/action.do for example).
You could take this a step further and make your login page
"smart" with JavaScript to set attributes/submit the form automatically
in a given circumstance.
* There are JAAS solutions.

I hear the security-filter (requires servlet spec 2.3 compliant
container -- filters didn't exist before then) project is working
nicely.  The usage of it "integrates" well too -- everything act just
like you were using CMA.  One of the big advantages is that you gain the
ability to configure/deploy your realm with your application.  Should
you want to deploy your application somewhere that they do not allow you
to add to their server configuration (which is a prerequisite for using
CMA), you're able to.

HTH,

Eddie

Dan Payne wrote:

>Trying to deploy an application with Struts 1.0.1 with Tomcat 4.0.4 using
>Tomcat's JDBC realm for user authentication. Trying to avoid an "Invalid
>direct reference to form login page." Need to make a login page available
to
>the Realm (/users/login/index.jsp) but also want to offer the opportunity
to
>login on the site's home page (/home.do).  Here's what I've got:
>
>web.xml
>---
>  
>
>   Email List Subscriptions
>   /emailLists/subscribe.do
>
>
>
>   user
>
>  
>
> 
>   FORM
>   
>   /users/login/index.jsp
>   /users/login/error.jsp
>   
> 
>



--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




stateful vs. stateless Actions / Struts design question

2002-08-30 Thread Heydtmann, Dirk

Hi,

In our company we are thinking of extending the RequestProcessor and
overriding processActionCreate(), in order to optionally (based on a custom
ActionMapping property) store Actions on the session rather than sharing
Action instances across sessions. This is to minimize impact to our existing
applications, as we are replacing our legacy MVC framework with Struts.

I suppose that the Struts design reason for keeping Actions stateless was
that (a) this is more lightweight and (b) state is normally tracked in the
ActionForm beans. Is this correct? (Unfortunately, our legacy apps do not
use form beans yet). Any thoughts, comments?

Thanks

Dirk Heydtmann




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [Core] Complementary to Action Errors

2002-08-30 Thread Eddie Bush

Using action errors is one possibility.  There is also a non-error 
message-type-thing that I'm not entirely familiar with.  You could 
conceivably use that.  Check the docs.  Hopefully someone else can flesh 
out my response, or suggest another (better) alternative.

Regards,

Eddie

Steven Leija wrote:

>Hello Struts Guru's,
>
>Currently we're developing a pretty interactive system using Struts.  In
>one situation, we have a form that where you type in a value and submit
>it.  Now for validation of this value, I use the action class to invoke
>a remote validator service.  If invalid I populate the Errors object and
>it's bounced back informing the user that the value was invalid.  
>
>Now what about the opposite?  If a user enters a correct value and I
>want to display a successful message on the original input jsp and the
>user can submit a new value in the original form.  
>
>What is a good approach for this action?  I've had coworkers just
>suggest using the Error object for displaying the successful message.
>But I feel this would go against the purpose of the errors message.  So
>I'm curious as to how others handle the same situation!
>
>Thanks for any help!
>
>Steven
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: [VOTE] Should this list discontinue it's long,treasured heritage of "relaxed fridays"?

2002-08-30 Thread Hardee, Tony

Do you feel this list should discontinue it's long heritage of "relaxed 
 fridays"?
 
 (   )  Yes
 (   )  No
 ( X )  Other

I vote to keep the topic [BEER] off this list. 

I think it is everyone's best interest to reduce the number of e-mails on
this list.  Not only do excessive e-mails flood inboxes they also pollute
mail archive including the search results. 

I like the camaraderie of this list and I appreciate that people want to
"blow of some steam" at the end of the week.  However, unless that steam is
caused by Struts :{, then I feel they should do it on another list.

I like the off topic technical related discussions in this list.  This users
on this list have a vast wealth of diverse information which they readily
share.  That is fantastic!!

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Help me shake the cobwebs out...

2002-08-30 Thread Sri Sankaran

You haven't mentioned if there is *any* form-bean associated with this action mapping. 
 You are forced to specify one only if you use the  tag.

So, since you are simply refreshing the page it worked.

Did I miss something?

Sri

-Original Message-
From: Craig Tataryn [mailto:[EMAIL PROTECTED]] 
Sent: Friday, August 30, 2002 10:30 AM
To: [EMAIL PROTECTED]
Subject: Re: Help me shake the cobwebs out...



   Anyone?
   Anyone?
   Anyone?



>From: "Craig Tataryn" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Help me shake the cobwebs out...
>Date: Thu, 29 Aug 2002 17:52:33 -0500
>
>Alrighty, really have been out of the loop for the last year w.r.t 
>Struts,
>last time I used it was pre-1.0.  However, I will be using it on a project 
>shortly and I have been brushing up.  Can you help me with this query?  I 
>have set a simple demo where I have made a loginUser Action, who's input 
>attribute is "/form/loginUser.jsp".  Inside the execute method of this 
>action, I simply return mappings.getInputForward();
>
>Fair enough typically in my controller I might have some logic to 
>figure
>out if the user was valid, and if they are I would forward them to some 
>other handler, if they were invalid I would set some error messages and 
>then do what I did above with the getInputForward() method.
>
>However, I then did this in my browser:
>
>http://localhost:8080/mywebapp/form/loginUser.jsp and it worked!  How 
>did
>the Struts controller know what form bean to create for that loginUser.jsp? 
>  Is it because I have loginUser.jsp as my input attribute of the action?  
>What if I wanted to use the same input view (jsp file) for two separate 
>handlers?  How would it decide then which form bean to create?
>
>Also, can someone give me the Coles notes version on:
>1) DnyaForms
>2) Plugins
>
>Thanks!
>
>
>Craig W. Tataryn
>Programmer/Analyst
>Compuware
>
>_
>Join the world's largest e-mail service with MSN Hotmail.
>http://www.hotmail.com
>
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail:
>
>


Craig W. Tataryn
Programmer/Analyst
Compuware

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


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: [NEWBIE] STRUTS, TC and JDBC Realm

2002-08-30 Thread Dan Payne

Do you know which project it is on sourceforge?  Sounds like a good
solution.  Thanks Eddie.

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 30, 2002 12:25 PM
To: Struts Users Mailing List
Subject: Re: [NEWBIE] STRUTS, TC and JDBC Realm


This was discussed some time ago.  There are a couple of solutions:
*  There is a security-filter project on sourceforge to address this
*  You can setup a redirect action that is secure (thus it will
invoke the CMA) and have it setup so that your redirect action just
redirects to wherever you specified by a parmeter
(?redirectURL=/some/path/action.do for example).
You could take this a step further and make your login page
"smart" with JavaScript to set attributes/submit the form automatically
in a given circumstance.
* There are JAAS solutions.

I hear the security-filter (requires servlet spec 2.3 compliant
container -- filters didn't exist before then) project is working
nicely.  The usage of it "integrates" well too -- everything act just
like you were using CMA.  One of the big advantages is that you gain the
ability to configure/deploy your realm with your application.  Should
you want to deploy your application somewhere that they do not allow you
to add to their server configuration (which is a prerequisite for using
CMA), you're able to.

HTH,

Eddie

Dan Payne wrote:

>Trying to deploy an application with Struts 1.0.1 with Tomcat 4.0.4 using
>Tomcat's JDBC realm for user authentication. Trying to avoid an "Invalid
>direct reference to form login page." Need to make a login page available
to
>the Realm (/users/login/index.jsp) but also want to offer the opportunity
to
>login on the site's home page (/home.do).  Here's what I've got:
>
>web.xml
>---
>  
>
>   Email List Subscriptions
>   /emailLists/subscribe.do
>
>
>
>   user
>
>  
>
> 
>   FORM
>   
>   /users/login/index.jsp
>   /users/login/error.jsp
>   
> 
>



--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [OT ARTICLE] JavaServer Faces on theserverside

2002-08-30 Thread Eddie Bush

Craig R. McClanahan wrote:

>On Fri, 30 Aug 2002, Eddie Bush wrote:
>
>>Date: Fri, 30 Aug 2002 11:42:58 -0500
>>From: Eddie Bush <[EMAIL PROTECTED]>
>>Subject: Re: [OT ARTICLE] JavaServer Faces on theserverside
>>
>>I'm glad that one was there.  It corrected my mental-image of you.  It's
>>always nice to have a full mental picture of the people behind things.
>>
>Hope the correction was in a *positive* direction ...
>
It was :-P  I had you figured for being "grey and chubby", from your 
talk of the punched cards and your threatinging wife (to be).  Not the 
case, I see ;-)  Hey, I got the glasses right!  (Like that was hard -- 
most of us working behind CRTs all day wear them.  I'm sure I will 
eventually have to as well [both my parents do], but, as of yet, I 
haven't had to *knocks of real-wood desk*)

>>I wonder why it takes them so long to post the interviews ...
>>
>The reasoning for doing the taping at JavaOne is pretty obvious -- that's
>pretty much the only time that everybody is in the same place ... As for
>taking so long, if you had taped, say, 20 interviews (hypothetical -- I
>have no idea how many they actually taped) and wanted to post one every
>couple of weeks, how long would it take to get to the last one?
>
>:-)
>
>Craig
>
I had suspicioned that.  It would be nice of them to let people in on 
when things happened though :-)

Eddie



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [LISTEN UP] Mailing List Usage

2002-08-30 Thread Brian Hickey

Craig,

Thank heaven there are humans out there :o)

I do what you describe - here is the snippet:























Then, in the Application class I call:

  public void initDatabase() {
  // try to get a db handle
  DataSource ds = null;
  Connection dbConn = null;

  try {
  ds = super.findDataSource(null);
   dbConn = ds.getConnection();
  } catch (Exception e) {
   return;
  }

In the end, the log shows GenericDataSource properties being overwritten
when the second datasource is processed. The end result is that the
erstwhile "default" connection is always pointing to the second datasource
and fails to load any data from the first datasource.

Perplexing, eh?

Thanks for any thought and effort !!

Brian


- Original Message -
From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, August 30, 2002 1:25 PM
Subject: Re: [LISTEN UP] Mailing List Usage


>
>
> On Fri, 30 Aug 2002, Brian Hickey wrote:
>
> >
> > To wit: "Do/did all versions of Struts support multiple datasources?"
> >
> > "If so, why can I not get ActionServlet.addDataSource to do
anything
> > other than overwrite the existing GenericDataSource properties?"
> >
>
> You have to specify the "key" property on the  element to
> define what servlet context attribute key is used to store the additional
> data sources.  Otherwise, they just override the default one.
>
> Craig
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Dynamic name to the text fields

2002-08-30 Thread Ted Husted

Don,

Don't hestitate to submit this through Bugzilla when you are ready.

-Ted.

Donald Ball wrote:

>On 8/30/2002 at 7:28 PM Anoop wrote:
>
>>Hi All,
>>
>>  I am a newbie to struts and taglibs, was trying to display text fields
>>dynamically using "html:iterator". Below is the scenario I was
>>trying out.
>>
>
>You may be in luck, I've been recently trying to learn how to do something
>similar myself.
>
>
>
>>The html snippet for the above is something like:
>>
>>  
>>  
>>
>>But I want it to be something like:
>>
>>  
>>  
>>
>>Where the values("a" & "b") for the name attribute comes from an array
>>defined in the Form Bean. What are the changes required in my jsp snippet?
>>
>>Also, if only it is possible to get an output as desired, does the
>>
>FormBean
>
>>be modified to support this. As there won't be any getter/setter for "a"
>>and
>>"b".
>>
>>Appreciate any kind of help regarding this.
>>
>
>First, google around for "map-backed ActionForms" or similar. There's some
>stuff over on jguru that might be helpful. Also, I'm trying to write
>documentation for the struts user's guide for this, so I'd appreciate your
>comments on how (un)clear the following is (apologies for the formatting,
>my mail client sucks):
>
>href="map_action_form_classes">
>  The DynaActionForm classes offer the ability to create ActionForm
>beans
> at initialization time, based on a list of properties enumerated in the
>struts
>configuration file. However, many HTML forms are generated dynamically at
>request-time. Their ActionForm beans' properties are not all known ahead of
>time, so we need a new approach.
>  Struts allows you to make one (or more) of your ActionForm's
>properties
>' values a Map instead of a traditional atomic object. You can then store
>your form's dynamic fields' data in that Map. Here is an example of a
>map-backed ActionForm class:
>
>
>
>  In its corresponding JSP page, you can access objects stored in
>the values map using a special notation: mapname(keyname). The
>parantheses in the bean property name serve to indicate that the bean
>property named mapname should be a Map, and that struts should look
>at the value stored with the key keyname in that Map to find the
>"real" property for mapname(keyname).
>  Here is a simple example:
>
>
>
>  This will call the getValue() method on FooForm with a key value
>of "foo" to find the property value. To create a form with dynamic field
>names, you might do something like this:
>
>
>
>
>
>Hope it helps, thanks in advance for any comments.
>
>- donald
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Java Server Faces and Developer Life Comments

2002-08-30 Thread Dan Cancro

I agree.  I'm really glad someone finally brought this up.  Microsoft
products make development a lot easier.  All religious bias aside, I think
most opensource advocates are pragmatically banking on opensource eventually
becoming as easy to use as Microsoft stuff, but without the downsides of
Microsoft software, like cost and vendor lock-in for example.  Opensource
products have just focused on functionality first, and ease of use second.
I think the ease of use part won't really take off until a victor emerges
from the functionality phase, and there are still a bunch of contenders
competing for that title.  Or maybe I'm wrong and folks just think GUI tools
for building GUI apps are for sissies.

> -Original Message-
> From: Elderclei R Reami [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 30, 2002 7:36 AM
> To: [EMAIL PROTECTED]
> Subject: Java Server Faces and Developer Life Comments
> 
> 
> Hi,
> 
> I've just finished my first Struts project, and it's been a 
> great experience on how to do and not to do things. This 
> list has been of great help, as well.
> 
> Anyway, I have some comments to make. Please, don't flame me, 
> because it's just a view someone that needs 
> to be productive.
> 
> I've developed a project some time ago using .Net framework 
> and Visual Studio. Wonderful experience, very very 
> much productive. Creation of a web interface is just a matter 
> of point and click. First impression: "that's what I 
> need for mass production, short 'sell, implement, bill' 
> cycles". Graphical components do keep state during calls, 
> integration is event-oriented, which makes it easy like 
> Visual Basic or Delphi traditional dev. Really easy to learn 
> and use.
> 
> About Struts: hard to use, lack of good development tools, 
> but years light ahead of pure JSP development. Struts 
> has all the chances of being the way to go. It just needs to 
> be made easier to use, what means: GUI 
> development. I've seen some options: "Eclipse+EasyStruts", 
> StrutsBuilder, StrutsConsole - great tools, but none 
> of them really make GUI+Struts integration easy, they are 
> more like wizards, and need a lot of work yet.
> 
> Even though, I'm passionate about Java, I need to recognize: 
> M$ really makes UI development a lot easier than 
> Sun/Java/Open Source Community. If you ever developed a VB 
> app and a Swing-based Java app, knows what I 
> mean. The point is: M$ approach is make it easy, our approach 
> is make it generic, and conceptually beautiful. M$ 
> approach is "sell it, do it fast with small costs, have more profit".
> 
> I haven't read the entire JSF spec, but I've seen the 
> tutorial, and as far as I understand it, JSF does not make 
> programming UI interface much easier than Struts.
> 
> Any comments? The matter is: I have a family, and want to get 
> home earlier, not 4:00AM. A lot of philosophy and 
> online psychoterapy for FRIDAY, but... :)
> 
> Cheers,
> Elderclei R Reami
> Vertis Tecnologia
> +55 11 3887-0835
> www.vertisnet.com.br
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: [VOTE] Should this list discontinue it's long,treasured heritage of "relaxed fridays"?

2002-08-30 Thread Greg.Reddin

>  Do you feel this list should discontinue it's long heritage 
> of "relaxed 
>  fridays"?
>  
>  (   )  Yes
>  ( X )  No
>  (   )  Hell No
> 

I almost voted for Pat Buchannon because of the "dis" in front of
"continue" :-)

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: [Core] Setup globals per new session

2002-08-30 Thread Jason Rosen

I assume you are using Struts (although there is no mention of it in your
post).  You could subclass the RequestProcessor and have the
processPreprocess method check your request and setup the session for you.
In Struts 1.1 the RequestProcessor intercepts all requests before they are
dished off to actions.  Using this strategy, you would have to ensure that
all Views are processed through Actions to ensure your session is always
setup before showing a view.

Alternatively, you may be able to use a ServletFilter if you are using a
Servlet 2.3 compliant container.  I don't really have much experience with
Filters (yet), but it seems this may be the sort of pre-processing they were
designed for (although, I have not quite looked into what objects and
methods you have access to from within a Filter).  Using a Filter would keep
your implementation Struts-neutral, but ties you to a newer Servlet spec for
your app container.

I hope this can at least get you started.

Jason

-Original Message-
From: Mark Kaye [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 30, 2002 2:45 AM
To: Struts Users Mailing List
Subject: RE: [Core] Setup globals per new session


> -Original Message-
> From: Mark Kaye 
>
> Thanks Danny.  I've looked into this and it seems to be 
> exactly what I'm looking for.  You're a star.

Hmm, it seems I can't use HttpSessionListener after all :(.  After
looking into it in more depth, it looks like I won't be able to get a
handle to the HttpServletRequest that actually contains the information
I need to key on i.e. the hostname, or at least the Request URI which I
can parse.  So, does anyone else have any ideas how to do this?  To
reiterate my problem briefly:  I need to be able to populate the
HttpSession with information as soon as the session is created, or at
least before the HttpServletResponse is sent back.  The information I
use in order to decide what to populate the session with is the server
hostname.  So for instance:

www.server1.com - Store "clubName" in session with value "Reds".
www.server2.com - Store "clubName" in session with value "Blues".

I need to do this so I could (for instance) welcome a visitor to
server1.com with "Welcome Reds".  I've over simplified my requirement,
but the above is the lowest common denominator.

I have considered running each host in it's own context in Tomcat.  But
that's a nightmare in terms of memory bloat.  This is how we are
currently doing it with our non Struts based app.  With just a few
contexts the server is almost maxed on memory (2Gb RAM).  I may have to
put up with redirecting all new sessions to the index page, which I
suppose is not too unreasonable, although a little unexpected for a user
who has bookmarked or clicked on a deep link - but then this can be an
issue with any web application.

Any suggestions?  Help, as always, much appreciated.

Best,

M

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: tag help ASAP

2002-08-30 Thread Tiago Nodari


 Look at the example application in the subscription.jsp and in the 
tour.htm has the explanation on how it works...

 there is a really simple way of doing it, that is the only way I 
know how to do it...

 hope it helps..,..

 tiago


At 03:28 PM 8/29/2002 -0700, you wrote:

>Hi,
>I get a result set from a query which has id and description, now I have 
>to show the it in select tag some thing like this,
>
>
>
>desc1
>
>  desc2
>
>  
>
>  I think that i can use  tag which will do my work, but i m 
> not sure how to use it, how do to define the bean, and also how to set 
> the properties, does anyone have sample code of the bean and the tag for 
> that bean options tag, it will help me alot..
>Thanx
>Ashish
>
>
>
>
>A$HI$H
>
>
>-
>Do You Yahoo!?
>Yahoo! Finance - Get real-time stock quotes

cya,

Tiago Nodari
www.nodari.org



Re: [LISTEN UP] Mailing List Usage

2002-08-30 Thread Craig R. McClanahan



On Fri, 30 Aug 2002, Brian Hickey wrote:

>
> To wit: "Do/did all versions of Struts support multiple datasources?"
>
> "If so, why can I not get ActionServlet.addDataSource to do anything
> other than overwrite the existing GenericDataSource properties?"
>

You have to specify the "key" property on the  element to
define what servlet context attribute key is used to store the additional
data sources.  Otherwise, they just override the default one.

Craig


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Same search results in multiple pages

2002-08-30 Thread Walter Fu

Thanks Joe for the suggestion!
What I did was:
1. page1.jsp:
 
2. searchResultsInc.jsp:
  link

-Original Message-
From: Joe Barefoot [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 29, 2002 4:49 PM
To: Struts Users Mailing List
Subject: RE: Same search results in multiple pages


hmmm...You could do a  in both page1.jsp and page2.jsp like
this:




...and then, I assume in searchResultsInc.jsp you wrap the Prev/Next and
sort links in a form, so you would do this there:

 


This would mean that any page including the search results page would have
to define this attribute, but I *think* this would work.


peace,
Joe

> -Original Message-
> From: Walter Fu [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 29, 2002 4:42 PM
> To: '[EMAIL PROTECTED]'
> Subject: Same search results in multiple pages
> 
> 
> - struts version:  1.0.2
> - What I want to do:
>   1. Action1 has its associated page1.jsp. page1.jsp includes
> searchResultsInc.jsp
>   2. searchResultsInc.jsp shows rows of search results. 
>   3. The field titles of the search results are links that 
> would allow the
> results to be sorted
>   4. Similar to 3, there are Prev and Next links in 
> searchResultsInc.jsp
> that allows pagination.
> 
>   5. Action2 has its associated page2.jsp. page2.jsp also includes
> searchResultsInc.jsp
> 
> Question: 
>  How do I set up searchResultsInc.jsp such that the sort 
> links (step 2) or
> the Prev/Next links (step3) will go to Action1 if 
> searchResultsInc.jsp is
> included by page1.jsp and Action2 if included by page2.jsp?
> 
> Perhaps there are better ways of doing what I am trying to do? 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: [VOTE] Should this list discontinue it's long,treasuredheritage of "relaxed fridays"?

2002-08-30 Thread Brian Holzer

Do you feel this list should discontinue it's long heritage of "relaxed 
 fridays"?
 
 ( X  )  Yes
 (  )  No

Actually Fridays I don't care about but like Craig says the rest of the week should be 
struts stuff.



Re: [NEWBIE] STRUTS, TC and JDBC Realm

2002-08-30 Thread Eddie Bush

This was discussed some time ago.  There are a couple of solutions:
*  There is a security-filter project on sourceforge to address this
*  You can setup a redirect action that is secure (thus it will 
invoke the CMA) and have it setup so that your redirect action just 
redirects to wherever you specified by a parmeter 
(?redirectURL=/some/path/action.do for example).
You could take this a step further and make your login page 
"smart" with JavaScript to set attributes/submit the form automatically 
in a given circumstance.
* There are JAAS solutions.

I hear the security-filter (requires servlet spec 2.3 compliant 
container -- filters didn't exist before then) project is working 
nicely.  The usage of it "integrates" well too -- everything act just 
like you were using CMA.  One of the big advantages is that you gain the 
ability to configure/deploy your realm with your application.  Should 
you want to deploy your application somewhere that they do not allow you 
to add to their server configuration (which is a prerequisite for using 
CMA), you're able to.

HTH,

Eddie

Dan Payne wrote:

>Trying to deploy an application with Struts 1.0.1 with Tomcat 4.0.4 using
>Tomcat's JDBC realm for user authentication. Trying to avoid an "Invalid
>direct reference to form login page." Need to make a login page available to
>the Realm (/users/login/index.jsp) but also want to offer the opportunity to
>login on the site's home page (/home.do).  Here's what I've got:
>
>web.xml
>---
>  
>
>   Email List Subscriptions
>   /emailLists/subscribe.do
>
>
>
>   user
>
>  
>
> 
>   FORM
>   
>   /users/login/index.jsp
>   /users/login/error.jsp
>   
> 
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [OT ARTICLE] JavaServer Faces on theserverside

2002-08-30 Thread Craig R. McClanahan



On Fri, 30 Aug 2002, Eddie Bush wrote:

> Date: Fri, 30 Aug 2002 11:42:58 -0500
> From: Eddie Bush <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Re: [OT ARTICLE] JavaServer Faces on theserverside
>
> I'm glad that one was there.  It corrected my mental-image of you.  It's
> always nice to have a full mental picture of the people behind things.
>

Hope the correction was in a *positive* direction ...

> I wonder why it takes them so long to post the interviews ...
>

The reasoning for doing the taping at JavaOne is pretty obvious -- that's
pretty much the only time that everybody is in the same place ... As for
taking so long, if you had taped, say, 20 interviews (hypothetical -- I
have no idea how many they actually taped) and wanted to post one every
couple of weeks, how long would it take to get to the last one?

:-)

Craig


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




No cache custom tag not working

2002-08-30 Thread Schmidt, Carl

I have created a no cache custom tag to be inserted on various page.  Here
is the specific doStartTag method:
public int doStartTag() {
HttpServletResponse response = (HttpServletResponse)
pageContext.getResponse();
response.setHeader("Cache-Control", "no-cache");
response.setHeader("Pragma", "No-cache");
response.setDateHeader("Expires", 0);

return (SKIP_BODY);
}
IE will continue to cache the .jsp

However, if I place the same set of response.setX directly into the .jsp, IE
will _not_ cache the page.  Why is the tag not working correctly?

Carl



Re: action mapping question

2002-08-30 Thread Ted Husted

The html:form tag expects there to be a ActionForm bean associated with 
the form. If you are using a button-only form, you still need to provide 
an ActionForm bean, even if it is an empty implementation. I generally 
keep one of these in my Struts toolkit to use throughout an application. 
Or, you could just use whatever bean is handy.

You don't need a bean with an Action, but you do need one to appease the 
html:form tag.

-Ted.

>
>
>then on search.jsp i have 2 forms, one to search.do and one to logoff.do
>
>here's my action mapping for logoff:
>
>type="struts1.action.LogoffAction"
>  name="logoffForm"
>  input="/logon.do"
>  scope="request">
>
>
>
>
>first of all, i dont want to use a bean for the logoff action but it
>complains otherwise, so for now i've used a form with a attribute dummy
>with get/set/reset/validate  methodsis there a way not to have to do
>this? if i dont have a form, I get an exception complaining the form
>bean is null.
>
>second, what should 'input' be? if i leave it as "/logon.do" then it
>works, but also if i put it as "/tapssearch.jsp" it works..so what
>should it be? and how can i set action-mapping to accept input from any
>page, seeing as for example i'll want to be able to log-off from any one
>of the pages(bar the logon one of course!) So that i dont have to write
>an action mapping for every page that has a logoff form
>
>cheers
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [LISTEN UP] Mailing List Usage

2002-08-30 Thread Eddie Bush

LOL - my problem is stupidity.  I didn't notice you were responding to 
Craig.

Galbreath, Mark wrote:

>Aye aye, captain!  And if thar be any violations, prepare to be keel-hauled
>and I'll have yer liver fer me dinner, argh!
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




[NEWBIE] STRUTS, TC and JDBC Realm

2002-08-30 Thread Dan Payne

Trying to deploy an application with Struts 1.0.1 with Tomcat 4.0.4 using
Tomcat's JDBC realm for user authentication. Trying to avoid an "Invalid
direct reference to form login page." Need to make a login page available to
the Realm (/users/login/index.jsp) but also want to offer the opportunity to
login on the site's home page (/home.do).  Here's what I've got:

web.xml
---
  

Email List Subscriptions
/emailLists/subscribe.do



user

  

 
   FORM
   
/users/login/index.jsp
/users/login/error.jsp
   
 


Now under this configuration, if a user clicks the link
/emailLists/subscribe.do and they are not logged in, Tomcat will redirect
them to my login page /users/login/index.jsp and upon successful
authentication Tomcat will redirect again back to /emailLists/subscribe.do.
Great!  However, if the user types their username and password on my home
page (/home.do) and then clicks the submit button, they will not be logged
in b/c the Realm requires a destination for the user (like
/emailLists/subscribe.do) or put another way, the Realm requires you try to
access a restricted page before logging in. I want to login but without
having to access a restricted page before being prompted to (namely want to
login on home page). The login form on the home page has its action set to
action="j_security_check".  Obviously this is incorrect.  Any suggestions?

Additionaly, does anyone know how Tomcat is managing these page references
(where did you come from so I know where you go if login is correct)?  Is
there any way I can set this at runtime?


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: action mapping question

2002-08-30 Thread Bartley, Chris P

You shouldn't have to have a form bean.  Here's the global forward I use for
the logout action:



Here's my action mapping for my logout action (Struts 1.0.2, with Tiles):





The action class is short n' sweet (my abstract ActionSupport class
overrides Action's perform() method and then calls the abstract execute()
method):

public class LogoutAction extends ActionSupport {
 public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) throws
IOException, ServletException {
HttpSession session = request.getSession();
if (session != null) {
session.removeAttribute(USER_OBJECT_SESSION_ATTRIBUTE_KEY);
session.invalidate();
}
return mapping.findForward(SUCCESS);
}
}

So, then, all you need to do to let the user logout is provide a simple link
like this:

   

That should do it!

Hope this helps,

chris



> -Original Message-
> From: Darren McGuinness [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 30, 2002 10:17 AM
> To: [EMAIL PROTECTED]
> Subject: action mapping question
> 
> 
> Hi,
> 
> Having a few problems getting my application working 
> properly. Basically
> I've got a logon.jsp page which posts to logon.do action, which then
> validates and if successfull outputs search.jsp (shows in the 
> browser as
> /logon.do ).
> 
> then on search.jsp i have 2 forms, one to search.do and one 
> to logoff.do
> 
> here's my action mapping for logoff:
> 
>  type="struts1.action.LogoffAction"
>   name="logoffForm"
>   input="/logon.do"
>   scope="request">
> 
> 
> 
> 
> first of all, i dont want to use a bean for the logoff action but it
> complains otherwise, so for now i've used a form with a 
> attribute dummy
> with get/set/reset/validate  methodsis there a way not to 
> have to do
> this? if i dont have a form, I get an exception complaining the form
> bean is null.
> 
> second, what should 'input' be? if i leave it as "/logon.do" then it
> works, but also if i put it as "/tapssearch.jsp" it works..so what
> should it be? and how can i set action-mapping to accept 
> input from any
> page, seeing as for example i'll want to be able to log-off 
> from any one
> of the pages(bar the logon one of course!) So that i dont 
> have to write
> an action mapping for every page that has a logoff form
> 
> cheers
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [LISTEN UP] Mailing List Usage

2002-08-30 Thread Brian Hickey

Maybe I should bracket [NTTL] for New To This List. I have no idea of
"Subject" protocol and posted a question about multiple data sources
earlier. Either I posted something entirely lame or I posted something folks
have to think about - alot.

If this were an EJB list I would post an in depth question on determining
isolation levels, but it isn't. So, I will rephrase the original question in
hopes that I can gain some insight.

To wit: "Do/did all versions of Struts support multiple datasources?"

"If so, why can I not get ActionServlet.addDataSource to do anything
other than overwrite the existing GenericDataSource properties?"

As for OT posts, I am neutral. If I can both give and receive assistance
with Struts - it is working fine.

Thanks

Brian


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [LISTEN UP] Mailing List Usage

2002-08-30 Thread Michael Delamere

I agree entirely!

This list is enjoyable because it is quite humerous now and then and we all
agree that the Friday off-topics can be quite a laugh!

I also agree with Craig though that a healthy balance should be maintained.
The last couple of days were quite extreme when it comes to off-topic (and
silly off-topic) messages.

Regards,

Michael


- Original Message -
From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, August 30, 2002 6:34 PM
Subject: [LISTEN UP] Mailing List Usage


> Even though it's Friday, I feel compelled to make a comment about "Friday
> mail" here.  Please listen.
>
> As many of you have noted, STRUTS-USER has a slightly different feel than
> a lot of user-support-type mailing lists -- with a little humor and off
> topic discussions of interesting related stuff (like XP last week)
> creeping in.  Partly, this feel was a deliberate attempt on my part to
> make the Struts community a little more human-feeling (and in particular,
> as a reaction to some of the open source developers who are total jerks
> when dealing with "mere users" :-).
>
> Over the last two years, the balance has been pretty good overall -- new
> and old users get help, people are treated (for the most part) nicely, and
> we get to have a little fun now and again.
>
> Over the last week, the balance has tipped -- when the volume of OT
> messages in the last two days is substantially higher than the number of
> on topic questions and answers, you know there is a problem.
>
> I'm not interested in squashing the fun.  I am interested in going back to
> the balance we had before -- mostly on topic, a few human interest topics
> (on Fridays mostly), and useful interaction on the topic of the frameork.
> It doesn't take a lot of abuse of ~1800 people's mailboxes to destroy the
> sense of community that we've worked hard to build.
>
> OK guys -- can we go back to Struts now?
>
> Craig McClanahan
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: [LISTEN UP] Mailing List Usage

2002-08-30 Thread Trieu, Danny

Despite how humorous the [OT] subject are it end up in my trash before I can
remember it.  I am glad you brough this up, and hopefully it will ends here
so I don't don't have to click on the delete button so many time during the
day.  

danny

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] 
Sent: Friday, August 30, 2002 9:35 AM
To: Struts Users Mailing List
Subject: [LISTEN UP] Mailing List Usage


Even though it's Friday, I feel compelled to make a comment about "Friday
mail" here.  Please listen.

As many of you have noted, STRUTS-USER has a slightly different feel than a
lot of user-support-type mailing lists -- with a little humor and off topic
discussions of interesting related stuff (like XP last week) creeping in.
Partly, this feel was a deliberate attempt on my part to make the Struts
community a little more human-feeling (and in particular, as a reaction to
some of the open source developers who are total jerks when dealing with
"mere users" :-).

Over the last two years, the balance has been pretty good overall -- new and
old users get help, people are treated (for the most part) nicely, and we
get to have a little fun now and again.

Over the last week, the balance has tipped -- when the volume of OT messages
in the last two days is substantially higher than the number of on topic
questions and answers, you know there is a problem.

I'm not interested in squashing the fun.  I am interested in going back to
the balance we had before -- mostly on topic, a few human interest topics
(on Fridays mostly), and useful interaction on the topic of the frameork. It
doesn't take a lot of abuse of ~1800 people's mailboxes to destroy the sense
of community that we've worked hard to build.

OK guys -- can we go back to Struts now?

Craig McClanahan



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [VALIDATOR] Bad Error Message when Validating a Range

2002-08-30 Thread Ted Husted

It looks right to me, David (and welcome back, BTW).

Maybe we need to add a test case to the validator sample app to be sure 
everything is still working as advertised.

Are you using beta 2 or what?

-Ted.

David Geary wrote:

> Sorry to repost this, but it got buried in a bunch of biere messages 
> yesterday...
>
> I'm trying to validate a range using the validator. I've got this in 
> validation.xml...
>
> 
>   
>   
>   
>   
>   
>   
>   
>   min
>   5
>   
>   
>   max
>   10
>   
>   
>   
>   
> 
>
> ...and this is how the field is defined in the form:
>
> 
>   
>   
>   
>   
>   
>   
> 
>
> The validation works: If I enter a value outside of the range, I get 
> an error, and if not, I don't. But it's the error message that's the 
> problem:
>
> Number is not in the range null through null.
>
> For some reason, even though the validator uses the correct min and 
> max for validation, the error message doesn't reflect that. I've got 
> the field display name and error message defined in my resource 
> bundle, like this:
>
> login.number.displayName=Number
> errors.range={0} is not in the range {1} through {2}.
>
> Does anyone know what's wrong?
>
> Thanks,
>
>
> david
>
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [LISTEN UP] Mailing List Usage

2002-08-30 Thread Eddie Bush

Galbraith, Paul wrote:

>>My question then is, based off the current results:  "Oh?  Why didn't 
>>they vote to do away with this behavior then?"
>>
>Maybe because a lot of people just witnessed several people here come down like a ton 
>of bricks on the last guy who said he didn't like all the off-topic posts.
>
>And if you're counting, my vote is to tone down the number of off-topic posts.  I 
>don't mind it, in general.  However, as Craig pointed out, it's gotten completely off 
>the scale.  It *is* annoying trolling through hundreds of off-topic posts to find the 
>meat, as I just had to do.
>
>Paul
>
Yes, it has gotten way off-scale.  The vote isn't an inquisition though. 
 If you feel more comfortable sending your vote directly to me, do so -- 
I promise not to flame you, and I'd love to have an accurate picuture. 
 As I said, if most people think it should be done away with, then I'm 
all for it - but I would miss it :-(

Don't let "the list" be a reason to not vote - send it directly to me if 
you feel you must.

Regards,

Eddie



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: [Newbie] Another silly question

2002-08-30 Thread JEWeaver


The first parameter of your addErrors method should be either
ActionErrors.GLOBAL_ERROR (if the error is not associated with a specific
form property) or the name of the form property the error is associated
with (say "socialSecurityNumber").  It sounds like the error you are trying
to create is a global one, so you should probably set it to
ActionErrors.GLOBAL_ERROR.

The  tag should be capable of displaying global errors, but
someone else may have to address that - we created our own custom tags to
display error messages rather than using the ones that came with Struts
taglib.

Jim Weaver
Software Developer - ThoughtWorks
[EMAIL PROTECTED]


   
  
  "Mark Kaye"  
  
  <[EMAIL PROTECTED]To:   "Struts Users Mailing List" 
<[EMAIL PROTECTED]>
  >cc: 
  
   Subject:  RE: [Newbie] Another silly 
question 
  08/30/2002 11:45 
  
  AM   
  
  Please respond to
  
  "Struts Users
  
  Mailing List"
  
   
  
   
  




> -Original Message-
> From: Mark Kaye
>
> Can I use ActionErrors in my actions?  Rather than in my
> ActionForms?  I have tried but it causes an error.

Actually, I've just tried again and it's still not working but doesn't
now cause an error. Hmm.

What's wrong with this code in my Action?

ActionErrors errors = new ActionErrors();
errors.add("Failure",new ActionError("error.login.id.failure"));

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







--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: [Newbie] Another silly question

2002-08-30 Thread Mark Kaye

> -Original Message-
> From: Eddie Bush [mailto:[EMAIL PROTECTED]] 
> 
> The action form should only be enforcing semantic constraints:
> * The data is well-formed
> * The data is a number/whatever
> *  Is the format of the data congruent with what I expect (ie 
> mm/dd/ for a date, etc)
> 
> The action should be responsible for actually calling business logic:
> *  Is this a real user?
> *  Is their account still valid?

Agreed, and this is how my code currently is.  i.e. ActionForm just
checks for sensible entries in the two fields.  i.e. is the id of the
right length (all id's are 12 digits long), is the password there at
all, etc, etc.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: [LISTEN UP] Mailing List Usage

2002-08-30 Thread Galbraith, Paul

> My question then is, based off the current results:  "Oh?  Why didn't 
> they vote to do away with this behavior then?"

Maybe because a lot of people just witnessed several people here come down like a ton 
of bricks on the last guy who said he didn't like all the off-topic posts.

And if you're counting, my vote is to tone down the number of off-topic posts.  I 
don't mind it, in general.  However, as Craig pointed out, it's gotten completely off 
the scale.  It *is* annoying trolling through hundreds of off-topic posts to find the 
meat, as I just had to do.

Paul

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [Newbie] Another silly question

2002-08-30 Thread Eddie Bush

The action form should only be enforcing semantic constraints:
* The data is well-formed
* The data is a number/whatever
*  Is the format of the data congruent with what I expect (ie 
mm/dd/ for a date, etc)

The action should be responsible for actually calling business logic:
*  Is this a real user?
*  Is their account still valid?

Mark Kaye wrote:

>Can I use ActionErrors in my actions?  Rather than in my ActionForms?  I
>have tried but it causes an error.  I want to be able to do some server
>side validation beyond what I do in the ActionForm.  It would make sense
>to have this in the action - I think.  Or am I wrong?  Basically I am
>authenticating a user and currently the ActionForm does validation on
>the userid and password but only that.  Should I also be validating the
>user in the database here (I have a business object that does the actual
>user validation and use a value bean to pass info between)?  Or should I
>do that in the Action itself?
>
>Suggestions appreciated.
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: [Newbie] Another silly question

2002-08-30 Thread Mark Kaye

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
>
> ActionErrors errors = new ActionErrors(); 
> errors.add(propertyString, new ActionError(propertyFileKeyString));
> saveErrors(request, errors);

There yah go!  Thanks a million.

Cheers,

M

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [Newbie] Another silly question

2002-08-30 Thread JEWeaver



Yes, you can create and place errors on the request in actions if you feel
appropriate:

ActionErrors errors = new ActionErrors();
errors.add(propertyString, new ActionError(propertyFileKeyString));
saveErrors(request, errors);

Check the struts javadoc for an explanation of the ActionErrors class add
method, the Action class saveErrors method, and the constructors for the
ActionError class.

Jim


Jim Weaver
Software Developer - ThoughtWorks
[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: [Newbie] Another silly question

2002-08-30 Thread Mark Kaye

> -Original Message-
> From: Mark Kaye 
> 
> Can I use ActionErrors in my actions?  Rather than in my 
> ActionForms?  I have tried but it causes an error.

Actually, I've just tried again and it's still not working but doesn't
now cause an error. Hmm.

What's wrong with this code in my Action?

ActionErrors errors = new ActionErrors();
errors.add("Failure",new ActionError("error.login.id.failure"));

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [LISTEN UP] Mailing List Usage

2002-08-30 Thread Eddie Bush

You lost me, bud :-)  LOL

I plan to get an accurate snapshot of everyones opinion and immortalize 
it.  It's very important to me that it accurately reflects peoples' 
opinions, as that gives us a leg to stand on when someone says:  "There 
are hundreds of people that don't like this!"

My question then is, based off the current results:  "Oh?  Why didn't 
they vote to do away with this behavior then?"

By contrast, if the majority of people *do* feel it's bothersome, then I 
say it should be done away with -- though I personally would sorely miss it.

Galbreath, Mark wrote:

>Aye aye, captain!  And if thar be any violations, prepare to be keel-hauled
>and I'll have yer liver fer me dinner, argh!
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




[ANNOUNCE] Struts Console v2.1.1

2002-08-30 Thread James Holmes

Struts Console version 2.1.1 is now available.

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

Download Now:
http://www.jamesholmes.com/struts/struts-console-2.1.1.zip
  -- OR --
http://www.jamesholmes.com/struts/struts-console-2.1.1.tar.gz

Struts Console is FREE software.

This release is a bug fix release and does not
introduce any new functionality.

Changes with Struts Console v2.1.1

  *) Fixed bug where "role" attributes weren't being
 loaded on the Definition panel.

  *) Fixed bug where "initial" attribute of the
  element couldn't be changed once
 it had been set.


Thanks,

-james
[EMAIL PROTECTED]
http://www.jamesholmes.com/struts/

__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [OT ARTICLE] JavaServer Faces on theserverside

2002-08-30 Thread Eddie Bush

I'm glad that one was there.  It corrected my mental-image of you.  It's 
always nice to have a full mental picture of the people behind things.

I wonder why it takes them so long to post the interviews ...

Craig R. McClanahan wrote:

>On Fri, 30 Aug 2002, Emmanuel Boudrant wrote:
>
>>Date: Fri, 30 Aug 2002 10:28:03 +0200 (CEST)
>>From: Emmanuel Boudrant <[EMAIL PROTECTED]>
>>Subject: Re: [OT ARTICLE] JavaServer Faces on theserverside
>>
>>You answer to my question, How manywho is the spec leader ? ;) What's happen to 
>theserverside, the
>>interview was added on August 29 !
>>
>But that interview was *taped* in March (at JavaOne), before the
>transition.  I suspect that nearly all the "hard core" series of
>interviews were taped then.
>
>My taped interview the previous year didn't show up on TSS for nine
>months.  Fortunately, none of the stuff I had talked about was totally out
>of date, but that's the risk of delaying them that long.
>
>>Thx,
>>-Emmanuel
>>
>Craig
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: [LISTEN UP] Mailing List Usage

2002-08-30 Thread Galbreath, Mark

Aye aye, captain!  And if thar be any violations, prepare to be keel-hauled
and I'll have yer liver fer me dinner, argh!

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 30, 2002 12:35 PM
To: Struts Users Mailing List
Subject: [LISTEN UP] Mailing List Usage


Even though it's Friday, I feel compelled to make a comment about "Friday
mail" here.  Please listen.

As many of you have noted, STRUTS-USER has a slightly different feel than
a lot of user-support-type mailing lists -- with a little humor and off
topic discussions of interesting related stuff (like XP last week)
creeping in.  Partly, this feel was a deliberate attempt on my part to
make the Struts community a little more human-feeling (and in particular,
as a reaction to some of the open source developers who are total jerks
when dealing with "mere users" :-).

Over the last two years, the balance has been pretty good overall -- new
and old users get help, people are treated (for the most part) nicely, and
we get to have a little fun now and again.

Over the last week, the balance has tipped -- when the volume of OT
messages in the last two days is substantially higher than the number of
on topic questions and answers, you know there is a problem.

I'm not interested in squashing the fun.  I am interested in going back to
the balance we had before -- mostly on topic, a few human interest topics
(on Fridays mostly), and useful interaction on the topic of the frameork.
It doesn't take a lot of abuse of ~1800 people's mailboxes to destroy the
sense of community that we've worked hard to build.

OK guys -- can we go back to Struts now?

Craig McClanahan



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: [Taglib] Testing for null value using

2002-08-30 Thread Sri Sankaran

I going to have to stick with Struts tags for now.  JSTL requires Tomcat 4.0.4 or 
above and I have to deploy to Tomcat 3.x  

Sri

P.S. 
I know I am developing on 4.0.2 -- I amn't doing anything new/funky and am testing to 
make sure it works on the target environment.

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]] 
Sent: Friday, August 30, 2002 11:54 AM
To: Struts Users Mailing List
Subject: Re: [Taglib] Testing for null value using 


Yep - that would be more along the lines of 

To be honest, the "best solution" for things of this nature (since we do 
have the JSTL now) would be to use the JSTL (Java Standard Tag Library - 
fetch it from the taglibs project).  My understanding is the Struts will 
eventually migrate toward using this, so being proactive could save your 
retooling later.

Regards,

Eddie

Galbreath, Mark wrote:

>You don't specify a value with , you specify a property.  
>If it is anything except null (or empty string), it returns true.
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: is it a bug?

2002-08-30 Thread Trieu, Danny

I think there is something wrong with Weblogic.  I didn't have the problem
you described, but my was not able to use the struts1.1b2 on weblogic7.0 at
all.  It keep complain about the servlet is not executable by the container
because of some methods not implemented  And it works fine on tomcat4.0

-Original Message-
From: congzhebin [mailto:[EMAIL PROTECTED]] 
Sent: Friday, August 30, 2002 9:18 AM
To: Struts Users Mailing List
Subject: is it a bug?


hello
idownload the struts1.1-b2 tonight to explore the new feature of the
struts.but when i try to deploy the samples to weblogic6.1sp2,i
failed.following is the exception when i deploy the struts-example.war.but i
can deploy them to tomcat4.0,i don't know if it is a bug?how can i solve the
problem to make the struts1.1-b2 can work with weblogic?



java.lang.NullPointerException
at
weblogic.management.internal.MBeanProxy.getAttribute(MBeanProxy.java:253)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:187)
at $Proxy8.isDeployed(Unknown Source)
at
weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager
.java:744)
at
weblogic.management.mbeans.custom.ApplicationManager.update(ApplicationManag
er.java:206)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
.java:636)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:6
21)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:359)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy5.update(Unknown Source)
at
weblogic.management.console.webapp._domain.__upload_app._jspService(__upload
_app.java:149)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:265)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
l.java:241)
at
weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:112)
at
weblogic.management.console.actions.ForwardAction.perform(ForwardAction.java
:35)
at
weblogic.management.console.actions.internal.ActionServlet.doAction(ActionSe
rvlet.java:171)
at
weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServ
let.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:265)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:2495)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2204)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

  
Current Date
Fri Aug 30 23:40:09 CST 2002

Console Release Build


Console Build


Server Release Build
6.1.2.0

Server Build
WebLogic Server 6.1 SP2  12/18/2001 11:13:46 #154529 

All Server Product Versions
WebLogic Server 6.1 SP2  12/18/2001 11:13:46 #154529 
WebLogic XML Module 6.1 SP2  12/18/2001 11:28:02 #154529 


Server System Properties
awt.toolkit = sun.awt.windows.WToolkit bea.home = E:\\bea file.encoding =
GBK file.encoding.pkg = sun.io file.separator = \ java.awt.fonts =
java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment java.awt.printerjob
= sun.awt.windows.WPrinterJob java.class.path =
E:\bea\wlserver6.1\lib\cr_wls60f.jar;.;.\lib\weblogic_sp.jar;.\lib\weblogic.
jar java.class.version = 47.0 java.ext.dirs = E:\bea\jdk131\jre\lib\ext
java.home = E:\bea\jdk131\jre java.io.tmpdir = C:\tmp\ java.library.path =
E:\bea\jdk131\bin;.;E:\WINNT\System32;E:\WINNT;.\bin;g:\oracle\ora90\bin;E:\
JBuilder7\jdk1.3.1\bin;e:\oracle\ora90\bin;e:\oracle\ora90\Apache\Perl\5.005
03\bin\mswin32-x86;E:\Program
Files\Oracle\jre\1.1.8\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\S
ystem32\Wbem;E:\BorlandEnterpriseServer\bin;E:\Program Files\Microsoft SQL
Server\80\Tools\BINN;E:\Program Files\Windows
NT\Accessories;E:\j2sdkee1.3.1\bin;c:\BorlandEnterpriseServer\bin;g:\oracle\
ora90\jdk\bin java.naming.factory.initial =
weblogic.jndi.WLInitialContextFactory java.naming.factory.url.pkgs =
weblogic.jndi.factories java.protocol.handler.pkgs =
weblogic.utils|weblogic.utils|weblogic.

[Newbie] Another silly question

2002-08-30 Thread Mark Kaye

Can I use ActionErrors in my actions?  Rather than in my ActionForms?  I
have tried but it causes an error.  I want to be able to do some server
side validation beyond what I do in the ActionForm.  It would make sense
to have this in the action - I think.  Or am I wrong?  Basically I am
authenticating a user and currently the ActionForm does validation on
the userid and password but only that.  Should I also be validating the
user in the database here (I have a business object that does the actual
user validation and use a value bean to pass info between)?  Or should I
do that in the Action itself?

Suggestions appreciated.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




[LISTEN UP] Mailing List Usage

2002-08-30 Thread Craig R. McClanahan

Even though it's Friday, I feel compelled to make a comment about "Friday
mail" here.  Please listen.

As many of you have noted, STRUTS-USER has a slightly different feel than
a lot of user-support-type mailing lists -- with a little humor and off
topic discussions of interesting related stuff (like XP last week)
creeping in.  Partly, this feel was a deliberate attempt on my part to
make the Struts community a little more human-feeling (and in particular,
as a reaction to some of the open source developers who are total jerks
when dealing with "mere users" :-).

Over the last two years, the balance has been pretty good overall -- new
and old users get help, people are treated (for the most part) nicely, and
we get to have a little fun now and again.

Over the last week, the balance has tipped -- when the volume of OT
messages in the last two days is substantially higher than the number of
on topic questions and answers, you know there is a problem.

I'm not interested in squashing the fun.  I am interested in going back to
the balance we had before -- mostly on topic, a few human interest topics
(on Fridays mostly), and useful interaction on the topic of the frameork.
It doesn't take a lot of abuse of ~1800 people's mailboxes to destroy the
sense of community that we've worked hard to build.

OK guys -- can we go back to Struts now?

Craig McClanahan



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [OT ARTICLE] JavaServer Faces on theserverside

2002-08-30 Thread Craig R. McClanahan



On Fri, 30 Aug 2002, Emmanuel Boudrant wrote:

> Date: Fri, 30 Aug 2002 10:28:03 +0200 (CEST)
> From: Emmanuel Boudrant <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Re: [OT ARTICLE] JavaServer Faces on theserverside
>
> You answer to my question, How manywho is the spec leader ? ;) What's happen to 
>theserverside, the
> interview was added on August 29 !
>

But that interview was *taped* in March (at JavaOne), before the
transition.  I suspect that nearly all the "hard core" series of
interviews were taped then.

My taped interview the previous year didn't show up on TSS for nine
months.  Fortunately, none of the stuff I had talked about was totally out
of date, but that's the risk of delaying them that long.

> Thx,
> -Emmanuel
>

Craig


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: action mapping question

2002-08-30 Thread Trieu, Danny

Hmm This sound like it is the way 1.0 of struts was implemented.  I
haven't use 1.0 for quite sometime so I don't remember.  But, there is
something you can do.  You can set the attribute validate=false, so that the
controller don't have to call the validate method on your from bean.  You
Don't have to implement the validate method on your from bean, but if you do
return null or empty actionErrors.  As for input, I don't think you need to
provide one.

Sorry if I didn't help you in anyway:)

Danny

Ps. Move to 1.1

-Original Message-
From: Darren McGuinness [mailto:[EMAIL PROTECTED]] 
Sent: Friday, August 30, 2002 9:24 AM
To: Struts Users Mailing List
Subject: Re: action mapping question


1) I dont need a logoff form, but if i dont have one then i get errors of
type: form bean null.
2) 1.0

"Trieu, Danny" wrote:

> 1) why would you need a logoff form?
> 2) what version of struts are you using?
>
> You don't have to have a form bean declare for an action mapping.  The 
> reason it throw the exception Because you have the input attribute 
> setting.  With this setting the controller makes assumsion that your 
> mapping has a from bean associate to it and make call to the validate 
> methods.  I guess the solution is not to provide from bean mapping and 
> input mapping for your action.
>
> danny
>
> -Original Message-
> From: Darren McGuinness [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 30, 2002 8:17 AM
> To: [EMAIL PROTECTED]
> Subject: action mapping question
>
> Hi,
>
> Having a few problems getting my application working properly. 
> Basically I've got a logon.jsp page which posts to logon.do action, 
> which then validates and if successfull outputs search.jsp (shows in 
> the browser as /logon.do ).
>
> then on search.jsp i have 2 forms, one to search.do and one to 
> logoff.do
>
> here's my action mapping for logoff:
>
>  type="struts1.action.LogoffAction"
>   name="logoffForm"
>   input="/logon.do"
>   scope="request">
> 
> 
> 
>
> first of all, i dont want to use a bean for the logoff action but it 
> complains otherwise, so for now i've used a form with a attribute 
> dummy with get/set/reset/validate  methodsis there a way not to 
> have to do this? if i dont have a form, I get an exception complaining 
> the form bean is null.
>
> second, what should 'input' be? if i leave it as "/logon.do" then it 
> works, but also if i put it as "/tapssearch.jsp" it works..so what 
> should it be? and how can i set action-mapping to accept input from 
> any page, seeing as for example i'll want to be able to log-off from 
> any one of the pages(bar the logon one of course!) So that i dont have 
> to write an action mapping for every page that has a logoff form
>
> cheers
>
> --
> To unsubscribe, e-mail: 
> 
> For additional commands, e-mail: 
> 
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail: 
> 


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: [VOTE] Should this list discontinue it's long,treasured heritage of "relaxed fridays"?

2002-08-30 Thread Brandon Goodin

 Do you feel this list should discontinue it's long heritage of "relaxed 
 fridays"?
 
 (   )  Yes
 ( X )  No
 (   )  Hell No

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


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: [VOTE] Poll closes Saturday, August 31, 2002 at 5:00 p.m. CST

2002-08-30 Thread Day, Michael-IBM/TT

(X) YES GET RID OF THE BULLSHIT.

=)

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 30, 2002 12:28 PM
To: Struts Users List
Subject: [VOTE] Poll closes Saturday, August 31, 2002 at 5:00 p.m. CST


I should have posted that in the original message.  Please accept my 
apology for such short-sightedness.  Again, for those of you that 
(possibly) can't see the full subject because of it's length:

Poll closes Saturday, August 31, 2002 at 5:00 p.m. CST

I will then go through and tally the results and post (either Saturday, 
Sunday - it could conceivably slip to Monday though :-P) the results. 
 Please do cast your vote, even if you are in the minority, as it will 
help to more accurately determine what the ratio is.  I am not 
responsible for messages that I do not receive by 5:00 p.m. CST 
Saturday, August 31, 2002.  At that time, I will do the following:

*  Copy all messages to a seperate sub-folder I have already created.
*  Delete all non-relevant postings (people just stating opinions, 
duplicate votes [last one sent is the one that counts]) etc.
*  Go through and enter all responses into a small application I will 
whip up to enter the votes.
(so I'm sure I don't have duplicates).
*  Build a report to submit to the list.

PLEASE let your opinion be known.

Regards,

Eddie



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




is it a bug?

2002-08-30 Thread congzhebin

hello
idownload the struts1.1-b2 tonight to explore the new feature of the struts.but when i 
try to deploy the samples to weblogic6.1sp2,i failed.following is the exception when i 
deploy the struts-example.war.but i can deploy them to tomcat4.0,i don't know if it is 
a bug?how can i solve the problem to make the struts1.1-b2 can work with weblogic?



java.lang.NullPointerException
at weblogic.management.internal.MBeanProxy.getAttribute(MBeanProxy.java:253)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:187)
at $Proxy8.isDeployed(Unknown Source)
at 
weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager.java:744)
at 
weblogic.management.mbeans.custom.ApplicationManager.update(ApplicationManager.java:206)

at java.lang.reflect.Method.invoke(Native Method)
at 
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
at 
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
at 
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359)

at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy5.update(Unknown Source)
at 
weblogic.management.console.webapp._domain.__upload_app._jspService(__upload_app.java:149)

at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at 
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:241)

at weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:112)
at 
weblogic.management.console.actions.ForwardAction.perform(ForwardAction.java:35)
at 
weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:171)

at 
weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at 
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)

at 
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

  
Current Date
Fri Aug 30 23:40:09 CST 2002

Console Release Build


Console Build


Server Release Build
6.1.2.0

Server Build
WebLogic Server 6.1 SP2  12/18/2001 11:13:46 #154529 

All Server Product Versions
WebLogic Server 6.1 SP2  12/18/2001 11:13:46 #154529 
WebLogic XML Module 6.1 SP2  12/18/2001 11:28:02 #154529 


Server System Properties
awt.toolkit = sun.awt.windows.WToolkit bea.home = E:\\bea file.encoding = GBK 
file.encoding.pkg = sun.io file.separator = \ java.awt.fonts =  java.awt.graphicsenv = 
sun.awt.Win32GraphicsEnvironment java.awt.printerjob = sun.awt.windows.WPrinterJob 
java.class.path = 
E:\bea\wlserver6.1\lib\cr_wls60f.jar;.;.\lib\weblogic_sp.jar;.\lib\weblogic.jar 
java.class.version = 47.0 java.ext.dirs = E:\bea\jdk131\jre\lib\ext java.home = 
E:\bea\jdk131\jre java.io.tmpdir = C:\tmp\ java.library.path = 
E:\bea\jdk131\bin;.;E:\WINNT\System32;E:\WINNT;.\bin;g:\oracle\ora90\bin;E:\JBuilder7\jdk1.3.1\bin;e:\oracle\ora90\bin;e:\oracle\ora90\Apache\Perl\5.00503\bin\mswin32-x86;E:\Program
 
Files\Oracle\jre\1.1.8\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;E:\BorlandEnterpriseServer\bin;E:\Program
 Files\Microsoft SQL Server\80\Tools\BINN;E:\Program Files\Windows 
NT\Accessories;E:\j2sdkee1.3.1\bin;c:\BorlandEnterpriseServer\bin;g:\oracle\ora90\jdk\bin
 java.naming.factory.initial = weblogic.jndi.WLInitialContextFactory 
java.naming.factory.url.pkgs = weblogic.jndi.factories java.protocol.handler.pkgs = 
weblogic.utils|weblogic.utils|weblogic.net|weblogic.management|weblogic.net|weblogic.net
 java.runtime.name = Java(TM) 2 Runtime Environment, Standard Edition 
java.runtime.version = 1.3.1_01 java.security.policy = 
=E:\bea\wlserver6.1/lib/weblogic.policy java.specification.name = Java Platform API 
Specification java.specification.vendor = Sun Microsystems Inc. 
java.specification.version = 1.3 java.vendor = Sun Microsyste

  1   2   3   >