RE: keeping the old debate open...

2002-07-12 Thread Daniel J. D'Cotta

23 bugs... ooo, sounds close to beta 2 =)

Just a big thank you to all those who are solving bugs.


Regards,
Daniel

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 1:37 AM
To: [EMAIL PROTECTED]
Subject: RE: keeping the old debate open...



Okay, if I do that and further refine it by:

All SEVERITY except enhancement
Versions 1.1b1, Nightly Build, Unknown

I am down to 23 bugs.  Is this an accurate representation of what has to
happen before the next beta release?   Are Enhancements planned to be
done before the next beta?

Saying there are 23 known bugs to be fixed sounds much better for the
project than including all the enhancement requests too!







-Original Message-
From: craigmcc [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 12:09 PM
To: struts-user
Subject: RE: keeping the old debate open...




On Thu, 11 Jul 2002 [EMAIL PROTECTED] wrote:

 Date: Thu, 11 Jul 2002 10:55:14 -0400
 From: [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: RE: keeping the old debate open...


 I cant get more than 15 bugs to be displayed and half of those are
 enhancements...
 On the summary page I can see a bunch, but under a query forget it!


As you might imagine :-), I have a saved query on Bugzilla to select
Struts bug reports.  As of a few seconds ago, it finds 92 of them (many
enhancements, many bugs against 1.0.x, and a few outstanding against
1.1).

The search criteria I use:
- Status = UNCONFIRMED, NEW, ASSIGNED, REOPENED
- Program = Struts

For reference, our bug tracking system (for all Jakarta and
Xml.apache.org
projects) is at:

  http://nagoya.apache.org/bugzilla/

Craig







 -Original Message-
 From: Kevin.Bedell [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, July 11, 2002 10:18 AM
 To: struts-user
 Subject: Re: keeping the old debate open...






  just a question about how open-source projects are managed at
  apache's : how do you know you run out of bugs to fix ? what's the
way
 the
  projects are tested ? thanks, since my boss wonders about
open-source
 and
  fears it a bit...

 One of fundamental advantages of Open Source is that finding bugs
 generally
 occurs much faster. Plus, as a user you have direct access to the bug
 tracking system (bugzilla, in this case at
 http://nagoya.apache.org/bugzilla/ ).

 There are currently 90 open bugs for Struts. How do I know this? I
just
 looked - it's on-line for everyone to see. If you find a bug, you can
 add
 one yourself and someone with appropriate rights in bugzilla will have
 to
 address it before it dissapears - it's an extremely 'open book'
approach
 that no vendor would dream of giving you. I've worked for software
 companies and we would NEVER have opened our bug lists - our
competitors
 would have printed them out and used them against us in sales calls.

 Eric Raymond, in his essay The Cathedral and the Bazaar says that
 ``Given
 enough eyeballs, all bugs are shallow.'' And, at least, that they
turn
 shallow pretty quickly when exposed to a thousand eager co-developers
 pounding on every single new release.

 This is why Linux is more stable than NT and Apache dominates the web
 server market - it's not because it's free, it's because it's BETTER
and
 FREER of BUGS. If I were your boss, I'd worry more about the quality
of
 commercial software than I would about open source.


 If your manager is concerned about using Open Source becuase of
software
 quality, then get them a copy of Eric's book: The Cathedral and the
 Bazaar
 - it's a very short and easy read.


 The Cathedral and the Bazaar is available at either:

on-line free:
http://www.tuxedo.org/~esr/writings/cathedral-bazaar/

   - or -

   from Amazon:

http://www.amazon.com/exec/obidos/ASIN/0596001088/qid=1026397260/sr=8-1/ref=
sr_8_1/103-4271210-7048648


 The discussion about Open Source projects and debugging is at:



http://www.tuxedo.org/~esr/writings/cathedral-bazaar/cathedral-bazaar/x147.h
tml


 Best of luck,

 Kevin




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



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




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



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


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




Re: Off-Topic: JMS Design Question...

2002-07-12 Thread Michael Rimov

At 09:14 AM 7/9/2002 -0700, you wrote:
Hello,

We need to send XML messages (as well as other types of messages) back 
forth between two Application Servers. In other words, a Web Application
created by us will send a message to the application server of our
client and vice versa.

snip snip snip

Just out of curiosity, are you sure you want to use a Topic instead of a 
Queue?  It sounds like you're using 1-1 mapping which is pretty much what 
Queue's are designed for.

snip snip

1)  If Client's App Server is down, then our MDB should keep resending
till the message is sent successfully.  How can I do this in JMS?

Queues or Durable Subscriptions will do the trick here.  The whole point of 
JMS is fire and forget.  So once the JMS server successfully receives the 
message you forget about it and delegate that responsibility to the JMS server.

2)  If our JMS Server is down (shouldn't happen, but let's say it does)
what should the Web App do?  Would Durable Subscriptions help in this
case?

Depends on when the JMS server went down.  And what you mean.  If you mean 
that the JMS Server goes down before delivery to the target app server, 
then yes.

If you mean that the JMS server goes down, what do you do with the messages 
you wish to send during the down time... then no, you'll either have to 
implement your own internal buffer to try to see if you can get the JMS 
server restarted before the buffer fills... or if it does or you don't want 
to do the buffering you're going to have to figure out some sort of state 
transfer method to get the messages between the app servers back in sync.

One method that people do is when the JMS server comes back online is to 
immediately start receiving messages in the background while you get a 
'state transfer'... then once you get the state transfer you start applying 
the received messages to your system until you catch up.


I would greatly appreciate any input in this matter. Thanks (a lot) for
your time.

I don't know how heavy of an app server you're looking to use, but another 
alternative is using the Message Driven Objects paradigm that the Apache 
Messenger project uses.  I've used it and love it.  It's in the commons 
sandbox and you'll want to grab a nightly build.  Although there isn't a 
1.0 release yet, the API is considered stable since the author uses it in 
many of his own apps.

As per the other thoughts... if you have questions you can feel free to 
write me off list.

HTH!
 -Mike


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




Re: tiles as attribute's value - is it possible ?

2002-07-12 Thread Cedric Dumoulin


  Hello,

  If you have access to the

html:mytag ... code, you can modify it to take the tiles' attribute name as 
attribute, and retrieve the corresponding value from TilesContext. Check how 
tiles:getAsString  is implemented for examples (class GetAttributeTag.java).
  If you don't want some Tiles code in your tag, use the classic tag way of life : 
modify your tag to take the attribute name as input, and retrieve the value from the 
page context.
  Before using your tag, put the requested tiles' attribute in page context :
tiles:importAtribute name=title /  !-- put tiles attribute in page context --
html:mytag name=title/ !-- retrieve attribute from page context --


  Hope this help,

Cedric

Arik Levin ( Tikal ) wrote:

 
Hi all.
 
I have some tag which I want it to be like this:
 
html:mytag value=tiles:getAsString
name=title / /
 
 
As I saw after some searching I saw that some of you
out there did it like this:
 
   tiles:useAttribute name=title
classname=java.lang.String ignore=true/
   html:mytag value=%=title%/
 
Did somebody has manage to come up with a cleaner
idea?




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




String indexed properties

2002-07-12 Thread [EMAIL PROTECTED]

I added support for tags to access properties throught a string index;
in practice you can access to a bean method like 'getContents(String
index)' using a tag like 'bean:write name=bean property=contents{the
String index}/'. If anybody is interested in, mail me to [EMAIL PROTECTED]


RE: change an Actionform

2002-07-12 Thread Jon.Ridgway

Hi Sven,

I can't see the action-mapping for the edit -
'billing/FibuAccountGruppeUpdateAction'. This is where the problem will lie.
The edit mapping will specify which form should be used, its scope and the
key to store it under. When you create the form in your search action you
need to put it in the correct scope - request or session and use the key
specified in the struts-config. The code :

request.getSession().setAttribute(mapping.getName(),myForm);

want work as its putting the form under the wrong key, ie the key is
SearchForm I'm guessing it should be EditForm. 

The reason the form bean is blank on the edit form is that Struts has
created a form for you as it couldn't find one the specified scope. 

Hope this helps.

Jon Ridgway


-Original Message-
From: Efftinge, Sven [mailto:[EMAIL PROTECTED]] 
Sent: 11 July 2002 14:50
To: 'Struts Users Mailing List'
Subject: AW: change an Actionform

Ok, here it is:
struts-config
!--  Form-Beans == --
  form-beans
form-bean name=EditForm 
   type=EditForm /
form-bean name=SearchForm
   type=SearchForm /
  /form-beans


  !-- == Action Mapping Definitions ==
--
  action-mappings
action path=/searchEntity 
type=SearchEntityAction
name=SearchForm 
scope=request 
input=/SearchPage.jsp
validate=false 

forward name=failure path=/SearchPage.jsp /
forward name=success path=/EditPage.jsp /
/action
  /action-mappings
/struts-config

Here are the two jsp-formulars :

SearchPage.jsp:

html:form action=/searchEntity
html:text property=value/
html:submit/
  /html:form

and EditPage.jsp:

html:form action=billing/FibuAccountGruppeUpdateAction
html:text property=dataobject.name/
html:text property=dataobject.adresse/
html:submit/
  /html:form


and in the action this doesn't work:

ActionForm myForm = new EditForm();

myForm.setDataobject(EntityFassade().findByValue((SearchForm)form.getValue()
));
request.getSession().setAttribute(mapping.getName(),myForm);

and this also doesn't work:

ActionForm myForm = new EditForm();

myForm.setDataobject(EntityFassade().findByValue((SearchForm)form.getValue()
));
form = myForm;

in both cases the EditPage.jsp formular is empty.
But in the Action the dataobject isn't empty I have tested that.

-Ursprüngliche Nachricht-
Von: Jon.Ridgway [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 11. Juli 2002 15:04
An: 'Struts Users Mailing List'
Betreff: RE: change an Actionform


Hi Sven,

I'll need to see your complete struts-config.xml.

Jon Ridgway


-Original Message-
From: Efftinge, Sven [mailto:[EMAIL PROTECTED]] 
Sent: 11 July 2002 12:04
To: 'Struts Users Mailing List'
Subject: AW: change an Actionform

Thank you Jon.
Your solution is good, but I don't understand why my way doesn't work.
Can someone tell me where the data gets lost?
The EditEntity.jsp has definetly access to an EditEntityForm, but there is
no Data in it!
why can I change the type but can't fill it?

Sven

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


The contents of this email are intended only for the named addressees and
may contain confidential and/or privileged material. If received in error
please contact UPCO on +44 (0) 113 201 0600 and then delete the entire
e-mail from your system. Unauthorised review, distribution, disclosure or
other use of this information could constitute a breach of confidence. Your
co-operation in this matter is greatly appreciated. 

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

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


The contents of this email are intended only for the named addressees and
may contain confidential and/or privileged material. If received in error
please contact UPCO on +44 (0) 113 201 0600 and then delete the entire
e-mail from your system. Unauthorised review, distribution, disclosure or
other use of this information could constitute a breach of confidence. Your
co-operation in this matter is greatly appreciated. 

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




RE: How to automaticlly set the locale according to user's request

2002-07-12 Thread Jon.Ridgway

Hi Alex,

I think you can just add html:html locale=true/ to your jsp.

Jon Ridgway


-Original Message-
From: Struts Newsgroup [mailto:[EMAIL PROTECTED]] 
Sent: 11 July 2002 15:10
To: [EMAIL PROTECTED]
Subject: How to automaticlly set the locale according to user's request

Subject: How to automaticlly set the locale according to user's request
From: Alex Kwan [EMAIL PROTECTED]
 ===
Hi, All
I want to build a multilanguage site with structs. As we all know, the
response encode the content to client using the charaterset defined by
setLocale() or setContentType().If the we don't set the locale, it will use
the default ISO-8859-1.
Now the question is:
1.I want to setLocale() by the value get from request.getLocale(), but how
can I set the struts to automaticlly finish this process.
2.How can I set the web to make jsp also automaticlly encoding the content
using the client locale setting.

Thanks.



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


The contents of this email are intended only for the named addressees and
may contain confidential and/or privileged material. If received in error
please contact UPCO on +44 (0) 113 201 0600 and then delete the entire
e-mail from your system. Unauthorised review, distribution, disclosure or
other use of this information could constitute a breach of confidence. Your
co-operation in this matter is greatly appreciated. 

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




RE: where is ApplicationResources.properties defined?

2002-07-12 Thread Chakradhar Tallam

make sure u got

servlet
.
.
.
init-param
param-nameapplication/param-name
param-valueApplicationResources/param-value
/init-param
.
.
.
/servlet

in ur web.xml

CT

-Original Message-
From: bryan hansen [mailto:[EMAIL PROTECTED]]
Sent: Friday, 12 July 2002 10:22 AM
To: Struts Users Mailing List
Subject: Re: where is ApplicationResources.properties defined?


I am running into similar problems, but I have
verified that my ApplicationResources.properties file
is infact included in my classes directory. I still
can not find items that are listed in the properties
file. Any suggestions?

Bryan


--- [EMAIL PROTECTED] wrote:
 
 The ApplicationResources.properties needs to be on
 your classpath - which
 implies being in the classes directoy.
 
 If your 'clean' operation wipes out the classes
 directory, then your
 'build' operation needs to copy the .properties
 files back again.
 
 For examples of how to do this, examine the example
 applications delivered
 with Struts. Also, review the build file for the web
 applications (
 build-webapp.xml) to see how the web app is built.
 
 If you have specific quesitons on the build process
 and how the .properties
 file(s) get copied, post them back to the list and
 someone will help -
 
 Best of luck,
 
 Keivn
 
 
 
 
 
 
 
 Struts Newsgroup (@Basebeans.com) struts on
 07/11/2002 07:40:02 PM
 
 Please respond to Struts Users Mailing List
[EMAIL PROTECTED]
 
 To:[EMAIL PROTECTED]
 cc: (bcc: Kevin Bedell/Systems/USHO/SunLife)
 Subject:where is ApplicationResources.properties
 defined?
 
 
 Subject: where is ApplicationResources.properties
 defined?
 From: David Chu [EMAIL PROTECTED]
  ===
 I am very confused on how to define a new path for
 the file currently named
 ApplicationResources.properties  I did not see any
 definition in either
 web.xml nor struts-confug.xml.   Specifically, is
 there any way to define
 it
 to live outside of the WEB-INF/classes directory? 
 (this is because a
 clean operation deletes my whole classes directory,
 including the
 ApplicationResources.properties file!)  Thanks very
 much for the help.
 
 
 --
 -david
 
 --
 David C. Chu
 America Online
 Network Tools Intern
 --
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 
 
 
 
 
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

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



java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm

2002-07-12 Thread malathi gopalan

Hi All -
I have struts.jar in app/WEB-INF/lib and I am receiving a runtime error. 
Struts.jar is not in my classpath. My example app works so I'm not sure 
where to look..
Thanks
Malathi.

Root cause:
java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm
 at java.lang.ClassLoader.defineClass0(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:493)
 at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
 at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
 at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
 at 
org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.java:446)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:120)
 at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:563)
 at 
jsp.testsuite._0002fjsp_0002ftestsuite_0002ftestSuiteFolder_0002ejsptestSuiteFolder_jsp_88._jspService(_0002fjsp_0002ftestsuite_0002ftestSuiteFolder_0002ejsptestSuiteFolder_jsp_88.java:120)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at 
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282)
 at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at 
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
 at org.apache.tomcat.core.Handler.service(Handler.java:287)
 at 
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at 
org.apache.tomcat.facade.RequestDispatcherImpl.doInclude(RequestDispatcherImpl.java:400)
 at 
org.apache.tomcat.facade.RequestDispatcherImpl.include(RequestDispatcherImpl.java:270)
 at 
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:414)
 at 
jsp._0002fjsp_0002findex_0002ejspindex_jsp_6._jspService(_0002fjsp_0002findex_0002ejspindex_jsp_6.java:580)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at 
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282)
 at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at 
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
 at org.apache.tomcat.core.Handler.service(Handler.java:287)
 at 
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:806)
 at 
org.apache.tomcat.core.ContextManager.service(ContextManager.java:752)
 at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
 at 
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at 
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
 at java.lang.Thread.run(Thread.java:484)



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




AW: change an Actionform

2002-07-12 Thread Efftinge, Sven

Hey Everybody!?

I think this is a thing that every Strutsdeveloper should know?
By the way, Jon, your way didn't work for me as you can see in in my last
posting.
So, please tell me how would YOU solve this problem?
many thanks in advance,
Sven

-Ursprüngliche Nachricht-
Von: Efftinge, Sven [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 11. Juli 2002 15:50
An: 'Struts Users Mailing List'
Betreff: AW: change an Actionform


Ok, here it is:
struts-config
!--  Form-Beans == --
  form-beans
form-bean name=EditForm 
   type=EditForm /
form-bean name=SearchForm
   type=SearchForm /
  /form-beans


  !-- == Action Mapping Definitions ==
--
  action-mappings
action path=/searchEntity 
type=SearchEntityAction
name=SearchForm 
scope=request 
input=/SearchPage.jsp
validate=false 

forward name=failure path=/SearchPage.jsp /
forward name=success path=/EditPage.jsp /
/action
  /action-mappings
/struts-config

Here are the two jsp-formulars :

SearchPage.jsp:

html:form action=/searchEntity
html:text property=value/
html:submit/
  /html:form

and EditPage.jsp:

html:form action=billing/FibuAccountGruppeUpdateAction
html:text property=dataobject.name/
html:text property=dataobject.adresse/
html:submit/
  /html:form


and in the action this doesn't work:

ActionForm myForm = new EditForm();

myForm.setDataobject(EntityFassade().findByValue((SearchForm)form.getValue()
));
request.getSession().setAttribute(mapping.getName(),myForm);

and this also doesn't work:

ActionForm myForm = new EditForm();

myForm.setDataobject(EntityFassade().findByValue((SearchForm)form.getValue()
));
form = myForm;

in both cases the EditPage.jsp formular is empty.
But in the Action the dataobject isn't empty I have tested that.

-Ursprüngliche Nachricht-
Von: Jon.Ridgway [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 11. Juli 2002 15:04
An: 'Struts Users Mailing List'
Betreff: RE: change an Actionform


Hi Sven,

I'll need to see your complete struts-config.xml.

Jon Ridgway


-Original Message-
From: Efftinge, Sven [mailto:[EMAIL PROTECTED]] 
Sent: 11 July 2002 12:04
To: 'Struts Users Mailing List'
Subject: AW: change an Actionform

Thank you Jon.
Your solution is good, but I don't understand why my way doesn't work.
Can someone tell me where the data gets lost?
The EditEntity.jsp has definetly access to an EditEntityForm, but there is
no Data in it!
why can I change the type but can't fill it?

Sven

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


The contents of this email are intended only for the named addressees and
may contain confidential and/or privileged material. If received in error
please contact UPCO on +44 (0) 113 201 0600 and then delete the entire
e-mail from your system. Unauthorised review, distribution, disclosure or
other use of this information could constitute a breach of confidence. Your
co-operation in this matter is greatly appreciated. 

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

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

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




[CORRECTION] Easy Struts v0.4 for Eclipse / JBuilder

2002-07-12 Thread emmanuel.boudrant


For Eclipse users, 
There is a mistake in the com.cross.easystruts.eclipse_0.4.0/plugin.xml file. The 
version, in easystruts 0.4.0 was set on 0.3.0 instead of 0.4.0. If you have download 
the plugin before you receive this mail, you should fix this mistake by:
- Manually by editing 
[ECLIPSE_DIR]/plugins/com.cross.easystruts.eclipse_0.4.0/plugin.xml
- Or  re-downloading and overwrite Easy Struts 
http://sourceforge.net/project/showfiles.php?group_id=54542release_id=99115
Now Install/Update for Eclipse eatures work fine, actually URL was 
http://easystruts.sourceforge.net/eclipse/updatestest/site.xml
more help on : http://easystruts.sourceforge.net/install_uk.html
And in future (I can't update now, I'm behing a firewall), it will be 
http://easystruts.sourceforge.net/eclipse/updates/site.xml
 
I'm sorry for these troubles.
Thx,
-emmanuel
  



-
Yahoo! Mail -- Une adresse yahoo.fr gratuite et en français !



RE: Problem with session ojects: memory size, updates

2002-07-12 Thread Jon.Ridgway

Hi,

Your English is a hell of a lot better than my French...Your question is one
that comes up a lot on the list try a search at:

http://www.mail-archive.com/struts-user@jakarta.apache.org

for 'session size'. One pertinent post is:

http://www.mail-archive.com/struts-user@jakarta.apache.org/msg34592.html

In short, the answer to what should go in the session depends on how your
application will be used. If you expect a *very* high number of concurrent
users your session should be under 4k (taken from iAS, WebLogic and
WebSphere docs, white papers etc). 

It will also depend on your hardware, how much RAM is available, network
bandwidth, database size/speed etc. If you can predict the highest level of
concurrent users, multiple your maximum session size by this. The result
will be the amount of RAM taken up by all the sessions put together, if you
have sufficient RAM to handle this and all over requirements, then the
session size is not an issue.  Note however that the number of users can
explode unexpectedly, so the best practice recommendation is to keep session
size as small as possible. 

As for the speed of looking up objects from the session, this will depend on
your app server, when clustering some app servers will store the session in
a db or other persistent store, lookups in this case are relatively
expensive. If you are not clustering, I wouldn't worry about the speed of
the lookup (even if you are I wouldn't worry about it that much - its not a
bottle neck I've ever come across.)

Jon Ridgway


-Original Message-
From: Heligon Sandra [mailto:[EMAIL PROTECTED]] 
Sent: 11 July 2002 15:12
To: '[EMAIL PROTECTED]'
Subject: Problem with session ojects: memory size, updates 


Sorry, my english level isn't very good.

I read that the Struts framework doesn't make (oblige) 
to use one particular model implementation (EJB, JavaDataObject,
JavaBean, ...).
But the JavaBean solution is understood or greatly recommended,
isn't it ?
Because struts uses JSP to display data and JSP pages use JavaBean
tags.
If  we work whit XML representations of  remote business objects, is
it better to
use struts XSL tags rather than generate JavaBean from the XML
description ?
The XSL solution requires to know XSL tags and  is slower and more
complex.
With JavaBean solution I am frightened having memory or request time
problem.
The user does a request, the selected Action gets business data from
the
enterprise tier, generates one or several JavaBean instances and
stores the JavaBean 
in the HttpSession. 
But the HttpSession size will grow quickly.
It is difficult to know when we have to store data in request scope
or session scope.
Has somebody advices about this dilemma? 
I am tending to put data systematically in HttpSession in order to
reduce network traffic if the user
ask again this page.
What is the max size of the session objects ? 
If we user rights on the business objects, we will have the same
JavaBean in several HttpSessions.
What do you think about this problem ? 

A last question if we have numerous session objects, when we will
have to update one
of them it will be very slow to find it in the list.
Do you have advices about that ?
Is the JavaBean/HttpSession solution realistic with real-time
data?

Thanks a lot in advance. 

 


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


The contents of this email are intended only for the named addressees and
may contain confidential and/or privileged material. If received in error
please contact UPCO on +44 (0) 113 201 0600 and then delete the entire
e-mail from your system. Unauthorised review, distribution, disclosure or
other use of this information could constitute a breach of confidence. Your
co-operation in this matter is greatly appreciated. 

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




RE: BeanUtils.populate with native types

2002-07-12 Thread Robert Taylor

I had some issues with BeanUtils and native types as well but they were
fixed in the nightlies.
I think revision 1.23.

robert

 -Original Message-
 From: Developer [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, July 11, 2002 10:56 PM
 To: Struts Users Mailing List
 Subject: BeanUtils.populate with native types


 Apparently BeanUtils.populate chokes with native type properties.
  Is there a way to handle that other than change all the Model
 beans attributes to use Objects?

 Thank you.



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




RE: Should I bother to try and handle this with struts?

2002-07-12 Thread Jon.Ridgway

Hi Rick,

The Action classes in struts are designed to encapsulate you business logic.
In your case to the dynamic look up, the result can be placed in the session
or request, then your Action can forward to a jsp that can display this
dynamically generated result.

So yes to answer your question, Struts can certainly be used to address your
requirements.

Hope this helps.

Jon Ridgway


-Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED]] 
Sent: 11 July 2002 16:03
To: Struts List
Subject: Should I bother to try and handle this with struts?

I'm confused how I can/should handle this in Struts...

What I need to build (and long story why) is a User Administration
utility and where I'm having trouble fitting this in with struts is in
regard to the following:

Picture a case where you want to give user's certain roles based on
certain applications. So you'd have:

BackofficeApp[ select options of possible roles ]
JoeBlowApp   [ select options of possible roles ]
DumbApp  [ select options of possible roles ]

The problem is the list of applications is dynamic so I can't hard
code these values into a form bean or in my dynamicActionForm.

Currently I'm planning on doing this an old fashioned way where after
submission I'll loop through the same dynamic list of applications and
pull up the request parameters based on the values I get back. So for
example somewhere I'd end up doing:

//while loop through applications
String appValue = request.getParameter( appNameBasedOnCurrentLoopValue );
   //update db for this app name based on value
//continue loop

Can I have a form bean gather all this data? Or should I just continue
to do it the way I'm doing it?

Thanks for any comments/help.



-- 

Rick
mailto:[EMAIL PROTECTED]


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


The contents of this email are intended only for the named addressees and
may contain confidential and/or privileged material. If received in error
please contact UPCO on +44 (0) 113 201 0600 and then delete the entire
e-mail from your system. Unauthorised review, distribution, disclosure or
other use of this information could constitute a breach of confidence. Your
co-operation in this matter is greatly appreciated. 

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




RE: Really dynamic forms

2002-07-12 Thread Jon.Ridgway

Hi Olivier

In your case you could have an action create and populate an ArrayList with
empty passenger objects, add the list to a form, put the form into scope and
forward to a jsp. Then in the jsp iterate over the list displaying input
fields for each passenger object...easy...ish...

Jon Ridgway


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: 11 July 2002 16:40
To: [EMAIL PROTECTED]
Subject: Really dynamic forms

Hi !

Contrary to DynaActionForm which are rather declarative forms than dynamic
forms, I have a need for building forms that are parametric. For instance,
the Internet user specifies the number of elements he requires, and the
system builds dynamically a JSP form containing as many fields as the given
number. For instance, for a trip, he gives the number of passengers (let's
say 3) and the next form he sees contains 3 fields named for instance
passengerName1, passengerName2 and passengerName3.
Since I don't know how many fields there will be, how can I design an
ActionForm handling this ? If I were to use a DynaActionForm, I would
nonetheless be compelled to specify the fields in the struts-config.xml
file.
Hope this makes sense.
Thanks for your help.

Olivier Schmeltzer






Les donnees et renseignements contenus dans ce message sont personnels,
confidentiels et secrets. Ce message est adresse a l'individu ou l'entite
dont les coordonnees figurent ci-dessus. Si vous n'etes pas le bon
destinataire, nous vous demandons de ne pas lire, copier, utiliser ou
divulguer cette communication. Nous vous prions de notifier cette erreur a
l'expediteur et d'effacer immediatement cette communication de votre
systeme.

The information contained in this message is privileged, confidential, and
protected from disclosure. This message is intended for the individual or
entity adressed herein. If you are not the intended recipient, please do not
read, copy, use or disclose this communication to others ;also please notify
the sender by replying to this message, and then delete it from your system.


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


The contents of this email are intended only for the named addressees and
may contain confidential and/or privileged material. If received in error
please contact UPCO on +44 (0) 113 201 0600 and then delete the entire
e-mail from your system. Unauthorised review, distribution, disclosure or
other use of this information could constitute a breach of confidence. Your
co-operation in this matter is greatly appreciated. 

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




RE: where can caching help performance?

2002-07-12 Thread Jon.Ridgway

Hi Jamie,

Even when using Struts there is nothing stopping you writing a custom tag
lib to do a db lookup for your portals content, based I guess upon a user
preference held in the session/request. You could then use the caching tags
you describe. 

Also remember that most dbs have very good configurable caching mechanisms
of their own. Also remember that in J2EE some CMP implementations will give
you some free caching (also TopLink/CocoBase etc.)

You could code your own mechanism that wraps objects placed in the session
with a time stamp and only look them up again if a specified time has
elapsed...

Judicious use of the Singleton pattern can also speed performance. 

Jon Ridgway


-Original Message-
From: Jamie J [mailto:[EMAIL PROTECTED]] 
Sent: 11 July 2002 20:51
To: [EMAIL PROTECTED]
Subject: where can caching help performance?

I'm wondering how people speed up their MVC webapps.

Taglibs for caching parts of jsps seem like a good way
of improving the speed of a web app (see:
http://jakarta.apache.org/taglibs/doc/cache-doc/intro.html,
 http://www.opensymphony.com/oscache/tags.html, the
one that comes with weblogic etc).  

e.g. (pseudo-tag):
foo:cache timout=5mins

!-- query the database and display details of the 10
most recent news items, or something --

/foo:cache

However they don't help much if you've got an MVC app,
because all your database access etc happens before
the view of it is rendered, as opposed to as it is
rendered  which is where these taglibs are useful.  

Is the only option with MVC to cache the data?  The
idea of caching the rendering of it too is appealing -
if they data hasn't changed, why keep re-rendering it?
(assuming everyone's view of it is the same).  It is
particularly appealing when you consider that it can
be done with no code changes - you can put a (servlet
2.3) filter in front of servlets/jsps you wanted
cached.

Its portal-style applications that I'm thinking of
here, where you have discrete components of a page
which all may involve some database (or other
timeconsuming) activity, but the data doesn't change
often so the cached view of it can be updated every
X-minutes or so.

What approaches do people use to speed up such apps? 
Is caching really only an option in the model, rather
than the view? (assuming its not the whole page you're
caching).

--
jamie

__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

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


The contents of this email are intended only for the named addressees and
may contain confidential and/or privileged material. If received in error
please contact UPCO on +44 (0) 113 201 0600 and then delete the entire
e-mail from your system. Unauthorised review, distribution, disclosure or
other use of this information could constitute a breach of confidence. Your
co-operation in this matter is greatly appreciated. 

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




RE: java.lang.NoClassDefFoundError:org/apache/struts/action/ActionForm

2002-07-12 Thread Jon.Ridgway

Hi Malathi,

If you are sure that struts.jar is in your web-inf/lib directory check that
it is not corrupted (compare it to the jar in your example app that works).

Jon Ridgway


-Original Message-
From: malathi gopalan [mailto:[EMAIL PROTECTED]] 
Sent: 12 July 2002 02:49
To: [EMAIL PROTECTED]
Subject: java.lang.NoClassDefFoundError:org/apache/struts/action/ActionForm

Hi All -
I have struts.jar in app/WEB-INF/lib and I am receiving a runtime error. 
Struts.jar is not in my classpath. My example app works so I'm not sure 
where to look..
Thanks
Malathi.

Root cause:
java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm
 at java.lang.ClassLoader.defineClass0(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:493)
 at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
 at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
 at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
 at 
org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.j
ava:446)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:120)
 at
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:563)
 at 
jsp.testsuite._0002fjsp_0002ftestsuite_0002ftestSuiteFolder_0002ejsptestSuit
eFolder_jsp_88._jspService(_0002fjsp_0002ftestsuite_0002ftestSuiteFolder_000
2ejsptestSuiteFolder_jsp_88.java:120)
 at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at 
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.ja
va:130)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:282)
 at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
 at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at 
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
 at org.apache.tomcat.core.Handler.service(Handler.java:287)
 at 
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at 
org.apache.tomcat.facade.RequestDispatcherImpl.doInclude(RequestDispatcherIm
pl.java:400)
 at 
org.apache.tomcat.facade.RequestDispatcherImpl.include(RequestDispatcherImpl
.java:270)
 at 
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:414)
 at 
jsp._0002fjsp_0002findex_0002ejspindex_jsp_6._jspService(_0002fjsp_0002finde
x_0002ejspindex_jsp_6.java:580)
 at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at 
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.ja
va:130)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:282)
 at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
 at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at 
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
 at org.apache.tomcat.core.Handler.service(Handler.java:287)
 at 
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:80
6)
 at 
org.apache.tomcat.core.ContextManager.service(ContextManager.java:752)
 at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
 at 
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at 
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
 at java.lang.Thread.run(Thread.java:484)



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


The contents of this email are intended only for the named addressees and
may contain confidential 

RE: change an Actionform

2002-07-12 Thread Jon.Ridgway

Hi Sven,

I do it as specified in my previous post. Although I'd use the same action
form to store search and editing values, this way the mapping.getName () bit
in the search action would work (no hard coding of the key to use to store
the search results in session/request for editing).

Jon Ridgway


-Original Message-
From: Efftinge, Sven [mailto:[EMAIL PROTECTED]] 
Sent: 12 July 2002 09:14
To: 'Struts Users Mailing List'
Subject: AW: change an Actionform

Hey Everybody!?

I think this is a thing that every Strutsdeveloper should know?
By the way, Jon, your way didn't work for me as you can see in in my last
posting.
So, please tell me how would YOU solve this problem?
many thanks in advance,
Sven

-Ursprüngliche Nachricht-
Von: Efftinge, Sven [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 11. Juli 2002 15:50
An: 'Struts Users Mailing List'
Betreff: AW: change an Actionform


Ok, here it is:
struts-config
!--  Form-Beans == --
  form-beans
form-bean name=EditForm 
   type=EditForm /
form-bean name=SearchForm
   type=SearchForm /
  /form-beans


  !-- == Action Mapping Definitions ==
--
  action-mappings
action path=/searchEntity 
type=SearchEntityAction
name=SearchForm 
scope=request 
input=/SearchPage.jsp
validate=false 

forward name=failure path=/SearchPage.jsp /
forward name=success path=/EditPage.jsp /
/action
  /action-mappings
/struts-config

Here are the two jsp-formulars :

SearchPage.jsp:

html:form action=/searchEntity
html:text property=value/
html:submit/
  /html:form

and EditPage.jsp:

html:form action=billing/FibuAccountGruppeUpdateAction
html:text property=dataobject.name/
html:text property=dataobject.adresse/
html:submit/
  /html:form


and in the action this doesn't work:

ActionForm myForm = new EditForm();

myForm.setDataobject(EntityFassade().findByValue((SearchForm)form.getValue()
));
request.getSession().setAttribute(mapping.getName(),myForm);

and this also doesn't work:

ActionForm myForm = new EditForm();

myForm.setDataobject(EntityFassade().findByValue((SearchForm)form.getValue()
));
form = myForm;

in both cases the EditPage.jsp formular is empty.
But in the Action the dataobject isn't empty I have tested that.

-Ursprüngliche Nachricht-
Von: Jon.Ridgway [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 11. Juli 2002 15:04
An: 'Struts Users Mailing List'
Betreff: RE: change an Actionform


Hi Sven,

I'll need to see your complete struts-config.xml.

Jon Ridgway


-Original Message-
From: Efftinge, Sven [mailto:[EMAIL PROTECTED]] 
Sent: 11 July 2002 12:04
To: 'Struts Users Mailing List'
Subject: AW: change an Actionform

Thank you Jon.
Your solution is good, but I don't understand why my way doesn't work.
Can someone tell me where the data gets lost?
The EditEntity.jsp has definetly access to an EditEntityForm, but there is
no Data in it!
why can I change the type but can't fill it?

Sven

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


The contents of this email are intended only for the named addressees and
may contain confidential and/or privileged material. If received in error
please contact UPCO on +44 (0) 113 201 0600 and then delete the entire
e-mail from your system. Unauthorised review, distribution, disclosure or
other use of this information could constitute a breach of confidence. Your
co-operation in this matter is greatly appreciated. 

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

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

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


The contents of this email are intended only for the named addressees and
may contain confidential and/or privileged material. If received in error
please contact UPCO on +44 (0) 113 201 0600 and then delete the entire
e-mail from your system. Unauthorised review, distribution, disclosure or
other use of this information could constitute a breach of confidence. Your
co-operation in this matter is greatly appreciated. 

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




Error using tiles and ForwardAction

2002-07-12 Thread JuanPedro . DeAndres

Hello everyboy,
I am trying to use tiles with ForwardAction, and I have the next error, anyone
knows whats the problem.

Juan Pedro.

javax.servlet.ServletException: Path crearRango does not start with a / character
at 
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:490)
at 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:266)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1227)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:484)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)

struts-conf.xml

action path=/crearRangoIni 
  parameter=crearRango 
  type=org.apache.struts.actions.ForwardAction 
  name=crearRangoForm 
  validate=false /
/action-mappings

tilesDefinitions.xml

  definition name=crearRango extends=mainLayout
put name=body value=/crearRango.jsp /
  /definition




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




Re: How to automaticlly set the locale according to user's request

2002-07-12 Thread Steinar Bang

 Struts Newsgroup (@Basebeans.com) [EMAIL PROTECTED]:

 Now the question is:
 1.I want to setLocale() by the value get from request.getLocale(),
 but how can I set the struts to automaticlly finish this process.

This happens automatically, I think, if you don't override it by
setting the Action.LOCALE_KEY attribute on the session.

 2.How can I set the web to make jsp also automaticlly encoding the
 content using the client locale setting.

If you mean, how can I change the output language based on the
browsers' locale settings?, then the answer in Struts 1.0, is that
you can use the bean:message tag to look up a language dependent
text from a resource bundle.

Eg. if you have the file MyResources.properties containing
helloworld=Hello World!
and the file MyResources_no.properties containing
helloworld=Hei Verden!
both at the top level of the WEB-INF directory, and put
  servlet
...
init-param
  param-nameapplication/param-name
  param-valueMyResources/param-value
/init-param
...
  /servlet
in the web.xml file, then using
  bean:message key=helloworld/
will render the text Hei Verden! if the browser's locale is no,
and Hello World! for all others.

See
http://www.anassina.com/struts/i18n/i18n.html
for some tips.



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




RE: tiles as attribute's value - is it possible ?

2002-07-12 Thread Holman, Cal

Tikal I do this

tiles:useAttribute id=titleKey name=title/
titlebean:message name=titleKey scope=page//title
This allows for I18N by using a tiles def for the title key and the
ApplicationResources file for the text.  This is the definition:

  definition name=home.pagedef extends=layouts.pagedef   
  put name=title value=home.title /
  put name=headervalue=/web/includes/header.jsp /
  put name=index
value=/web/pages/home/HomeIndex.jsp /
  put name=indexMain value=/web/includes/index.jsp /
  put name=content
value=/web/pages/home/HomeContent.jsp /
  put name=footer
value=/web/includes/footer.jsp /
  put name=styleSheet
value=web/styles/Grey_StyleSheet.css /
  put name=keywords  value=home.keywords/
  put name=crumbsvalue=/web/includes/crumb.jsp/
  put name=crumbtitle1   value=Home/
  put name=crumblink1value=/home/home/
  put name=pagename  value=home/
  /definition

and in the applicationResources file:
home.title=Cal and VA | Home


Cal

http://www.calandva.com/Last update 06/30/02


-Original Message-
From: Arik Levin ( Tikal ) [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 13:33
To: Struts Users Mailing List
Subject: tiles as attribute's value - is it possible ?


Hi all.

I have some tag which I want it to be like this:

html:mytag value=tiles:getAsString
name=title / /


As I saw after some searching I saw that some of you
out there did it like this:

   tiles:useAttribute name=title
classname=java.lang.String ignore=true/
   html:mytag value=%=title%/

Did somebody has manage to come up with a cleaner
idea?

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




RE: Problem with session ojects: memory size, updates

2002-07-12 Thread Heligon Sandra

Thanks John for your response,

I have already read the message
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg34592.html
but I would like to have more details with real examples. 
I believe that the best way is to try.
I read that objects in the session must be removed unlike the request
objects. 
Is it good to do that when the application invalidates the session ?. 
Because we save objects in the session in order to access data during all
the session life.  

I would like to have advices or tricks for updating and looking up session
objects (JavaBeans and not EJB).
Imagine I have the following business objects model:

Class A composed of several instances B, each B item can be composed of
several C instances. (nested beans).
If the list of each sub-beans is variable, must I use dynaBean ? 

Imagine the user make a request about the instance B2, I get data
information
and store the JavaBean B2 in the HttpSession.
Later the user makes an other request and the B4 instance is required, I
store
B4 in the HttpSession.

Then two problems:
1. The last request needs to get A instance, I get A1 but before saving A1
I have to test if A1 is composed of B4 or/and B2 in order to remove objects
from
the HttpSession. Then I store A1 in the HttpSession.
It is very complicated, isn't it? What are the others solutions to store and
look up nested beans ?

2. The WebServer receives a data change notification, in this case how can I
look up all active sessions and all session objects of each session to
update
the JavaBeans which changed?
How must I do to be sure that Actions or JSP pages don't access data during
update?

Thanks
Sandra

-Original Message-
From: Jon.Ridgway [mailto:[EMAIL PROTECTED]]
Sent: 12 July 2002 11:47
To: 'Struts Users Mailing List'
Subject: RE: Problem with session ojects: memory size, updates 


Hi,

Your English is a hell of a lot better than my French...Your question is one
that comes up a lot on the list try a search at:

http://www.mail-archive.com/struts-user@jakarta.apache.org

for 'session size'. One pertinent post is:

http://www.mail-archive.com/struts-user@jakarta.apache.org/msg34592.html

In short, the answer to what should go in the session depends on how your
application will be used. If you expect a *very* high number of concurrent
users your session should be under 4k (taken from iAS, WebLogic and
WebSphere docs, white papers etc). 

It will also depend on your hardware, how much RAM is available, network
bandwidth, database size/speed etc. If you can predict the highest level of
concurrent users, multiple your maximum session size by this. The result
will be the amount of RAM taken up by all the sessions put together, if you
have sufficient RAM to handle this and all over requirements, then the
session size is not an issue.  Note however that the number of users can
explode unexpectedly, so the best practice recommendation is to keep session
size as small as possible. 

As for the speed of looking up objects from the session, this will depend on
your app server, when clustering some app servers will store the session in
a db or other persistent store, lookups in this case are relatively
expensive. If you are not clustering, I wouldn't worry about the speed of
the lookup (even if you are I wouldn't worry about it that much - its not a
bottle neck I've ever come across.)

Jon Ridgway


-Original Message-
From: Heligon Sandra [mailto:[EMAIL PROTECTED]] 
Sent: 11 July 2002 15:12
To: '[EMAIL PROTECTED]'
Subject: Problem with session ojects: memory size, updates 


Sorry, my english level isn't very good.

I read that the Struts framework doesn't make (oblige) 
to use one particular model implementation (EJB, JavaDataObject,
JavaBean, ...).
But the JavaBean solution is understood or greatly recommended,
isn't it ?
Because struts uses JSP to display data and JSP pages use JavaBean
tags.
If  we work whit XML representations of  remote business objects, is
it better to
use struts XSL tags rather than generate JavaBean from the XML
description ?
The XSL solution requires to know XSL tags and  is slower and more
complex.
With JavaBean solution I am frightened having memory or request time
problem.
The user does a request, the selected Action gets business data from
the
enterprise tier, generates one or several JavaBean instances and
stores the JavaBean 
in the HttpSession. 
But the HttpSession size will grow quickly.
It is difficult to know when we have to store data in request scope
or session scope.
Has somebody advices about this dilemma? 
I am tending to put data systematically in HttpSession in order to
reduce network traffic if the user
ask again this page.
What is the max size of the session objects ? 
If we user rights on the business objects, we will have the same
JavaBean in several 

tricky issue - non serializable DiskFile

2002-07-12 Thread Adolfo Miguelez

Hi All,

we are working in a persisted environment as is Websphere 3.5. When we use 
DiskFile it throws the same exception that was reported in this thread:

http://www.mail-archive.com/struts-user@jakarta.apache.org/msg25463.html

a NonSerializedException for the DiskFile object.

It seems to us, that as DiskFile o FormFile belongs to ActionForm, when we 
declared the ActionForm in the properties with default scope, i.e. session, 
when WAS attempts to serialize the DiskFile but it is not able to do it 
since it does not implement Serializable.

On the other hand, when we declare the ActionForm to be in request scope, 
the exception is not raised. This confirms the previous.

Therefore, it looks like, that at least in Struts 1.0.2 ActionForms with 
DikFile attributes can not have session scope. Is this a bug? Could be 
solved by assigning it transient modifier? Will I need to assign session 
scope for ActionForms to upload operations?

Adolfo




_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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




Re: where can caching help performance?

2002-07-12 Thread Steinar Bang

 Jon.Ridgway [EMAIL PROTECTED]:

 Judicious use of the Singleton pattern can also speed performance.

How so?  I would have thought singletons may introduce bottlenecks...?



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




AW: change an Actionform

2002-07-12 Thread Efftinge, Sven

Hi Jon,
I did it that way, too and it worked. 
But I wanted to validate the search form and I just have one validate method
per ActionForm, and the validation in search and edit is not the same.

I'm wondering about this problem because it's so fundamental. 
I mean doesn't need anybody who works with struts a solution for this?


-Ursprüngliche Nachricht-
Von: Jon.Ridgway [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 12. Juli 2002 12:40
An: 'Struts Users Mailing List'
Betreff: RE: change an Actionform


Hi Sven,

I do it as specified in my previous post. Although I'd use the same action
form to store search and editing values, this way the mapping.getName () bit
in the search action would work (no hard coding of the key to use to store
the search results in session/request for editing).

Jon Ridgway


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




[design] master/detail

2002-07-12 Thread Rooms, Christoph

Hi,

I am trying to develop a page to update master/detail data.

My example :
- master : customer details
- detail : customer contact persons

I would like to have a page where I can see the customer details, and all
his contact persons data in update mode.

I was thinking about a customer action form, with in there a Array of
Customer contact persons action form. 

Is this possible ? What are best practices on this part ? Any tutorials ?

Thanks ! Christoph

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




useBean

2002-07-12 Thread Chandra Sekharan Bhaskaran
Title: Message



Hi,
 I 
had set the value setx() to a form bean in the action class and in the 

 
jsp page when i displaythe value of xusing the 
jsp:useBean tag a new instance of formbean is 
 created and the formbean for which i had set is not 
available.
rgds
C.Bhaskaran

**Disclaimer


Information contained in this E-MAIL being proprietary to Wipro Limited
is 'privileged' and 'confidential' and intended for use only by the
individual or entity to which it is addressed. You are notified that any
use, copying or dissemination of the information contained in the E-MAIL
in any manner whatsoever is strictly prohibited.


*



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


Re: Struts + MVC Philosophical question

2002-07-12 Thread Ted Husted

Yes, as a practical matter I would agree the two greatest advantages of
a layered approach are error-handling and unit testing. 

In a JSP, by the time the code realizes there is an error, it's usually
too late do much about it. 

Even more importantly, in a JSP, it can very hard to test the business 
logic using standard tools like jUnit. So problems are harder to detect 
and repair.

By insulating the View from the Model, it becomes easy to runs demos,
unit tests, and other simulations against the View by having the
Controller provide whatever data is needed. I'm very much of the opinion
that the View should just write what it is given without caring where it
comes from. All the View needs to know is the context, the bean name,
and
the property name, and then it should just do like its told =:0)

Of course, if the *bean* has a direct connection to the Model, then you 
*could be* tapping directly into the Model. But the point is that View
has a contract with the Controller (and only the Controller) to expect 
a bean with a given protocol (in this context, under this name, 
with this property). If the Controller wants to pass it a bean that 
is connected to some Model, that's the Controller's business. If the 
Controller wants to pass it a bean that generates dummy data, that's 
up to the Controller too. If the Model changes its API, then 
the Controller has the option of using wrapper rather than changing
its contract with the View. So that's up to the Controller too.

So the thing to think about is not where the bean comes from, but
who's *sending it* there and taking responsibility for the API 
contract. So long as there is a Struts action in there deciding 
what bean goes into what context, then the layers are being 
observed, and all is right with the universe. =:0)

-T.


Dan Cancro wrote:
 
 My favorite reason for insulating the view from the model is because
 otherwise, you could encounter errors in the middle of serving a page and
 the users would see a half-finished page.  With insulation (via controller),
 you can make sure that all data retrieval by a page is foolproof.  When you
 don't have web pages that start going to the browser before they are totally
 done being generated, you don't have to worry about this problem.
 
  -Original Message-
  From: Ted Husted [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, July 11, 2002 5:16 AM
  To: Struts Users Mailing List
  Subject: Re: Struts + MVC Philosophical question
 
 
  Struts really encourages a Layered Model 2/MVC architecture. Using a
  Layered arcitechture, it is incorrect for non-adjacent layers
  to develop
  direct dependencies. The View should talk to the Controller and the
  Controller should talk to the Model.
 
  The original M/V/C framework, Smalltalk, made good use of the Observer
  pattern to streamline processing. The View could register a listener
  with the Model and be apprised of any change. Though, that is not
  something many people would do today, since it violates the Layers
  pattern that evolved from MVC. If the whole shooting match evolved in
  today's environment, I believe the Observer pattern would have been
  applied differently, and the View would register with the Controller,
  which would then monitor the Model on the View's behalf.
 
  So, you're right, the original MVC pattern does not prevent the View
  from chatting with the Model and updating itself. The stricter Layers
  pattern that Web applications use on top of MVC does. But typing
  Layered/Model 2/MVC takes too long, and developers are lazy
  that way :o)
 
  So hereabout MVC does mean Smalltalk/Go4 MVC, it means Layered/Model
  2/MVC. There's talk about christening that Web MVC or MVC2,
  but there's
  not a solid reference for that yet.
 
  Ade Barkah wrote:
  
   To nitpick...
  
   In a strictly philosophical terms, in MVC, the View *may* (and
   should!) directly access the Model, and on startup one *may* go
   straight to a View without passing through a Controller. Also,
   the Model *may* populate its own data without the help of a
   Controller.
  
   Of course when applying MVC to web applications, it's best if
   all user requests go through a control layer, but MVC per se
   does not mandate it. This practice is often referred to as the
   Front Controller pattern.
  
   For reference, see how MVC is applied in Smalltalk, Swing or
   even MFC. :)
  
   regards,
   -Ade
  
   -Original Message-
   From: Martin Cooper [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, July 10, 2002 9:41 PM
   To: 'Struts Users Mailing List'
   Subject: RE: Struts + MVC Philosophical question
  
-Original Message-
From: Struts Newsgroup [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 10, 2002 6:40 PM
To: [EMAIL PROTECTED]
Subject: Struts + MVC Philosophical question
   
   
Subject: Struts + MVC Philosophical question
From: André Augusto de Oliveira Aragão [EMAIL PROTECTED]
 ===
HI!
   
I'm using 

RE: Iterate with multicolumn data...

2002-07-12 Thread Kamholz, Keith (corp-staff) USX

Hey,
A few people have been wondering about this lately.  I was wondering the
same thing not too long ago.  I just sent this to someone else recently:

I just remembered those table resources that I was talking about.  It's the
display:* tag library.  I haven't used it, so I'm not sure exactly how it
works, but I read the description and it seems like it allows the creation
of tables column by column.  I'm not sure though, since I haven't read past
the surface description or used it at all.  It's available at
http://edhill.its.uiowa.edu/display/.  Has anyone else used this?  What did
you think of it?

Like I said, I haven't used it but it seems nice.  I may have to try it out
if a situation pops up again.


~ Keith
http://www.buffalo.edu/~kkamholz



-Original Message-
From: Michael Marrotte [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 9:52 PM
To: Struts Users Mailing List
Subject: Iterate with multicolumn data...


What's the best way to display multicolumn (e.g. 2-column) lists in Struts,
with say Iterate?

Say I have the list a,b,c,d,e,f...  But, I want to display it as:
C1 C2
a  b
c  d
e  f
...

Any help is greatly appreciated.

Thanks,

--Michael Marrotte


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

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




Struts: The Answer to Life, The Universe, and Everything

2002-07-12 Thread Ted Husted

Since it's Friday, I thought I would mention that, personally, I am
tickled that Struts was awarded the coveted list ID #42. 

http://nagoya.apache.org/eyebrowse/SummarizeList?listId=42

For anyone who is not a Douglas Adams reader, I apologize for the
inscrutable use of bandwidth. 

http://www.bbc.co.uk/dna/h2g2/Search?searchstring=42searchtype=goosearchdosearch=Search+h2g2

-- Ted Husted, Husted dot Com, Fairport NY US
-- Java Web Development with Struts
-- Tel: +1 585 737-3463
-- Web: http://husted.com/about/services

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




RE: change an Actionform

2002-07-12 Thread Jon.Ridgway

Hi Sven,

I guess the easiest way would be to add an action property to your form then
add a html:hidden property=action value=search/edit/ to your jsps.
Then in your validate method check the value of the action property and
validate accordingly.

Jon Ridgway


-Original Message-
From: Efftinge, Sven [mailto:[EMAIL PROTECTED]] 
Sent: 12 July 2002 12:43
To: 'Struts Users Mailing List'
Subject: AW: change an Actionform

Hi Jon,
I did it that way, too and it worked. 
But I wanted to validate the search form and I just have one validate method
per ActionForm, and the validation in search and edit is not the same.

I'm wondering about this problem because it's so fundamental. 
I mean doesn't need anybody who works with struts a solution for this?


-Ursprüngliche Nachricht-
Von: Jon.Ridgway [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 12. Juli 2002 12:40
An: 'Struts Users Mailing List'
Betreff: RE: change an Actionform


Hi Sven,

I do it as specified in my previous post. Although I'd use the same action
form to store search and editing values, this way the mapping.getName () bit
in the search action would work (no hard coding of the key to use to store
the search results in session/request for editing).

Jon Ridgway


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


The contents of this email are intended only for the named addressees and
may contain confidential and/or privileged material. If received in error
please contact UPCO on +44 (0) 113 201 0600 and then delete the entire
e-mail from your system. Unauthorised review, distribution, disclosure or
other use of this information could constitute a breach of confidence. Your
co-operation in this matter is greatly appreciated. 

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




running struts-validator with tomcat3.2.1

2002-07-12 Thread B S V PRASAD

Hai,
   could any body tell how to run the struts-validation sample program with
tomcat3.2.1
when i am running i am getting the following exception.i have placed all the
required jars in the tomcat lib.

javax.xml.parsers.ParserConfigurationException: Namespace not supported by
SAXParser
at com.sun.xml.parser.SAXParserImpl.init(SAXParserImpl.java:60)
at
com.sun.xml.parser.SAXParserFactoryImpl.newSAXParser(SAXParserFactoryImpl.ja
va:57)
at org.apache.commons.digester.Digester.getParser(Digester.java:338)
at org.apache.commons.digester.Digester.parse(Digester.java:859)
at
org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1274).
..

  what should i do now.
prasad


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




RE: where can caching help performance?

2002-07-12 Thread Jon.Ridgway

Hi,

With less class loading, fewer objects in memory and the potential for a
single centralized cache, singletons may help performance...

As for bottlenecks; well if you are modifying values, not just returning
cached values, then you would need a synchronized block of code and this
would introduce a bottleneck...

Jon Ridgway


-Original Message-
From: Steinar Bang [mailto:[EMAIL PROTECTED]] 
Sent: 12 July 2002 12:43
To: [EMAIL PROTECTED]
Subject: Re: where can caching help performance?

 Jon.Ridgway [EMAIL PROTECTED]:

 Judicious use of the Singleton pattern can also speed performance.

How so?  I would have thought singletons may introduce bottlenecks...?



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


The contents of this email are intended only for the named addressees and
may contain confidential and/or privileged material. If received in error
please contact UPCO on +44 (0) 113 201 0600 and then delete the entire
e-mail from your system. Unauthorised review, distribution, disclosure or
other use of this information could constitute a breach of confidence. Your
co-operation in this matter is greatly appreciated. 

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




RE: Struts: The Answer to Life, The Universe, and Everything

2002-07-12 Thread Andrew Hill

While on the subject...
Why is it that Internet Explorers 'friendly' error messages remind me of
Zaphods sunglasses? ;-)

-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 20:42
To: [EMAIL PROTECTED]
Subject: Struts: The Answer to Life, The Universe, and Everything


Since it's Friday, I thought I would mention that, personally, I am
tickled that Struts was awarded the coveted list ID #42.

http://nagoya.apache.org/eyebrowse/SummarizeList?listId=42

For anyone who is not a Douglas Adams reader, I apologize for the
inscrutable use of bandwidth.

http://www.bbc.co.uk/dna/h2g2/Search?searchstring=42searchtype=goosearchdo
search=Search+h2g2

-- Ted Husted, Husted dot Com, Fairport NY US
-- Java Web Development with Struts
-- Tel: +1 585 737-3463
-- Web: http://husted.com/about/services

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


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




RE: Display Tag Library

2002-07-12 Thread Kamholz, Keith (corp-staff) USX

I'm doing the same exact thing right now.  It took some doing to figure out
how to make it work.  But anyway, I have an EntryHolder class in the session
that stores a few ArrayLists of entries.  It also stores a String[] of the
entry numbers to delete.  The following code gets the selected index numbers
and stores them in that deletion array.  When the form is submitted, the
user is taken to a confirmation page.  When the user clicks the confirmation
link, the action calls a method on the EntryHolder class that simply tells
it to delete the selected entries, which is simple to do.
The code in my JSP includes the following:


html:form action=/EditEntry.do?action=confirmtype=md
table border=0
tbody align=left
logic:iterate id=md name=entries property=mdEntries
type=com.moog.us.eos.beans.MDentry indexId=index
  tr
td
html:checkbox name=entries property=selections
value=%=index.toString()%/
/td
td
bean:write name=md property=label/
/td
/tr
/logic:iterate
/tbody
/table
html:submit value=Delete Selected Entries/
/html:form


My solution may be somewhat unconventional, but I think it works great.  I'm
not sure how applicable this design is to what you're doing, but it sounds
like you're trying to do the same thing.  However, if you're using the
Display Tag Lib and displaying info column by column, you'll just have to
make some changes in the JSP.  Should be pretty simple though.
I hope this helps.

~ Keith
http://www.buffalo.edu/~kkamholz



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 4:39 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Display Tag Library



You mentioned that you had a bunch of features You dont happen to 
have one that works with the multicheckbox control?  I want to add a 
delete checkbox to each row...






-Original Message-
From: lists [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 04, 2002 12:29 AM
To: struts-user
Subject: RE: Wow - Continued...


 -Original Message-
 From: [EMAIL PROTECTED]
 ---
 The Display Tag library  ( http://edhill.its.uiowa.edu/display/ )
 This was the best one I could find for it, although the documentation 
is
 somewhat lacking and required some source diving to learn that I could
 do grouping and such.  It supports Dynabeans and does all kinds of 
nice
 looking things...  I could go into it all now, but if you go to the 
web
 site its all already described.

Ed had a BOF at JavaOne this year to sort of show how he came up with 
that
tag lib and how it works. It's very straightforward, easy to use, and 
easy
to modify. I've already added a bunch of features that I'm going to 
submit
back to him, and they all were extremely easy to implement. If anybody 
has a
table tag they are in love with that seems like it's better than this, 
I'd
love to hear about it!

Joe


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



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

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




Form Bean ClassNotFound exception in JBuilder6

2002-07-12 Thread Neil.Axtell


Greetings Oh Wise ones.

I'm trying to set-up a completely new development using JSP, Struts (v1.02)
 JBuilder6. I've managed to build a Struts JSP page OK (Struts form
actually) and configure web.xml  struts-config.xml correctly (the page
displayed OK until I attempted to add the Form Bean). I've created a new
Form Bean and associated it with the Action class. All the classes compile
OK.

The problem is, that when I attempt to run the project using JBuilder's
internal version of Tomcat (v4.0) I get the following Java exception when I
attempt to open my simple page (i.e.
http://localhost:8480/Expresso/ResultArchiveAdmin.jsp) :-

javax.servlet.ServletException: Exception creating bean of class
com.anritsu.eu.Expresso.ResultArchiveAdminFormBean:
java.lang.ClassNotFoundException:
com.anritsu.eu.Expresso.ResultArchiveAdminFormBean
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:457)
at
org.apache.jsp.ResultArchiveAdmin$jsp._jspService(ResultArchiveAdmin$jsp.jav
a:565)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:202)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:201)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1011)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106
)
at java.lang.Thread.run(Thread.java:536)

Obviously I'm not telling something (Tomcat, Jasper??) where it can find
this Class file. The Class has complied OK and I've confirmed that a copy of
the Class file is in the com hierarchy under /WEB-INF/classes AND that
I've spelt the classname correctly in struts-config.xml :-

  form-beans
form-bean  name=ResultArchiveAdminForm
 
type=com.anritsu.eu.Expresso.ResultArchiveAdminFormBean/
  /form-beans

  action-mappings
actionpath=/AddArchive
   type=com.anritsu.eu.Expresso.ActAddResultArchive
   name=ResultArchiveAdminForm
  scope=request
   validate=true
  input=/ResultArchiveAdmin.jsp
  forward name=failure path=/RAError.jsp/
  forward name=success path=/ResultArchiveAdmin.jsp/
/action

I've tried adding the path /WEB-INF/Classes as a distinct Project Library
(Tools|Configure Libraries) but to no avail.

Has anyone any idea what I'm doing wrong. It was all going so well up 

Re: Error using tiles and ForwardAction

2002-07-12 Thread Cedric Dumoulin


  The Struts ForwardAction do a forward with an URL. Tiles definition 
names are logical names, and you can't use them as URL.
  You can use them in tag insert ..., or  in a  forward 
path=aDefName/. If you want to insert a definition according to a 
request parameter, try the tiles action
org.apache.struts.tiles.actions.DefinitionDispatcherAction. Check its 
api for the syntax.

   Hope this help,
 Cedric

[EMAIL PROTECTED] wrote:

Hello everyboy,
I am trying to use tiles with ForwardAction, and I have the next error, anyone
knows whats the problem.

Juan Pedro.

javax.servlet.ServletException: Path crearRango does not start with a / character
at 
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:490)
at 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:266)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1227)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:484)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)

struts-conf.xml

   action path=/crearRangoIni 
 parameter=crearRango 
 type=org.apache.struts.actions.ForwardAction 
 name=crearRangoForm 
 validate=false /
   /action-mappings

tilesDefinitions.xml

  definition name=crearRango extends=mainLayout
put name=body value=/crearRango.jsp /
  /definition




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




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




html:cancel/

2002-07-12 Thread Paul McKinney

From everything that I can tell when using the html:cancel/ tag, my
perform() method in my Action class never seems to get executed.  It
appears that after pressing the cancel button that the forward tag
named as cancel in my action mapping in the struts-config file is used 
and forwards to the specified path, bypassing calling the perform() 
method.

I understand that the validate() method in my form bean won't be called if
the cancel button is pressed but I would think that my perform() in my 
Action class should be called.

Is anyone else having a problem with this or am I misunderstanding 
something.  

Thanks for you help.


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




RE: logon.title not found

2002-07-12 Thread wbchmura


Which version are you using?

I had a lot of problems in the beginning with 1.1b1 with using the 
example app and blank to start from.  I ended up using the struts 
console to make a whole new struts-config.xml from scratch.  The example 
and stuff was using the old struts at the time I think!



-Original Message-
From: bh5k [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 7:17 PM
To: struts-user
Subject: logon.title not found


I am trying to take the struts-example.war and modify
it to start development. I have stripped out the stuff
that I needed to get going and am having a problem
with the ApplicationResources file. Inside the
login.jsp it specifies that it is looking for
login.title in a bean tag to display the title for
this page. Well I have included the
ApplicationResources.properties file in my war and
specified in the web.xml file the updated path to
where the file is located at and I still keep getting
hte error saying that the logon.title can not be
found.

javax.servlet.jsp.JspException: Missing message for
key logon.title

Is there something that I am overlooking on how to
include the this?

Thanks,

Bryan

__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

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



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




RE: where is ApplicationResources.properties defined?

2002-07-12 Thread wbchmura


I have this in my struts-config.xml
It seems to work...

message-resources 
parameter=/WEB-INF/resources/applicationresources.properties /

-Original Message-
From: craigmcc [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 8:51 PM
To: struts-user
Subject: Re: where is ApplicationResources.properties defined?




On Thu, 11 Jul 2002, Struts Newsgroup wrote:

 Date: Thu, 11 Jul 2002 16:40:02 -0700
 From: Struts Newsgroup [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: where is ApplicationResources.properties defined?

 Subject: where is ApplicationResources.properties defined?
 From: David Chu [EMAIL PROTECTED]
  ===
 I am very confused on how to define a new path for the file currently 
named
 ApplicationResources.properties  I did not see any definition in 
either
 web.xml nor struts-confug.xml.   Specifically, is there any way to 
define it
 to live outside of the WEB-INF/classes directory?  (this is because 
a
 clean operation deletes my whole classes directory, including the
 ApplicationResources.properties file!)  Thanks very much for the help.


Struts uses the web application class loader to load the application
resources file for your application.  Therefore, it must either be in
/WEB-INF/classes, or inside a JAR file in /WEB-INF/lib.

In Struts 1.0, you configure the class name of the application 
resources
by using the application servlet initialization parameter on the
controller servlet.  In Struts 1.1, you configure this with a
message-resources element in struts-config.xml instead.

In the Struts example application, the application resources are
initialized to org.apache.struts.webapp.example.ApplicationResources,
which means that they must either exist as files named

  
/WEB-INF/classes/org/apache/struts/webapp/example/ApplicationResources.p
roperties

or be in a JAR file in /WEB-INF/lib with the pathname

  org/apache/struts/webapp/example/ApplicationResources.properties

My developemnet setup is similar to yours, in that a clean operation
deletes the entire web application output directory.  I solve this by
keeping the properties files for the application resources in the same
directory as the Java source code for the corresponding package (in this
case, the package is org.apache.struts.webapp.example).  Then, in my Ant
build script, I copy all the non-Java source files after compiling, like
this:

  !-- Copy JSP files, WEB-INF configuration files, etc. --
  target name=prepare
mkdir  dir=target
copy todir=target
  fileset dir=web/
/copy
  /target


  target name=compile depends=prepare
!-- Compile Java classes, output .class files to /WEB-INF/classes 
--
javac srcdir=src
  destdir=target/WEB-INF/classes
 ...
/javac
!-- Copy everything except sources --
!-- This picks up the application resources properties files --
copy todir=target/WEB-INF/classes
  fileset dir=src
exclude name=**/*.java/
  /fileset
/copy
  /target

In my CVS repository, all the Java sources and properties files are 
under
src, and all the JSP pages and WEB-INF stuff is under web.  Thus, I
can reassemble the entire webapp under the target directory any time 
I
want to.

If you're not using Ant, you should be able to set up something 
equivalent
to this with your preferred build tools.


 --
 -david

Craig


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



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




RE: DynaBeans, DynaClass, DynaMen

2002-07-12 Thread wbchmura


The issue became pointless when for some reason the tag lib I was using 
started working all the sudden.  We may never know why, but it seems to 
like dynabeans now...

Thanks anyway!

-Original Message-
From: tra [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 1:03 AM
To: struts-user
Subject: Re: DynaBeans, DynaClass, DynaMen


[EMAIL PROTECTED] skrev:

...anyone remember DynaMen?  

Anyhow...  I got a Dynabean mechanism working that builds a DynaBean 
based on the metadata of a SQL result set, populates and array of the 
little buggers and passes it back to me.  For displaying I have a tag 
library that does not like a call to get('name') as the field name.   
What is the best way to get around this?

I wrote an AnonyBeans package which uses BCEL to generate beans on the 
fly based on a ResultSet.  It is alpha code but works for me, and is 
usable anywhere where you need a real traditional bean, but where you do 

not want to serialize it or  use its type in Java source.

Is this interesting?

-- 
  Thorbjørn Ravn Andersen http://biobase.dk/~tra
  Scandiatransplant, Skejby Hospital
  Brendstrupgaardsvej, Entrance 3
  DK-8200 Århus N +45 89 49 53 01




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



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




RE: keeping the old debate open...

2002-07-12 Thread wbchmura


I saw about 4 new ones come across since then...


-Original Message-
From: daniel.joshua [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 3:13 AM
To: struts-user
Subject: RE: keeping the old debate open...


23 bugs... ooo, sounds close to beta 2 =)

Just a big thank you to all those who are solving bugs.


Regards,
Daniel

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 1:37 AM
To: [EMAIL PROTECTED]
Subject: RE: keeping the old debate open...



Okay, if I do that and further refine it by:

All SEVERITY except enhancement
Versions 1.1b1, Nightly Build, Unknown

I am down to 23 bugs.  Is this an accurate representation of what has to
happen before the next beta release?   Are Enhancements planned to be
done before the next beta?

Saying there are 23 known bugs to be fixed sounds much better for the
project than including all the enhancement requests too!







-Original Message-
From: craigmcc [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 12:09 PM
To: struts-user
Subject: RE: keeping the old debate open...




On Thu, 11 Jul 2002 [EMAIL PROTECTED] wrote:

 Date: Thu, 11 Jul 2002 10:55:14 -0400
 From: [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: RE: keeping the old debate open...


 I cant get more than 15 bugs to be displayed and half of those are
 enhancements...
 On the summary page I can see a bunch, but under a query forget it!


As you might imagine :-), I have a saved query on Bugzilla to select
Struts bug reports.  As of a few seconds ago, it finds 92 of them (many
enhancements, many bugs against 1.0.x, and a few outstanding against
1.1).

The search criteria I use:
- Status = UNCONFIRMED, NEW, ASSIGNED, REOPENED
- Program = Struts

For reference, our bug tracking system (for all Jakarta and
Xml.apache.org
projects) is at:

  http://nagoya.apache.org/bugzilla/

Craig







 -Original Message-
 From: Kevin.Bedell [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, July 11, 2002 10:18 AM
 To: struts-user
 Subject: Re: keeping the old debate open...






  just a question about how open-source projects are managed at
  apache's : how do you know you run out of bugs to fix ? what's the
way
 the
  projects are tested ? thanks, since my boss wonders about
open-source
 and
  fears it a bit...

 One of fundamental advantages of Open Source is that finding bugs
 generally
 occurs much faster. Plus, as a user you have direct access to the bug
 tracking system (bugzilla, in this case at
 http://nagoya.apache.org/bugzilla/ ).

 There are currently 90 open bugs for Struts. How do I know this? I
just
 looked - it's on-line for everyone to see. If you find a bug, you can
 add
 one yourself and someone with appropriate rights in bugzilla will have
 to
 address it before it dissapears - it's an extremely 'open book'
approach
 that no vendor would dream of giving you. I've worked for software
 companies and we would NEVER have opened our bug lists - our
competitors
 would have printed them out and used them against us in sales calls.

 Eric Raymond, in his essay The Cathedral and the Bazaar says that
 ``Given
 enough eyeballs, all bugs are shallow.'' And, at least, that they
turn
 shallow pretty quickly when exposed to a thousand eager co-developers
 pounding on every single new release.

 This is why Linux is more stable than NT and Apache dominates the web
 server market - it's not because it's free, it's because it's BETTER
and
 FREER of BUGS. If I were your boss, I'd worry more about the quality
of
 commercial software than I would about open source.


 If your manager is concerned about using Open Source becuase of
software
 quality, then get them a copy of Eric's book: The Cathedral and the
 Bazaar
 - it's a very short and easy read.


 The Cathedral and the Bazaar is available at either:

on-line free:
http://www.tuxedo.org/~esr/writings/cathedral-bazaar/

   - or -

   from Amazon:

http://www.amazon.com/exec/obidos/ASIN/0596001088/qid=1026397260/sr=8-1/ref=
sr_8_1/103-4271210-7048648


 The discussion about Open Source projects and debugging is at:



http://www.tuxedo.org/~esr/writings/cathedral-bazaar/cathedral-bazaar/x147.h
tml


 Best of luck,

 Kevin




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



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




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



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


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



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




RE: where is ApplicationResources.properties defined?

2002-07-12 Thread Kamholz, Keith (corp-staff) USX

I have almost the same thing in my struts-config.  The only difference is
that I put the property file in my source directory, and the
message-resources parameter refers to the package name.  I'm not sure why
you don't need the *.properties extension, but mine works just fine like
this.

message-resources parameter=com.moog.us.eos.ApplicationResources/


~ Keith
http://www.buffalo.edu/~kkamholz


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 9:48 AM
To: [EMAIL PROTECTED]
Subject: RE: where is ApplicationResources.properties defined?



I have this in my struts-config.xml
It seems to work...

message-resources 
parameter=/WEB-INF/resources/applicationresources.properties /

-Original Message-
From: craigmcc [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 8:51 PM
To: struts-user
Subject: Re: where is ApplicationResources.properties defined?




On Thu, 11 Jul 2002, Struts Newsgroup wrote:

 Date: Thu, 11 Jul 2002 16:40:02 -0700
 From: Struts Newsgroup [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: where is ApplicationResources.properties defined?

 Subject: where is ApplicationResources.properties defined?
 From: David Chu [EMAIL PROTECTED]
  ===
 I am very confused on how to define a new path for the file currently 
named
 ApplicationResources.properties  I did not see any definition in 
either
 web.xml nor struts-confug.xml.   Specifically, is there any way to 
define it
 to live outside of the WEB-INF/classes directory?  (this is because 
a
 clean operation deletes my whole classes directory, including the
 ApplicationResources.properties file!)  Thanks very much for the help.


Struts uses the web application class loader to load the application
resources file for your application.  Therefore, it must either be in
/WEB-INF/classes, or inside a JAR file in /WEB-INF/lib.

In Struts 1.0, you configure the class name of the application 
resources
by using the application servlet initialization parameter on the
controller servlet.  In Struts 1.1, you configure this with a
message-resources element in struts-config.xml instead.

In the Struts example application, the application resources are
initialized to org.apache.struts.webapp.example.ApplicationResources,
which means that they must either exist as files named

  
/WEB-INF/classes/org/apache/struts/webapp/example/ApplicationResources.p
roperties

or be in a JAR file in /WEB-INF/lib with the pathname

  org/apache/struts/webapp/example/ApplicationResources.properties

My developemnet setup is similar to yours, in that a clean operation
deletes the entire web application output directory.  I solve this by
keeping the properties files for the application resources in the same
directory as the Java source code for the corresponding package (in this
case, the package is org.apache.struts.webapp.example).  Then, in my Ant
build script, I copy all the non-Java source files after compiling, like
this:

  !-- Copy JSP files, WEB-INF configuration files, etc. --
  target name=prepare
mkdir  dir=target
copy todir=target
  fileset dir=web/
/copy
  /target


  target name=compile depends=prepare
!-- Compile Java classes, output .class files to /WEB-INF/classes 
--
javac srcdir=src
  destdir=target/WEB-INF/classes
 ...
/javac
!-- Copy everything except sources --
!-- This picks up the application resources properties files --
copy todir=target/WEB-INF/classes
  fileset dir=src
exclude name=**/*.java/
  /fileset
/copy
  /target

In my CVS repository, all the Java sources and properties files are 
under
src, and all the JSP pages and WEB-INF stuff is under web.  Thus, I
can reassemble the entire webapp under the target directory any time 
I
want to.

If you're not using Ant, you should be able to set up something 
equivalent
to this with your preferred build tools.


 --
 -david

Craig


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



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

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




FW: Really dynamic forms (regex)

2002-07-12 Thread Michael Connor

I have not been able to find a way to provide this functionality.  Olivier
is more concerned with how to declare the fields that will be returned as
opposed to how to present them on the form.  You have to declare the fields
in the struts-config file to work with the DynaActionForm.  You could of
course do it the old fashioned way and just pull it out of the request but I
assume you're using the new validator and want to take advantage of
enforcing types.  From posts I've seen in the past, there is no way out of
the box to do this.

It would be cool if you could declare your parameter names using regular
expressions so you could say something like

form-property name=PassengerFName\d+ type=java.lang.String/
form-property name=PassengerLName\d+ type=java.lang.String/
form-property name=PassengerMName\d+ type=java.lang.String/

So that you could have numbered parameters with the same root name and
validation could be done across all entries.

Anyone have any ideas?

Michael Connor

-Original Message-
From: Jon.Ridgway [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 5:59 AM
To: 'Struts Users Mailing List'
Subject: RE: Really dynamic forms


Hi Olivier

In your case you could have an action create and populate an ArrayList with
empty passenger objects, add the list to a form, put the form into scope and
forward to a jsp. Then in the jsp iterate over the list displaying input
fields for each passenger object...easy...ish...

Jon Ridgway


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: 11 July 2002 16:40
To: [EMAIL PROTECTED]
Subject: Really dynamic forms

Hi !

Contrary to DynaActionForm which are rather declarative forms than dynamic
forms, I have a need for building forms that are parametric. For instance,
the Internet user specifies the number of elements he requires, and the
system builds dynamically a JSP form containing as many fields as the given
number. For instance, for a trip, he gives the number of passengers (let's
say 3) and the next form he sees contains 3 fields named for instance
passengerName1, passengerName2 and passengerName3.
Since I don't know how many fields there will be, how can I design an
ActionForm handling this ? If I were to use a DynaActionForm, I would
nonetheless be compelled to specify the fields in the struts-config.xml
file.
Hope this makes sense.
Thanks for your help.

Olivier Schmeltzer






Les donnees et renseignements contenus dans ce message sont personnels,
confidentiels et secrets. Ce message est adresse a l'individu ou l'entite
dont les coordonnees figurent ci-dessus. Si vous n'etes pas le bon
destinataire, nous vous demandons de ne pas lire, copier, utiliser ou
divulguer cette communication. Nous vous prions de notifier cette erreur a
l'expediteur et d'effacer immediatement cette communication de votre
systeme.

The information contained in this message is privileged, confidential, and
protected from disclosure. This message is intended for the individual or
entity adressed herein. If you are not the intended recipient, please do not
read, copy, use or disclose this communication to others ;also please notify
the sender by replying to this message, and then delete it from your system.


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


The contents of this email are intended only for the named addressees and
may contain confidential and/or privileged material. If received in error
please contact UPCO on +44 (0) 113 201 0600 and then delete the entire
e-mail from your system. Unauthorised review, distribution, disclosure or
other use of this information could constitute a breach of confidence. Your
co-operation in this matter is greatly appreciated. 



RE: where can caching help performance

2002-07-12 Thread Jamie M

Out of curiosity, how did you implement the in-memory
cache?  One big (1 gig!) hashmap :-) or something more
exotic?

--
jamie

-Original Message-
From: Simon.Chappell
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 4:07 PM
To: struts-user
Subject: RE: where can caching help performance?


We have found that the biggest bang for the buck comes
with pre-fetching 
data out of the database and building our business
objects ahead of time 
and storing them in an in-memory cache. This means
that we have a very 
large cache (we estimate at least a gig when we get
fully ramped up for 
phase one and more after that), but we get phenominal
throughput from 
it. Our reason for this was a maximum processing time
of 3.6 seconds and 
we knew that we could not allow the database access to
be the choke 
point in the system.

__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

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




RE: Iterate with multicolumn data...

2002-07-12 Thread wbchmura

Warning: Theory ahead...

Since the HTML tables actually have the columns in sequence

(ie:
tr
td!-- Iterate odd here --/td
td!-- Iterate even here --/td
/tr
)

You could iterate through all of the odd ones when you build the first 
column, then all the even ones on the second column...


Its friday and Andy Rooney still wants to be implanted with a 
microchip...  




-Original Message-
From: marrotte [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 9:52 PM
To: struts-user
Subject: Iterate with multicolumn data...


What's the best way to display multicolumn (e.g. 2-column) lists in 
Struts,
with say Iterate?

Say I have the list a,b,c,d,e,f...  But, I want to display it as:
C1 C2
a  b
c  d
e  f
...

Any help is greatly appreciated.

Thanks,

--Michael Marrotte


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



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




RE: where can caching help performance

2002-07-12 Thread wbchmura


This may be a dumn question, but since its friday what the heck...

If I wanted to build a bunch of business objects when the server starts 
and keep them as singletons or factory objects how would I get them to 
start up and stay alive after that...  if I did it on the first request 
once the request finished the object would be cleaned up...

?




-Original Message-
From: jamienz [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 10:01 AM
To: struts-user
Subject: RE: where can caching help performance


Out of curiosity, how did you implement the in-memory
cache?  One big (1 gig!) hashmap :-) or something more
exotic?

--
jamie

-Original Message-
From: Simon.Chappell
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 4:07 PM
To: struts-user
Subject: RE: where can caching help performance?


We have found that the biggest bang for the buck comes
with pre-fetching 
data out of the database and building our business
objects ahead of time 
and storing them in an in-memory cache. This means
that we have a very 
large cache (we estimate at least a gig when we get
fully ramped up for 
phase one and more after that), but we get phenominal
throughput from 
it. Our reason for this was a maximum processing time
of 3.6 seconds and 
we knew that we could not allow the database access to
be the choke 
point in the system.

__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

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



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




RE: where can caching help performance

2002-07-12 Thread Jerome Jacobsen

If you use the typical singleton pattern (private static member of the
class) then they won't go away until the JVM terminates.  Another
alternative is to place them into application scope.  There are many ways of
doing this.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 10:12 AM
To: [EMAIL PROTECTED]
Subject: RE: where can caching help performance



This may be a dumn question, but since its friday what the heck...

If I wanted to build a bunch of business objects when the server starts
and keep them as singletons or factory objects how would I get them to
start up and stay alive after that...  if I did it on the first request
once the request finished the object would be cleaned up...

?




-Original Message-
From: jamienz [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 10:01 AM
To: struts-user
Subject: RE: where can caching help performance


Out of curiosity, how did you implement the in-memory
cache?  One big (1 gig!) hashmap :-) or something more
exotic?

--
jamie

-Original Message-
From: Simon.Chappell
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 4:07 PM
To: struts-user
Subject: RE: where can caching help performance?


We have found that the biggest bang for the buck comes
with pre-fetching
data out of the database and building our business
objects ahead of time
and storing them in an in-memory cache. This means
that we have a very
large cache (we estimate at least a gig when we get
fully ramped up for
phase one and more after that), but we get phenominal
throughput from
it. Our reason for this was a maximum processing time
of 3.6 seconds and
we knew that we could not allow the database access to
be the choke
point in the system.

__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

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



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




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




How do we calculate session size?

2002-07-12 Thread Ravi Kora

Hi all,
I want to know what are the objects that come into consideration while
calculating the session size. Is it only the session objects(or session
attributes) which have to be considered for calculating session size? If
there are some other things plz lemme know.

I know I am being very dumb here but ..!


Thanks  Regards,
Ravi Kora
[EMAIL PROTECTED]
337-739-3434(M) 

-Original Message-
From: Jon.Ridgway [mailto:[EMAIL PROTECTED]] 
Sent: Friday, July 12, 2002 5:47 AM
To: 'Struts Users Mailing List'
Subject: RE: Problem with session ojects: memory size, updates 


Hi,

Your English is a hell of a lot better than my French...Your question is
one that comes up a lot on the list try a search at:

http://www.mail-archive.com/struts-user@jakarta.apache.org

for 'session size'. One pertinent post is:

http://www.mail-archive.com/struts-user@jakarta.apache.org/msg34592.html

In short, the answer to what should go in the session depends on how
your application will be used. If you expect a *very* high number of
concurrent users your session should be under 4k (taken from iAS,
WebLogic and WebSphere docs, white papers etc). 

It will also depend on your hardware, how much RAM is available, network
bandwidth, database size/speed etc. If you can predict the highest level
of concurrent users, multiple your maximum session size by this. The
result will be the amount of RAM taken up by all the sessions put
together, if you have sufficient RAM to handle this and all over
requirements, then the session size is not an issue.  Note however that
the number of users can explode unexpectedly, so the best practice
recommendation is to keep session size as small as possible. 

As for the speed of looking up objects from the session, this will
depend on your app server, when clustering some app servers will store
the session in a db or other persistent store, lookups in this case are
relatively expensive. If you are not clustering, I wouldn't worry about
the speed of the lookup (even if you are I wouldn't worry about it that
much - its not a bottle neck I've ever come across.)

Jon Ridgway


-Original Message-
From: Heligon Sandra [mailto:[EMAIL PROTECTED]] 
Sent: 11 July 2002 15:12
To: '[EMAIL PROTECTED]'
Subject: Problem with session ojects: memory size, updates 


Sorry, my english level isn't very good.

I read that the Struts framework doesn't make (oblige) 
to use one particular model implementation (EJB, JavaDataObject,
JavaBean, ...).
But the JavaBean solution is understood or greatly recommended,
isn't it ?
Because struts uses JSP to display data and JSP pages use
JavaBean tags.
If  we work whit XML representations of  remote business
objects, is it better to
use struts XSL tags rather than generate JavaBean from the XML
description ?
The XSL solution requires to know XSL tags and  is slower and
more complex.
With JavaBean solution I am frightened having memory or request
time
problem.
The user does a request, the selected Action gets business data
from the
enterprise tier, generates one or several JavaBean instances and
stores the JavaBean 
in the HttpSession. 
But the HttpSession size will grow quickly.
It is difficult to know when we have to store data in request
scope or session scope.
Has somebody advices about this dilemma? 
I am tending to put data systematically in HttpSession in order
to reduce network traffic if the user
ask again this page.
What is the max size of the session objects ? 
If we user rights on the business objects, we will have the same
JavaBean in several HttpSessions.
What do you think about this problem ? 

A last question if we have numerous session objects, when we
will have to update one
of them it will be very slow to find it in the list.
Do you have advices about that ?
Is the JavaBean/HttpSession solution realistic with real-time
data?

Thanks a lot in advance. 

 


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


The contents of this email are intended only for the named addressees
and may contain confidential and/or privileged material. If received in
error please contact UPCO on +44 (0) 113 201 0600 and then delete the
entire e-mail from your system. Unauthorised review, distribution,
disclosure or other use of this information could constitute a breach of
confidence. Your co-operation in this matter is greatly appreciated. 

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


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




struts-config 1.1 dtd issue??

2002-07-12 Thread Ryan Cornia

I'm using SilverStream which has difficulties resolving DTD's if inside of a firewall. 
What I have done with my web.xml files is embed the DTD inside the XML file at the 
top, and this works fine. With struts-config, however, I get parsing errors when it 
parses the file. The errors are -

Parse Fatal Error at line 143 column 41: The attribute type is required in the 
declaration of attribute key for element data-source.
org.xml.sax.SAXParseException: The attribute type is required in the declaration of 
attribute key for element data-source.
at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1213)
at 
org.apache.xerces.framework.XMLDTDScanner.reportFatalXMLError(XMLDTDScanner.java:679)
at 
org.apache.xerces.framework.XMLDTDScanner.abortMarkup(XMLDTDScanner.java:717)
at 
org.apache.xerces.framework.XMLDTDScanner.scanAttlistDecl(XMLDTDScanner.java:2136)


In the struts-config.xml, I simply put -
!DOCTYPE struts-config [
 ... EVERYTHING FROM STRUTS_CONFIG_1_1_DTD
]

struts-config
...normal config stuff..
/struts-config

Any ideas of how I can embed the DTD directly into the xml file?

Thanks, 
Ryan


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




New? and related links

2002-07-12 Thread @Basebeans.com

Subject: New? and related links
From: Vic C. [EMAIL PROTECTED]
 ===
I did not see these links mentioned on Struts list, but I could have 
missed, fyi:

1. http://javaboutique.internet.com/tutorials/Struts/
Yet another Intro to Struts


2. http://developer.iplanet.com/tech/appserver/framework/index.jsp
Another MVC framework, aka JATO. (JATO is mentioned along with Struts on 
the Java Server Faces home page)


3. http://www.ibatis.com/jpetstore/jpetstore.html
A Very Good Struts + DB implementation. Other than webPIM this is the 
only Struts + DB sample I know of.
(webPIM is at www.baseBeans.com/downloads.jsp and is on SourceForge 
under Apache Software License, as is the Struts FastTrack book. webPIM 
is also on downloads.com)
If there is another Struts + DB example out there other than baseBeans 
and ibatis, I would like to look at it.


4. http://www.lifl.fr/~dumoulin/tiles/tilesAdvancedFeatures.pdf
As the link says


5. http://jcp.org/aboutJava/communityprocess/final/jsr052/
Standard Tag Lib has been released and here is the tag Doco


6. http://www.basebeans.com/classReservation.jsp
2 cities added: Atlanta and Chicago (NYC 1st)


7. http://suned.sun.com/US/certification/java/exam_objectives.html#web
A good cert.


hth,
Vic



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




RE: where can caching help performance

2002-07-12 Thread Chappell, Simon P

We have a servlet that starts up at app server initialisation and it's init method 
starts our background caching thread and it's finalize method stops it. This way the 
cache is always in memory and doesn't get picked up by the GC.

Simon

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 9:12 AM
To: [EMAIL PROTECTED]
Subject: RE: where can caching help performance



This may be a dumn question, but since its friday what the heck...

If I wanted to build a bunch of business objects when the 
server starts 
and keep them as singletons or factory objects how would I get them to 
start up and stay alive after that...  if I did it on the 
first request 
once the request finished the object would be cleaned up...

?




-Original Message-
From: jamienz [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 10:01 AM
To: struts-user
Subject: RE: where can caching help performance


Out of curiosity, how did you implement the in-memory
cache?  One big (1 gig!) hashmap :-) or something more
exotic?

--
jamie

-Original Message-
From: Simon.Chappell
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 4:07 PM
To: struts-user
Subject: RE: where can caching help performance?


We have found that the biggest bang for the buck comes
with pre-fetching 
data out of the database and building our business
objects ahead of time 
and storing them in an in-memory cache. This means
that we have a very 
large cache (we estimate at least a gig when we get
fully ramped up for 
phase one and more after that), but we get phenominal
throughput from 
it. Our reason for this was a maximum processing time
of 3.6 seconds and 
we knew that we could not allow the database access to
be the choke 
point in the system.

__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

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



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


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




RE: where can caching help performance

2002-07-12 Thread wbchmura


So to continue my dumb question...  I would start the servlet when 
struts starts up and have it declare my objects as singletons.  Then in 
my app I would just create the objects when I needed access to them?



-Original Message-
From: Simon.Chappell [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 10:53 AM
To: struts-user
Subject: RE: where can caching help performance


We have a servlet that starts up at app server initialisation and it's 
init method starts our background caching thread and it's finalize 
method stops it. This way the cache is always in memory and doesn't get 
picked up by the GC.

Simon

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 9:12 AM
To: [EMAIL PROTECTED]
Subject: RE: where can caching help performance



This may be a dumn question, but since its friday what the heck...

If I wanted to build a bunch of business objects when the 
server starts 
and keep them as singletons or factory objects how would I get them to 
start up and stay alive after that...  if I did it on the 
first request 
once the request finished the object would be cleaned up...

?




-Original Message-
From: jamienz [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 10:01 AM
To: struts-user
Subject: RE: where can caching help performance


Out of curiosity, how did you implement the in-memory
cache?  One big (1 gig!) hashmap :-) or something more
exotic?

--
jamie

-Original Message-
From: Simon.Chappell
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 4:07 PM
To: struts-user
Subject: RE: where can caching help performance?


We have found that the biggest bang for the buck comes
with pre-fetching 
data out of the database and building our business
objects ahead of time 
and storing them in an in-memory cache. This means
that we have a very 
large cache (we estimate at least a gig when we get
fully ramped up for 
phase one and more after that), but we get phenominal
throughput from 
it. Our reason for this was a maximum processing time
of 3.6 seconds and 
we knew that we could not allow the database access to
be the choke 
point in the system.

__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

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



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


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



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




logic tag to check value of bean

2002-07-12 Thread rainer juenger

Hi,

can I compare an attribute value of a bean with the logic TagLib?

eg.:
my beans name is myobject and it has session scope
Wirthin that bean there is an attribute:
boolean myattribute = true;
There is of course a setter and a getter for that attribute.

How would the logic tag look like??


My suggestion that doesn't work:
logic:equal name=myobject property=myattribute scope=session value=true
   my output
 /logic:equal

thanks!! 



RE: where can caching help performance

2002-07-12 Thread Chappell, Simon P

And to continue my obviously inadequate and lame answer ...

Disclaimer: I didn't write the code, I just asked that it be written like this (i.e. I 
drove the logical design) ... these are the perils of being a tech lead on a project 
and having to trust that the developers really did what you asked and really 
implemented it the way that they explained it to you. The behaviour of the system is 
exactly how I asked for it to be, so I'm happy, but I haven't had much opportunity to 
peek under the covers yet.

The app never touches the cache. It makes requests to the DB subsystem and that makes 
a request to the cache manager and then receives a business object. The app never 
knows if the object was their in the cache at request time or if it had to be 
dynamically fetched. All it knows is that it asked and it received (kinda biblical :-) 
The cache manager is the only part of the system that knows what it's doing as far as 
creating, updating and purging cached business objects.

Simon

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 10:15 AM
To: [EMAIL PROTECTED]
Subject: RE: where can caching help performance



So to continue my dumb question...  I would start the servlet when 
struts starts up and have it declare my objects as singletons. 
 Then in 
my app I would just create the objects when I needed access to them?



-Original Message-
From: Simon.Chappell [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 10:53 AM
To: struts-user
Subject: RE: where can caching help performance


We have a servlet that starts up at app server initialisation and it's 
init method starts our background caching thread and it's finalize 
method stops it. This way the cache is always in memory and 
doesn't get 
picked up by the GC.

Simon

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 9:12 AM
To: [EMAIL PROTECTED]
Subject: RE: where can caching help performance



This may be a dumn question, but since its friday what the heck...

If I wanted to build a bunch of business objects when the 
server starts 
and keep them as singletons or factory objects how would I 
get them to 
start up and stay alive after that...  if I did it on the 
first request 
once the request finished the object would be cleaned up...

?




-Original Message-
From: jamienz [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 10:01 AM
To: struts-user
Subject: RE: where can caching help performance


Out of curiosity, how did you implement the in-memory
cache?  One big (1 gig!) hashmap :-) or something more
exotic?

--
jamie

-Original Message-
From: Simon.Chappell
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 4:07 PM
To: struts-user
Subject: RE: where can caching help performance?


We have found that the biggest bang for the buck comes
with pre-fetching 
data out of the database and building our business
objects ahead of time 
and storing them in an in-memory cache. This means
that we have a very 
large cache (we estimate at least a gig when we get
fully ramped up for 
phase one and more after that), but we get phenominal
throughput from 
it. Our reason for this was a maximum processing time
of 3.6 seconds and 
we knew that we could not allow the database access to
be the choke 
point in the system.

__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

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



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


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



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



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




Re: html:cancel/

2002-07-12 Thread Paul McKinney

It turns out that on our project they are overriding several methods in 
the ActionServlet one of which changes the way the cancel button is 
handled.  


On Fri, 12 Jul 2002, Paul McKinney wrote:

 From everything that I can tell when using the html:cancel/ tag, my
 perform() method in my Action class never seems to get executed.  It
 appears that after pressing the cancel button that the forward tag
 named as cancel in my action mapping in the struts-config file is used 
 and forwards to the specified path, bypassing calling the perform() 
 method.
 
 I understand that the validate() method in my form bean won't be called if
 the cancel button is pressed but I would think that my perform() in my 
 Action class should be called.
 
 Is anyone else having a problem with this or am I misunderstanding 
 something.  
 
 Thanks for you help.
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


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




RE: where can caching help performance

2002-07-12 Thread wbchmura


Thanks Simon, 

But I am looking for something more technical.  Does anyone know if 
there any code examples for doing anything involving persisting an 
central object in memory in a struts application?



-Original Message-
From: Simon.Chappell [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 11:22 AM
To: struts-user
Subject: RE: where can caching help performance


And to continue my obviously inadequate and lame answer ...

Disclaimer: I didn't write the code, I just asked that it be written 
like this (i.e. I drove the logical design) ... these are the perils of 
being a tech lead on a project and having to trust that the developers 
really did what you asked and really implemented it the way that they 
explained it to you. The behaviour of the system is exactly how I asked 
for it to be, so I'm happy, but I haven't had much opportunity to peek 
under the covers yet.

The app never touches the cache. It makes requests to the DB subsystem 
and that makes a request to the cache manager and then receives a 
business object. The app never knows if the object was their in the 
cache at request time or if it had to be dynamically fetched. All it 
knows is that it asked and it received (kinda biblical :-) The cache 
manager is the only part of the system that knows what it's doing as far 
as creating, updating and purging cached business objects.

Simon

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 10:15 AM
To: [EMAIL PROTECTED]
Subject: RE: where can caching help performance



So to continue my dumb question...  I would start the servlet when 
struts starts up and have it declare my objects as singletons. 
 Then in 
my app I would just create the objects when I needed access to them?



-Original Message-
From: Simon.Chappell [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 10:53 AM
To: struts-user
Subject: RE: where can caching help performance


We have a servlet that starts up at app server initialisation and it's 
init method starts our background caching thread and it's finalize 
method stops it. This way the cache is always in memory and 
doesn't get 
picked up by the GC.

Simon

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 9:12 AM
To: [EMAIL PROTECTED]
Subject: RE: where can caching help performance



This may be a dumn question, but since its friday what the heck...

If I wanted to build a bunch of business objects when the 
server starts 
and keep them as singletons or factory objects how would I 
get them to 
start up and stay alive after that...  if I did it on the 
first request 
once the request finished the object would be cleaned up...

?




-Original Message-
From: jamienz [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 10:01 AM
To: struts-user
Subject: RE: where can caching help performance


Out of curiosity, how did you implement the in-memory
cache?  One big (1 gig!) hashmap :-) or something more
exotic?

--
jamie

-Original Message-
From: Simon.Chappell
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 4:07 PM
To: struts-user
Subject: RE: where can caching help performance?


We have found that the biggest bang for the buck comes
with pre-fetching 
data out of the database and building our business
objects ahead of time 
and storing them in an in-memory cache. This means
that we have a very 
large cache (we estimate at least a gig when we get
fully ramped up for 
phase one and more after that), but we get phenominal
throughput from 
it. Our reason for this was a maximum processing time
of 3.6 seconds and 
we knew that we could not allow the database access to
be the choke 
point in the system.

__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

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



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


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



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



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



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




Re: ActionServlet question

2002-07-12 Thread Craig R. McClanahan

I think a small example test case would be really helpful, as I'm having a
hard time understanding what the issue is.  For me, and for basically
every other Struts user, the controller is invoked once per HTTP request
that has a URL pattern mapped to the controller (i.e. things that end in
*.do in the struts-example app), so I don't understand what you mean by
the controller only gets executed once.

Craig


On Thu, 11 Jul 2002, rainer juenger wrote:

 Date: Thu, 11 Jul 2002 19:09:47 +0200
 From: rainer juenger [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: Re: ActionServlet question

 Hi Craig,

 thanks a lot for your pations!

  I think we are getting confused over terminology.  The action servlet is
  configured in web.xml, not struts-config.xml action elements.
 You are write! I am actually not talking about the ActionServlet but about
 the Class Action that is a Servlet as well ;)
 Sorry for not beeing clear!
 I think I understood the MVC concept.

 Maybe it is more easy to make me understandable when I tell what I want to
 do:
 I have a form that is using Struts. So all the validation and stuff works
 just fine.
 After all required values where put in correctly the values of the form are
 beeing copied into a model bean.
 (just like in the struts-example !)
 Next step is to forward to a .jsp page (as configured in the same action
 forward name=mypreview path/preview.jsp/)that gives a preview of
 inserted data. The data comes out of the model bean.
 The user has now two options: Save or Edit (Save makes the persistance).
 When clicken Edit the user is beeing sent back to the input form.

 I thougt all this is one action! And I need only one Controler Servlet
 (Action Class) for that. The options (Save or Edit) I wanted to give via the
 Querystring to the Controler Servlet (/app/myinputform?action=save or
 /app/myinputform?action=edit). Then the Controler Servlet would deside if
 the data should be written to the DB or the from should be shown with the
 preveously inserted values.

 Well, I found out that the code of the Controler Servelt is only executet
 once. And that is after I correctly filled out my form!
 When I agan call the action path=/myinputform via the belonging path
 there is only the empty form an the Controler Servlet was not proccessed.

 could I make my selve more clear???
 If not I sort of write a documentation of my little test app.

  Craig

 thnks a lot for your help in advanc. I guess I am having a still a problem
 in understanding how Struts works.
 Rainer




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




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




Re: locating DTD when upload an xml file

2002-07-12 Thread Craig R. McClanahan



On Thu, 11 Jul 2002, Yi-Xiong Zhou wrote:

 Date: Thu, 11 Jul 2002 10:50:31 -0700
 From: Yi-Xiong Zhou [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
 Subject: locating DTD when upload an xml file

 Dear helper,

 I am using Digester to parse an xml file from web upload. The DTD file is
 also in the same directory of the xml file and specified in the xml file as
 !DOCTYPE Certificate SYSTEM BRSUCofA.dtd.


Using this relative URL as the system identifier requires the DTD to be in
the same directory that you put the XML file.

 Could anyone tell me the best way to handle this problem?

 One way I think about is to upload the DTD file and save it somewhere in the
 application directory. This directory should be specified in
 ApplicationResources.PROPERTIES file. Then upload the xml file and parse it
 with the saved DTD file. Could anyone tell me how to set the directory to
 the parser so that the parser will know where to look for the DTD file? I
 also need to know how to save the DTD files in struts to a given path.


If the DTDs for your uploaded files are reasonably static, you might
consider just putting them on a webserver somewhere and using an http
system URL like the Struts DTDs do.  For better performance, you can also
configure Digester to use a copy of the DTD inside your webapp instead of
going to the external web server every time -- for an example of this,
take a look at how ActionServlet sets up its Digester to parse
struts-config.xml files, and uses the register method to register internal
copies for some specified public identifiers.

 Thanks.

 Yi-Xiong

Craig


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




Re: java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm

2002-07-12 Thread Craig R. McClanahan

I don't remember a lot about Tomcat 3.x (which it appears you are
running), but it's also important to make sure that struts.jar is *not*
on your CLASSPATH environment variable, or placed in
$JAVA_HOME/jre/lib/ext.  If it is, you'll cause class not found problems
like this.

Craig


On Thu, 11 Jul 2002, malathi gopalan wrote:

 Date: Thu, 11 Jul 2002 18:49:04 -0700
 From: malathi gopalan [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: java.lang.NoClassDefFoundError:
 org/apache/struts/action/ActionForm

 Hi All -
 I have struts.jar in app/WEB-INF/lib and I am receiving a runtime error.
 Struts.jar is not in my classpath. My example app works so I'm not sure
 where to look..
 Thanks
 Malathi.

 Root cause:
 java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm
  at java.lang.ClassLoader.defineClass0(Native Method)
  at java.lang.ClassLoader.defineClass(ClassLoader.java:493)
  at
 java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
  at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
  at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
  at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
  at
 org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.java:446)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
  at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Class.java:120)
  at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:563)
  at
 
jsp.testsuite._0002fjsp_0002ftestsuite_0002ftestSuiteFolder_0002ejsptestSuiteFolder_jsp_88._jspService(_0002fjsp_0002ftestsuite_0002ftestSuiteFolder_0002ejsptestSuiteFolder_jsp_88.java:120)
  at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
 org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282)
  at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
 org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
  at org.apache.tomcat.core.Handler.service(Handler.java:287)
  at
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
  at
 
org.apache.tomcat.facade.RequestDispatcherImpl.doInclude(RequestDispatcherImpl.java:400)
  at
 
org.apache.tomcat.facade.RequestDispatcherImpl.include(RequestDispatcherImpl.java:270)
  at
 org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:414)
  at
 
jsp._0002fjsp_0002findex_0002ejspindex_jsp_6._jspService(_0002fjsp_0002findex_0002ejspindex_jsp_6.java:580)
  at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
 org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282)
  at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
 org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
  at org.apache.tomcat.core.Handler.service(Handler.java:287)
  at
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
  at
 org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:806)
  at
 org.apache.tomcat.core.ContextManager.service(ContextManager.java:752)
  at
 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
  at
 org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
  at
 org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
  at 

Problem in handling multipart requests

2002-07-12 Thread Mahesh Kumar K G

Is this a bug in Struts when forwarding from one Action class to another
?? Im using struts 1.0.1 version ..
Can anyone pls give a resolution for this error ?

javax.servlet.ServletException: Multipart data doesn't start with
boundary At
org.apache.struts.upload.DiskMultipartRequestHandler.handleRequest(DiskM
ulipartRequestHandler.java:103)

I tried using an intermediate jsp forward, it works. But Im facing some
other problems in my application, So Pls give some other solution for
this..I don't want to use an intermediate jsp forward.

Thanks

Mahesh



**Disclaimer** 
   
 
 Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' 
and 'confidential' and intended for use only by the individual or entity to which it 
is 
addressed. You are notified that any use, copying or dissemination of the information 
contained in the E-MAIL in any manner whatsoever is strictly prohibited.








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


Re: BeanUtils.populate with native types

2002-07-12 Thread Craig R. McClanahan



On Thu, 11 Jul 2002, Developer wrote:

 Date: Thu, 11 Jul 2002 22:55:59 -0400
 From: Developer [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED],
  Developer [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: BeanUtils.populate with native types

 Apparently BeanUtils.populate chokes with native type properties.  Is
 there a way to handle that other than change all the Model beans
 attributes to use Objects?


This should work correctly in later nightly builds of Struts 1.1 (it's
really the latest nightly builds of commons-beanutils that matters).  Can
you try that, and report back with a specific example if it is still
failing for you?

 Thank you.


Craig



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




Re: DynaBeans, DynaClass, DynaMen

2002-07-12 Thread Craig R. McClanahan



On Fri, 12 Jul 2002, Thorbjoern Ravn Andersen wrote:

 Date: Fri, 12 Jul 2002 07:02:57 +0200
 From: Thorbjoern Ravn Andersen [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: Re: DynaBeans, DynaClass, DynaMen

 [EMAIL PROTECTED] skrev:

 ...anyone remember DynaMen?
 
 Anyhow...  I got a Dynabean mechanism working that builds a DynaBean
 based on the metadata of a SQL result set, populates and array of the
 little buggers and passes it back to me.  For displaying I have a tag
 library that does not like a call to get('name') as the field name.
 What is the best way to get around this?
 
 I wrote an AnonyBeans package which uses BCEL to generate beans on the
 fly based on a ResultSet.  It is alpha code but works for me, and is
 usable anywhere where you need a real traditional bean, but where you do
 not want to serialize it or  use its type in Java source.

 Is this interesting?


I think it would be  interestesting, even though it might not be
universally useful (some containers won't let you introduce new classes at
runtime).

I'd also be interested in a mechanism that converted a ResultSet into a
custom DynaClass, with a corresponding DynaBean for each row.  This would
be trivially simple to do -- so simple that it probably makes a worthwhile
addition to commons-beanutils itself if someone wanted to take this on.

This wouldn't help you create dynamic input forms, but it would make a
completely flexible bean-like wrapper around a result set so you can use
Struts tags to display stuff.

 --
   Thorbjørn Ravn Andersen http://biobase.dk/~tra

Craig


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




Re: ActionServlet question

2002-07-12 Thread rainer juenger

Hi Craig,

thanks for your answere!!
I figured out the right solution!! It works now.


 I think a small example test case would be really helpful, as I'm having a
 hard time understanding what the issue is.
Of course!!

Maybe that makes it more clear:

 action  path=/trinkwasserform
 type=trinkwasser.TrinkwasserInputAction
 name=trinkwasserInputForm
 scope=session
 input=/application/datensteckbriefe/forms/form_trinkwasser.jsp
  forward name=edit
path=/application/datensteckbriefe/forms/form_trinkwasser.jsp/
  forward name=preview
path=/application/datensteckbriefe/forms/form_trinkwasser_preview.jsp/
  forward name=success path=/app/trinkwasser_portal/
 /action


 For me, and for basically
 every other Struts user, the controller is invoked once per HTTP request
 that has a URL pattern mapped to the controller (i.e. things that end in
 *.do in the struts-example app), so I don't understand what you mean by
 the controller only gets executed once.

Yes, now it is like that and it works so you are right ;))
I came up with my wrong conclusion since I was printing something to the
tomcat log (servlet.log(xxx);
in my Controller. There was not always an entry when I was executing it.

Rainer




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




RE: where can caching help performance

2002-07-12 Thread Chappell, Simon P

I know, but I don't know how much I can share in an open forum. Contact me offline 
after lunch and we can talk.

Simon

-
Simon P. Chappell [EMAIL PROTECTED]
Java Programming Specialist  www.landsend.com
Lands' End, Inc.   (608) 935-6932


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 10:56 AM
To: [EMAIL PROTECTED]
Subject: RE: where can caching help performance



Thanks Simon, 

But I am looking for something more technical.  Does anyone know if 
there any code examples for doing anything involving persisting an 
central object in memory in a struts application?



-Original Message-
From: Simon.Chappell [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 11:22 AM
To: struts-user
Subject: RE: where can caching help performance


And to continue my obviously inadequate and lame answer ...

Disclaimer: I didn't write the code, I just asked that it be written 
like this (i.e. I drove the logical design) ... these are the 
perils of 
being a tech lead on a project and having to trust that the developers 
really did what you asked and really implemented it the way that they 
explained it to you. The behaviour of the system is exactly 
how I asked 
for it to be, so I'm happy, but I haven't had much opportunity to peek 
under the covers yet.

The app never touches the cache. It makes requests to the DB subsystem 
and that makes a request to the cache manager and then receives a 
business object. The app never knows if the object was their in the 
cache at request time or if it had to be dynamically fetched. All it 
knows is that it asked and it received (kinda biblical :-) The cache 
manager is the only part of the system that knows what it's 
doing as far 
as creating, updating and purging cached business objects.

Simon

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 10:15 AM
To: [EMAIL PROTECTED]
Subject: RE: where can caching help performance



So to continue my dumb question...  I would start the servlet when 
struts starts up and have it declare my objects as singletons. 
 Then in 
my app I would just create the objects when I needed access to them?



-Original Message-
From: Simon.Chappell [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 10:53 AM
To: struts-user
Subject: RE: where can caching help performance


We have a servlet that starts up at app server initialisation 
and it's 
init method starts our background caching thread and it's finalize 
method stops it. This way the cache is always in memory and 
doesn't get 
picked up by the GC.

Simon

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 9:12 AM
To: [EMAIL PROTECTED]
Subject: RE: where can caching help performance



This may be a dumn question, but since its friday what the heck...

If I wanted to build a bunch of business objects when the 
server starts 
and keep them as singletons or factory objects how would I 
get them to 
start up and stay alive after that...  if I did it on the 
first request 
once the request finished the object would be cleaned up...

?




-Original Message-
From: jamienz [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 10:01 AM
To: struts-user
Subject: RE: where can caching help performance


Out of curiosity, how did you implement the in-memory
cache?  One big (1 gig!) hashmap :-) or something more
exotic?

--
jamie

-Original Message-
From: Simon.Chappell
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 4:07 PM
To: struts-user
Subject: RE: where can caching help performance?


We have found that the biggest bang for the buck comes
with pre-fetching 
data out of the database and building our business
objects ahead of time 
and storing them in an in-memory cache. This means
that we have a very 
large cache (we estimate at least a gig when we get
fully ramped up for 
phase one and more after that), but we get phenominal
throughput from 
it. Our reason for this was a maximum processing time
of 3.6 seconds and 
we knew that we could not allow the database access to
be the choke 
point in the system.

__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

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



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


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



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



--
To unsubscribe, e-mail:   
mailto:[EMAIL 

RE: logon.title not found

2002-07-12 Thread bryan hansen

I am using 1.0.2 and I am still getting errors after
trying this about 20 different ways, what a pain!

In the log file it says that it has loaded the
ApplicationResources:

11:01:26,684 INFO  [Jetty] action: Loading application
resources from resource ApplicationResources

I see no error messages above or below this in the
logfile. I have the file in my web.xml file:

init-param
  param-nameapplication/param-name
  param-valueApplicationResources/param-value
/init-param

The jsp page dies when it goes to access it:

%@ page language=java %
%@ taglib uri=/WEB-INF/struts-bean.tld
prefix=bean %
%@ taglib uri=/WEB-INF/struts-html.tld
prefix=html %

html:html locale=true
head
titlebean:message key=logon.title//title
html:base/

(specificly the logon.title) I have verified that it
is there.

I have also verified that it is in my war file under
WEB-INF/classes

Somebody please help before I go insane!!!

Thanks,

Bryan

--- [EMAIL PROTECTED] wrote:
 
 Which version are you using?
 
 I had a lot of problems in the beginning with 1.1b1
 with using the 
 example app and blank to start from.  I ended up
 using the struts 
 console to make a whole new struts-config.xml from
 scratch.  The example 
 and stuff was using the old struts at the time I
 think!
 
 
 
 -Original Message-
 From: bh5k [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, July 11, 2002 7:17 PM
 To: struts-user
 Subject: logon.title not found
 
 
 I am trying to take the struts-example.war and
 modify
 it to start development. I have stripped out the
 stuff
 that I needed to get going and am having a problem
 with the ApplicationResources file. Inside the
 login.jsp it specifies that it is looking for
 login.title in a bean tag to display the title for
 this page. Well I have included the
 ApplicationResources.properties file in my war and
 specified in the web.xml file the updated path to
 where the file is located at and I still keep
 getting
 hte error saying that the logon.title can not be
 found.
 
 javax.servlet.jsp.JspException: Missing message for
 key logon.title
 
 Is there something that I am overlooking on how to
 include the this?
 
 Thanks,
 
 Bryan
 
 __
 Do You Yahoo!?
 Sign up for SBC Yahoo! Dial - First Month Free
 http://sbc.yahoo.com
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

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




RE: logon.title not found

2002-07-12 Thread mike . witt

Is your ApplicationResources in your class directory or just in your src
directory?  It is easy to forget to copy it if your Ant script does not do
it for you.

Mike

-Original Message-
From: bryan hansen [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 1:01 PM
To: Struts Users Mailing List
Subject: RE: logon.title not found


I am using 1.0.2 and I am still getting errors after
trying this about 20 different ways, what a pain!

In the log file it says that it has loaded the
ApplicationResources:

11:01:26,684 INFO  [Jetty] action: Loading application
resources from resource ApplicationResources

I see no error messages above or below this in the
logfile. I have the file in my web.xml file:

init-param
  param-nameapplication/param-name
  param-valueApplicationResources/param-value
/init-param

The jsp page dies when it goes to access it:

%@ page language=java %
%@ taglib uri=/WEB-INF/struts-bean.tld
prefix=bean %
%@ taglib uri=/WEB-INF/struts-html.tld
prefix=html %

html:html locale=true
head
titlebean:message key=logon.title//title
html:base/

(specificly the logon.title) I have verified that it
is there.

I have also verified that it is in my war file under
WEB-INF/classes

Somebody please help before I go insane!!!

Thanks,

Bryan

--- [EMAIL PROTECTED] wrote:
 
 Which version are you using?
 
 I had a lot of problems in the beginning with 1.1b1
 with using the 
 example app and blank to start from.  I ended up
 using the struts 
 console to make a whole new struts-config.xml from
 scratch.  The example 
 and stuff was using the old struts at the time I
 think!
 
 
 
 -Original Message-
 From: bh5k [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, July 11, 2002 7:17 PM
 To: struts-user
 Subject: logon.title not found
 
 
 I am trying to take the struts-example.war and
 modify
 it to start development. I have stripped out the
 stuff
 that I needed to get going and am having a problem
 with the ApplicationResources file. Inside the
 login.jsp it specifies that it is looking for
 login.title in a bean tag to display the title for
 this page. Well I have included the
 ApplicationResources.properties file in my war and
 specified in the web.xml file the updated path to
 where the file is located at and I still keep
 getting
 hte error saying that the logon.title can not be
 found.
 
 javax.servlet.jsp.JspException: Missing message for
 key logon.title
 
 Is there something that I am overlooking on how to
 include the this?
 
 Thanks,
 
 Bryan
 
 __
 Do You Yahoo!?
 Sign up for SBC Yahoo! Dial - First Month Free
 http://sbc.yahoo.com
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

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

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




RE: logon.title not found

2002-07-12 Thread bryan hansen

I actually unpacked my war and verified that it was
inside the war in the classes directory. It is
definitly being copied over.

--- [EMAIL PROTECTED] wrote:
 Is your ApplicationResources in your class directory
 or just in your src
 directory?  It is easy to forget to copy it if your
 Ant script does not do
 it for you.
 
 Mike
 
 -Original Message-
 From: bryan hansen [mailto:[EMAIL PROTECTED]]
 Sent: Friday, July 12, 2002 1:01 PM
 To: Struts Users Mailing List
 Subject: RE: logon.title not found
 
 
 I am using 1.0.2 and I am still getting errors after
 trying this about 20 different ways, what a pain!
 
 In the log file it says that it has loaded the
 ApplicationResources:
 
 11:01:26,684 INFO  [Jetty] action: Loading
 application
 resources from resource ApplicationResources
 
 I see no error messages above or below this in the
 logfile. I have the file in my web.xml file:
 
 init-param
   param-nameapplication/param-name
   param-valueApplicationResources/param-value
 /init-param
 
 The jsp page dies when it goes to access it:
 
 %@ page language=java %
 %@ taglib uri=/WEB-INF/struts-bean.tld
 prefix=bean %
 %@ taglib uri=/WEB-INF/struts-html.tld
 prefix=html %
 
 html:html locale=true
 head
 titlebean:message key=logon.title//title
 html:base/
 
 (specificly the logon.title) I have verified that it
 is there.
 
 I have also verified that it is in my war file under
 WEB-INF/classes
 
 Somebody please help before I go insane!!!
 
 Thanks,
 
 Bryan
 
 --- [EMAIL PROTECTED] wrote:
  
  Which version are you using?
  
  I had a lot of problems in the beginning with
 1.1b1
  with using the 
  example app and blank to start from.  I ended up
  using the struts 
  console to make a whole new struts-config.xml from
  scratch.  The example 
  and stuff was using the old struts at the time I
  think!
  
  
  
  -Original Message-
  From: bh5k [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, July 11, 2002 7:17 PM
  To: struts-user
  Subject: logon.title not found
  
  
  I am trying to take the struts-example.war and
  modify
  it to start development. I have stripped out the
  stuff
  that I needed to get going and am having a problem
  with the ApplicationResources file. Inside the
  login.jsp it specifies that it is looking for
  login.title in a bean tag to display the title for
  this page. Well I have included the
  ApplicationResources.properties file in my war and
  specified in the web.xml file the updated path to
  where the file is located at and I still keep
  getting
  hte error saying that the logon.title can not be
  found.
  
  javax.servlet.jsp.JspException: Missing message
 for
  key logon.title
  
  Is there something that I am overlooking on how to
  include the this?
  
  Thanks,
  
  Bryan
  
  __
  Do You Yahoo!?
  Sign up for SBC Yahoo! Dial - First Month Free
  http://sbc.yahoo.com
  
  --
  To unsubscribe, e-mail:   
 
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: 
  mailto:[EMAIL PROTECTED]
  
  
  
  --
  To unsubscribe, e-mail:  
 
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
 
 
 __
 Do You Yahoo!?
 Sign up for SBC Yahoo! Dial - First Month Free
 http://sbc.yahoo.com
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

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




Re: Should I bother to try and handle this with struts?

2002-07-12 Thread Eddie Bush

Please note that I have not used the items I am about to tell you about 
:-)  That having been said:

DynaForms - from what I understand, they will suck up anything and 
poke it in a hash.  I'm not sure whether you could use this - or maybe 
DynaBeans - but, from my (limited) understanding of them, I think you 
probably could.  Internally, as I said, they poke things into a hash. 
 Now ... hrm ... I need to catch up on the new Struts features :-)

I really think you can acheive this.  To get someone elses attention, 
post a new topic about Help with DynaBeans/DynaForms.  That's nearly 
certain to get someone's attention.

HTH,

Eddie

Rick Reumann wrote:

On Thursday, July 11, 2002, 12:22:57 PM, Eddie wrote:

EB Use container-managed authentication.

Eddie, thanks for your info on container management but actually my
question really isn't about how to manage authentication. (I should
have been more clear).

It is how do you use Struts to generate form field names that will be
generated dynamically and then later have access to them to using an
Action Form or a configured Dynamic Action Form.

Let's change the whole scenario around and say I'm creating a page
that has a list of items and you have to select the favorite color of
each. For example:

car[ select options of colors to choose ]
house  [ select options of colors to choose ]
sofa   [ select options of colors to choose ]

Now the problem is that the items are generated dynamically so that
the application doesn't know until run time what these items will be.

Is there a way to have a Struts Action Form manage gather this kind of
information.

I was hoping to avoid when the above form would submit having to do
this in some business object using the request object:

//get List from db
//loop through list and during each iteration:
   String colorValue = request.getParameter( itemInList );
   //now update db with this value for this item
//continue loop

Maybe I have no choice. I'm just not clear how I can use a Struts form
to capture this dynamic list of items, since I can't configure the
fields beforehand.

Thanks for any more help



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




RE: DynaBeans, DynaClass, DynaMen

2002-07-12 Thread wbchmura



Here is what I am using...  Very simple and only returns strings...


  /**
* Converts a resultset into an ArrayList of DynaBeans
* 
* @param resultSet SQL result set to be converted
* @return ArrayList of DynaBeans with all columnnames converted to
* lowercase
* @throws SQLException DOCUMENT ME!
*/
   private static ArrayList getDynaBeanArrayList(ResultSet resultSet)
  throws SQLException {

  ResultSetMetaData metaData = resultSet.getMetaData();
  int cols = metaData.getColumnCount();
  ArrayList list = new ArrayList();
  DynaProperty[] props = new DynaProperty[cols];
  BasicDynaClass dClass = null;

  for (int i = 1; i = cols; i++) {
 props[i - 1] = new 
DynaProperty(metaData.getColumnName(i).toLowerCase());
  }

  try {
 dClass = new BasicDynaClass(test, 
 Class.forName(

org.apache.commons.beanutils.BasicDynaBean), 
 props);
  } catch (Exception e) {
 e.printStackTrace();
  }

  while (resultSet.next()) {

 HashMap map = new HashMap(cols, 1);

 for (int i = 1; i = cols; i++) {
map.put(metaData.getColumnName(i).toLowerCase(), 
resultSet.getString(i));
 }

 try {

DynaBean dbean = dClass.newInstance();
BeanUtils.populate(dbean, map);
list.add(dbean);
 } catch (Exception e) {
e.printStackTrace();
throw new SQLException(RequestUtils.getArrayList: 
   + e.toString());
 }
  } // End While

  return (list);
   }


-Original Message-
From: craigmcc [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 12:07 PM
To: struts-user
Subject: Re: DynaBeans, DynaClass, DynaMen




On Fri, 12 Jul 2002, Thorbjoern Ravn Andersen wrote:

 Date: Fri, 12 Jul 2002 07:02:57 +0200
 From: Thorbjoern Ravn Andersen [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: Re: DynaBeans, DynaClass, DynaMen

 [EMAIL PROTECTED] skrev:

 ...anyone remember DynaMen?
 
 Anyhow...  I got a Dynabean mechanism working that builds a DynaBean
 based on the metadata of a SQL result set, populates and array of the
 little buggers and passes it back to me.  For displaying I have a tag
 library that does not like a call to get('name') as the field name.
 What is the best way to get around this?
 
 I wrote an AnonyBeans package which uses BCEL to generate beans on the
 fly based on a ResultSet.  It is alpha code but works for me, and is
 usable anywhere where you need a real traditional bean, but where you 
do
 not want to serialize it or  use its type in Java source.

 Is this interesting?


I think it would be  interestesting, even though it might not be
universally useful (some containers won't let you introduce new classes 
at
runtime).

I'd also be interested in a mechanism that converted a ResultSet into a
custom DynaClass, with a corresponding DynaBean for each row.  This 
would
be trivially simple to do -- so simple that it probably makes a 
worthwhile
addition to commons-beanutils itself if someone wanted to take this on.

This wouldn't help you create dynamic input forms, but it would make a
completely flexible bean-like wrapper around a result set so you can use
Struts tags to display stuff.

 --
   Thorbjørn Ravn Andersen http://biobase.dk/~tra

Craig


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



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




BeanUtils.describe and BeanUtils.populate indexeed properties...

2002-07-12 Thread Rajesh Kalluri

I saw a similar issue on the archive but did not see what the solution to
this was, so decided to ask the same question again.

Do BeanUtils.describe and BeanUtils.populate supposed to handle indexed
properties?

Suppose I have this JavaBean:

public class NameBean {
 private String[] name;

 public String[] getName() {
  return this.name;
 }
 public void setName(String[] name) {
  this.name = name;
 }
 public String getName(int index) {
  return this.name[index];
 }
 public void setName(int index, String name) {
  this.name[index] = name;
 }
}

 NameBean nameBean = new NameBean();
 nameBean.setName(new String[] {John, Paul, Jack});

 Map properties = BeanUtils.describe(nameBean);

I would expect the following code to return a Map containing:
name[0]=John, name[1]=Paul, name[2]=Jack

but instead,

I get name=John.
Only the first element is considered.

regards

Rajesh


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




bean:define Nightly Version, June28th

2002-07-12 Thread hemant

I had my jsp page working correctly until I replaced the struts libraries with a 
June28th Version of the nightly build

Here is what I get now. Could someone throw some light on this?

Regards
hemant

javax.servlet.ServletException: Define tag can contain only one of name attribute, 
value attribute, or body content
java.lang.Throwable(java.lang.String)
java.lang.Exception(java.lang.String)
javax.servlet.ServletException(java.lang.Throwable)
void 
org.apache.jasper.runtime.PageContextImpl.handlePageException(java.lang.Throwable)
void 
org.apache.jsp.mainmenu$jsp._jspService(javax.servlet.http.HttpServletRequest, 
javax.servlet.http.HttpServletResponse)
void 
org.apache.jasper.runtime.HttpJspBase.service(javax.servlet.http.HttpServletRequest, 
javax.servlet.http.HttpServletResponse)
void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, 
javax.servlet.ServletResponse)
void 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(javax.servlet.http.HttpServletRequest,
 javax.servlet.http.HttpServletResponse, boolean)
void 
org.apache.jasper.servlet.JspServlet.serviceJspFile(javax.servlet.http.HttpServletRequest,
 javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.Throwable, 
boolean)
void 
org.apache.jasper.servlet.JspServlet.service(javax.servlet.http.HttpServletRequest, 
javax.servlet.http.HttpServletResponse)
void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, 
javax.servlet.ServletResponse)
void 
org.apache.catalina.core.ApplicationDispatcher.invoke(javax.servlet.ServletRequest, 
javax.servlet.ServletResponse)
void 
org.apache.catalina.core.ApplicationDispatcher.doForward(javax.servlet.ServletRequest, 
javax.servlet.ServletResponse)
void 
org.apache.catalina.core.ApplicationDispatcher.forward(javax.servlet.ServletRequest, 
javax.servlet.ServletResponse)
void org.apache.struts.action.RequestProcessor.doForward(java.lang.String, 
javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
void 
org.apache.struts.action.RequestProcessor.processActionForward(javax.servlet.http.HttpServletRequest,
 javax.servlet.http.HttpServletResponse, org.apache.struts.action.ActionForward)
void 
org.apache.struts.action.RequestProcessor.process(javax.servlet.http.HttpServletRequest,
 javax.servlet.http.HttpServletResponse)
void 
org.apache.struts.action.ActionServlet.process(javax.servlet.http.HttpServletRequest, 
javax.servlet.http.HttpServletResponse)
void 
org.apache.struts.action.ActionServlet.doPost(javax.servlet.http.HttpServletRequest, 
javax.servlet.http.HttpServletResponse)
void 
javax.servlet.http.HttpServlet.service(javax.servlet.http.HttpServletRequest, 
javax.servlet.http.HttpServletResponse)
void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, 
javax.servlet.ServletResponse)
void 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(javax.servlet.ServletRequest,
 javax.servlet.ServletResponse)
void 
org.apache.catalina.core.ApplicationFilterChain.doFilter(javax.servlet.ServletRequest, 
javax.servlet.ServletResponse)
void 
org.apache.catalina.core.StandardWrapperValve.invoke(org.apache.catalina.Request, 
org.apache.catalina.Response, org.apache.catalina.ValveContext)
void 
org.apache.catalina.core.StandardPipeline.invokeNext(org.apache.catalina.Request, 
org.apache.catalina.Response)
void 
org.apache.catalina.core.StandardPipeline.invoke(org.apache.catalina.Request, 
org.apache.catalina.Response)
void 
org.apache.catalina.core.ContainerBase.invoke(org.apache.catalina.Request, 
org.apache.catalina.Response)
void 
org.apache.catalina.core.StandardContextValve.invoke(org.apache.catalina.Request, 
org.apache.catalina.Response, org.apache.catalina.ValveContext)
void 
org.apache.catalina.core.StandardPipeline.invokeNext(org.apache.catalina.Request, 
org.apache.catalina.Response)
void 
org.apache.catalina.core.StandardPipeline.invoke(org.apache.catalina.Request, 
org.apache.catalina.Response)
void 
org.apache.catalina.core.ContainerBase.invoke(org.apache.catalina.Request, 
org.apache.catalina.Response)
void 
org.apache.catalina.core.StandardContext.invoke(org.apache.catalina.Request, 
org.apache.catalina.Response)
void 
org.apache.catalina.core.StandardHostValve.invoke(org.apache.catalina.Request, 
org.apache.catalina.Response, org.apache.catalina.ValveContext)
void 
org.apache.catalina.core.StandardPipeline.invokeNext(org.apache.catalina.Request, 
org.apache.catalina.Response)
void 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(org.apache.catalina.Request, 
org.apache.catalina.Response, org.apache.catalina.ValveContext)
void 
org.apache.catalina.core.StandardPipeline.invokeNext(org.apache.catalina.Request, 

[SOLVED]RE: logon.title not found

2002-07-12 Thread bryan hansen

It would appear that with Jetty and JBoss the
ApplicationResources needs to be in the jar associated
with the ear of your application because it will not
look in the war file to find it. This error was solved
by putting everything in the jar including properties
files and just the jsp(s) and servlets in the war (as
well as config files) and then bundling everything in
an ear and deploying the application.

I had the properties files under the right path and
everything in the WEB-INF classes directory of the war
and it was just ignoring it I am assuming since it was
in an ear.

Thanks for your help everyone.

Bryan

--- [EMAIL PROTECTED] wrote:
 Is your ApplicationResources in your class directory
 or just in your src
 directory?  It is easy to forget to copy it if your
 Ant script does not do
 it for you.
 
 Mike
 
 -Original Message-
 From: bryan hansen [mailto:[EMAIL PROTECTED]]
 Sent: Friday, July 12, 2002 1:01 PM
 To: Struts Users Mailing List
 Subject: RE: logon.title not found
 
 
 I am using 1.0.2 and I am still getting errors after
 trying this about 20 different ways, what a pain!
 
 In the log file it says that it has loaded the
 ApplicationResources:
 
 11:01:26,684 INFO  [Jetty] action: Loading
 application
 resources from resource ApplicationResources
 
 I see no error messages above or below this in the
 logfile. I have the file in my web.xml file:
 
 init-param
   param-nameapplication/param-name
   param-valueApplicationResources/param-value
 /init-param
 
 The jsp page dies when it goes to access it:
 
 %@ page language=java %
 %@ taglib uri=/WEB-INF/struts-bean.tld
 prefix=bean %
 %@ taglib uri=/WEB-INF/struts-html.tld
 prefix=html %
 
 html:html locale=true
 head
 titlebean:message key=logon.title//title
 html:base/
 
 (specificly the logon.title) I have verified that it
 is there.
 
 I have also verified that it is in my war file under
 WEB-INF/classes
 
 Somebody please help before I go insane!!!
 
 Thanks,
 
 Bryan
 
 --- [EMAIL PROTECTED] wrote:
  
  Which version are you using?
  
  I had a lot of problems in the beginning with
 1.1b1
  with using the 
  example app and blank to start from.  I ended up
  using the struts 
  console to make a whole new struts-config.xml from
  scratch.  The example 
  and stuff was using the old struts at the time I
  think!
  
  
  
  -Original Message-
  From: bh5k [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, July 11, 2002 7:17 PM
  To: struts-user
  Subject: logon.title not found
  
  
  I am trying to take the struts-example.war and
  modify
  it to start development. I have stripped out the
  stuff
  that I needed to get going and am having a problem
  with the ApplicationResources file. Inside the
  login.jsp it specifies that it is looking for
  login.title in a bean tag to display the title for
  this page. Well I have included the
  ApplicationResources.properties file in my war and
  specified in the web.xml file the updated path to
  where the file is located at and I still keep
  getting
  hte error saying that the logon.title can not be
  found.
  
  javax.servlet.jsp.JspException: Missing message
 for
  key logon.title
  
  Is there something that I am overlooking on how to
  include the this?
  
  Thanks,
  
  Bryan
  
  __
  Do You Yahoo!?
  Sign up for SBC Yahoo! Dial - First Month Free
  http://sbc.yahoo.com
  
  --
  To unsubscribe, e-mail:   
 
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: 
  mailto:[EMAIL PROTECTED]
  
  
  
  --
  To unsubscribe, e-mail:  
 
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
 
 
 __
 Do You Yahoo!?
 Sign up for SBC Yahoo! Dial - First Month Free
 http://sbc.yahoo.com
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

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




RE: logic tag to check value of bean

2002-07-12 Thread Kamholz, Keith (corp-staff) USX

I don't see why that wouldn't work.  I use the same syntax, the only
difference is that I don't put scope=session.  I suppose you could try it
without specifying the scope, but I don't think it would make much of a
difference.  What is the error message?  Do you import the logic taglib at
the top of your jsp?

~ Keith
http://www.buffalo.edu/~kkamholz



-Original Message-
From: rainer juenger [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 11:20 AM
To: Struts Users Mailing List
Subject: logic tag to check value of bean


Hi,

can I compare an attribute value of a bean with the logic TagLib?

eg.:
my beans name is myobject and it has session scope
Wirthin that bean there is an attribute:
boolean myattribute = true;
There is of course a setter and a getter for that attribute.

How would the logic tag look like??


My suggestion that doesn't work:
logic:equal name=myobject property=myattribute scope=session
value=true
   my output
 /logic:equal

thanks!! 

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




Fwd: Re: Validating DynaBeans and a Jakarta Parable

2002-07-12 Thread James Turner

Craig wrote:
 The validator framework already lets you write reusable custom 
validation functions, and it already supports dynabeans -- what do you 
need that is not already available?

I'm a big fan of keeping as much stuff in one place as possible.
By using the form-property tag, you can almost entirely do away with the 
need to write the form bean, but you still need to specifiy validations. In 
almost all cases, fields in forms are independently validated. If there was 
a way to specify a validation out of the validator framework in the 
form-property, that would be almost as useful to me, except that I 
consider Validator to be a 900 lb gorilla and wish I wasn't obliged out of 
hand to use it.

This kind of leads into a parable of Jakarta I've been thinking of:

A man was building a house, and needed to measure a piece of wood. He had a 
tape measure beside him, but he thought My friend Joe has just developed 
this cool laser-based measuring device that will give me a result with 10 
times the accuracy. It sometimes returns totally wrong results, because 
it's still being developed, but it's dead-on the rest of the time.

So, he looked around for a way to get to his friend Joe's house. He had a 
car sitting right there, but he knew his friend Chuck had a new 
rocket-powered airship that would get him there in 1/10th the time. Of 
course, the airship took 2 days to configure for launch and occasionally 
blew up.

Now how to call Chuck and ask to use the airship? He could call on his 
cellphone, but there was this new implantable communications device he was 
dying to try out...

The point? In the quest to incorporate everyone else's best practices into 
each others products, it's getting harder and harder for us mere mortals to 
compile, configure and use any of them. I'll turn your question around, 
Craig. If I want to use DynaBeans but don't want to use the Validator 
framework (which at first glance is going to take me half a day to 
configure properly), why should I be forced to. And as near as I can tell, 
Validator doesn't do what I want right now anyway, which is to be able to 
specify the field validations for a dynamic form in the struts-config.
James


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




Help: PDF file generator

2002-07-12 Thread Mei Zhu


Can anybody recommend me a good toolkit to generate pdf file dynamically
from servlet (and send to user's browser)?

Thanks,

Mei Zhu


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




RE: Help: PDF file generator

2002-07-12 Thread Khan, Manuchehar A (ACF)

YOu can use FO from JakartaThat requires XML file..

-Original Message-
From: Mei Zhu [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 1:25 PM
To: Struts Users Mailing List
Subject: Help: PDF file generator



Can anybody recommend me a good toolkit to generate pdf file dynamically
from servlet (and send to user's browser)?

Thanks,

Mei Zhu


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

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




RE: change an Actionform

2002-07-12 Thread my struts


I think I am having the same problem and I missed something on the 
explanations.  I am forwarding from one jsp to another as outline in my 
struts-config below.

I am running struts  1.02

My stuts-config looks like

!-- Registration form bean --
form-bean name=registrationForm 
type=com.eds.ARISS.struts.form.RegistrationForm /


!-- Registration Form --
action path=/registration
   attribute=registrationForm
 type=com.eds.ARISS.struts.action.RegistrationAction
 name=registrationForm
 scope=request
 validate=true
 input=/registration.jsp
   forward name=success path=/index.jsp /
/action



!-- index Form --
action path=/index
type=com.eds.ARISS.struts.action.RegistrationAction
   attribute=registrationForm
name=registrationForm
scope=request
validate=true
input=/index.jsp
   forward name=success path=/index.jsp /
/action


Any my RegistrationAction is
public ActionForward perform(ActionMapping mapping,
 ActionForm form,
 HttpServletRequest request,
 HttpServletResponse response)
throws IOException, ServletException {

if (mapping.getName() != null)
{
if (request.equals(mapping.getScope()))
  {
request.setAttribute(mapping.getName(), form);
  }
  else
  {
HttpSession session = request.getSession();
session.setAttribute(mapping.getName(), form);
  }
}


return mapping.findForward(success);
}




From: Jon.Ridgway [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: change an Actionform
Date: Fri, 12 Jul 2002 13:47:41 +0100

Hi Sven,

I guess the easiest way would be to add an action property to your form 
then
add a html:hidden property=action value=search/edit/ to your jsps.
Then in your validate method check the value of the action property and
validate accordingly.

Jon Ridgway


-Original Message-
From: Efftinge, Sven [mailto:[EMAIL PROTECTED]]
Sent: 12 July 2002 12:43
To: 'Struts Users Mailing List'
Subject: AW: change an Actionform

Hi Jon,
I did it that way, too and it worked.
But I wanted to validate the search form and I just have one validate 
method
per ActionForm, and the validation in search and edit is not the same.

I'm wondering about this problem because it's so fundamental.
I mean doesn't need anybody who works with struts a solution for this?


-Ursprüngliche Nachricht-
Von: Jon.Ridgway [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 12. Juli 2002 12:40
An: 'Struts Users Mailing List'
Betreff: RE: change an Actionform


Hi Sven,

I do it as specified in my previous post. Although I'd use the same action
form to store search and editing values, this way the mapping.getName () 
bit
in the search action would work (no hard coding of the key to use to store
the search results in session/request for editing).

Jon Ridgway


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


The contents of this email are intended only for the named addressees and
may contain confidential and/or privileged material. If received in error
please contact UPCO on +44 (0) 113 201 0600 and then delete the entire
e-mail from your system. Unauthorised review, distribution, disclosure or
other use of this information could constitute a breach of confidence. Your
co-operation in this matter is greatly appreciated.

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





_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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




Re: Fwd: Re: Validating DynaBeans and a Jakarta Parable

2002-07-12 Thread Craig R. McClanahan



On Fri, 12 Jul 2002, James Turner wrote:


 The point? In the quest to incorporate everyone else's best practices into
 each others products, it's getting harder and harder for us mere mortals to
 compile, configure and use any of them. I'll turn your question around,
 Craig. If I want to use DynaBeans but don't want to use the Validator
 framework (which at first glance is going to take me half a day to
 configure properly), why should I be forced to. And as near as I can tell,
 Validator doesn't do what I want right now anyway, which is to be able to
 specify the field validations for a dynamic form in the struts-config.
 James


To turn around your turn around, why should we invent *two* mechanisms to
do the same thing (specify validations for dynamic form beans)?  That
would be a horrendous waste of effort.

AFAICT, the validator framework can functionally do exactly what you asked
for, except that you have to configure two files instead of one.  If you
don't want to use it, you don't have to -- but don't expect *me* to lift a
finger to help you write your own :-).  The one we've got works just fine,
thank you.  (And, the validator framework isn't specific to Struts, either
-- you can use it in your model tier as well as the presentation tier if
you need it.)

If, instead, you'd like to contribute a way to configure the validator
framework by add-ons to struts-config.xml so that you really can do it
all in one file, patches are welcome.

By the way, Chuck's downloadable chapter on the Validator Framework (at
www.theserverside.com) covers pretty much everything you want to know
about how to set this all up.

Craig



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




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




RE: Help: PDF file generator

2002-07-12 Thread Mei Zhu

Manuchehar,
What is FO? I couldn't find 'FO' from Jakarta's subprojects list.

Thanks,

Mei

-Original Message-
From: Khan, Manuchehar A (ACF) [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 11:26 AM
To: 'Struts Users Mailing List'
Subject: RE: Help: PDF file generator


YOu can use FO from JakartaThat requires XML file..

-Original Message-
From: Mei Zhu [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 1:25 PM
To: Struts Users Mailing List
Subject: Help: PDF file generator



Can anybody recommend me a good toolkit to generate pdf file dynamically
from servlet (and send to user's browser)?

Thanks,

Mei Zhu


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

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


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




RE: Help: PDF file generator

2002-07-12 Thread Singh, Sandeep

If this will help you

http://www.lowagie.com/iText/

Sandeep

-Original Message-
From: Mei Zhu [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 4:46 PM
To: Struts Users Mailing List
Subject: RE: Help: PDF file generator


Manuchehar,
What is FO? I couldn't find 'FO' from Jakarta's subprojects list.

Thanks,

Mei

-Original Message-
From: Khan, Manuchehar A (ACF) [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 11:26 AM
To: 'Struts Users Mailing List'
Subject: RE: Help: PDF file generator


YOu can use FO from JakartaThat requires XML file..

-Original Message-
From: Mei Zhu [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 1:25 PM
To: Struts Users Mailing List
Subject: Help: PDF file generator



Can anybody recommend me a good toolkit to generate pdf file dynamically
from servlet (and send to user's browser)?

Thanks,

Mei Zhu


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

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


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



RE: Help: PDF file generator

2002-07-12 Thread Khan, Manuchehar A (ACF)

If you are not comfortable with XML then this is better.
http://www.lowagie.com/iText/

-Original Message-
From: Mei Zhu [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 1:46 PM
To: Struts Users Mailing List
Subject: RE: Help: PDF file generator


Manuchehar,
What is FO? I couldn't find 'FO' from Jakarta's subprojects list.

Thanks,

Mei

-Original Message-
From: Khan, Manuchehar A (ACF) [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 11:26 AM
To: 'Struts Users Mailing List'
Subject: RE: Help: PDF file generator


YOu can use FO from JakartaThat requires XML file..

-Original Message-
From: Mei Zhu [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 1:25 PM
To: Struts Users Mailing List
Subject: Help: PDF file generator



Can anybody recommend me a good toolkit to generate pdf file dynamically
from servlet (and send to user's browser)?

Thanks,

Mei Zhu


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

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


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

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




Help: Passing object through http from one jvm to another

2002-07-12 Thread java naik


I am trying to pass a java object from my perform method to a servlet running in 
different JVM . 

My perform method returns Actionforward object redirecting to the same servlet. Here 
is what I have tried: 

Perform method:

Object resultObj = getObj();

URL url= new URL(http://localhost:8080/CallbackServlet;);
URLConnection uConn = url.openConnection();

uConn.setDoOutput(true);
uConn.setAllowUserInteraction(false);
uConn.setUseCaches(false);
uConn.setDefaultUseCaches(false);

ObjectOutputStream outputToHost = new ObjectOutputStream(uConn.getOutputStream());
outputToHost.writeObject(resultObj);
outputToHost.flush();
outputToHost.close();

String callbackClassName = (String) session.getAttribute(Constants.CALLBACK_CLASS);
String callbackClassInvokerURL = 
http://localhost:8080/CallbackServlet?callbackClassName=+callbackClassName;

if(callbackClassInvokerURL != null) {
TxActionForward af = new TxActionForward( callbackClassInvokerURL );
af.setRedirect(true);
return af;
}

and the CallbackServlet: Service method

ServletInputStream si = request.getInputStream();
// get object to be viewed
ObjectInputStream inputFromClient = new ObjectInputStream((InputStream)si);
Object resultObj = null;
resultObj = (Object)inputFromClient.readObject();
inputFromClient.close();


This did not work. It never comes out of the following statement
// get object to be viewed ObjectInputStream inputFromClient = new 
ObjectInputStream((InputStream)si); 
Could anyone explain what's wrong in the above program? or please suggest some other 
route? 

Thanks




-
Do You Yahoo!?
New! SBC Yahoo! Dial - 1st Month Free  unlimited access


RE: Help: PDF file generator

2002-07-12 Thread Ajay Chitre

Here's the Homepage for FOP:

http://xml.apache.org/fop/index.html



-Original Message-
From: Mei Zhu [mailto:[EMAIL PROTECTED]] 
Sent: Friday, July 12, 2002 1:46 PM
To: Struts Users Mailing List
Subject: RE: Help: PDF file generator

Manuchehar,
What is FO? I couldn't find 'FO' from Jakarta's subprojects list.

Thanks,

Mei

-Original Message-
From: Khan, Manuchehar A (ACF) [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 11:26 AM
To: 'Struts Users Mailing List'
Subject: RE: Help: PDF file generator


YOu can use FO from JakartaThat requires XML file..

-Original Message-
From: Mei Zhu [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 1:25 PM
To: Struts Users Mailing List
Subject: Help: PDF file generator



Can anybody recommend me a good toolkit to generate pdf file dynamically
from servlet (and send to user's browser)?

Thanks,

Mei Zhu


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

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


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


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




Re: Fwd: Re: Validating DynaBeans and a Jakarta Parable

2002-07-12 Thread James Turner

 To turn around your turn around, why should we invent *two* mechanisms to 
do the same thing (specify validations for dynamic form
 beans)? That would be a horrendous waste of effort.

I disagree but understand and respect your point of view.

 AFAICT, the validator framework can functionally do exactly what you 
asked for, except that you have to configure two files instead of
 one. If you don't want to use it, you don't have to -- but don't expect 
*me* to lift a finger to help you write your own :-). The one we've got
 works just fine, thank you. (And, the validator framework isn't specific 
to Struts, either -- you can use it in your model tier as well as the
 presentation tier if you need it.)

Wasn't asking you to do it, this was more of a floater as to whether it was 
worth me investigating coding it up and submitting it as a patch.

 If, instead, you'd like to contribute a way to configure the validator 
framework by add-ons to struts-config.xml so that you really can do it all 
in one file, patches are welcome.

And that's exactly what I'll do.  The reason I asked the question in the 
first place is to find out what the consensus was as to the best way to 
incorporate validation configuration into struts-config.xml.  If Validator 
is really the Way To Go on this, then that's the way I'll go.

James


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




merant/datadirect 5.23 errors

2002-07-12 Thread BillP

we've installed merant/datadirects 5.2.   It's working fine on our client
side browser/applet stuff.  In struts we're gettnig invalid cursor state
exceptions.  The struts side worked fine with previous versions.

Anyone else see this?  any Ideas?

tia

bill page
[EMAIL PROTECTED]
Digital Garden Software, Inc.
856 US Hwy 206 Bldg B Ste 15
Hillsborough, NJ 08844
908.904.0664



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




Problem with ActionForm? Exception @ BeanUtils.populate?

2002-07-12 Thread hemant

I have a formbean declared as follows
 form-bean  name=rangesactionform 
type=com.xxx.operations.mplanning.mpi.action.actionform.RangesActionForm/

and an action

action  path=/ranges
 name = rangesactionform
 type=com.xxx.operations.mplanning.mpi.action.RetrieveRangesAction
 validate=true
 forward name=success path=/ranges.jsp/
/action


here is my RangesActionForm class



public class RangesActionForm extends MpiActionForm
{
//This is the collection of ranges. 
private java.util.Collection pair;

public RangesActionForm() {
 super();
}

public java.util.Collection getPair() {
 return pair;
}

public void setPair(java.util.Collection newPair) {
 pair = newPair;
}
public ActionErrors validate(ActionMapping mapping, HttpServletRequest request)
{
ActionErrors errors = null;

HttpSession session = request.getSession();
MpiServiceBean msb =
(MpiServiceBean) session.getAttribute(MpiConstants.MPI_SERVICE_BEAN);

this.pair = msb.getRanges();
return errors;

}
}

-

I set up a debug point at the beginning of validate() method. For some reason, the 
execution fails even before it gets to that point. Instead I get the following 
exception. Could someone please throw some light on this? Iam not really sure where 
exactly the problem lies.


Regards and Thanks in Advance
hemant
-


javax.servlet.ServletException: BeanUtils.populate
java.lang.Throwable(java.lang.String)
java.lang.Exception(java.lang.String)
javax.servlet.ServletException(java.lang.String, java.lang.Throwable)
void org.apache.struts.util.RequestUtils.populate(java.lang.Object, 
java.lang.String, java.lang.String, javax.servlet.http.HttpServletRequest)
void 
org.apache.struts.action.RequestProcessor.processPopulate(javax.servlet.http.HttpServletRequest,
 javax.servlet.http.HttpServletResponse, org.apache.struts.action.ActionForm, 
org.apache.struts.action.ActionMapping)
void 
org.apache.struts.action.RequestProcessor.process(javax.servlet.http.HttpServletRequest,
 javax.servlet.http.HttpServletResponse)
void 
org.apache.struts.action.ActionServlet.process(javax.servlet.http.HttpServletRequest, 
javax.servlet.http.HttpServletResponse)
void 
org.apache.struts.action.ActionServlet.doPost(javax.servlet.http.HttpServletRequest, 
javax.servlet.http.HttpServletResponse)
void 
javax.servlet.http.HttpServlet.service(javax.servlet.http.HttpServletRequest, 
javax.servlet.http.HttpServletResponse)
void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, 
javax.servlet.ServletResponse)
void 
org.apache.catalina.core.ApplicationDispatcher.invoke(javax.servlet.ServletRequest, 
javax.servlet.ServletResponse)
void 
org.apache.catalina.core.ApplicationDispatcher.doForward(javax.servlet.ServletRequest, 
javax.servlet.ServletResponse)
void 
org.apache.catalina.core.ApplicationDispatcher.forward(javax.servlet.ServletRequest, 
javax.servlet.ServletResponse)
void org.apache.struts.action.RequestProcessor.doForward(java.lang.String, 
javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
void 
org.apache.struts.action.RequestProcessor.processActionForward(javax.servlet.http.HttpServletRequest,
 javax.servlet.http.HttpServletResponse, org.apache.struts.action.ActionForward)
void 
org.apache.struts.action.RequestProcessor.process(javax.servlet.http.HttpServletRequest,
 javax.servlet.http.HttpServletResponse)
void 
org.apache.struts.action.ActionServlet.process(javax.servlet.http.HttpServletRequest, 
javax.servlet.http.HttpServletResponse)
void 
org.apache.struts.action.ActionServlet.doPost(javax.servlet.http.HttpServletRequest, 
javax.servlet.http.HttpServletResponse)
void 
javax.servlet.http.HttpServlet.service(javax.servlet.http.HttpServletRequest, 
javax.servlet.http.HttpServletResponse)
void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, 
javax.servlet.ServletResponse)
void 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(javax.servlet.ServletRequest,
 javax.servlet.ServletResponse)
void 
org.apache.catalina.core.ApplicationFilterChain.doFilter(javax.servlet.ServletRequest, 
javax.servlet.ServletResponse)
void 
org.apache.catalina.core.StandardWrapperValve.invoke(org.apache.catalina.Request, 
org.apache.catalina.Response, org.apache.catalina.ValveContext)
void 
org.apache.catalina.core.StandardPipeline.invokeNext(org.apache.catalina.Request, 
org.apache.catalina.Response)
void 

SwitchAction

2002-07-12 Thread Troy Hart

Does anyone have any information on the status of the SwitchAction. It
simply doesn't work as far as I can tell...

I've read all the emails on this list that talk about it, and I've
looked at the source. I've also previously posted a message on the topic
but no one has responded...

Has anyone ever seen this work??? 

Thanks in advance for your time!

Troy




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




logic tag to check value of bean

2002-07-12 Thread rainer jünger

Hi,

can I compare an attribute value of a bean with the logic TagLib?

eg.:
my beans name is myobject and it has session scope
Wirthin that bean there is an attribute:
boolean myattribute = true;
There is of course a setter and a getter for that attribute.

How would the logic tag look like??


My suggestion that doesn't work:
logic:equal name=myobject property=myattribute scope=session value=true
   my output
 /logic:equal

thanks!! Rainer





Re: container managed security

2002-07-12 Thread Jürgen Weber


On Tue, 09 Jul 2002, Craig R. McClanahan wrote:

The example app rolls its own for one and only one reason -- one of the
purposes of this webapp is to detect whether you have Struts installed and
working on your container correctly.  The less configuration tinkering you
have to do for a hello, world application to work, the better.

Couldn't that better be checked in javax.servlet.Servlet.init(ServletConfig 
config)
possibly even with load-on-startup ?

In general, I believe that apps should use container managed security
rather than rolling their own.

So your statement should be in the FAQs.

Unfortunately most examples I saw (Learning Jakarta Struts from
http://www.onjava.com/lpt/a//onjava/2001/10/31/struts2.html, the O'Reilly 
Struts book)
seem to copy this idea and all use now Struts managed login pages.

Consider that you are writing a portal application, with the usual self
registration facilities.  It is trivially simple to make the portal app
itself portable across containers, if you just stick to standard servlet
and JSP facilities.  But the notion of add a new user is not portable,
and requires integration with each container's own user database update
mechanisms (for example, using a particular Realm in Tomcat).  There is no
way to write the functionality for this in a portable way.

Yes, this is definitely a problem. We once ended copying LDAP logic that 
already was in the realm into the application.
Maybe there should be added functionality to javax.servlet.ServletContext to 
add and delete users.

Juergen


_
Testen Sie MSN Messenger für Ihren Online-Chat mit Freunden: 
http://messenger.msn.de


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




child window problem!!!!!!

2002-07-12 Thread Samip Ladhawala

Hi guys,

We are using Struts in our project and have a kind of
road block stopping us to proceed. Problem is
described below and any help on this will be
appreciated.

We have an Assign.jsp with AssignForm and
AssignAction.  From Assign.jsp user may perform
actions like assign a person, Search a person, See
details of a person and Change a person. We are using
Dispatch action as a superclass for our AssignAction
form and we pass appropriate actiontype as parameter
when an action takes place.

We are kind of stuck at search person. Requirement is
when a user keys in partial name and presses search
link(this is html:link) a new window should open up
with name of all the people with the matching name
with the partial name typed in by the user. We have
our search form ready and in the action of this search
form we are using a business delegate to get us a list
of people. 
Our problems are 
1. How can we open a new window from Assign.jsp and
open Search window?
2. Search window needs search values from the parent
window (Assign.jsp). How can we pass this to
Search.jsp and invoke SearchAction to perform the
search on the parameter passed and display the results
to the user in search.jsp? 
3.  When user makes his selection in the Search.jsp we
wish to close the Search window on selection and
refresh the parent window(Assign.jsp) with the value
selected by the user in Search.jsp. How can we do
this?

Thanks,
Samip.

__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

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




newbie question: html:select .... size=

2002-07-12 Thread j j

Hi

I'm new to struts ( and java beans for that matter )

I'm trying to dynamically re-size a select box i'm
creating on my page

in java i have a function 

 public String getSelectSize()
  {
return 10;
  }

on my jsp page i have something like

html:select multiple=true property=itemsSelected
size=bean:write name='MyForm' property='SelectSize'
/ 

my problem is the bean:write  is not evaluated in this
case
if i remove the quotes or try % % i get compile
errors

is there a simple way to do this?

thanks
--joe




__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

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




Re: bean:define Nightly Version, June28th

2002-07-12 Thread Developer

I had that error as well.  Try the latest nightly build.

- Original Message -
From: hemant [EMAIL PROTECTED]
To: struts [EMAIL PROTECTED]
Sent: Friday, July 12, 2002 1:59 PM
Subject: bean:define Nightly Version, June28th


I had my jsp page working correctly until I replaced the struts libraries
with a June28th Version of the nightly build

Here is what I get now. Could someone throw some light on this?

Regards
hemant

javax.servlet.ServletException: Define tag can contain only one of name
attribute, value attribute, or body content
java.lang.Throwable(java.lang.String)
java.lang.Exception(java.lang.String)
javax.servlet.ServletException(java.lang.Throwable)
void
org.apache.jasper.runtime.PageContextImpl.handlePageException(java.lang.Thro
wable)
void
org.apache.jsp.mainmenu$jsp._jspService(javax.servlet.http.HttpServletReques
t, javax.servlet.http.HttpServletResponse)
void
org.apache.jasper.runtime.HttpJspBase.service(javax.servlet.http.HttpServlet
Request, javax.servlet.http.HttpServletResponse)
void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
void
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(javax.servlet
.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, boolean)
void
org.apache.jasper.servlet.JspServlet.serviceJspFile(javax.servlet.http.HttpS
ervletRequest, javax.servlet.http.HttpServletResponse, java.lang.String,
java.lang.Throwable, boolean)
void
org.apache.jasper.servlet.JspServlet.service(javax.servlet.http.HttpServletR
equest, javax.servlet.http.HttpServletResponse)
void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
void
org.apache.catalina.core.ApplicationDispatcher.invoke(javax.servlet.ServletR
equest, javax.servlet.ServletResponse)
void
org.apache.catalina.core.ApplicationDispatcher.doForward(javax.servlet.Servl
etRequest, javax.servlet.ServletResponse)
void
org.apache.catalina.core.ApplicationDispatcher.forward(javax.servlet.Servlet
Request, javax.servlet.ServletResponse)
void org.apache.struts.action.RequestProcessor.doForward(java.lang.String,
javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
void
org.apache.struts.action.RequestProcessor.processActionForward(javax.servlet
.http.HttpServletRequest, javax.servlet.http.HttpServletResponse,
org.apache.struts.action.ActionForward)
void
org.apache.struts.action.RequestProcessor.process(javax.servlet.http.HttpSer
vletRequest, javax.servlet.http.HttpServletResponse)
void
org.apache.struts.action.ActionServlet.process(javax.servlet.http.HttpServle
tRequest, javax.servlet.http.HttpServletResponse)
void
org.apache.struts.action.ActionServlet.doPost(javax.servlet.http.HttpServlet
Request, javax.servlet.http.HttpServletResponse)
void
javax.servlet.http.HttpServlet.service(javax.servlet.http.HttpServletRequest
, javax.servlet.http.HttpServletResponse)
void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
void
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(javax.servl
et.ServletRequest, javax.servlet.ServletResponse)
void
org.apache.catalina.core.ApplicationFilterChain.doFilter(javax.servlet.Servl
etRequest, javax.servlet.ServletResponse)
void
org.apache.catalina.core.StandardWrapperValve.invoke(org.apache.catalina.Req
uest, org.apache.catalina.Response, org.apache.catalina.ValveContext)
void
org.apache.catalina.core.StandardPipeline.invokeNext(org.apache.catalina.Req
uest, org.apache.catalina.Response)
void
org.apache.catalina.core.StandardPipeline.invoke(org.apache.catalina.Request
, org.apache.catalina.Response)
void
org.apache.catalina.core.ContainerBase.invoke(org.apache.catalina.Request,
org.apache.catalina.Response)
void
org.apache.catalina.core.StandardContextValve.invoke(org.apache.catalina.Req
uest, org.apache.catalina.Response, org.apache.catalina.ValveContext)
void
org.apache.catalina.core.StandardPipeline.invokeNext(org.apache.catalina.Req
uest, org.apache.catalina.Response)
void
org.apache.catalina.core.StandardPipeline.invoke(org.apache.catalina.Request
, org.apache.catalina.Response)
void
org.apache.catalina.core.ContainerBase.invoke(org.apache.catalina.Request,
org.apache.catalina.Response)
void
org.apache.catalina.core.StandardContext.invoke(org.apache.catalina.Request,
org.apache.catalina.Response)
void
org.apache.catalina.core.StandardHostValve.invoke(org.apache.catalina.Reques
t, org.apache.catalina.Response, org.apache.catalina.ValveContext)
void
org.apache.catalina.core.StandardPipeline.invokeNext(org.apache.catalina.Req
uest, org.apache.catalina.Response)
void
org.apache.catalina.valves.ErrorDispatcherValve.invoke(org.apache.catalina.R
equest, org.apache.catalina.Response, org.apache.catalina.ValveContext)
void
org.apache.catalina.core.StandardPipeline.invokeNext(org.apache.catalina.Req
uest, org.apache.catalina.Response)
void

Re: container managed security

2002-07-12 Thread Craig R. McClanahan



On Fri, 12 Jul 2002, Jürgen Weber wrote:

 Date: Fri, 12 Jul 2002 17:13:28 +0200
 From: Jürgen Weber [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: container managed security


 On Tue, 09 Jul 2002, Craig R. McClanahan wrote:

 The example app rolls its own for one and only one reason -- one of the
 purposes of this webapp is to detect whether you have Struts installed and
 working on your container correctly.  The less configuration tinkering you
 have to do for a hello, world application to work, the better.

 Couldn't that better be checked in javax.servlet.Servlet.init(ServletConfig
 config)
 possibly even with load-on-startup ?


My point was we wanted an example webapp that you could simply drop into
your container, with no configuration required, and make sure it worked.
If we also made you set up users and roles (i.e. because the example app
itself used container managed security) then we have just made this
impossible.

 In general, I believe that apps should use container managed security
 rather than rolling their own.

 So your statement should be in the FAQs.


It's in ~100 or so mailing list messages (here and on tomcat-user,
jsp-interest, servlet-interest ... :-)

 Unfortunately most examples I saw (Learning Jakarta Struts from
 http://www.onjava.com/lpt/a//onjava/2001/10/31/struts2.html, the O'Reilly
 Struts book)
 seem to copy this idea and all use now Struts managed login pages.

 Consider that you are writing a portal application, with the usual self
 registration facilities.  It is trivially simple to make the portal app
 itself portable across containers, if you just stick to standard servlet
 and JSP facilities.  But the notion of add a new user is not portable,
 and requires integration with each container's own user database update
 mechanisms (for example, using a particular Realm in Tomcat).  There is no
 way to write the functionality for this in a portable way.

 Yes, this is definitely a problem. We once ended copying LDAP logic that
 already was in the realm into the application.
 Maybe there should be added functionality to javax.servlet.ServletContext to
 add and delete users.


Something like this, or some portable container-level API with
functionality similar to what Tomcat's (4.1.x) UserDatabase provides, is
a long term goal of the platform.  Unfortunately, it is *substantially*
more complex than you might think to identify what a user is in a manner
that is portable across all desireable use cases -- let alone how they
should be authanticated.  It's not going to be a short term effort to
standardize this.


 Juergen


Craig


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




RE: container managed security

2002-07-12 Thread Tero P Paananen

  Consider that you are writing a portal application, with the usual self
  registration facilities.  It is trivially simple to make the portal app
  itself portable across containers, if you just stick to standard servlet
  and JSP facilities.  But the notion of add a new user is not portable,
  and requires integration with each container's own user database update
  mechanisms (for example, using a particular Realm in Tomcat).  There is no
  way to write the functionality for this in a portable way.
 
  Maybe there should be added functionality to javax.servlet.ServletContext to
  add and delete users.
 
 Something like this, or some portable container-level API with
 functionality similar to what Tomcat's (4.1.x) UserDatabase provides, is
 a long term goal of the platform.  Unfortunately, it is *substantially*
 more complex than you might think to identify what a user is in a manner
 that is portable across all desireable use cases -- let alone how they
 should be authanticated.  It's not going to be a short term effort to
 standardize this.

Maybe put in a baseline implementation (role based authentication)
with express instructions to really, really, really use container
managed security for mission critical software?

That way people interested in fast prototyping or using Struts for
personal projects could use platform independent user authentication
and people who require real solutions would still be able to use
the J2EE security model.

-TPP

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




Action object doesn't get attributes...

2002-07-12 Thread Craig Tataryn

Here is a question from a collegue of mine (see below).  Basically last year 
when they started using Struts on one of their web applications they could 
use request.getAttributes from their Action object and everything worked 
fine.  However, now it seems that they need to use an ActionForm object 
which isn't possible in this case since the form objects to be submitted 
change based on the user logged in.

Anyone have an answer?  I just saw a mail from Craig explaining that form 
parameter values are treated differently now than they were before, however 
he says they are using the same version of struts (1.0) as they did before.

Thanks,

/tataryn:craig

Original message:

For those of you who I asked already, I did some more testing and
included some more information:

Have any of you come accross the following?

It seems that the form attributes are not available to the struts Action
object unless they are put into an ActionForm. If they are not put into
an ActionForm (or if there is no ActionForm defined for the page) then
the data is unavailable to that Action object.

This did not happen in last years application (both are using the same
struts version). Is there some configuration setting that might be
causing this? Is the presence of ANY ActionForm that is defined on that
page mess up forms for which there is no ActionForm?

Thanks for any info you might have on this.

Craig W. Tataryn
Programmer/Analyst
Compuware

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


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




logic:empty and logic:notEmpty tags

2002-07-12 Thread Ravi Kora

I am using logic:empty tags in my application and it throws an error
saying that the taglib doesn't support that tag. I am using Struts
1.0.2. 
Can anyone tell me if Struts 1.0.2 supports the logic:empty and
logic:notEmpty tags? If it des not, how to go about?

I would really appreciate if someone responds!

Thanks  Regards,
Ravi Kora
[EMAIL PROTECTED]
337-739-3434(M) 



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




RE: child window problem!!!!!!

2002-07-12 Thread Jacob Hookom

I've posted a solution at:

http://www.swanked.net/dds/popup/

I can send you the code for it if you want

-Original Message-
From: Samip Ladhawala [mailto:[EMAIL PROTECTED]] 
Sent: Friday, July 12, 2002 1:51 PM
To: [EMAIL PROTECTED]
Subject: child window problem!!

Hi guys,

We are using Struts in our project and have a kind of
road block stopping us to proceed. Problem is
described below and any help on this will be
appreciated.

We have an Assign.jsp with AssignForm and
AssignAction.  From Assign.jsp user may perform
actions like assign a person, Search a person, See
details of a person and Change a person. We are using
Dispatch action as a superclass for our AssignAction
form and we pass appropriate actiontype as parameter
when an action takes place.

We are kind of stuck at search person. Requirement is
when a user keys in partial name and presses search
link(this is html:link) a new window should open up
with name of all the people with the matching name
with the partial name typed in by the user. We have
our search form ready and in the action of this search
form we are using a business delegate to get us a list
of people. 
Our problems are 
1. How can we open a new window from Assign.jsp and
open Search window?
2. Search window needs search values from the parent
window (Assign.jsp). How can we pass this to
Search.jsp and invoke SearchAction to perform the
search on the parameter passed and display the results
to the user in search.jsp? 
3.  When user makes his selection in the Search.jsp we
wish to close the Search window on selection and
refresh the parent window(Assign.jsp) with the value
selected by the user in Search.jsp. How can we do
this?

Thanks,
Samip.

__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.373 / Virus Database: 208 - Release Date: 7/1/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.373 / Virus Database: 208 - Release Date: 7/1/2002
 


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




AW: child window problem!!!!!!

2002-07-12 Thread Manfred Wolff

Please post the code in this Mailing List or direct to me:
[EMAIL PROTECTED] . It is a beautiful solution!

Manfred

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Im Auftrag von Jacob Hookom
Gesendet: Samstag, 13. Juli 2002 00:07
An: 'Struts Users Mailing List'
Betreff: RE: child window problem!!


I've posted a solution at:

http://www.swanked.net/dds/popup/

I can send you the code for it if you want

-Original Message-
From: Samip Ladhawala [mailto:[EMAIL PROTECTED]] 
Sent: Friday, July 12, 2002 1:51 PM
To: [EMAIL PROTECTED]
Subject: child window problem!!

Hi guys,

We are using Struts in our project and have a kind of
road block stopping us to proceed. Problem is
described below and any help on this will be
appreciated.

We have an Assign.jsp with AssignForm and
AssignAction.  From Assign.jsp user may perform
actions like assign a person, Search a person, See
details of a person and Change a person. We are using
Dispatch action as a superclass for our AssignAction
form and we pass appropriate actiontype as parameter
when an action takes place.

We are kind of stuck at search person. Requirement is
when a user keys in partial name and presses search
link(this is html:link) a new window should open up
with name of all the people with the matching name
with the partial name typed in by the user. We have
our search form ready and in the action of this search
form we are using a business delegate to get us a list
of people. 
Our problems are 
1. How can we open a new window from Assign.jsp and
open Search window?
2. Search window needs search values from the parent
window (Assign.jsp). How can we pass this to
Search.jsp and invoke SearchAction to perform the
search on the parameter passed and display the results
to the user in search.jsp? 
3.  When user makes his selection in the Search.jsp we
wish to close the Search window on selection and
refresh the parent window(Assign.jsp) with the value
selected by the user in Search.jsp. How can we do
this?

Thanks,
Samip.

__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com

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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.373 / Virus Database: 208 - Release Date: 7/1/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.373 / Virus Database: 208 - Release Date: 7/1/2002
 


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



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




RE: child window problem!!!!!!

2002-07-12 Thread Jacob Hookom

Here you go

-Original Message-
From: Manfred Wolff [mailto:[EMAIL PROTECTED]] 
Sent: Friday, July 12, 2002 5:11 PM
To: 'Struts Users Mailing List'
Subject: AW: child window problem!!

Please post the code in this Mailing List or direct to me:
[EMAIL PROTECTED] . It is a beautiful solution!

Manfred

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Im Auftrag von Jacob Hookom
Gesendet: Samstag, 13. Juli 2002 00:07
An: 'Struts Users Mailing List'
Betreff: RE: child window problem!!


I've posted a solution at:

http://www.swanked.net/dds/popup/

I can send you the code for it if you want

-Original Message-
From: Samip Ladhawala [mailto:[EMAIL PROTECTED]] 
Sent: Friday, July 12, 2002 1:51 PM
To: [EMAIL PROTECTED]
Subject: child window problem!!

Hi guys,

We are using Struts in our project and have a kind of
road block stopping us to proceed. Problem is
described below and any help on this will be
appreciated.

We have an Assign.jsp with AssignForm and
AssignAction.  From Assign.jsp user may perform
actions like assign a person, Search a person, See
details of a person and Change a person. We are using
Dispatch action as a superclass for our AssignAction
form and we pass appropriate actiontype as parameter
when an action takes place.

We are kind of stuck at search person. Requirement is
when a user keys in partial name and presses search
link(this is html:link) a new window should open up
with name of all the people with the matching name
with the partial name typed in by the user. We have
our search form ready and in the action of this search
form we are using a business delegate to get us a list
of people. 
Our problems are 
1. How can we open a new window from Assign.jsp and
open Search window?
2. Search window needs search values from the parent
window (Assign.jsp). How can we pass this to
Search.jsp and invoke SearchAction to perform the
search on the parameter passed and display the results
to the user in search.jsp? 
3.  When user makes his selection in the Search.jsp we
wish to close the Search window on selection and
refresh the parent window(Assign.jsp) with the value
selected by the user in Search.jsp. How can we do
this?

Thanks,
Samip.

__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com

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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.373 / Virus Database: 208 - Release Date: 7/1/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.373 / Virus Database: 208 - Release Date: 7/1/2002
 


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



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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.373 / Virus Database: 208 - Release Date: 7/1/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.373 / Virus Database: 208 - Release Date: 7/1/2002
 




search.jsp
Description: Binary data

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


RE: child window problem!!!!!!

2002-07-12 Thread Martin Cooper



 -Original Message-
 From: Samip Ladhawala [mailto:[EMAIL PROTECTED]]
 Sent: Friday, July 12, 2002 11:51 AM
 To: [EMAIL PROTECTED]
 Subject: child window problem!!
 
 
 Hi guys,
 
 We are using Struts in our project and have a kind of
 road block stopping us to proceed. Problem is
 described below and any help on this will be
 appreciated.
 
 We have an Assign.jsp with AssignForm and
 AssignAction.  From Assign.jsp user may perform
 actions like assign a person, Search a person, See
 details of a person and Change a person. We are using
 Dispatch action as a superclass for our AssignAction
 form and we pass appropriate actiontype as parameter
 when an action takes place.
 
 We are kind of stuck at search person. Requirement is
 when a user keys in partial name and presses search
 link(this is html:link) a new window should open up
 with name of all the people with the matching name
 with the partial name typed in by the user. We have
 our search form ready and in the action of this search
 form we are using a business delegate to get us a list
 of people. 
 Our problems are 
 1. How can we open a new window from Assign.jsp and
 open Search window?

Use the JavaScript window.open() method.

 2. Search window needs search values from the parent
 window (Assign.jsp). How can we pass this to
 Search.jsp and invoke SearchAction to perform the
 search on the parameter passed and display the results
 to the user in search.jsp? 

Build them into the URL you pass to window.open().

 3.  When user makes his selection in the Search.jsp we
 wish to close the Search window on selection and
 refresh the parent window(Assign.jsp) with the value
 selected by the user in Search.jsp. How can we do
 this?

This depends on how your app is structured. Here are a few options:

1) Use JavaScript in the search page to stuff the selected value back into
the parent page and then close the search window.

2) Submit a request from the search page, and save the selection to the
session. The response for that request would be a page which uses JavaScript
in body onload=... which forces the main page to refresh and then closes
the search window.

3) Use a hidden form on the main page. The search page would set the
selection in a hidden field in that form, submit that form, and then close
the search window.

--
Martin Cooper


 
 Thanks,
 Samip.
 
 __
 Do You Yahoo!?
 Sign up for SBC Yahoo! Dial - First Month Free
 http://sbc.yahoo.com
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



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




  1   2   >