RE: WL5.1(sp8) Web Application 2.2 dtd

2001-09-11 Thread Bacco, F. ing. DTO/SLOD/SSI/RSD

Dinesh,

We encountered probably a similar problem with iPlanet webserver 6.0 (behind
a firewall) our solution was as follows:

The original:

RE: How to not use FormBean

2001-09-11 Thread Trieu, Danny

here is an example of the action defined inside the strut-config




  


And no you dont' have to use FormBean for your taglib.  Any standard
bean will work just fine.

-Original Message-
From: Bryan Ross [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 11, 2001 11:26 PM
To: struts-user
Subject: How to not use FormBean


Hi,

I'm new to struts and have a couple questions about FormBeans.  

The application we're developing will have quite a few forms and I
wanted to avoid creating a separate form bean for each JSP form.  I
thought I read that I don't have to use FormBeans, but when I try, I get
an exception "Cannot retrieve definition for form bean".

What is the proper way of not using FormBeans?  In my struts-config, I
left out the name attribute.  Is this correct?

Do I have to use FormBeans if I'm using the HTML taglib?

Thanks
Bryan




How to not use FormBean

2001-09-11 Thread Bryan Ross

Hi,

I'm new to struts and have a couple questions about FormBeans.  

The application we're developing will have quite a few forms and I
wanted to avoid creating a separate form bean for each JSP form.  I
thought I read that I don't have to use FormBeans, but when I try, I get
an exception "Cannot retrieve definition for form bean".

What is the proper way of not using FormBeans?  In my struts-config, I
left out the name attribute.  Is this correct?

Do I have to use FormBeans if I'm using the HTML taglib?

Thanks
Bryan



RE: Does not work proper?

2001-09-11 Thread Alexander Jesse

Hi,

another solution would be to fall-back to the "standard"-resource when
a key in a NLS-resource is not found.

regards
Alexander

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 11, 2001 3:29 PM
To: [EMAIL PROTECTED]
Subject: RE: Does  not work proper?


Marcel,
Thanks for the thank-you, I know I didn't really help.

1 - Do you think struts should return the search key for the error if
it is not found in ApplicationResources.properties?

2 - Maybe some-one has a utility to check a set of
ApplicationResources.properties & tell you what keys aren't
consistent.
Keith.



--- Marcel  Andres <[EMAIL PROTECTED]> wrote:
> Hi all
> 
> I finally could solve my problem...ufff. Special thank to Andre,
> Tobias and Keith which leaded me to the solution. For thus who are
> interested what went wrong, here a short description (maybe, it can
> help someone else on an other opportunity):
> 
> In my case, the problem was not only part of the struts tag. It was
> as well an internal error, because I had to convert an error, which
> I receive from a corba service, into the according "struts" error.
> Thereby, I got some problems with upper and lower cases. Make sure
> you don't step into this trap! 
> 
> Second, because I am creating a multilanguage application, I have
> to deal with five different ApplicationResources.properties. You
> can imagine, that sometimes you mistype something!
> 
> Thank you again
> 
> Marcel


__
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com



RE: file upload problems

2001-09-11 Thread Ajay Chitre

Mike,

>From your email id I am guessing that you are based in New Jersey.  I cannot
tell you how sorry I am to hear about what happened today in New York.  I am
really hoping that this hasn't affected your family directly.  Indirectly
this has affected all of us.  Nice people like you who spare their free time
to help out other needy people (like me) and who donate their work to the
open source community should never experience anything like this.  But life
isn't always fair.  Quite a few nice people (such as Firemen & Policemen)
lost their lives today.  I can only hope that the people who caused this
will be punished - SEVERELY!

I live in California.  Other than offering my best wishes, there's nothing
else I can do at this time.  I feel fairly useless.

Even though I don't know you personally, you and your family will be in my
prayers tonight.

Take care of yourself & your family.

- Ajay

-Original Message-
From: Ajay Chitre [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 10, 2001 11:56 PM
To: [EMAIL PROTECTED]
Subject: RE: file upload problems


Mike,

I tried setting the maxFileSize as follows;


  maxFileSize
  100K


This throws a MaxLengthExceededException as expected.  I would like to catch
this exception and show a user friendly message on the screen.  How can I do
that?  Please help


Here's what I am doing;

1)  I unzipped the struts-upload.war file that came with Struts 1.0.  (I
believe you wrote this sample app - thanks!)
2)  In the web.xml I made the changes shown above.
3)  I ran this app in Weblogic 5.1 (sp 9) and Tomcat 3.2.3.  In both cases,
when I submit a file larger than 100K I get
a MaxLengthExceededException and I get Error 500 - Internal Server Error on
the screen.


Here's my understanding of the problem - Please ignore this if it doesn't
make sense...

This exception is thrown in the BufferedMultipartInputStream constructor.
Shouldn't this exception be passed all the way up to the
ActionServlet.processPopulate()?  This method has access to the
'formInstance' which can be used to notify the user.  Does this make sense?

Anyway, any help in this matter will be greatly appreciated.  Thanks.

- Ajay



-Original Message-
From: SCHACHTER,MICHAEL (HP-NewJersey,ex2) [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 10, 2001 10:18 AM
To: '[EMAIL PROTECTED]'
Subject: RE: file upload problems


Ricky,

The maximum upload size is represented as an init-param for ActionServlet:

To set it as an init-param in web.xml:


action
org.apache.struts.action.ActionServlet

  maxFileSize
  100K

2


The value of "maxFileSize" can be represented as in bytes by not appending
any
characters to the end, kilobytes by appending a "K" at the end, megabytes by
appending an "M" at the end, and gigabytes by appending a "G" at the end.

Example:

100 bytes:

action
org.apache.struts.action.ActionServlet

  maxFileSize
  100

2


100 kilobytes:


action
org.apache.struts.action.ActionServlet

  maxFileSize
  100K

2


100 Megabytes:


action
org.apache.struts.action.ActionServlet

  maxFileSize
  100M

2


100 Gigabytes

action
org.apache.struts.action.ActionServlet

  maxFileSize
  100G

2




-Original Message-
From: Ricky Frank [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 10, 2001 12:29 PM
To: [EMAIL PROTECTED]
Subject: RE: file upload problems


Can you also provide an example of the tag for limiting the size of the
file uploaded?  Or is this not supported?  I've dug through some of the
underlying code and it looks like it is but I don't see anything in the tag
definition on how to invoke this limitation.  Thanks.  Ricky Frank

At 12:10 PM 9/10/2001 -0400, you wrote:
>Rightfully Disgruntled File Upload Users,
>
>I'll set aside some time next week to address
>all the file upload issues, I apologize for the
>long delay.
>
>In the interim, please use bug reports
>(http://nagoya.apache.org/bugzilla/)
>to report all file upload issues that you
>come across.  Check to see if it's reported,
>if not, go ahead and do so.  This notifies
>me directly.
>
>
>-Original Message-
>From: Tom Tibbetts [mailto:[EMAIL PROTECTED]]
>Sent: Monday, September 10, 2001 9:59 AM
>To: [EMAIL PROTECTED]
>Subject: file upload mangling files
>
>
>Hi.  What's the status on fixing the file upload problem of files getting
>mangled?  I use Struts ver 1.0.  Is there a fix available??? Thanks, This
>is very important to us.  Tom Tibbetts


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




Re: javascript in

2001-09-11 Thread Jishan Li



It should work. What is your detail?
 
test.jsp

<%@ taglib 
uri="/WEB-INF/struts-html.tld" prefix="html" 
%>
function removeRole(form){
 alert("It works!");
 form.submit();
}
   config in struts-config.xml ==     type="my.package.TestForm"/>       type="my.package.ShowTestAction"    name="testForm"    scope="request">         - Original Message - From: Fang, Frank To: '[EMAIL PROTECTED]' Sent: Tuesday, September 11, 2001 10:37 PM Subject: RE: javascript in it works in html tag, but when I convert select tag and button tag to struts tag, I haven't touch javascrip, it doesn't work. any further suggestion? Thanks Frank -Original Message-From: Jishan Li [mailto:[EMAIL PROTECTED]]Sent: Tuesday, September 11, 2001 2:22 AMTo: [EMAIL PROTECTED]Subject: Re: javascript in It really works for me. - Original Message - From: Fang, Frank To: '[EMAIL PROTECTED]' Sent: Tuesday, September 11, 2001 12:46 AM Subject: javascript in I am using struts 1.0, I am trying to use javascript to pick user privilege from a available privilege list to selected list like following :     but it doesn't work, I remember on struts home page it mention that struts 1.0 doesn't support javascript things even has onclick attribute,  who might know something about it , how to get around it? Thanks Frank -Original Message- From: Julia Yang [mailto:[EMAIL PROTECTED]] Sent: Monday, September 10, 2001 10:26 AM To: [EMAIL PROTECTED] Subject: Does struts validate input field in JSP type by itself ? Hi, all Do you know if struts validate input fields in JSP by itself, which has matched getter and setter methods in bean,? For example: You have field called companyID in JSP and in you xxxForm bean you have     int companyID();     public int getCompanyID(){    return this.companmyID;}     public void setCompanyID(int newCompanyID) {         this.companyID = companyID} My question is: if I put a String in JSP companyID field, can I let struts tell me error message that companyID has to be integer ? How ? Thanks Julia    

How to use ApplicationResources.properties file to set default values in JSP?

2001-09-11 Thread Yi-Xiong Zhou

I want to set the default row and col values in  from
ApplicationResources.properties. Does anyone know how to do that? 

The following way does not work apparently. 


Thanks. 

Yi-Xiong Zhou



struts-user@jakarta.apache.org

2001-09-11 Thread Matt Raible

I have the following statement that seems to work fine for the
"TimeTrackerAdministrator" role, but not for the Employee role - any ideas?





__
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com



problem with bean:parameter tag

2001-09-11 Thread Andre Beskrowni

i'm still looking for a response to the problem described below:

===

whenever i include a value for the multiple attribute of the bean:parameter 
tag, i get a jsp  compilation error.  if remove the multiple attribute, 
everything works fine (except that i don't get my array of parameter 
values).

the error i'm getting is the same one that someone else mentioned way back 
in january:
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg01926.html

unfortunately, there were no responses posted to the list.

ab



_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




Ultradev CTLX question

2001-09-11 Thread Frederick N. Brier

If you are in Dreamweaver Ultradev LiveData mode and make a change, then 
Ultradev tries to upload the JSP and directly invoke it on the server.  But 
an ActionForm does not exist, so you will end up with null reference 
exceptions trying to look up the Bean in the request attributes.  What you 
really want to do is have Ultradev invoke your Action class which then gets 
the data and creates your ActionForm.  Am I missing something here?  Is 
there a way to tell Ultradev about (and to use) the Action's forward name 
in the struts-config.xml file?  Thank you.


Frederick N. Brier
Sr. Software Engineer
Multideck Corporation




javax.servlet.ServletException: BeanUtils.populate

2001-09-11 Thread Govindaraj, Suresh

Hi,

I am getting the following error. I know that there is something wrong with
my bean, Is there a better way to debug this?
 Is there a way to narrow down to the exact line(or attribute) that's
causing this problem. 

2001-09-11 11:11:09 - path="/topaz" :action:  Populating bean properties
from this request 2001-09-11 11:11:09 - Ctx( /topaz ): Exception in: R(
/topaz + /claimReview/patientVisitInfo.do + null) -
javax.servlet.ServletException: BeanUtils.populate

at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:774)  at
org.apache.struts.action.ActionServlet.processPopulate(ActionServlet.java:20
61) at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1563)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286) at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)  at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)  at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)  at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)  at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)

Thanks,

Suresh
Topaz Development Team, QuadraMed 
Phone - (W) x6107,  Direct 510-337-6107
(H) 510-440-9088
e-mail : [EMAIL PROTECTED] 




Re: New York / Washington

2001-09-11 Thread Gregor Rayman

"Uwe Pleyer" <[EMAIL PROTECTED]>

> Dear friends,
>
> I know that this mail will be a misuse of this list, but I want to express
> my sympathy to all victims and there familys and friends of this disaster.
>
> I've seen this horrible pictures and many people in Germany are with you
in
> thought and sorrow.
>
>
>
>Uwe Pleyer

It's a terrible tragedy. If there are subscribers from Bratislava/Slovakia
here,
go tonight at 21:00 to the American embassy to express your sympathy and
solidarity.

All decent people stand now with USA. It was an attck against the whole
civilized
world. :-(

--
gR




New York / Washington

2001-09-11 Thread Uwe Pleyer

Dear friends,

I know that this mail will be a misuse of this list, but I want to express
my sympathy to all victims and there familys and friends of this disaster.

I've seen this horrible pictures and many people in Germany are with you in
thought and sorrow.



   Uwe Pleyer

UP-Software Consulting
Venloer Str. 94 - 50259 Pulheim
Telefon   +49  (2238)  96 79 44
Mobil   +49  (172)  264 37 83
eMail   [EMAIL PROTECTED]





Re: Error upgrading to latest struts build

2001-09-11 Thread Cedric Dumoulin


  Have you change the config parameter in web.xml ? It should look like :
   ...

  config
  /WEB-INF/struts-config.xml

   ...

  Also, I've you try the original Struts1.1 example ? Doe's it work with your
configuration ?

Cedric


Larry Maturo wrote:

> Well, this is my third attempt to get this answered.
> Does this mean nobody knows how to solve this problem
> and I should give up on using Struts and try some other
> framework?  If so, does anyone have any suggestions for
> a better framework?
>
> Again, I'm trying to upgrade from struts 1.0 to the latest
> nightly build.  I'm using Forte, and I get the following
> error in my output:
>
> 2001-09-07 11:32:23 - Ctx(  ): Error in actioninit(), error happened at
> 999880230498 wait -113171 : Missing configuration resource for path
> /WEB-INF/struts-config.xml - javax.servlet.UnavailableException: Missing
> configuration resource for path /WEB-INF/struts-config.xml
> at
> org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1262)
> at
> org.apache.struts.action.ActionServlet.init(ActionServlet.java:460)
> at javax.servlet.GenericServlet.init(GenericServlet.java:258)
> at
> org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
> at org.apache.tomcat.core.Handler.init(Handler.java:215)
> at
> org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
> at
> org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartup
> Interceptor.java:130)
> at
> org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:443)
> at
> org.apache.tomcat.core.ContextManager.init(ContextManager.java:403)
> at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:197)
> at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:237)
> at
> org.netbeans.modules.web.core.execution.WebAppMain.main(WebAppMain.java:37)
>
> My web page displays the message:
> Error: 503
> Location:/EvaluationsHome.do
> Missing configuration resource for path /WEB-INF/struts-config.xml
>
> My actual actions were as follows:
>
> I unziped the build.
> I deleted struts-session.tld from my WEB-INF folder.
> I copied struts-bean.tld, struts-html.tld,
>struts-logic.tld, and struts-template.tld from the
>build to my WEB-INF folder.
> I copied struts.jar to my lib directory.
> I edited by web.xml file to replace struts-session.tld with
>   struts-template.tld.
> I did a clean all.
> I did a build all.
>
> Any help would be appreciated.
>
> -- Larry Maturo




Re: Error upgrading to latest struts build

2001-09-11 Thread Ted Husted

Struts 1.0 is stable, and that is the version of the framework I would
recommend that you use for development. 

Late in the development of Struts 1.0, the nightly builds became very
stable. This is not going to be the case now, as we move into heavy
development of Struts 1.1. The nightly builds are not guaranteed to be
stable, and may not even build from day to day. At this point, the
nightly builds should really be considered alphas.

If you would like to look into another framework, I maintain a list here 

http://husted.com/about/struts/links.htm#mvc

But I would suggest that you compare release version to release version. 

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/about/struts/


Larry Maturo wrote:
> 
> Well, this is my third attempt to get this answered.
> Does this mean nobody knows how to solve this problem
> and I should give up on using Struts and try some other
> framework?  If so, does anyone have any suggestions for
> a better framework?
> 
> Again, I'm trying to upgrade from struts 1.0 to the latest
> nightly build.  I'm using Forte, and I get the following
> error in my output:
> 
> 2001-09-07 11:32:23 - Ctx(  ): Error in actioninit(), error happened at
> 999880230498 wait -113171 : Missing configuration resource for path
> /WEB-INF/struts-config.xml - javax.servlet.UnavailableException: Missing
> configuration resource for path /WEB-INF/struts-config.xml
> at
> org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1262)
> at
> org.apache.struts.action.ActionServlet.init(ActionServlet.java:460)
> at javax.servlet.GenericServlet.init(GenericServlet.java:258)
> at
> org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
> at org.apache.tomcat.core.Handler.init(Handler.java:215)
> at
> org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
> at
> org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartup
> Interceptor.java:130)
> at
> org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:443)
> at
> org.apache.tomcat.core.ContextManager.init(ContextManager.java:403)
> at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:197)
> at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:237)
> at
> org.netbeans.modules.web.core.execution.WebAppMain.main(WebAppMain.java:37)
> 
> My web page displays the message:
> Error: 503
> Location:/EvaluationsHome.do
> Missing configuration resource for path /WEB-INF/struts-config.xml
> 
> My actual actions were as follows:
> 
> I unziped the build.
> I deleted struts-session.tld from my WEB-INF folder.
> I copied struts-bean.tld, struts-html.tld,
>struts-logic.tld, and struts-template.tld from the
>build to my WEB-INF folder.
> I copied struts.jar to my lib directory.
> I edited by web.xml file to replace struts-session.tld with
>   struts-template.tld.
> I did a clean all.
> I did a build all.
> 
> Any help would be appreciated.
> 
> -- Larry Maturo



RE: Error upgrading to latest struts build

2001-09-11 Thread Greg.Reddin

Sanity check:
1)  Is there a struts-config.xml file in your WEB-INF directory?
2)  What are the results if you take the initial "/" off of
/WEB-INF/struts-config
in your web.xml? (Mine requires the initial "/" so that's probably
not it.)
3)  Is the struts-config file being used by another process?  (try to
rename it.)
4)  What if you use another enviroment like Tomcat or Orion, etc?

I have not attempted to reproduce this error, so if this doesn't work,
shoot me a personal note (mailto:[EMAIL PROTECTED]) and I'll see if
I can help.

Thanks,
Greg




RE: Error upgrading to latest struts build

2001-09-11 Thread Schwartz, Mark

What does your build.xml file look like?  I had a problem where I wasn't
copying struts-config.xml to the WEB-XML directory and had to add the
following line to my build.xml file inside the "prepare" section:
AFTER:

ADD:


Thanks,

Mark C. Schwartz
-Original Message-
From: Larry Maturo [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 11, 2001 11:19 AM
To: [EMAIL PROTECTED]
Subject: RE: Error upgrading to latest struts build


Well, this is my third attempt to get this answered.
Does this mean nobody knows how to solve this problem
and I should give up on using Struts and try some other
framework?  If so, does anyone have any suggestions for
a better framework?

Again, I'm trying to upgrade from struts 1.0 to the latest
nightly build.  I'm using Forte, and I get the following
error in my output:

2001-09-07 11:32:23 - Ctx(  ): Error in actioninit(), error happened at
999880230498 wait -113171 : Missing configuration resource for path
/WEB-INF/struts-config.xml - javax.servlet.UnavailableException: Missing
configuration resource for path /WEB-INF/struts-config.xml
at
org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1262)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:460)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
at org.apache.tomcat.core.Handler.init(Handler.java:215)
at
org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
at
org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartup
Interceptor.java:130)
at
org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:443)
at
org.apache.tomcat.core.ContextManager.init(ContextManager.java:403)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:197)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:237)
at
org.netbeans.modules.web.core.execution.WebAppMain.main(WebAppMain.java:37)

My web page displays the message:
Error: 503
Location:/EvaluationsHome.do
Missing configuration resource for path /WEB-INF/struts-config.xml

My actual actions were as follows:

I unziped the build.
I deleted struts-session.tld from my WEB-INF folder.
I copied struts-bean.tld, struts-html.tld,
   struts-logic.tld, and struts-template.tld from the
   build to my WEB-INF folder.
I copied struts.jar to my lib directory.
I edited by web.xml file to replace struts-session.tld with
  struts-template.tld.
I did a clean all.
I did a build all.

Any help would be appreciated.

-- Larry Maturo















RE: Error upgrading to latest struts build

2001-09-11 Thread Larry Maturo

Well, this is my third attempt to get this answered.
Does this mean nobody knows how to solve this problem
and I should give up on using Struts and try some other
framework?  If so, does anyone have any suggestions for
a better framework?

Again, I'm trying to upgrade from struts 1.0 to the latest
nightly build.  I'm using Forte, and I get the following
error in my output:

2001-09-07 11:32:23 - Ctx(  ): Error in actioninit(), error happened at
999880230498 wait -113171 : Missing configuration resource for path
/WEB-INF/struts-config.xml - javax.servlet.UnavailableException: Missing
configuration resource for path /WEB-INF/struts-config.xml
at
org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1262)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:460)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
at org.apache.tomcat.core.Handler.init(Handler.java:215)
at
org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
at
org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartup
Interceptor.java:130)
at
org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:443)
at
org.apache.tomcat.core.ContextManager.init(ContextManager.java:403)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:197)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:237)
at
org.netbeans.modules.web.core.execution.WebAppMain.main(WebAppMain.java:37)

My web page displays the message:
Error: 503
Location:/EvaluationsHome.do
Missing configuration resource for path /WEB-INF/struts-config.xml

My actual actions were as follows:

I unziped the build.
I deleted struts-session.tld from my WEB-INF folder.
I copied struts-bean.tld, struts-html.tld,
   struts-logic.tld, and struts-template.tld from the
   build to my WEB-INF folder.
I copied struts.jar to my lib directory.
I edited by web.xml file to replace struts-session.tld with
  struts-template.tld.
I did a clean all.
I did a build all.

Any help would be appreciated.

-- Larry Maturo














RE: javascript in

2001-09-11 Thread Fang, Frank



it 
works in html tag, but when I convert select tag and button tag to struts tag, I 
haven't touch javascrip, it doesn't work. any further 
suggestion?
Thanks
Frank

  -Original Message-From: Jishan Li 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, September 11, 2001 
  2:22 AMTo: [EMAIL PROTECTED]Subject: Re: 
  javascript in  
  It really works for me.
  
- Original Message - 
From: Fang, 
Frank 
To: '[EMAIL PROTECTED]' 

Sent: Tuesday, September 11, 2001 12:46 
AM
Subject: javascript in  


I am using struts 1.0, I am trying to use javascript to pick 
user privilege from a available privilege list to selected list like 
following :
     
 but it doesn't work, I 
remember on struts home page it mention that struts 1.0 doesn't support 
javascript things even  has onclick attribute,
 who might know something about it , how to get around 
it? Thanks Frank 
-Original Message- From: 
Julia Yang [mailto:[EMAIL PROTECTED]] 
Sent: Monday, September 10, 2001 10:26 AM To: [EMAIL PROTECTED] Subject: 
Does struts validate input field in JSP type by itself ? 
Hi, all Do you know if struts 
validate input fields in JSP by itself, which has matched getter and setter methods in bean,? For example: You have field called companyID in JSP and in you 
xxxForm bean you have 
    int 
companyID();     public int getCompanyID(){ 
 
   return this.companmyID;} 
    public void 
setCompanyID(int newCompanyID) { 
    
    this.companyID = 
companyID} My question is: if I put a String in JSP 
companyID field, can I let struts tell me error 
message that companyID has to be integer ? How ? 
Thanks 
Julia     



Re: Unsubscribe me

2001-09-11 Thread Ted Husted

http://jakarta.apache.org/site/mail2.html

[EMAIL PROTECTED] wrote:
> 
> Please unsubscribe me!
> 
> Thanks.
> 
> Iyi Çalismalar
> 
> Baris Güzelordu
> IT-Customer Services
> * +90 212 449 23 35
> * +90 532 210 19 57
> * [EMAIL PROTECTED]
> 
> ***
> 
> This e-mail and any files transmitted with it are confidential and intended
> solely for the use of the individual or entity to whom they are addressed.
> If you are not the intended recipient you are hereby notified that any
> dissemination, forwarding, copying or use of any of the information is
> prohibited.
> 
> The opinions expressed in this message belong to sender alone. There is no
> implied endorsement by TURKCELL.
> 
> This e-mail has been scanned for all known computer viruses.
> 
> ***



RE: Does not work proper?

2001-09-11 Thread Keith Bacon

Marcel,
Thanks for the thank-you, I know I didn't really help.

1 - Do you think struts should return the search key for the error if
it is not found in ApplicationResources.properties?

2 - Maybe some-one has a utility to check a set of
ApplicationResources.properties & tell you what keys aren't
consistent.
Keith.



--- Marcel  Andres <[EMAIL PROTECTED]> wrote:
> Hi all
> 
> I finally could solve my problem...ufff. Special thank to Andre,
> Tobias and Keith which leaded me to the solution. For thus who are
> interested what went wrong, here a short description (maybe, it can
> help someone else on an other opportunity):
> 
> In my case, the problem was not only part of the struts tag. It was
> as well an internal error, because I had to convert an error, which
> I receive from a corba service, into the according "struts" error.
> Thereby, I got some problems with upper and lower cases. Make sure
> you don't step into this trap! 
> 
> Second, because I am creating a multilanguage application, I have
> to deal with five different ApplicationResources.properties. You
> can imagine, that sometimes you mistype something!
> 
> Thank you again
> 
> Marcel


__
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com



need help to work with struts1.0, tomcat4, jb5 PE

2001-09-11 Thread Ricco Lee

hi all,

i am new in struts & tomcat.
how can i set up n start my development with tomcat4, struts1.0 n jbuilder5 
personal edition?
or where can i get hints?

thx in advance.

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




RE: Does not work proper?

2001-09-11 Thread Marcel Andres

Hi all

I finally could solve my problem...ufff. Special thank to Andre, Tobias and Keith 
which leaded me to the solution. For thus who are interested what went wrong, here a 
short description (maybe, it can help someone else on an other opportunity):

In my case, the problem was not only part of the struts tag. It was as well an 
internal error, because I had to convert an error, which I receive from a corba 
service, into the according "struts" error. Thereby, I got some problems with upper 
and lower cases. Make sure you don't step into this trap! 

Second, because I am creating a multilanguage application, I have to deal with five 
different ApplicationResources.properties. You can imagine, that sometimes you mistype 
something!

Thank you again

Marcel



RE: file upload problems

2001-09-11 Thread Ricky Frank

I have the exact same problem and am looking for the same answer


At 11:55 PM 9/10/2001 -0700, you wrote:
>Mike,
>
>I tried setting the maxFileSize as follows;
>
> 
>   maxFileSize
>   100K
> 
>
>This throws a MaxLengthExceededException as expected.  I would like to catch
>this exception and show a user friendly message on the screen.  How can I do
>that?  Please help
>
>
>Here's what I am doing;
>
>1)  I unzipped the struts-upload.war file that came with Struts 1.0.  (I
>believe you wrote this sample app - thanks!)
>2)  In the web.xml I made the changes shown above.
>3)  I ran this app in Weblogic 5.1 (sp 9) and Tomcat 3.2.3.  In both cases,
>when I submit a file larger than 100K I get
>a MaxLengthExceededException and I get Error 500 - Internal Server Error on
>the screen.
>
>
>Here's my understanding of the problem - Please ignore this if it doesn't
>make sense...
>
>This exception is thrown in the BufferedMultipartInputStream constructor.
>Shouldn't this exception be passed all the way up to the
>ActionServlet.processPopulate()?  This method has access to the
>'formInstance' which can be used to notify the user.  Does this make sense?
>
>Anyway, any help in this matter will be greatly appreciated.  Thanks.
>
>- Ajay
>
>
>
>-Original Message-
>From: SCHACHTER,MICHAEL (HP-NewJersey,ex2) [mailto:[EMAIL PROTECTED]]
>Sent: Monday, September 10, 2001 10:18 AM
>To: '[EMAIL PROTECTED]'
>Subject: RE: file upload problems
>
>
>Ricky,
>
>The maximum upload size is represented as an init-param for ActionServlet:
>
>To set it as an init-param in web.xml:
>
>
> action
> org.apache.struts.action.ActionServlet
> 
>   maxFileSize
>   100K
> 
> 2
>
>
>The value of "maxFileSize" can be represented as in bytes by not appending
>any
>characters to the end, kilobytes by appending a "K" at the end, megabytes by
>appending an "M" at the end, and gigabytes by appending a "G" at the end.
>
>Example:
>
>100 bytes:
>
> action
> org.apache.struts.action.ActionServlet
> 
>   maxFileSize
>   100
> 
> 2
>
>
>100 kilobytes:
>
>
> action
> org.apache.struts.action.ActionServlet
> 
>   maxFileSize
>   100K
> 
> 2
>
>
>100 Megabytes:
>
>
> action
> org.apache.struts.action.ActionServlet
> 
>   maxFileSize
>   100M
> 
> 2
>
>
>100 Gigabytes
>
> action
> org.apache.struts.action.ActionServlet
> 
>   maxFileSize
>   100G
> 
> 2
>
>
>
>
>-Original Message-
>From: Ricky Frank [mailto:[EMAIL PROTECTED]]
>Sent: Monday, September 10, 2001 12:29 PM
>To: [EMAIL PROTECTED]
>Subject: RE: file upload problems
>
>
>Can you also provide an example of the tag for limiting the size of the
>file uploaded?  Or is this not supported?  I've dug through some of the
>underlying code and it looks like it is but I don't see anything in the tag
>definition on how to invoke this limitation.  Thanks.  Ricky Frank
>
>At 12:10 PM 9/10/2001 -0400, you wrote:
> >Rightfully Disgruntled File Upload Users,
> >
> >I'll set aside some time next week to address
> >all the file upload issues, I apologize for the
> >long delay.
> >
> >In the interim, please use bug reports
> >(http://nagoya.apache.org/bugzilla/)
> >to report all file upload issues that you
> >come across.  Check to see if it's reported,
> >if not, go ahead and do so.  This notifies
> >me directly.
> >
> >
> >-Original Message-
> >From: Tom Tibbetts [mailto:[EMAIL PROTECTED]]
> >Sent: Monday, September 10, 2001 9:59 AM
> >To: [EMAIL PROTECTED]
> >Subject: file upload mangling files
> >
> >
> >Hi.  What's the status on fixing the file upload problem of files getting
> >mangled?  I use Struts ver 1.0.  Is there a fix available??? Thanks, This
> >is very important to us.  Tom Tibbetts
>
>
>_
>Do You Yahoo!?
>Get your free @yahoo.com address at http://mail.yahoo.com


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




Unsubscribe me

2001-09-11 Thread baris.guzelordu

Please unsubscribe me!

Thanks.

Iyi Çalismalar

Baris Güzelordu
IT-Customer Services
* +90 212 449 23 35
* +90 532 210 19 57
* [EMAIL PROTECTED]


***

This e-mail and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you are not the intended recipient you are hereby notified that any
dissemination, forwarding, copying or use of any of the information is
prohibited.

The opinions expressed in this message belong to sender alone. There is no
implied endorsement by TURKCELL.

This e-mail has been scanned for all known computer viruses.

***



Re: Should the Action class implement the java.io.Serializable ?

2001-09-11 Thread Ted Husted

The actions are multithreaded, and shouldn't have any class data to
serialize ;-)

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/about/struts/


[EMAIL PROTECTED] wrote:
> 
> Are there any reasons for letting the Action class implement the interface
> java.io.Serializable ?
> 
> I have seen other projects have a class definition like:
> 
> public class MyAction extends Action implements java.io.Serializable
> 
> If Struts is deployed in a clustered environment, is this recommended?
> 
> That is, are there occasions where an instance of the MyAction class would
> be serialized and passed between servers ?
> 
> Regards,
> Vidar Alvestad
> Forhandlerportal-prosjektet
> (227) 84 131 / 982 19 367
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]



Form-Bean for several html:text fields with the same name in one Form

2001-09-11 Thread Friedli Beat [UFA AG Her]
Title: Form-Bean  for several html:text fields with the same name in one Form





I'm constructing an shopping-cart with struts.
The user can choose several artikels at the same time just by adding an amont.
The browser will send several values for the property amount back to the server.


My question: how does my form-bean and the jsp-page have look to make this work?






 
    
    


      
     
  
 



  




Mit freundlichen Grüssen


Beat Friedli


--
UFA AG
Hofmattstrasse 40
3360 Herzogenbuchsee
Tel: ++41 62 956 63 94


email: 
homepage:   
homepage:  






Re: setting classpath

2001-09-11 Thread Keith Bacon

Peter,
If you're on windows this batch file can be adapt to your
environment.
I think this is a good way to get started, for proper big projects
people seem to use the Ant tool.
regards,
Keith.




@echo off
rem --Biff1Compile.bat - Compile a java file in biff1 web-app.
rem --servlet.jar not needed in classpath if it's installed as
java extension
rem --use in a dos window - CompileBiff1 MyClass.java
rem --variables mcp=My class path
rem --  mout=My output library (where the class file
goes)
rem ---You may need to run the following commands if they aren't in
effect in your environment.
rem --- set path=%path%;C:\jdk1.3.0_02\bin
rem --- set  JAVA_HOME=C:\jdk1.3.0_02
rem --- 

cd C:\jakarta-tomcat-3.2.2\webapps\biff1\WEB-INF\classes

set mcp=C:\jakarta-tomcat-3.2.2\webapps\biff1\WEB-INF\classes
set
mcp=%mcp%;C:\jakarta-tomcat-3.2.2\webapps\biff1\WEB-INF\lib\struts.jar
set mcp=%mcp%;C:\jakarta-tomcat-3.2.2\lib\servlet.jar

set mout="C:\jakarta-tomcat-3.2.2\webapps\biff1\WEB-INF\classes"

set mcmd=javac -d  %mout%  -classpath  %mcp%  %1

%mcmd%



--- peter <[EMAIL PROTECTED]> wrote:
> hi
> 
> I'm trying to compile some classes but am getting errors indicating
> my struts packages cannot be found.  Is it because I've not set my
> CLASSPATH variable?  If so, how do I dynamically set the CLASSPATH
> variable to include the struts.jar, commons.*.jar files?
> 
> Thanks
> 
> Peter
> 


__
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com



setting classpath

2001-09-11 Thread peter



hi
 
I'm trying to compile some classes but am getting 
errors indicating my struts packages cannot be found.  Is it because I've 
not set my CLASSPATH variable?  If so, how do I dynamically set the 
CLASSPATH variable to include the struts.jar, commons.*.jar 
files?
 
Thanks
 
Peter


html:base tag ommitting port number?

2001-09-11 Thread Andras Balogh

Hi friends,

I am new to Struts i have just started using it.

I am writing a simple jsp that includes
  in the head

If i acces my jsp trough
http://virtual1.myhost.com:8080/login.jsp

and viewing the source the 


RE: Struts and JBuilder

2001-09-11 Thread markus.colombo



I know 
the setup for JBuilder 5: http://www.netstore.ch/mesi/strutstutorial/
I 
never worked with JBuilder 4, but it might be a starting 
point...
 
Regards
 
Markus

  -Original Message-From: Shea Kelly 
  [mailto:[EMAIL PROTECTED]]Sent: Dienstag, 11. September 2001 
  09:44To: [EMAIL PROTECTED]Subject: Struts 
  and JBuilder
  Hi 
  all,
   
  Anyone 
  know how to setup struts to be used with JBuilder4 EE??
  regards 
  Shea Kelly 
  Consultant Software 
  EngineerObject Oriented Pty LtdPO Box 
  528, North Sydney NSW 2059Phone: 
  +61 2 9957-1092Direct: +61 2 9459-3335Fax: +61 2 9956-5089 
  Mobile: 0416 110 
  499Email: 
  [EMAIL PROTECTED]Web:  
   


AW: Unit Testing Actions

2001-09-11 Thread juraj Lenharcik

yes i had user httunit too. it used not only xml as input, but also a xml
file as output for reports. ths xml reports were transformed with xsl to
html for nightly reports like gump (apache).


juraj

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 11. September 2001 09:58
An: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Betreff: Unit Testing Actions


We test them using our own test framework sitting on top of HTTPUnit. It
uses an XML file as input (e.g with urls and expected text/errors etc),
rather than writing code.
--
dIon Gillard, Multitask Consulting
Work:  http://www.multitask.com.au
JavaNews: http://www.multitask.com.au/JavaNews
- Forwarded by dIon Gillard/Multitask Consulting/AU on 11/09/2001 05:56
PM -
Unit Testing Actions


What's the best way to unit test Struts Actions?  Create mock objects
(request, session, servlet, etc.)?  J2EEUnit, Catctus, HTTP Unit?  Which
approach are people having the most success with?

Also, Craig M. mentioned a while back about a unit testing framework for
Struts itself.  How is that coming along?  Just curious.

Thanks!

Steve Molitor
[EMAIL PROTECTED]




Unit Testing Actions

2001-09-11 Thread dion

We test them using our own test framework sitting on top of HTTPUnit. It
uses an XML file as input (e.g with urls and expected text/errors etc),
rather than writing code.
--
dIon Gillard, Multitask Consulting
Work:  http://www.multitask.com.au
JavaNews: http://www.multitask.com.au/JavaNews
- Forwarded by dIon Gillard/Multitask Consulting/AU on 11/09/2001 05:56
PM -
Unit Testing Actions


What's the best way to unit test Struts Actions?  Create mock objects
(request, session, servlet, etc.)?  J2EEUnit, Catctus, HTTP Unit?  Which
approach are people having the most success with?

Also, Craig M. mentioned a while back about a unit testing framework for
Struts itself.  How is that coming along?  Just curious.

Thanks!

Steve Molitor
[EMAIL PROTECTED]





Bug in Struts validator !

2001-09-11 Thread juraj Lenharcik

hi all,

In the class GenericValidator, when you use an another locale than the
default you get a null pointer exception. i tried it with the german locale
settings. i fixed the bug in this lines:

  DateFormat formatter = null;
  if (locale != null){
==>  formatter = DateFormat.getDateInstance(DateFormat.SHORT,
locale);
  }else{
==>  formatter = DateFormat.getDateInstance(DateFormat.SHORT,
Locale.getDefault());
  }   
  formatter.setLenient(false);

can someone change it and check it into the cvs?


thanks & bye
juraj




Struts and JBuilder

2001-09-11 Thread Shea Kelly



Hi 
all,
 
Anyone 
know how to setup struts to be used with JBuilder4 EE??
regards 
Shea Kelly 
Consultant Software 
EngineerObject Oriented Pty LtdPO Box 528, North Sydney NSW 2059Phone: 
+61 2 9957-1092Direct: +61 2 9459-3335Fax: +61 2 9956-5089 
Mobile: 0416 110 
499Email: 
[EMAIL PROTECTED]Web: