Re: Struts user base

2001-02-12 Thread Jannik Nørgaard Steen

Hi,

we are a danish company in the Media Asset Management business. We are
developing our web-interface and have based it entirely on Struts.
We are using Borland App Server 4.5 as EJB-backend, with Apache and Resin on
the side.

/jannik

- Original Message -
From: "Mike Dewhirst" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 12, 2001 6:02 PM
Subject: Struts user base


>
> I am working on the same project as Mark Mclaren, and have some additional
questions regarding Struts:
>
> 1. Does anyone have an idea of how many people are developing/using
Struts?
>
> I have checked the bug list and indeed it is very small, but I want to
know that that is due to product stability, not because of the lack of
users. Don't mean to be rude, just cautious.
>
> 2. Are there any European users?
> 3. Does anyone run Struts on commercial servers, e.g. BEA's Weblogic?
> 4. What is the envisaged frequency of update releases? (just a rough idea,
e.g. every 2 quarters, years, etc.)
>
> Thanks in advance for your help!
>
> Mike Dewhirst
>
>
> --
>
> This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorised copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.
>
>




need to restart tomcat after modifications in (formbean || action class)

2001-02-12 Thread gustav spellauge

i just discovered struts and am experimenting a bit.

i discovered that i have to restart tomcat (3.2) after i modified either
of the formbean or action class.

javax.servlet.ServletException:
org.apache.struts.util.PropertyMessageResources
 at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459)

also i have to restart tomcat after modifications in
ApplicationResources.properties

is there any way to avoid this restart.

thanks in advance

gustav




AW: Struts client

2001-02-12 Thread Matthias Maisch


> > Hallo,
> >
> > ist there a way to use an Applett as client for a server 
> with a Struts
> > framework?
> >
> > Thanks for all answers
> >
> > Matthias
> 
> Sure ... the applet can use java.net.HttpURLConnection to send its own
> requests to the controller servlet, and receive the response. 
>  There are
> some simple examples of doing this (from a standalone client, but the
> programming concepts are the same) in the Java Language Tutorial's
> networking trail .
> 
> Craig McClanahan
> 
Does anybody have an example for an application with an Applett as client?
In wich way do I have to set the struts configuration file?

Thanks for any idea 

Matthias Maisch



RE: struts:example

2001-02-12 Thread Mark Davidson

Did I miss a configuration step somewhere?

Wait a second... earlier today, I e-mailed the list with a similar problem
(I couldn't get the Struts' examples to work).  The struts-example wouldn't
work under Resin or Tomcat because it couldn't find the
org.apache.struts.example.User class.  It also couldn't find the properties
file for the application (in the same directory).

So, I did discover that if you let Tomcat unpack the .war file, stop Tomcat,
edit your classpath to include the classes directory that just got unpacked
and then restart Tomcat, the problems go away.

My question to the list is... WHY?  It's *can't* be that you're supposed to
do things this way.  I must have missed a configuration step, but for the
life of me, I can't see it.  I find it difficult to believe that you have to
point your CLASSPATH to the unpacked .war file in order to get Struts to
work.

If someone can tell me the *right* way to do this, I'd greatly appreciate
it!

Mark

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, February 11, 2001 9:25 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: RE: struts:example
> 
> 
> 
> 
> These are the classes used by the struts example.So you 
> should include these
> classes in your classpath.For ex. If this class file is within the
> web-inf/classes directory then include int web-inf/classes 
> directory in the
> classpath before starting the server.It works perfectly with 
> the tomcat server.
> 
> hope it helps u,
> gitanjali.
> 
> 



RE: struts:example

2001-02-12 Thread Gitanjali_Singh



These are the classes used by the struts example.So you should include these
classes in your classpath.For ex. If this class file is within the
web-inf/classes directory then include int web-inf/classes directory in the
classpath before starting the server.It works perfectly with the tomcat server.

hope it helps u,
gitanjali.





RE: struts:example

2001-02-12 Thread Sundar Shanmugasundaram



Hi,
  
I also have the same problem.
 
sundar.

  -Original Message-From: pratima gogineni 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, February 13, 2001 5:57 
  AMTo: [EMAIL PROTECTED]Subject: 
  struts:example 
  Hi,
  I just moved from 0.5 to 1.0 (last nights build). I had the example 
  application working properly with 0.5. 
  When I moved to 1.0, after the login page - I get the following error 
  (Note: I DONT have struts.jar in my JRUN classpath, only under 
  web-info)
  Also I am not using the war file as is - but extracted the war file into a 
  directory
  Does anyone know why this happens?
  Pratima
  java.lang.ClassNotFoundException: 
  org.apache.struts.example.User at 
  java.net.URLClassLoader$1.run(URLClassLoader.java, Compiled Code) at 
  java.lang.Exception.(Exception.java, Compiled Code) at 
  java.lang.ClassNotFoundException.(ClassNotFoundException.java, 
  Compiled Code) at java.net.URLClassLoader$1.run(URLClassLoader.java, 
  Compiled Code) at java.security.AccessController.doPrivileged(Native 
  Method) at java.net.URLClassLoader.findClass(URLClassLoader.java, 
  Compiled Code) at java.lang.ClassLoader.loadClass(ClassLoader.java, 
  Compiled Code) at 
  sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java, Compiled 
  Code) at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled 
  Code) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java, 
  Compiled Code) at java.lang.Class.forName0(Native Method) at 
  java.lang.Class.forName(Class.java:124) ! ;at 
  org.apache.struts.digester.ObjectCreateRule.begin(ObjectCreateRule.java:152) at 
  org.apache.struts.digester.Digester.startElement(Digester.java, Compiled 
  Code) at 
  com.sun.xml.parser.Parser.maybeElement(Parser.java:1391) at 
  com.sun.xml.parser.Parser.content(Parser.java:1499) at 
  com.sun.xml.parser.Parser.maybeElement(Parser.java:1400) at 
  com.sun.xml.parser.Parser.parseInternal(Parser.java:492) at 
  com.sun.xml.parser.Parser.parse(Parser.java:284) at 
  javax.xml.parsers.SAXParser.parse(SAXParser.java:155) at 
  javax.xml.parsers.SAXParser.parse(SAXParser.java:77) at 
  org.apache.struts.digester.Digester.parse(Digester.java:748) at 
  org.apache.struts.example.DatabaseServlet.load(DatabaseServlet.java:282) at 
  org.apache.struts.example.DatabaseServlet.init(DatabaseServlet.java:175) at 
  javax.servlet.GenericServlet.init(GenericServlet.java:258) at 
  allaire.jrun.servlet.JRunServl! 
  etLoader.loadServletInstance(JRunServletLoader.java, Compiled 
  Code) at 
  allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader.java:190) at 
  allaire.jrun.servlet.JRunServletLoader.loadServlet(JRunServletLoader.java:177) at 
  allaire.jrun.servlet.JRunSE.getServletReference(JRunSE.java:1261) at 
  allaire.jrun.servlet.JRunSE.preloadServlets(JRunSE.java, Compiled 
  Code) at allaire.jrun.servlet.JRunSE.init(JRunSE.java, Compiled 
  Code) at allaire.jrun.ServletService.init(ServletService.java, 
  Compiled Code) at 
  allaire.jrun.ServletService.init(ServletService.java, Compiled 
  Code) at 
  allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader.java, 
  Compiled Code) at 
  allaire.jrun.servlet.JRunSE.initServices(JRunSE.java, Compiled 
  Code) at 
  allaire.jrun.servlet.JvmContext.initServices(JvmContext.java:96) at 
  allaire.jrun.servlet.JRunSE.init(JRunSE.java, Compiled C! ode) at 
  allaire.jrun.servlet.JvmContext.init(JvmContext.java:35) at 
  allaire.jrun.ServletService.init(ServletService.java, Compiled 
  Code) at allaire.jrun.ServletService.init(ServletService.java, 
  Compiled Code) at JRun.main(JRun.java, Compiled Code)
  
  
  Do You Yahoo!?- Get personalized email addresses from Yahoo! Mail Personal Address - only 
  $35 a year!


Re: rte as subscript

2001-02-12 Thread John Hunt

Craig
I tried using it, but I think when it is converted
into html it goes out like 
but when we posted your code tries to look for 
array%5b0%5d ( [ and ] ) being encoded. Is this what
is expected

--- "Craig R. McClanahan"
<[EMAIL PROTECTED]> wrote:
> John Hunt wrote:
> 
> > can we access memebers of an array like
> >  in a for loop...
> It
> > works if I use constants but not expressions..
> > property="array[0]" is fine but not array[i] or
> > array[<%=i>] for the property attribute of
> > form:select. Any clues???
> >
> >
> 
> The property accessor syntax in Struts 1.0 supports
> only constants as
> array subscripts.
> 
> You might consider using some sort of runtime
> expression instead, to
> dynamically calculate the property to be retrieved. 
> Assume that "i" is
> an integer variable, and you are inside a loop:
> 
> 
> 
> Craig
> 
> 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/



RE: input form with indexed properties, when?

2001-02-12 Thread Shamdasani Nimmi-ANS004

Struts-example displays multiple rows of subscriptions whereas I want to create an 
input form where you could enter multiple-rows in a table (each row inserts a new 
record in the database) and the data can be validated before saving.


-Nimmi

-Original Message-
From: Maya Muchnik [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 12, 2001 4:14 PM
To: [EMAIL PROTECTED]
Subject: Re: input form with indexed properties


I think, the original struts-example has a multiple rows form for "Current 
Subscriptions".

Shamdasani Nimmi-ANS004 wrote:

> Hi,
>
> Is any solution to handling an input form with data in a table form (i.e. multiple 
>rows of same kind of data) on Struts horizon in the near future?
>
> Also If anyone has worked with such a form and have an example to share I will 
>really appreciate it. Thanks
>
> -Nimmi



[OT] Web-initiated restarts for Tomcat 3.2.1?

2001-02-12 Thread Nathan Eric Probst

Hello,

I'm attempting to setup a shared development server to use with a
distributed developement team.  (All two of us!)

I want to allow my partner, who is doing the page design, graphics, and
JSP to "bounce" Tomcat remotely WITHOUT giving him an account on my
machine.

I've already written a simple buildServlet that updates the local copy
of our CVS project and builds it to the context directory
(webapps/our_project/).  I've added the admin/reload.do Action to catch
config changes.  I've set the reloadable='true' in server.xml for the
Context.  Now I need to provide the ability to "bounce" Tomcat, just in
case it reloads funny.

Does anyone know of a reliable way to do this?

I've written a simple bounceServlet that uses Runtime.exec() to call a
bounce.sh script (I'm running Linux) that does a 'tomcat -stop' and
'tomcat -start'.  The problem is that it work *sometimes*.  There is a
race between the call to 'tomcat -stop' and 'tomcat -start'.  At least,
that's my explaination.

So, does anyone have a better solution?

Nathan




RE: Problems Converting from .5 to 1.0

2001-02-12 Thread Stefan Winz

Yes, i had a similar problem for an action link that populates the instance
variables off a form from beans stored in the session.  I was using the name
attribute in the action mapping so that it would save the name of the form
that it set up.

I didn't really investigate, but I assume that the action assumes that this
form already exists by the time it gets to action.perform().

I made the name of the setup form a property off the Action instead and
removed the name attribute altogether.  That worked.

Hope this helps.

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf
> Of David J Snowsill
> Sent: Monday, February 12, 2001 5:54 PM
> To: [EMAIL PROTECTED]
> Subject: Problems Converting from .5 to 1.0
>
>
> Hi All,
>
> I am currently migrating our Struts .5 based application to Struts 1.0.
> After making what appears to be all the required changes I am having
> problems clicking on links that refer to a Struts Action. The
> error message
> appearing in the tomcat console is
>
> 2001-02-13 09:45:12 - Ctx( /aquaQP ): 500 R( /aquaQP +
> /showLogin.do + null)
> No action instance for path /showLogin could be created
>
> Any ideas?
>
> Regards
>
> David Snowsill
>
>
>
>




Struts example doesn't work???

2001-02-12 Thread Mark Davidson

I've seen other people post about this problem, but I really haven't seen a
good answer to why this problem is occurring... I'm hoping someone can
enlighten this poor soul as to what's going on.

I've downloaded the Struts nightly binary build (I've actually tried
several; all do this), and placed the struts.jar file in Tomcat's tree (as
per the instructions).   I've also placed the .war files in the webapps
directory.  Tomcat gets started, sees the .war files and proceeds to unpack
everything.

Problem is... the example app doesn't work.  If you try to go to
http://localhost:8080/struts-example, the system proceeds to do whatever it
needs to do to compile the JSP pages, then throws an error 500:  

Location: /struts-example/index.jsp
Internal Servlet Error:

javax.servlet.ServletException: Missing message for key index.title
at java.lang.Throwable.(Throwable.java:96)
at java.lang.Exception.(Exception.java:44)
at javax.servlet.ServletException.(ServletException.java:161)
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:459)
at
_0002findex_0002ejspindex_jsp_2._jspService(_0002findex_0002ejspindex_jsp_2.
java:381)

... the rest of the trace is removed to keep this message small.

>From looking at the code, it seems that the code is having problems loading
the ApplicationResources.properties file (where the text for index.title
is).  The file is definitely there, in the org.apache.struts.example tree.

I've seen other postings from people using both Tomcat and Weblogic, and
having the same problem.  My question is... why?  I know some people have
suggested unpacking the war file and struts.jar file so they can be in your
classpath, but I would love to know the reason behind this issue.

Any ideas or suggestions would be greatly appreciated.

---
Mark E. Davidson
[EMAIL PROTECTED]
Sr. Server Engineer  "The same thing that makes you
live,
1704 Automation Pkwy  can kill you in the end."
San Jose, CA 95131-- Neil Young
Phone:  408-503-1085
Fax:408-503-1185




"Eval" tag?

2001-02-12 Thread John Raley

Hi,

Is there a tag (in struts or elsewhere) that will evaluate its body into
a String that can be squirreled away for later use?

Thanks,
John




how to determine size of collections using tags

2001-02-12 Thread Deadman, Hal

Is there a way to determine the size of a collection that one might iterate
over using struts tags rather than a scriptlet? I often want to display one
thing if the collection is empty or I want to iterate over the collection.
The only thing I can think of involves adding a get method to the JavaBean
containing the collection that returns the collection size . That would let
me use the logic:equal tag to check the property. Is there a non-scriptlet
way to do this without adding a method to the JavaBean?


// print message about lack of order line items 



   // start table
   
// show each line item
   







struts:example

2001-02-12 Thread pratima gogineni
Hi,
I just moved from 0.5 to 1.0 (last nights build). I had the example application working properly with 0.5. 
When I moved to 1.0, after the login page - I get the following error (Note: I DONT have struts.jar in my JRUN classpath, only under web-info)
Also I am not using the war file as is - but extracted the war file into a directory
Does anyone know why this happens?
Pratima
java.lang.ClassNotFoundException: org.apache.struts.example.User at java.net.URLClassLoader$1.run(URLClassLoader.java, Compiled Code) at java.lang.Exception.(Exception.java, Compiled Code) at java.lang.ClassNotFoundException.(ClassNotFoundException.java, Compiled Code) at java.net.URLClassLoader$1.run(URLClassLoader.java, Compiled Code) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java, Compiled Code) at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java, Compiled Code) at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java, Compiled Code) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:124) at org.apache.struts.digester.ObjectCreateRule.begin(ObjectCreateRule.java:152) at org.apache.struts.digester.Digester.startElement(Digester.java, Compiled Code) at com.sun.xml.parser.Parser.maybeElement(Parser.java:1391) at com.sun.xml.parser.Parser.content(Parser.java:1499) at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400) at com.sun.xml.parser.Parser.parseInternal(Parser.java:492) at com.sun.xml.parser.Parser.parse(Parser.java:284) at javax.xml.parsers.SAXParser.parse(SAXParser.java:155) at javax.xml.parsers.SAXParser.parse(SAXParser.java:77) at org.apache.struts.digester.Digester.parse(Digester.java:748) at org.apache.struts.example.DatabaseServlet.load(DatabaseServlet.java:282) at org.apache.struts.example.DatabaseServlet.init(DatabaseServlet.java:175) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader.java, Compiled Code) at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader.java:190) at allaire.jrun.servlet.JRunServletLoader.loadServlet(JRunServletLoader.java:177) at allaire.jrun.servlet.JRunSE.getServletReference(JRunSE.java:1261) at allaire.jrun.servlet.JRunSE.preloadServlets(JRunSE.java, Compiled Code) at allaire.jrun.servlet.JRunSE.init(JRunSE.java, Compiled Code) at allaire.jrun.ServletService.init(ServletService.java, Compiled Code) at allaire.jrun.ServletService.init(ServletService.java, Compiled Code) at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader.java, Compiled Code) at allaire.jrun.servlet.JRunSE.initServices(JRunSE.java, Compiled Code) at allaire.jrun.servlet.JvmContext.initServices(JvmContext.java:96) at allaire.jrun.servlet.JRunSE.init(JRunSE.java, Compiled Code) at allaire.jrun.servlet.JvmContext.init(JvmContext.java:35) at allaire.jrun.ServletService.init(ServletService.java, Compiled Code) at allaire.jrun.ServletService.init(ServletService.java, Compiled Code) at JRun.main(JRun.java, Compiled Code)Do You Yahoo!?
- Get personalized email addresses from Yahoo! Mail Personal Address  - only $35 
a year!

Re: paging for web application

2001-02-12 Thread Steve A Drake

On Mon, 12 Feb 2001, Steve A Drake wrote:

> On Wed, 31 Jan 2001, Peter Alfors wrote:
> 
> > check out the pager taglib:  http://jsptags.com/tags/navigation/pager/
> 
>  Actually, I can run the example that comes with the distribution but am
> having some problems using this pager taglib in Struts. The links created
> by the pager aren't working.

 Well, I did get this working but with a couple of major caveats. 

1) In order to define a given , I had to use scriptlets for all
the code between the start and end tag. I assume this is because - from
what someone enlightened me earlier with - you can't nest tags. I hope
I'm wrong about this because it significantly clutters up the JSP and 
renders all the bean tags unusable. =:|

2) I needed to locate the hypertext index at the bottom of the document
because the index dimensions are determined as the results are iterated. I
assume this could be fixed by buffering the output to a StringBuffer or
somesuch but havn't tried that yet.


If anyone has some usage suggestions for this pager taglib, I'd
appreciate your input.




html:img tag url rewriting

2001-02-12 Thread Deadman, Hal



When using the 
html:img tag with the page attribute it will do url rewriting but that doesn't 
seem to work on some webservers. 
 
This doesn't 
work:
http://jakarta.apache.org/images/logos/tomcat_3.gif;jsessionid=123123
 
Is there a way to 
turn off the url rewriting and have the img tag still add the appropriate 
context to the image path?
 
Hal
 


Problems Converting from .5 to 1.0

2001-02-12 Thread David J Snowsill

Hi All,

I am currently migrating our Struts .5 based application to Struts 1.0.
After making what appears to be all the required changes I am having
problems clicking on links that refer to a Struts Action. The error message
appearing in the tomcat console is

2001-02-13 09:45:12 - Ctx( /aquaQP ): 500 R( /aquaQP + /showLogin.do + null)
No action instance for path /showLogin could be created

Any ideas?

Regards

David Snowsill






RE: i18n - stand for?

2001-02-12 Thread Vilavanh Messien

I18N stands for internationalization et 18 is the number of letters between
I and N.

Vilavanh

-Message d'origine-
De : mmuchnik [mailto:mmuchnik]De la part de Maya Muchnik
Envoyé : 12 février, 2001 17:29
À : [EMAIL PROTECTED]
Objet : i18n - stand for?


It is simple question. I18N - what is it means?
(Internationalization...)

Thanks,

Maya




Re: paging for web application

2001-02-12 Thread Steve A Drake

On Wed, 31 Jan 2001, Peter Alfors wrote:

> check out the pager taglib:  http://jsptags.com/tags/navigation/pager/

 Actually, I can run the example that comes with the distribution but am
having some problems using this pager taglib in Struts. The links created
by the pager aren't working.

 The example I'm working on has a JSP with an embedded form that, upon
submission, invokes a database query and reads back the results stored in
request scope beans (to the same JSP). The pager creates the correct
number of links to result pages. For example, one link created is:

http://localhost/project/simpleQuery.jsp?pager.offset=1

But when I click on this link I only get my simple query form and the
pager output of:

Result Pages [

Re: i18n - stand for?

2001-02-12 Thread Craig R. McClanahan

Maya Muchnik wrote:

> It is simple question. I18N - what is it means?
> (Internationalization...)
>

Yes ... it does mean "internationalization".  The "18" in the middle is
sort of a pun on the fact that there are 18 letters between the initial
"i" and the final "n".

Likewise, l10n (the initial character is an "L") means "localization".

>
> Thanks,
>
> Maya




i18n - stand for?

2001-02-12 Thread Maya Muchnik

It is simple question. I18N - what is it means?
(Internationalization...)

Thanks,

Maya




Last Call for Struts 1.0 Bugs

2001-02-12 Thread Craig R. McClanahan

The few remaining Struts bug reports are feeling kind of lonely.  Do you
have any more bugs that you would like to see fixed before Struts 1.0 is
released?  If so, please post them to the bug tracking system at:

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

under product "Struts".  Even if the bug has been reported to a Struts
mailing list, this is the best way to ensure that your bug does not get
missed in the final rush towards release.

Feature requests are welcome as well, of course, but the focus right at
the moment is on identifying and squashing any remaining bugs so that
1.0 comes out of the box as an extremely solid platform for building web
applications.

Craig McClanahan





RE: Antwort: RE: Running and debugging with Oracle JDeveloper

2001-02-12 Thread Park, Doug N

I don't have JDeveloper, but I do have Borland JBuilder which is almost the
same thing. We just got the example working with JBuilder 4 and the big
trick was we had to manually copy the ApplicationResources.properties file
to the output folder where the class files are created. Even though it was
in the JBuilder project, it was not copied to the output folder. Under
Tomcat this file is copied automatically.

Doug Park

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 05, 2001 3:55 AM
To: [EMAIL PROTECTED]
Subject: Antwort: RE: Running and debugging with Oracle JDeveloper





Hello Sean,

the option is set correctly - if I run the application under Tomcat,
everything
works fine.
Is there any option to be set in JDeveloper to let it work correctly?

Thanks for your answer so far.

Regards

Michael




I recently had this problem and it was due to the "application" parameter
option in the web.xml file not pointing to a valid resource file

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 02, 2001 10:40 AM
To: [EMAIL PROTECTED]
Subject: Running and debugging with Oracle JDeveloper




Hello,

has anyone successfully achieved to run/debug a web application based on
struts
using
Oracle JDeveloper 3.2.2?

If I run/debug my application I get the following error message:

javax.servlet.jsp.JspException: Missing resources attribute
org.apache.struts.action.MESSAGE
 void index._jspService(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse


[...]




Re: template-example and i18n

2001-02-12 Thread Incze Lajos

> Instead of using the Name \'Template\' of the page I thought it would be nice to 
> look up this value using the  tag. How shall one do this? I have, 
> newbie as I\'m to jsp and tag libraries, tried
>   template:put name=\'title\' content= 
> direct=\'true\'/>

Recently you can do this:


  


If you have a non-empty template:put tag, it is direct content.
incze



Re: input form with indexed properties

2001-02-12 Thread Maya Muchnik

I think, the original struts-example has a multiple rows form for "Current 
Subscriptions".

Shamdasani Nimmi-ANS004 wrote:

> Hi,
>
> Is any solution to handling an input form with data in a table form (i.e. multiple 
>rows of same kind of data) on Struts horizon in the near future?
>
> Also If anyone has worked with such a form and have an example to share I will 
>really appreciate it. Thanks
>
> -Nimmi




Re: Enhydra: Re: DTD validation of struts-config.xml

2001-02-12 Thread Craig R. McClanahan

DONNIE HALE wrote:

> To those interested:
>
> I followed the rabbit trail implied by Craig's response, and have discovered that in 
>fact there is an issue when Struts attempts to register its local DTD in the 
>initDigester method. However, I believe it may be due to a bug in the Struts code, 
>not Enhydra's class loader. The class loader implicitly used by the code in 
>ActionServlet.initDigester:
>
> URL url = this.getClass().getResource(registrations[i+1]);
>
> is "org.apache.tomcat.core.ServletClassLoader". I didn't pursue this angle terribly 
>far other than to intuit that it wasn't the class loader I expected.
>
> Making a short story long, I figured that the "getResource" method on the servlet 
>context was the appropriate method to use, I changed the relevant section in 
>initDigester to:
>
> // Register our local copy of the DTDs that we can find
> for (int i = 0; i < registrations.length; i += 2) {
> URL url;
> try {
> url = 
>getServletConfig().getServletContext().getResource(registrations[i+1]);
> }
> catch (java.net.MalformedURLException e) {
> url = null;
> }
> if (url != null)
> digester.register(registrations[i], url.toString());
> }
>
> This seems to fix the problem, though I can't say for sure what ill side effects it 
>could have. My guess is that one can't assume that the class loader of the servlet 
>class itself (at least, perhaps, while it's "init" method is still running) is the 
>same as that of the web application as a whole. Consequently, the standard servlet 
>getResource method is appropriate because the classpath of the class loader being 
>used behind the scenes of that method is the one to which the WEB-INF/lib stuff and 
>WEB-INF/classes directories have been added.
>

Unfortunately, this solution is not going to help unless you much -- at least in a 
servlet container that conforms to the spec requirements.

ServletContext.getResource() returns you a URL of a web application resource -- in 
other words, of a "file" or "directory" entry from the original WAR file.  For 
example, you can get a URL to read the web.xml file itself, if you want to, by calling:

URL url =
  getServletContext().getResource("/WEB-INF/web.xml");

However, the internal copy of the DTD we are talking about here is in the struts.jar 
file (along with all the LocalStrings.properties files containing messages generated 
by the Struts components themselves).  Struts expects to be able to access these 
resources via the class loader that the class was loaded from.

URL url =
   
this.getClass().getResource("/org/apache/struts/resources/struts-config_1_0.dtd");

Among other things, that means the call will succeeed whether you leave the Struts 
classes packaged in "struts.jar", or unpack them into WEB-INF/classes -- it is totally 
up to the class loader to figure out how to return a URL that can be used to read 
these resources.  And the class loader in question is the class loader provided by 
your servlet container.

Craig McClanahan






>
> Thanks,
>
> Donnie
>
> >>> [EMAIL PROTECTED] 02/12/01 03:01PM >>>
> Lee Hall wrote:
>
> > We've been using the Tomcat 3.2 that is integrated with NetBeans to do
> > our Struts development.  Our test deployment server (AIX 4.3 with the
> > IBM 1.2.2 JVM) is running a vanilla Tomcat3.2.1.  Neither of these
> > environments has any problem with the subject of this message. Our
> > pre-production server (AIX 4.3 with the IBM 1.2.2 JVM) is running
> > Enhydra 3.1 and fails initialization due to the validation done by
> > ActionServlet.  We've tried forcing Xerces 1.2 in Enhydra, but Enhydra
> > persists in it's attempt to validate using the network URL instead of
> > the local resource. I hacked ActionServlet.initDigester() to turn off
> > validation and that got us by - but I know it's the wrong way to deal
> > with this.  In spite of the Barracuda project, I would hope that the
> > Enhydra team would want to be completely Tomcat-compatible (which I
> > think includes Struts compatibility). Still, it was easier to "fix"
> > the ActionServlet than to fingure out why we are having this problem
> > with Enhydra.  I know, I know... I should have extended ActionServlet
> > to override instead of butchering my clean Struts - but the question
> > remains regarding why this seeming incompatibility exists. Could
> > somebody give me a clue?- Lee
>
> As you can see from the source code in ActionServlet, Struts attempts to
> register its local copy of the DTD in the initDigester() method.  It
> uses Class.getResource() to actually acquire a URL for reading the
> contents of the DTD, which is stored as a resource in the "struts.jar"
> file.  If the web application class loader in Enhydra has problems
> implementing this method correctly, you could encounter the symptom that
> you report (trying to go across t

input form with indexed properties

2001-02-12 Thread Shamdasani Nimmi-ANS004

Hi,

Is any solution to handling an input form with data in a table form (i.e. multiple 
rows of same kind of data) on Struts horizon in the near future? 

Also If anyone has worked with such a form and have an example to share I will really 
appreciate it. Thanks

-Nimmi




Enhydra: Re: DTD validation of struts-config.xml

2001-02-12 Thread DONNIE HALE

To those interested:

I followed the rabbit trail implied by Craig's response, and have discovered that in 
fact there is an issue when Struts attempts to register its local DTD in the 
initDigester method. However, I believe it may be due to a bug in the Struts code, not 
Enhydra's class loader. The class loader implicitly used by the code in 
ActionServlet.initDigester:

URL url = this.getClass().getResource(registrations[i+1]);

is "org.apache.tomcat.core.ServletClassLoader". I didn't pursue this angle terribly 
far other than to intuit that it wasn't the class loader I expected.

Making a short story long, I figured that the "getResource" method on the servlet 
context was the appropriate method to use, I changed the relevant section in 
initDigester to:

// Register our local copy of the DTDs that we can find
for (int i = 0; i < registrations.length; i += 2) {
URL url;
try {
url = 
getServletConfig().getServletContext().getResource(registrations[i+1]);
}
catch (java.net.MalformedURLException e) {
url = null;
}
if (url != null)
digester.register(registrations[i], url.toString());
}

This seems to fix the problem, though I can't say for sure what ill side effects it 
could have. My guess is that one can't assume that the class loader of the servlet 
class itself (at least, perhaps, while it's "init" method is still running) is the 
same as that of the web application as a whole. Consequently, the standard servlet 
getResource method is appropriate because the classpath of the class loader being used 
behind the scenes of that method is the one to which the WEB-INF/lib stuff and 
WEB-INF/classes directories have been added.

Thanks,

Donnie


>>> [EMAIL PROTECTED] 02/12/01 03:01PM >>>
Lee Hall wrote:

> We've been using the Tomcat 3.2 that is integrated with NetBeans to do
> our Struts development.  Our test deployment server (AIX 4.3 with the
> IBM 1.2.2 JVM) is running a vanilla Tomcat3.2.1.  Neither of these
> environments has any problem with the subject of this message. Our
> pre-production server (AIX 4.3 with the IBM 1.2.2 JVM) is running
> Enhydra 3.1 and fails initialization due to the validation done by
> ActionServlet.  We've tried forcing Xerces 1.2 in Enhydra, but Enhydra
> persists in it's attempt to validate using the network URL instead of
> the local resource. I hacked ActionServlet.initDigester() to turn off
> validation and that got us by - but I know it's the wrong way to deal
> with this.  In spite of the Barracuda project, I would hope that the
> Enhydra team would want to be completely Tomcat-compatible (which I
> think includes Struts compatibility). Still, it was easier to "fix"
> the ActionServlet than to fingure out why we are having this problem
> with Enhydra.  I know, I know... I should have extended ActionServlet
> to override instead of butchering my clean Struts - but the question
> remains regarding why this seeming incompatibility exists. Could
> somebody give me a clue?- Lee

As you can see from the source code in ActionServlet, Struts attempts to
register its local copy of the DTD in the initDigester() method.  It
uses Class.getResource() to actually acquire a URL for reading the
contents of the DTD, which is stored as a resource in the "struts.jar"
file.  If the web application class loader in Enhydra has problems
implementing this method correctly, you could encounter the symptom that
you report (trying to go across the network to grab the DTD).

Craig McClanahan


-
To unsubscribe from this mailing list, send email to [EMAIL PROTECTED] 
with the text "unsubscribe enhydra" in the body of the email.
If you have other questions regarding this mailing list, send email to
the list admin at [EMAIL PROTECTED]




Re: Antigen found =*.vbs file

2001-02-12 Thread John Raley

Glad I'm running Netscape on Linux! :^)

Administrator wrote:

> Antigen for Exchange found AnnaKournikova.jpg.vbs matching =*.vbs file
> filter.
> The file is currently Removed.  The message, "Here you have, ;o)", was
> sent from David Reynolds  and was discovered in IMC Queues\Inbound
> located at Epicentric/EPICENTRIC/LOMBARD.




RE: Here you have, ;o) IS A VIRUS

2001-02-12 Thread Schachter, Michael

don't op

-Original Message-
From: David Reynolds [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 12, 2001 4:35 PM
To: struts
Subject: Here you have, ;o)


Hi:
Check This!



VIRUS Alert

2001-02-12 Thread Sudheendra Hebbagilu

Hi All,
I just now got a mail containing virus from struts mailing list.
If the subject contains Here you have :) and an attachment called
AnnaKournikova.jpg.vbs,
then dont open it. delete it.
Thanks
Sudhi



Re: Here you have, ;o) - DONT! ,ITS A VIRUS

2001-02-12 Thread Ratnadeep Bhattacharjee

> 
> Hi:
> Check This!

Don't check this if you are running on Windows - its a Virus. For details go to
 http://espn.go.com/tennis/news/2001/0212/1079565.html

-Deep.





Antigen found VBS/SST virus

2001-02-12 Thread ANTIGEN_SCOOBY

Antigen for Exchange found AnnaKournikova.jpg.vbs infected with VBS/SST
virus.
The file is currently Deleted.  The message, "Here you have, ;o)", was
sent from David Reynolds  and was discovered in IMC Queues\Inbound
located at Brightspark/BSPARK-MAIN/SCOOBY.



Antigen found VBS/SST virus

2001-02-12 Thread ANTIGEN_SESTOMSX01

Antigen for Exchange found AnnaKournikova.jpg.vbs infected with VBS/SST
virus.
The file is currently Deleted.  The message, "Here you have, ;o)", was
sent from David Reynolds and was discovered in Alix Jermyn\Inbox
located at Icon Medialab AB/ICONSE/SESTOMSX01.



Antigen found VBS/SST virus

2001-02-12 Thread ANTIGEN_SESTOMSX01

Antigen for Exchange found AnnaKournikova.jpg.vbs infected with VBS/SST
virus.
The file is currently Deleted.  The message, "Here you have, ;o)", was
sent from David Reynolds and was discovered in Alain Hubert\Inbox
located at Icon Medialab AB/ICONSE/SESTOMSX01.



Antigen found =*.vbs file

2001-02-12 Thread Administrator

Antigen for Exchange found AnnaKournikova.jpg.vbs matching =*.vbs file
filter.
The file is currently Removed.  The message, "Here you have, ;o)", was
sent from David Reynolds  and was discovered in IMC Queues\Inbound
located at Epicentric/EPICENTRIC/LOMBARD.



Antigen found =*.vbs file

2001-02-12 Thread ANTIGEN_GMEXCHANGE

Antigen for Exchange found AnnaKournikova.jpg.vbs matching =*.vbs file
filter.
The file is currently Removed.  The message, "Here you have, ;o)", was
sent from David Reynolds  and was discovered in IMC Queues\Inbound
located at GlobalMedic/GlobalMedic - Montreal/GMEXCHANGE.



Antigen found =*.vbs file

2001-02-12 Thread ANTIGEN_GMEXCHANGE

Antigen for Exchange found AnnaKournikova.jpg.vbs matching =*.vbs file
filter.
The file is currently Removed.  The message, "Here you have, ;o)", was
sent from David Reynolds  and was discovered in IMC Queues\Inbound
located at GlobalMedic/GlobalMedic - Montreal/GMEXCHANGE.



Here you have, ;o)

2001-02-12 Thread David Reynolds

Hi:
Check This!

 AnnaKournikova.jpg.vbs


RE: Sorry....RE: Struts installation notes - example's setLocale on J Run

2001-02-12 Thread Eric Wu

Allaire released an SP2a last week to correct some other problems.  I have
tested with this and the bug is still there... >:(

Eric

-Original Message-
From: Moore, Mark A [mailto:[EMAIL PROTECTED]]
Sent: January 31, 2001 9:14 AM
To: '[EMAIL PROTECTED]'
Subject: SorryRE: Struts installation notes - example's setLocale on
J Run


Sorry for the screwy mail before.  Here is what I sent.

My project got hold of JRun 3 SP2 yesterday and noticed that this is a Known
Issue (e.g. Unfixed Bug) in the service pack.  I don't have the bug number
handy.  There is no news on when an SP3 might be available.  I had
complained about this a few weeks ago in the JRun support forum, but there
was no response from any Allaire folks.  
 
Mark


-Original Message-
From: Carl Tallis [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 31, 2001 9:06 AM
To: [EMAIL PROTECTED]
Subject: RE: Struts installation notes - example's setLocale on JRun


Still broken.  Despite the assurances of the JRun tech
(http://forums.allaire.com/jrunconf/Thread.cfm?&Thread_ID=214627&mc=2), the
demo still doesn't run under SP2 (Version 3.02.11140).  I get the same error
as before.

Carl Tallis
Director Of Products
SupplyLinks, Inc.
Tel: (703) 796-6010
Fax: (703) 796-6014
email: [EMAIL PROTECTED] 

> -Original Message-
> From: Erik G. Dybdahl [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 31, 2001 1:32 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Struts installation notes - example's setLocale on JRun
>
>
>
> --- Peter Doyle <[EMAIL PROTECTED]> skrev: > Hi,
> >  I was writing up the Installation notes for the example and
> documentation
> > web applications for JRun when I came across the same problem.
> (I haven't
> > installed the example app since 0.5)
> >
> > allaire.jrun.scripting.DefaultCFE:
> > Errors reported by
> >
> compiler:D:/smartserver/peter/serving_eng/Struts-Example/WEB-INF/j
> sp/jrun__i
> > ndex2ejspa.java:44:1:44:27: Error: No match was found for method
> > "setLocale(java.lang.String)".
> >
> > The deployment is grand, its this setLocale method that stops
> the example.
> > I'll check out Allaire and the JRun postings for updates and include any
> > findings.
> >
> Appear it's been corrected in JRun 3.0 sp2.
> See
> http://forums.allaire.com/jrunconf/Index.cfm?CFID=184276&CFTOKEN=2
8308124&&Message_ID=649418
(I have not tried it, though)
erik

_
Do You Yahoo!?
Få din egen, gratis @yahoo.no-adresse på http://mail.yahoo.no


*
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorized. 

If you are not the intended recipient, any disclosure, copying, distribution
or any action taken or omitted to be taken in reliance on it, is prohibited
and may be unlawful. When addressed to our clients any opinions or advice
contained in this email are subject to the terms and conditions expressed in
the governing KPMG client engagement letter. 

*



template-example and i18n

2001-02-12 Thread magnus . sirvio

Hi,

I thought it would be nice to use the template-example technique with the i18n 
support in struts but is running into problem.

Below is a code snippet for the entry to the web I\'m building - slightly 
modified from the template-example example.


<%@ page language=\"java\" %>
<%@ taglib uri=\"/WEB-INF/struts-bean.tld\" prefix=\"bean\" %>
<%@ taglib uri=\"/WEB-INF/struts-html.tld\" prefix=\"html\" %>
<%@ taglib uri=\"/WEB-INF/struts-logic.tld\" prefix=\"logic\" %>
<%@ taglib uri=\'/WEB-INF/struts-template.tld\' prefix=\'template\' %>


  
  
  
  
  


Instead of using the Name \'Template\' of the page I thought it would be nice to 
look up this value using the  tag. How shall one do this? I have, 
newbie as I\'m to jsp and tag libraries, tried
  template:put name=\'title\' content= 
direct=\'true\'/>
and some variants without fortune. Please help me...

\\Magnus Sirwiö





Re[2]: Struts user base

2001-02-12 Thread Oleg V Alexeev

Hello Craig,

Monday, February 12, 2001, 10:51:38 PM, you wrote:

>> 3. Does anyone run Struts on commercial servers, e.g. BEA's Weblogic?

CRM> Yes, there are Struts users on Weblogic and many other server platforms -- the 
installation docs in the Struts nightly builds have been recently enhanced to include 
notes about the experience of
CRM> using Struts in such environments.

CRM> One thing that has been quite interesting (to me) is that Struts is often used as 
a "servlet/JSP compatibility" test by its users, and has triggered service pack 
updates on quite a few server
CRM> platforms to improve their conformance to the servlet and JSP specs :-).

I try to deploy my struts based application on Resin 1.2.snap
(built Thu Feb  8 18:23:28 PST 2001) and get strings -

500 Servlet Exception
javax.xml.parsers.FactoryConfigurationError
at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:96)
at org.apache.struts.digester.Digester.getParser(Digester.java:245)
at org.apache.struts.digester.Digester.parse(Digester.java:716)
at org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1249)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:438)
at javax.servlet.GenericServlet.init(GenericServlet.java:52)
at com.caucho.server.http.Application.createServlet(Application.java:1726)
at com.caucho.server.http.Application.loadServlet(Application.java:1690)
at com.caucho.server.http.Application.initServlets(Application.java:1108)
at com.caucho.server.http.Application.init(Application.java:1061)
at com.caucho.server.http.VirtualHost.restartApplication(VirtualHost.java:827)
at com.caucho.server.http.VirtualHost.getInvocation(VirtualHost.java:586)
at com.caucho.server.http.ServletServer.getInvocation(ServletServer.java:566)
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:236)
at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:157)
at com.caucho.server.TcpConnection.run(TcpConnection.java:140)
at java.lang.Thread.run(Thread.java:484)

Previous versions of Resin (to 1.2.2) works fine.

-- 
Best regards,
 Olegmailto:[EMAIL PROTECTED]





Re: DTD validation of struts-config.xml

2001-02-12 Thread Craig R. McClanahan

Lee Hall wrote:

> We've been using the Tomcat 3.2 that is integrated with NetBeans to do
> our Struts development.  Our test deployment server (AIX 4.3 with the
> IBM 1.2.2 JVM) is running a vanilla Tomcat3.2.1.  Neither of these
> environments has any problem with the subject of this message. Our
> pre-production server (AIX 4.3 with the IBM 1.2.2 JVM) is running
> Enhydra 3.1 and fails initialization due to the validation done by
> ActionServlet.  We've tried forcing Xerces 1.2 in Enhydra, but Enhydra
> persists in it's attempt to validate using the network URL instead of
> the local resource. I hacked ActionServlet.initDigester() to turn off
> validation and that got us by - but I know it's the wrong way to deal
> with this.  In spite of the Barracuda project, I would hope that the
> Enhydra team would want to be completely Tomcat-compatible (which I
> think includes Struts compatibility). Still, it was easier to "fix"
> the ActionServlet than to fingure out why we are having this problem
> with Enhydra.  I know, I know... I should have extended ActionServlet
> to override instead of butchering my clean Struts - but the question
> remains regarding why this seeming incompatibility exists. Could
> somebody give me a clue?- Lee

As you can see from the source code in ActionServlet, Struts attempts to
register its local copy of the DTD in the initDigester() method.  It
uses Class.getResource() to actually acquire a URL for reading the
contents of the DTD, which is stored as a resource in the "struts.jar"
file.  If the web application class loader in Enhydra has problems
implementing this method correctly, you could encounter the symptom that
you report (trying to go across the network to grab the DTD).

Craig McClanahan





Re: Localisation

2001-02-12 Thread Craig R. McClanahan

Sebastien Cesbron wrote:

> I have a simple question about localisation :
>
> If there is multiple users using the same localisation parameters : do
> they share a common ResourceBundle instance or do they have their own
> one.
> It seems to me that each user has his own ResourceBundle instance but
> does that affect the performance of the application.
>

The application's message resource bundles are shared across all of the users of a
particular Struts-based web application.  The only thing that is unique to a
particular user is the java.util.Locale object (stored in the user's session) that
represents his or her current Locale preferences.

>
> Thanks in advance
>
> Sebastien Cesbron
>

Craig





Re: Struts user base

2001-02-12 Thread Craig R. McClanahan

Mike Dewhirst wrote:

> I am working on the same project as Mark Mclaren, and have some additional questions 
>regarding Struts:
>
> 1. Does anyone have an idea of how many people are developing/using Struts?
>

It is pretty hard to know for sure on an open source project, but the subscriber count 
on STRUTS-USER, as of this morning, is 979.  It's been growing rapidly, especially 
over the last couple of months.

>
> I have checked the bug list and indeed it is very small, but I want to know that 
>that is due to product stability, not because of the lack of users. Don't mean to be 
>rude, just cautious.
>

I would do exactly the same thing in your shoes.

I'm biased (being the primary author), but from what I have seen so far the bug list 
is small primarily because of stability.  One of the huge benefits of open source 
development is "distributed debugging" (lots of eyes looking at the code and trying 
things out).  In the eight months since Struts was started, there
have been *lots* of bug reports (and associated fixes) resulting from this.

>
> 2. Are there any European users?

A perusal of the mailing list archives indicates that interest in Europe is quite high 
-- I imagine a lot of this is because of the fact that Struts promotes i18n as a first 
class notion, instead of something you bolt on later.

>
> 3. Does anyone run Struts on commercial servers, e.g. BEA's Weblogic?

Yes, there are Struts users on Weblogic and many other server platforms -- the 
installation docs in the Struts nightly builds have been recently enhanced to include 
notes about the experience of using Struts in such environments.

One thing that has been quite interesting (to me) is that Struts is often used as a 
"servlet/JSP compatibility" test by its users, and has triggered service pack updates 
on quite a few server platforms to improve their conformance to the servlet and JSP 
specs :-).

>
> 4. What is the envisaged frequency of update releases? (just a rough idea, e.g. 
>every 2 quarters, years, etc.)
>

We haven't tried to define a release time frame after 1.0 yet, but here's what I 
envision:
* Bug fix updates (1.0.x) will happen as often as needed to deal
  with any bugs that are found after 1.0 is released.
* The timeframe for 1.1 depends on how many developers volunteer
  to help out (the current 1.1 TODO list is in the documentation bundle).
  As significant features get completed, there will be a vote on the
  developer list to release updates with new functionality -- I would imagine
  this would happen at least every six months, or faster if more people
  are willing to participate.
* To the maximum degree feasible, applications should be able to
  depend on APIs and functionality throughout the 1.x family of
  releases.


>
> Thanks in advance for your help!
>
> Mike Dewhirst
>

Craig McClanahan





Re: Sessions lost when server restart or class reload

2001-02-12 Thread Craig R. McClanahan

[EMAIL PROTECTED] wrote:

>  When a class is reloaded because you have change it the objects saved
> on
>  sessions are lost and all the users connected to that application
> suffer
>  that.
>
> Do all classes get reloaded or only those that have changed?
>

The details vary by container, but generally the entire webapp is running
under a single classloader, so that all of the classes get dumped and
reloaded.

>
> If all objects in sessions are stable types (e.g. Strings or name/value
> Collections) do we dodge the
> problem?
>

It's not whether they are stable or not that matters, it is whether they
implement Serializable or not.  On some containers, such as Tomcat 4.0,
sessions and their Serializable attributes *are* saved across webapp restarts.

>
> ---
> David J.N. Artus
> Consulting IT Specialist, IBM Transarc Lab
> phone:  +44 (0) 777 55 22 753 (mobile)
> email: [EMAIL PROTECTED]

Craig





Re: Sessions lost when server restart or class reload

2001-02-12 Thread Craig R. McClanahan

Carlos Romero Mas wrote:

> When a class is reloaded because you have change it the objects saved on
> sessions are lost and all the users connected to that application suffer
> that.
>

This is not universally true.  For example, Tomcat 4.0 has the ability to
save and restore your sessions across a server restart or automatic reload
-- as long as your session attributes are Serializable, they will also be
restored.

Many other servlet containers offer similar capabilities -- check your
container's documentation for the details.

>
> Then, one of the more interesting aspects of web applications are lost:
> change the application on fly transparently for most users of that
> application. Have ever find a solution? I am thinking rebuild on PHP...
>
> Thanks in advance for your attention.

Craig





Re: Struts user base

2001-02-12 Thread Oleg V Alexeev

Hello Mike,

I work with struts about 6 month - great product!

Result - http://www.penza.ru/povolgie - center to publish news from
goverment regional press services in Russia, middle Volga.
Now I work under number of another projects and all of them build on
struts.

Monday, February 12, 2001, 8:02:37 PM, you wrote:


MD> I am working on the same project as Mark Mclaren, and have some additional 
questions regarding Struts:

MD> 1. Does anyone have an idea of how many people are developing/using Struts?

MD> I have checked the bug list and indeed it is very small, but I want to know that 
that is due to product stability, not because of the lack of users. Don't mean to be 
rude, just cautious.

MD> 2. Are there any European users?
MD> 3. Does anyone run Struts on commercial servers, e.g. BEA's Weblogic?
MD> 4. What is the envisaged frequency of update releases? (just a rough idea, e.g. 
every 2 quarters, years, etc.)

MD> Thanks in advance for your help!

MD> Mike Dewhirst


MD> --

MD> This e-mail may contain confidential and/or privileged information. If you are not 
the intended recipient (or have received this e-mail in error) please notify the 
sender immediately and destroy
MD> this e-mail. Any unauthorised copying, disclosure or distribution of the material 
in this e-mail is strictly forbidden.



-- 
Best regards,
 Olegmailto:[EMAIL PROTECTED]





DTD validation of struts-config.xml

2001-02-12 Thread Lee Hall
We've been using the Tomcat 3.2 that is integrated with NetBeans to do our Struts development.  Our test deployment server (AIX 4.3 with the IBM 1.2.2 JVM) is running a vanilla Tomcat3.2.1.  Neither of these environments has any problem with the subject of this message.
 
Our pre-production server (AIX 4.3 with the IBM 1.2.2 JVM) is running Enhydra 3.1 and fails initialization due to the validation done by ActionServlet.  We've tried forcing Xerces 1.2 in Enhydra, but Enhydra persists in it's attempt to validate using the network URL instead of the local resource.
 
I hacked ActionServlet.initDigester() to turn off validation and that got us by - but I know it's the wrong way to deal with this.  In spite of the Barracuda project, I would hope that the Enhydra team would want to be completely Tomcat-compatible (which I think includes Struts compatibility).  Still, it was easier to "fix" the ActionServlet than to fingure out why we are having this problem with Enhydra.  I know, I know... I should have extended ActionServlet to override instead of butchering my clean Struts - but the question remains regarding why this seeming incompatibility exists.
 
Could somebody give me a clue?
 
   - Lee
 Get your FREE download of MSN Explorer at http://explorer.msn.com


Re: paging for web application

2001-02-12 Thread Steve A Drake

On Wed, 31 Jan 2001, Peter Alfors wrote:

> check out the pager taglib:  http://jsptags.com/tags/navigation/pager/

 Very handy! For anyone else looking at this for paging long-winded
result sets, and using Tomcat 4.0-b1, I needed to edit the demo
"pager-demo.jsp" and change:



to:




This fixes a hack put in to convert "20" to an int as delineated in the
pager troubleshooting section.




Re: rte as subscript

2001-02-12 Thread Craig R. McClanahan

John Hunt wrote:

> can we access memebers of an array like
>  in a for loop... It
> works if I use constants but not expressions..
> property="array[0]" is fine but not array[i] or
> array[<%=i>] for the property attribute of
> form:select. Any clues???
>
>

The property accessor syntax in Struts 1.0 supports only constants as
array subscripts.

You might consider using some sort of runtime expression instead, to
dynamically calculate the property to be retrieved.  Assume that "i" is
an integer variable, and you are inside a loop:



Craig





Re: forms, formbeans and JavaScript

2001-02-12 Thread Craig R. McClanahan

Mike Dewhirst wrote:

> As a lot of forms may have JavaScript in them to dynamically rebuild menus, etc. Is 
>it possible to combine this with the Struts tag-styled form design?
>

The challenge with doing this is that the JSP tags run on the server (as the page is 
being generated), while the JavaScript runs on the client side.  To integrate the two, 
you need your tags (and other JSP code) to dynamically generate the JavaScript 
functions themselves -- sort of having a program write a program --
so that the JavaScript is customized to your particular need on this particular page.

A very trivial example is the way that the  tag deals with the "focus" 
attribute.  If you specify it, a dynamically generated bit of JavaScript is created to 
set the input focus, which includes the name of the field you want initial focus 
assigned to.

For a more comprehensive scenario, consider that for most menuing systems you will 
need to configure the list of available options into a JavaScript array or something.  
You could use the  tag to render the elements that get set in the 
array's initialization expression.

>
> Thanks in advance for your help,
>
> Mike
>

Craig





Re: Struts user base

2001-02-12 Thread Ted Husted

You probably want to spend some time in the mail archives. 

The Struts-User archive at < http://mail-archive.com > is my personal
favorite. 

It was recently mentioned that there are over 900 subscribers to the
mailing lists. 

Jakarta projects offer nightly builds with the latest fixes. 

How often formal releases happen depend on how many people contribute. 

Your team, for example, could offer patches and improvements to the
code, and eventually become Committers. You could then help decide when
and how many of these things happen. 

Struts is standards-based, and works with most containers. WebLogic 5.1
with sp8 is fine, and WegLogic 6 is suppose to a no-brainer. 

Mike Dewhirst wrote:
> 
> I am working on the same project as Mark Mclaren, and have some additional questions 
>regarding Struts:
> 
> 1. Does anyone have an idea of how many people are developing/using Struts?
> 
> I have checked the bug list and indeed it is very small, but I want to know that 
>that is due to product stability, not because of the lack of users. Don't mean to be 
>rude, just cautious.
> 
> 2. Are there any European users?
> 3. Does anyone run Struts on commercial servers, e.g. BEA's Weblogic?
> 4. What is the envisaged frequency of update releases? (just a rough idea, e.g. 
>every 2 quarters, years, etc.)
> 
> Thanks in advance for your help!
> 
> Mike Dewhirst
> 
> --
> 
> This e-mail may contain confidential and/or privileged information. If you are not 
>the intended recipient (or have received this e-mail in error) please notify the 
>sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or 
>distribution of the material in this e-mail is strictly forbidden.



Localisation

2001-02-12 Thread Sebastien Cesbron

I have a simple question about localisation :

If there is multiple users using the same localisation parameters : do
they share a common ResourceBundle instance or do they have their own
one.
It seems to me that each user has his own ResourceBundle instance but
does that affect the performance of the application.

Thanks in advance

Sebastien Cesbron
 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif





Re: Struts user base

2001-02-12 Thread Burr Sutter

Christoph,

Are you both a SilverStream and Struts user?
Do you have a documented list of steps to implement Struts on a SilverStream
3.7 server?
I was going to put together a document like this but I've not had the time.
I'm aware of the SilverBooks37 example but I've not seen any documentation
on how to enable Struts in your own WAR.  I just taught the J2EE course on
3.7 and wanted to demo the steps involved but didn't figure it out quickly
enough.

Any help is appreciated!
How are things for SilverStream in Europe?

Burr
[EMAIL PROTECTED]


- Original Message -
From: Rooms, Christoph <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 12, 2001 12:03 PM
Subject: RE: Struts user base


> Hi,
>
> for the commercial servers part :
>
> Struts runs on SilverStream without any problems. I think the other ones
> also aren't any problems.
>
> kind regards, Christoph
>
> -Original Message-
> From: Mike Dewhirst [mailto:[EMAIL PROTECTED]]
> Sent: maandag 12 februari 2001 18:03
> To: [EMAIL PROTECTED]
> Subject: Struts user base
>
>
>
> I am working on the same project as Mark Mclaren, and have some additional
> questions regarding Struts:
>
> 1. Does anyone have an idea of how many people are developing/using
Struts?
>
> I have checked the bug list and indeed it is very small, but I want to
know
> that that is due to product stability, not because of the lack of users.
> Don't mean to be rude, just cautious.
>
> 2. Are there any European users?
> 3. Does anyone run Struts on commercial servers, e.g. BEA's Weblogic?
> 4. What is the envisaged frequency of update releases? (just a rough idea,
> e.g. every 2 quarters, years, etc.)
>
> Thanks in advance for your help!
>
> Mike Dewhirst
>
>
> --
>
> This e-mail may contain confidential and/or privileged information. If you
> are not the intended recipient (or have received this e-mail in error)
> please notify the sender immediately and destroy this e-mail. Any
> unauthorised copying, disclosure or distribution of the material in this
> e-mail is strictly forbidden.




RE: Struts user base

2001-02-12 Thread Rooms, Christoph

Hi,

for the commercial servers part : 

Struts runs on SilverStream without any problems. I think the other ones
also aren't any problems.

kind regards, Christoph

-Original Message-
From: Mike Dewhirst [mailto:[EMAIL PROTECTED]]
Sent: maandag 12 februari 2001 18:03
To: [EMAIL PROTECTED]
Subject: Struts user base



I am working on the same project as Mark Mclaren, and have some additional
questions regarding Struts:

1. Does anyone have an idea of how many people are developing/using Struts?

I have checked the bug list and indeed it is very small, but I want to know
that that is due to product stability, not because of the lack of users.
Don't mean to be rude, just cautious.

2. Are there any European users?
3. Does anyone run Struts on commercial servers, e.g. BEA's Weblogic?
4. What is the envisaged frequency of update releases? (just a rough idea,
e.g. every 2 quarters, years, etc.)

Thanks in advance for your help!

Mike Dewhirst


--

This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorised copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.



Struts user base

2001-02-12 Thread Mike Dewhirst


I am working on the same project as Mark Mclaren, and have some additional questions 
regarding Struts:

1. Does anyone have an idea of how many people are developing/using Struts?

I have checked the bug list and indeed it is very small, but I want to know that that 
is due to product stability, not because of the lack of users. Don't mean to be rude, 
just cautious.

2. Are there any European users?
3. Does anyone run Struts on commercial servers, e.g. BEA's Weblogic?
4. What is the envisaged frequency of update releases? (just a rough idea, e.g. every 
2 quarters, years, etc.)

Thanks in advance for your help!

Mike Dewhirst


--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorised copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.




Re: How stable is struts?

2001-02-12 Thread Ted Husted

Ted Husted wrote:
> Seriously, we need to clean up the remaining items on the 1.0 TODO list,
> and any showstoppers in bugzilla. Then we freeze the build for beta
> testing, vote, and release.

I really should have said "final release testing". 

In practice, the current releases are being actively beta-tested by
hundreds of developers every day. 

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 425-0252; Fax 716 223-2506.
-- http://www.husted.com/about/struts/



Re: PROPOSAL: Struts Dreamweaver Integration

2001-02-12 Thread Ted Husted

Are you looking for any volunteers?

My best client decided to switch to DreamWeaver on Friday, so I will
now be living in Ultra Dev.

*** REPLY SEPARATOR  ***

On 2/2/2001 at 4:07 PM Kok, Arjan wrote:

>Hello,
>
>We (Compuware Amsterdam Lab) will start a project to integrate the
Struts
>taglibs in MacroMedia Dreamweaver. It will become possible to edit JSP
files
>with Struts tags using Dreamweaver, with all the advantages of a Web
>Authoring tool.
>
>We are planning to publish the Struts Dreamweaver extension to the
>Macromedia Dreamweaver site, hopefully  somewhere in June this year.
>
>We will use the Struts .tld files as input for the extension module,
so the
>extension module knows what tags and tag attributes to expect.
>
>Any help, ideas, and comments are welcome. 
>
>Regards, Marjon Luites and Arjan Kok.



-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 425-0252; Fax 716 223-2506.
-- http://www.husted.com/about/struts/





Re: How stable is struts?

2001-02-12 Thread Ted Husted



Mark McLaren wrote:
> 1.  How buggy is the code?  

The code is very stable. You can check bugzilla for outstanding issues. 

< http://jakarta.apache.org/site/bugs.html >
 
> 2.  When will version 1.0 be released?  I'm not looking for a binding
> commitment, just an estimate (e.g. Next month? Next quarter? Next year?)

I believe Craig has said that if it doesn't come out this quarter, he
will probably be lynched ;-)

Seriously, we need to clean up the remaining items on the 1.0 TODO list,
and any showstoppers in bugzilla. Then we freeze the build for beta
testing, vote, and release.

> 3.  Are there any large commercial sites that currently use struts?

I'm aware that there are several very large projects in the work. Struts
was "born" less than a year ago, and so there hasn't been time to
develop anything truly huge. Check here for a "Powered by Struts" list 

< http://husted.com/about/struts/kickstart.html >

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 425-0252; Fax 716 223-2506.
-- http://www.husted.com/about/struts/



How stable is struts?

2001-02-12 Thread Mark McLaren

Hi,

I like a lot of the functionality of Struts and am considering using struts
as a framwork for a very large commercial e-commerce site.  However, I have
reservations about using alpha code.  My questions are:

1.  How buggy is the code?  Have many developers found that they spent much
of their time trawling through the struts source code to fix a bug rather
than developing application-specific code?

2.  When will version 1.0 be released?  I'm not looking for a binding
commitment, just an estimate (e.g. Next month? Next quarter? Next year?)

3.  Are there any large commercial sites that currently use struts?

Many thanks

Mark


__
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup



Re: forms, formbeans and JavaScript

2001-02-12 Thread Ted Husted

Yes.

Mike Dewhirst wrote:
> 
> As a lot of forms may have JavaScript in them to dynamically rebuild menus, etc. Is 
>it possible to combine this with the Struts tag-styled form design?
> 
> Thanks in advance for your help,
> 
> Mike
> 
> --
> 
> This e-mail may contain confidential and/or privileged information. If you are not 
>the intended recipient (or have received this e-mail in error) please notify the 
>sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or 
>distribution of the material in this e-mail is strictly forbidden.

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 425-0252; Fax 716 223-2506.
-- http://www.husted.com/about/struts/



Re: Sessions lost when server restart or class reload

2001-02-12 Thread ARTUSD





 When a class is reloaded because you have change it the objects saved
on
 sessions are lost and all the users connected to that application
suffer
 that.

Do all classes get reloaded or only those that have changed?

If all objects in sessions are stable types (e.g. Strings or name/value
Collections) do we dodge the
problem?


---
David J.N. Artus
Consulting IT Specialist, IBM Transarc Lab
phone:  +44 (0) 777 55 22 753 (mobile)
email: [EMAIL PROTECTED]





forms, formbeans and JavaScript

2001-02-12 Thread Mike Dewhirst


As a lot of forms may have JavaScript in them to dynamically rebuild menus, etc. Is it 
possible to combine this with the Struts tag-styled form design?

Thanks in advance for your help,

Mike


--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorised copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.




Sessions lost when server restart or class reload

2001-02-12 Thread Carlos Romero Mas

When a class is reloaded because you have change it the objects saved on
sessions are lost and all the users connected to that application suffer
that.

Then, one of the more interesting aspects of web applications are lost:
change the application on fly transparently for most users of that
application. Have ever find a solution? I am thinking rebuild on PHP...

Thanks in advance for your attention.




Re: java.lang.AbstractMethodError while closing MySQL connection

2001-02-12 Thread Matthias Bauer

Hi Sudhi,

maybe it is a good idea to use the mysql driver mm.mysql-2.0.4. I had similar
problems, what caused me to do the upgrade from 1.2 and I do not encounter any
more problems since then.

Have fun,

 --- Matthias



Matthias Bauer +++ [EMAIL PROTECTED] +++ LivingLogic AG +++ www.livinglogic.de


Sudheendra Hebbagilu wrote:
> 
> Hi,
> I am using mysql as my database. In the beginning I had a older version of
> struts. It was throwing this error when establishing a connection in
> java.lang.AbstractMethodError: org/gjt/mm/mysql/Connection.getTypeMap
> 
> Then I got the latest nightly build. In GenericConnection class this was
> fixed. But now I have the same problem while closing the connection.
> Can somebody add another catch statement at line 250 of
> org.apache.struts.util.GenericConnection ?
> 
> Same as the one on line 123
> 
>  catch (AbstractMethodError e) {
> ;   // mm.mysql throws this
>  }
> 
> Thanks in advance
> Sudhi



Re: Database driven controller for struts

2001-02-12 Thread Nathan Eric Probst

I, too am interested in this idea.  I was wondering about using Osage's
ability to stream data out of a RDB and into an XML file as an easy way
to accomplish this task.  Has anyone experimented in this area?

Nathan

Don Elliott wrote:

> Hi Struts Users, I'm currently building an ASP service that requires
> us to configure our workflow differently for different companies - we
> also are looking at quite a large number of workflows. The XML action
> configuration file and ability to define and set multiple different
> forward actions based upon an action result is a great fit for this,
> however I need an administrator to be able to easily edit and manage
> this - has anyone written an ActionMapping that reads from a
> relational database instead of an XML file ?  This would make it very
> easy to edit... Regards,Don




Emacs and JSP

2001-02-12 Thread Matthew Harrison

 > - Original Message -
 > From: "Mike Campbell" <[EMAIL PROTECTED]>
 > To: <[EMAIL PROTECTED]>
 > Sent: Friday, February 09, 2001 2:02 PM
 > Subject: Re: Ted's FAQ "What Web sites are already Powered by Struts?"
 > 
 > > Not to start any sort of editor Jihad, but emacs does all the above
 > > mentioned stuff (plus tons more) and it's free.  (Works on NT, too.)
 > >
 > 
 > I've tried on three different occasions to learn emacs, but it works so
 > darned different from everything else on MS Windows that it just never
 > clicked.

Well, I'm happy enough with Emacs in general, but I've not yet managed to get a
nice JSP editing mode going. I've tried without success to get the multi-mode
thing going, are there any other suggestions (I develop on Linux - the Java
based editors are still a bit slow for me on Linux)?

cheers,

Matthew Harrison.