Re: usage of html:options

2002-04-08 Thread Slava_L

Now other suggestions?

- Original Message -
From: Ted Husted [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Sunday, April 07, 2002 12:40 AM
Subject: Re: usage of html:options


 If the collection is stored on the ActionForm, you have to use
 bean:define under Struts 1.0.x

 For Struts 1.1, there is another tag that gets around this.

 -Ted.


 Slava_L wrote:
 
  we have and ActionForm with Collection field (4xmpl list of smthing)
  how should i use tag html:options to fill parent tag html:select with
values of list (from our Collection)
  In uptodate we use this scheme:
  in jsp file we have
  html:from  - related with ActionForm in struts-config.xml
  bean:define id=locallist porperty formlist
  html:select .
  html:options collection=locallist ...
  .
 
  but how can u do the same thin' w/o bean:define ?
 
  Thnx!

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




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




Re: usage of html:options

2002-04-08 Thread Arron Bates

The tag Ted mentions is html:optionsCollection, and it's in Struts 1.1

If you have to run 1.0/1.0.1, then what you're doing with the 
bean:define is the standard use. Or, if you have a collection for the 
values, and a value for the labels, then you can just use the 
html:options, with the property property pointing at the bean property 
that will yield the value list, and the labelProperty pointing at the 
bean property that will be the list of labels. Only thing about this is, 
is that they're separate lists.

But to use the list of beans that themselves hold the label and values, 
then there is no other way but your bean:define usage you already have, 
or the new html:optionsCollection tag.

Arron.


Slava_L wrote:

Now other suggestions?

- Original Message -
From: Ted Husted [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Sunday, April 07, 2002 12:40 AM
Subject: Re: usage of html:options


If the collection is stored on the ActionForm, you have to use
bean:define under Struts 1.0.x

For Struts 1.1, there is another tag that gets around this.

-Ted.


Slava_L wrote:

we have and ActionForm with Collection field (4xmpl list of smthing)
how should i use tag html:options to fill parent tag html:select with

values of list (from our Collection)

In uptodate we use this scheme:
in jsp file we have
html:from  - related with ActionForm in struts-config.xml
bean:define id=locallist porperty formlist
html:select .
html:options collection=locallist ...
.

but how can u do the same thin' w/o bean:define ?

Thnx!

--
To unsubscribe, e-mail:

mailto:[EMAIL PROTECTED]

For additional commands, e-mail:

mailto:[EMAIL PROTECTED]




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





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




iteration tag

2002-04-08 Thread bluetooth

Hi All
I need to know where the name in the iteration tag is derived from coz when i 
attempt to retrieve it from session inside my JSP, it prompts me cannot find bean 
announcement in scope session.

logic:iterate id=list name=announcement property=announcementList 
scope=session




See Dave Matthews Band live or win a signed guitar
http://r.lycos.com/r/bmgfly_mail_dmb/http://win.ipromotions.com/lycos_020201/splash.asp
 

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




Re: iteration tag

2002-04-08 Thread Arron Bates

The name of the bean associated with your form, or any other bean name 
which is in scope.

For your example, add a bean to the session under the name 
announcement and you're golden.

Arron.

bluetooth wrote:

Hi All
I need to know where the name in the iteration tag is derived from coz when i 
attempt to retrieve it from session inside my JSP, it prompts me cannot find bean 
announcement in scope session.

logic:iterate id=list name=announcement property=announcementList 
scope=session




See Dave Matthews Band live or win a signed guitar
http://r.lycos.com/r/bmgfly_mail_dmb/http://win.ipromotions.com/lycos_020201/splash.asp
 

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





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




Re: JavaPro Magazine

2002-04-08 Thread Peter Pilgrim


I got this copy, and I think, it's great.
--
Peter Pilgrim   ++44 (0)207-545-9923

 Swamped under electronic mails


 Message History 



From:  Galbreath, Mark [EMAIL PROTECTED] on 06/04/2002 07:49 EST

Please respond to Struts Users Mailing List [EMAIL PROTECTED]

To:Struts (E-mail) [EMAIL PROTECTED]
cc:
Subject:JavaPro Magazine


Struts got the cover story for the April edition.

Mark






--

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 unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.



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




form-bean question

2002-04-08 Thread Manie Coetzee

Hi

I'm currently using the DynamicForm features of struts.  I just want to 
know if it is possible to
nest a 'form-bean' as a property of another 'form-bean'.

Example:

form-bean name=subjectForm
   type=org.apache.struts.validator.DynaValidatorForm
   dynamic=true

  form-property name=subjectId   type=java.lang.int/
  form-property name=description type=java.lang.String/
/form-bean

form-bean name=courseForm
   type=org.apache.struts.validator.DynaValidatorForm
   dynamic=true

  form-property name=nametype=java.lang.String/
  form-property name=description type=java.lang.String/
  form-property name=subject type=X/

  form-property name=passwordtype=java.lang.String/
/form-bean

I want to specify that the 'subjectForm' is a nested property (subjectList)
of the 'courseForm'.  How can I accomplish that?  I know it is a simple
thing if you implement the ActionForm in Java, but I want to define it in
the struts config.

Thank you in advance
Manie Coetzee



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




conditional iterate (3)

2002-04-08 Thread Peter Cnops

Hi,

I made a typo in my request (closing the bean tag), but thas is not the main
problem.

What I want to do is:
1. iterate through some orderlines
2. if 'compname' of this orderline is not equal to 'compname' of the
previous orderline, write the compname, else do not.

How do I realise this? Do I have to declare a variable?

logic:iterate id=element name=orderlinebean type=com.test.Orderline
logic:notEqual name=element property=compname value=--if the compname
is the same as the previous line, don't write, else write the compname
  tr
 td width=23%nbsp;/td
 td width=18%bean:write name=element property=compname//td
 td width=59%bean:write name=element property=number//td
  /tr
/logic:notEqual
/logic:iterate


Peter Cnops
Project Management - MediaTower
Digital Photography - PrePress - Digital Printing - Internet Services
Veldkant 29, B-2550 Kontich
Tel. 03 450 81 00 - Fax 03 450 81 09
http://www.mediatower.be



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




Re: Tiles, included pages, and taglibs

2002-04-08 Thread Cedric Dumoulin


  Hello,

  Tiles simply use the RequestDispatcher.include(...) method, wich allow
to
include a servlet.

Cedric

Dave Dribin wrote:

  Dave Dribin wrote:
 
  Hi,
  
  This is more of an observation than a question.  I started playing
  with the tiles and noticed that in included pages, you have to
  redeclare taglibs in those included pages.

 On Tue, Apr 02, 2002 at 10:08:10AM +1000, Arron Bates wrote:
  They may be separate pages in terms of development, but at runtime
  they'll become separate servlets all together and will be parsed as
  such. Being separate servlet entities, they'll need the talib
  declarations etc etc.

 Just out of curiousity, how does Tiles do this?  Does it invoke the
 JSP servlet manually or do some sort of internal HTTP request and
 capture the output?  I took a brief look at the code, but it gave me a
 headeache. ;)

 -Dave

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

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




Struts 1.1-b1 using VAJ 3.5.3 WTE

2002-04-08 Thread Anton_Grimm


Any ideas?

I'm successfully working with Struts 1.0 in WTE ...

Now I'd like to take a look at Struts 1.1-b1.

Trying to run the struts-example I get the
following error ...

Actually my Projects Jakarta Struts Framework and Jakarta Commons
Framework is in the Classpath
of the ServletEngine (and there are the mentioned Classes below)

###

[02.04.08 11:58:15:476 GMT+02:00] 109 ServletHost   A Loading group:
StrutsExampleWebApp
[02.04.08 11:58:19:732 GMT+02:00] 109 WebGroup  X [Servlet Error]
-[{0}]: {1}: {2}
 action
 Servlet konnte nicht geladen werden
 javax.servlet.ServletException: Servlet
[action]: Erforderliche Servlet-Klasse nicht vorhanden - class
org.apache.struts.action.ActionServlet :
org.apache.commons.logging.LogConfigurationException:
java.lang.reflect.InvocationTargetException.class
  java.lang.Throwable(java.lang.String)
  java.lang.Exception(java.lang.String)
  javax.servlet.ServletException(java.lang.String, java.lang.Throwable)
  void
com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(java.lang.String)

###

Did I miss anything?

Help is very much appreciated!

A. Grimm


MAN Nutzfahrzeuge AG
Anton Grimm
Abt. IDP (SoftwareProduktionsumgebungen)
Dachauerstr.667
80995 München

Tel.:  089/1580-1054
Fax:  089/1580-911054
E-Mail: [EMAIL PROTECTED]



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




RE: conditional iterate (3)

2002-04-08 Thread Vaddiyar, Raghuramudu

Better avoid array elements with same compname ...

in otherwords create the array elements with unique compname ..avoid
elements
with same compname...

-Original Message-
From: Peter Cnops [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 08, 2002 12:00 PM
To: [EMAIL PROTECTED]
Subject: conditional iterate (3)


Hi,

I made a typo in my request (closing the bean tag), but thas is not the main
problem.

What I want to do is:
1. iterate through some orderlines
2. if 'compname' of this orderline is not equal to 'compname' of the
previous orderline, write the compname, else do not.

How do I realise this? Do I have to declare a variable?

logic:iterate id=element name=orderlinebean type=com.test.Orderline
logic:notEqual name=element property=compname value=--if the compname
is the same as the previous line, don't write, else write the compname
  tr
 td width=23%nbsp;/td
 td width=18%bean:write name=element property=compname//td
 td width=59%bean:write name=element property=number//td
  /tr
/logic:notEqual
/logic:iterate


Peter Cnops
Project Management - MediaTower
Digital Photography - PrePress - Digital Printing - Internet Services
Veldkant 29, B-2550 Kontich
Tel. 03 450 81 00 - Fax 03 450 81 09
http://www.mediatower.be



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



The content of this e-mail is intended only for the confidential use of the
person addressed. If you have received this message in error, please notify
us immediately by electronic mail, by telephone or by fax at the above num-
bers.

E-mail communications are not secure and therefore we do not accept any res-
ponsibility for the confidentiality or altered contents of this message.

Please be aware that SIS Group and its subsidiary companies cannot accept
any orders or other legally binding correspondence with a participant as
part of an E-mail. The views expressed above are not necessarily those held
by SIS Group and its subsidiary companies and not binding for them.




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




RE: struts radio button-doesn't work!

2002-04-08 Thread Jon.Ridgway

Hi All,

If it's a radio button it may well need resetting in the forms reset method.

Jon.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: 08 April 2002 02:13
To: [EMAIL PROTECTED]
Subject: Re: struts radio button-doesn't work!

 days == days 81 days writes:

days Hi, I tried to initialize the radio button value to be this in my
action form:
days private String priorType=1

days However, the first radio button still doesn't get selected by
default. What is happening?

Is this a valid bean property, with getter and setter methods?

-- 
===
David M. Karr  ; Java/J2EE/XML/Unix/C++
[EMAIL PROTECTED]


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

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




Re: Where have all the postings gone

2002-04-08 Thread Struts Developer

Don't forget about the mail list archive at: 
http://www.mail-archive.com/struts-user@jakarta.apache.org!

Mark


From: Struts Newsgroup (@Basebeans.com) [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Where have all the postings gone
Date: Fri, 5 Apr 2002 04:55:02 -0800

Subject: Where have all the postings gone
From: David Bolsover [EMAIL PROTECTED]
  ===
Help

I'm very greatful to basebeans for their generosity in providing this
newsgroup - but please can we have the postings kept on the server a while
longer than at present. - I just checked Nov, Dec 2001 post are still
available but Jan - mid March 2002 have gone :-(.

David

[EMAIL PROTECTED]



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



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


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




request persistance

2002-04-08 Thread Mike Dewhirst

Does the request object (containing submitted parameters) go all the way
through from the Action to the JSP without being re-created?

I have a parameter that seems to disappear from the request byt the time the
control gets to the JSP. The parameter is visible in the Action class
instance.

Is the request object perhaps re-created byt the controller, Action class,
etc?

Many thanks in advance (and by the way thank you very much to all the
developers for such an amazingly useful _free_ (!!) product!)

Mike


This message was written in plain text mode. 
Everything below the dotted line was not 
written by the author of this email. 
-- 


=**

If you are not the intended recipient, employee or agent responsible for delivering 
the message to the intended recipient, you are hereby notified that any dissemination 
or copying of this communication and its attachments is strictly prohibited.

If you have received this communication and its attachments in error, please return 
the original message and attachments to the sender using the reply facility on e-mail.

Internet communications are not secure and therefore the UCLES Group does not accept 
legal responsibility for the contents of this message.  Any views or opinions 
presented are solely those of the author and do not necessarily represent those of the 
UCLES Group unless otherwise specifically stated.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses although this does not guarantee that 
this email is virus free.

**=



***

If you are not the intended recipient, employee or agent responsible for delivering 
the message to the intended recipient, you are hereby notified that any dissemination 
or copying of this communication and its attachments is strictly prohibited.

If you have received this communication and its attachments in error, please return 
the original message and attachments to the sender using the reply facility on e-mail.
Internet communications are not secure and therefore the UCLES Group does not accept 
legal responsibility for the contents of this message.  Any views or opinions 
presented are solely those of the author and do not necessarily represent those of the 
UCLES Group unless otherwise specifically stated.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses although this does not guarantee that 
this email is virus free.

***




RE: Newbie install question

2002-04-08 Thread Galbreath, Mark

This is a very common problem and you can find scores of references to it at

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

Mark

-Original Message-
From: Joe @ Team345 [mailto:[EMAIL PROTECTED]]
Sent: Saturday, April 06, 2002 2:10 PM
To: [EMAIL PROTECTED]
Subject: Newbie install question


  Hi, I'm just installing struts and just joined this list.  Sorry if 
this question has been on the list before.

I'm running Tomcat 3.2.1 on RH linux 7.1.  I have struts installed and I 
can get to struts-documentation.  However, struts-example gives me all this:

*Internal Servlet Error:*

javax.servlet.ServletException: Missing message for key index.title
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:459)
at
_0002findex_0002ejspindex_jsp_0._jspService(_0002findex_0002ejspindex_jsp_0.
java:444)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:177)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
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.interna
lService(ContextManager.java:797)
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)

*Root cause:*

javax.servlet.jsp.JspException: Missing message for key index.title
at
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:242)
at
_0002findex_0002ejspindex_jsp_0._jspService(_0002findex_0002ejspindex_jsp_0.
java:90)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:177)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
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(Context
Manager.java:797)
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)


Any thoughts/ideas/help?

thanks,

Joe Gamache



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

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




Cannot find message resources under key org.apache.struts.action.MESSAGE

2002-04-08 Thread SSteib

Hi,
the struts-example from Struts 1.1 works with Resin 2.05 but if I start it
with the WSAD 4.0 (Websphere Application Developer) there comes this error:

Error Message: Cannot find message resources under key
org.apache.struts.action.MESSAGE
Error Code: 500
Target Servlet: null
Error Stack:
javax.servlet.jsp.JspException: Cannot find message resources under key
org.apache.struts.action.MESSAGE
 at org.apache.struts.util.RequestUtils.message(RequestUtils.java:793)
 at
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:295)
 at index_jsp_0._jspService(index.jsp :6)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:139)

 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:286)


 at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:415)
 at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:544)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
...

Has somebody an idea? I didn't changed the example. So in the
struts-config.xml it's still this code:
message-resources parameter
=org.apache.struts.webapp.example.ApplicationResources/


Thanks,
Susanne



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




Re: Cannot find message resources under key org.apache.struts.action.MESSAGE

2002-04-08 Thread rizvan . katchera





It is a typicall error
To solve it you must add a file called applicationResources.properties
You must check if the web.xml contains the folowing text :
 init-param
  param-nameapplication/param-name

param-valueorg.apache.struts.webapp.example.ApplicationResources/param-value
  /init-param
I added an example of this file in the message
Regards
(See attached file: APPLIC~1.PRO)
__ Reply Separator _



[EMAIL PROTECTED]
08/04/2002 15:57:00



|---+--|
|   |Return Receipt: No|
| To:[EMAIL PROTECTED] |Importance: Normal|
| cc: (bcc: Rizvan KATCHERA/fr/socgen)  |  |
|   |  |
|---+--|




SUBJECT: Cannot find message resources under key
 org.apache.struts.action.MESSAGE


Hi,
the struts-example from Struts 1.1 works with Resin 2.05 but if I start it
with the WSAD 4.0 (Websphere Application Developer) there comes this error:

Error Message: Cannot find message resources under key
org.apache.struts.action.MESSAGE
Error Code: 500
Target Servlet: null
Error Stack:
javax.servlet.jsp.JspException: Cannot find message resources under key
org.apache.struts.action.MESSAGE
 at org.apache.struts.util.RequestUtils.message(RequestUtils.java:793)
 at
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:295)
 at index_jsp_0._jspService(index.jsp :6)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:139)

 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:286)


 at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:415)
 at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:544)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
...

Has somebody an idea? I didn't changed the example. So in the
struts-config.xml it's still this code:
message-resources parameter
=org.apache.struts.webapp.example.ApplicationResources/


Thanks,
Susanne



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





APPLIC~1.PRO
Description: Binary data

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


Important : Url problem

2002-04-08 Thread rizvan . katchera



Hi everybody

I have a quite important problem

Suppsose i have an action buy.do
Of there is no error i forward to buy.jsp
But the problem is that when i refresh the page obtain by the action
i refresh the action buy.do and not buy.jsp
Is there a solution to avoid the problem ?
 I ve tried to use the sendredirect property but i have a probleme cause i lost
all the
object of my request
need your help
Regards
Rizvan



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




Re: Important : Url problem

2002-04-08 Thread Viet Kevin

On Mon, 8 Apr 2002 16:53:46 +0200
[EMAIL PROTECTED] wrote:

 
 
 Hi everybody
 
 I have a quite important problem
 
 Suppsose i have an action buy.do
 Of there is no error i forward to buy.jsp
 But the problem is that when i refresh the page obtain by the action
 i refresh the action buy.do and not buy.jsp
 Is there a solution to avoid the problem ?
  I ve tried to use the sendredirect property but i have a probleme cause i lost
 all the
 object of my request
 need your help
 Regards
 Rizvan
 
 
 
 --


Use the token API in struts, browse the documentation for
further informations

=
-- KeV -- 
=



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




Antwort: Re: Cannot find message resources under key org.apache.struts.action.MESSAGE

2002-04-08 Thread SSteib


Can it be that you mean this for Struts 1.02?
But I use Struts 1.1 and there must be in the struts.config.xml (instead of
in the web.xml) the following text:
message-resources parameter=
org.apache.struts.webapp.example.ApplicationResources/

So it must have another reason it doesn't work, cause it work with Resin.



   
  
rizvan.katchera@   
  
socgen.com  An: [EMAIL PROTECTED]
  
Kopie:  [EMAIL PROTECTED] 
  
08.04.2002 16:37Thema:  Re: Cannot find message resources 
under key org.apache.struts
Bitte antworten .action.MESSAGE
  
an Struts Users   
  
Mailing List  
  
   
  
   
  








It is a typicall error
To solve it you must add a file called applicationResources.properties
You must check if the web.xml contains the folowing text :
 init-param
  param-nameapplication/param-name

param-valueorg.apache.struts.webapp.example.ApplicationResources/param-value

  /init-param
I added an example of this file in the message
Regards
(See attached file: APPLIC~1.PRO)
__ Reply Separator
_



[EMAIL PROTECTED]
08/04/2002 15:57:00



|---+--|

|   |Return
Receipt: No|
| To:[EMAIL PROTECTED] |Importance:
Normal|
| cc: (bcc: Rizvan KATCHERA/fr/socgen)  |
|
|   |
|
|---+--|





SUBJECT: Cannot find message resources under key
 org.apache.struts.action.MESSAGE


Hi,
the struts-example from Struts 1.1 works with Resin 2.05 but if I start it
with the WSAD 4.0 (Websphere Application Developer) there comes this error:

Error Message: Cannot find message resources under key
org.apache.struts.action.MESSAGE
Error Code: 500
Target Servlet: null
Error Stack:
javax.servlet.jsp.JspException: Cannot find message resources under key
org.apache.struts.action.MESSAGE
 at org.apache.struts.util.RequestUtils.message(RequestUtils.java:793)
 at
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:295)
 at index_jsp_0._jspService(index.jsp :6)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:139)

 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:286)



 at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:415)
 at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:544)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
...

Has somebody an idea? I didn't changed the example. So in the
struts-config.xml it's still this code:
message-resources parameter
=org.apache.struts.webapp.example.ApplicationResources/


Thanks,
Susanne



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


(See attached file: APPLIC~1.PRO)--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]




APPLIC~1.PRO
Description: Binary data

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


Re: Antwort: Re: Cannot find message resources under key org.apache.struts .action.MESSAGE

2002-04-08 Thread Arron Bates

add key=org.apache.struts.action.MESSAGE to the message-resources tag.

eg:
message-resources
  parameter=org.apache.struts.webapp.example.ApplicationResources
  key=org.apache.struts.action.MESSAGE
  /

Try that one.
Some other bright spark found it (didn't leave his name). It's a problem 
with 1.1beta. Still has yet to be fixed for the full 1.1 release.

Arron.

[EMAIL PROTECTED] wrote:

Can it be that you mean this for Struts 1.02?
But I use Struts 1.1 and there must be in the struts.config.xml (instead of
in the web.xml) the following text:
message-resources parameter=
org.apache.struts.webapp.example.ApplicationResources/

So it must have another reason it doesn't work, cause it work with Resin.



  
   
rizvan.katchera@  
   
socgen.com  An: [EMAIL PROTECTED]   
   
Kopie:  [EMAIL PROTECTED]
   
08.04.2002 16:37Thema:  Re: Cannot find message resources 
under key org.apache.struts
Bitte antworten .action.MESSAGE   
   
an Struts Users  
   
Mailing List 
   
  
   
  
   








It is a typicall error
To solve it you must add a file called applicationResources.properties
You must check if the web.xml contains the folowing text :
 init-param
  param-nameapplication/param-name

param-valueorg.apache.struts.webapp.example.ApplicationResources/param-value

  /init-param
I added an example of this file in the message
Regards
(See attached file: APPLIC~1.PRO)
__ Reply Separator
_



[EMAIL PROTECTED]
08/04/2002 15:57:00



|---+--|

|   |Return
Receipt: No|
| To:[EMAIL PROTECTED] |Importance:
Normal|
| cc: (bcc: Rizvan KATCHERA/fr/socgen)  |
|
|   |
|
|---+--|





SUBJECT: Cannot find message resources under key
 org.apache.struts.action.MESSAGE


Hi,
the struts-example from Struts 1.1 works with Resin 2.05 but if I start it
with the WSAD 4.0 (Websphere Application Developer) there comes this error:

Error Message: Cannot find message resources under key
org.apache.struts.action.MESSAGE
Error Code: 500
Target Servlet: null
Error Stack:
javax.servlet.jsp.JspException: Cannot find message resources under key
org.apache.struts.action.MESSAGE
 at org.apache.struts.util.RequestUtils.message(RequestUtils.java:793)
 at
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:295)
 at index_jsp_0._jspService(index.jsp :6)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:139)

 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:286)



 at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:415)
 at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:544)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
...

Has somebody an idea? I didn't changed the example. So in the
struts-config.xml it's still this code:
message-resources parameter
=org.apache.struts.webapp.example.ApplicationResources/


Thanks,
Susanne



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


(See attached file: APPLIC~1.PRO)--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]




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




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




Antwort: Re: Antwort: Re: Cannot find message resources under key org.apache.struts.action.MESSAGE

2002-04-08 Thread SSteib


I tried it but there is still the same problem. Do you mean I have to wait
till 1.1 final release?




   
   
Arron Bates
   
arronb@pacifAn: Struts Users Mailing List 
[EMAIL PROTECTED]   
ic.net.au   Kopie:
   
 Thema:  Re: Antwort: Re: Cannot find message 
resources under key 
08.04.2002   org.apache.struts  .action.MESSAGE
   
17:14  
   
Bitte  
   
antworten an   
   
Struts Users  
   
Mailing List  
   
   
   
   
   




add key=org.apache.struts.action.MESSAGE to the message-resources tag.

eg:
message-resources
  parameter=org.apache.struts.webapp.example.ApplicationResources
  key=org.apache.struts.action.MESSAGE
  /

Try that one.
Some other bright spark found it (didn't leave his name). It's a problem
with 1.1beta. Still has yet to be fixed for the full 1.1 release.

Arron.

[EMAIL PROTECTED] wrote:

Can it be that you mean this for Struts 1.02?
But I use Struts 1.1 and there must be in the struts.config.xml (instead
of
in the web.xml) the following text:
message-resources parameter=
org.apache.struts.webapp.example.ApplicationResources/

So it must have another reason it doesn't work, cause it work with Resin.





rizvan.katchera@

socgen.com  An: [EMAIL PROTECTED]

Kopie:
[EMAIL PROTECTED]
08.04.2002 16:37Thema:  Re: Cannot find
message resources under key org.apache.struts
Bitte antworten .action.MESSAGE

an Struts Users

Mailing List













It is a typicall error
To solve it you must add a file called applicationResources.properties
You must check if the web.xml contains the folowing text :
 init-param
  param-nameapplication/param-name

param-valueorg.apache.struts.webapp.example.ApplicationResources/param-value


  /init-param
I added an example of this file in the message
Regards
(See attached file: APPLIC~1.PRO)
__ Reply Separator
_



[EMAIL PROTECTED]
08/04/2002 15:57:00




|---+--|


|   |Return
Receipt: No|
| To:[EMAIL PROTECTED] |Importance:
Normal|
| cc: (bcc: Rizvan KATCHERA/fr/socgen)  |
|
|   |
|

|---+--|






SUBJECT: Cannot find message resources under key
 org.apache.struts.action.MESSAGE


Hi,
the struts-example from Struts 1.1 works with Resin 2.05 but if I start it
with the WSAD 4.0 (Websphere Application Developer) there comes this
error:

Error Message: Cannot find message resources under key
org.apache.struts.action.MESSAGE
Error Code: 500
Target Servlet: null
Error Stack:
javax.servlet.jsp.JspException: Cannot find message resources under key
org.apache.struts.action.MESSAGE
 at org.apache.struts.util.RequestUtils.message(RequestUtils.java:793)
 at
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:295)
 at index_jsp_0._jspService(index.jsp :6)
 at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:139)

 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:286)




 at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:415)
 at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:544)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
...

Has somebody an idea? I didn't changed the example. So in the
struts-config.xml it's still this code:
message-resources 

RE: Urgent: xml with struts

2002-04-08 Thread Levin, Michael (Contr)

Here's a great article on XML and data binding: Use XML data binding to do
your laundry 
Explore JAXB and Castor from the ground up, by Sam Brodkin
http://www.javaworld.com/javaworld/jw-12-2001/jw-1228-jaxb_p.html


-Original Message-
From: Yugandhar_Reddy [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 8:03 AM
To: Struts Users Mailing List
Subject: RE: Urgent: xml with struts


Thanks a lot

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 1:51 AM
To: [EMAIL PROTECTED]
Subject: RE: Urgent: xml with struts


If all you're trying to do is convert data between java objects and XML
you might want to look at Castor or JAXB (the upcoming Java API for XML
Binding).  Struts does not have any built-in support for moving data
between Java and XML, but you could certainly plug one of these packages
in.
 
Greg

-Original Message-
From: Yugandhar_Reddy [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 11:19 PM
To: [EMAIL PROTECTED]
Subject: Urgent: xml with struts


Hi,
 
Can anyone tell me how can we make use of xml with struts
can we use struts for converting the xml to valueObjects(java class
which hold the set and get methods for the each xml tag) and again
valueObjects to xml??
 
Thanks in advance,
Yug
 
 

***

This e-mail (including any attachments) is intended for the sole use of
the intended recipient/s and may contain material that is CONFIDENTIAL
AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or
copying or distribution or forwarding of any or all of the contents in
this message is STRICTLY PROHIBITED. If you are not the intended
recipeint,please contact the sender by e-mail and delete all copies;
your co-operation in this regard is appreciated.


***
This e-mail (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or  copying or
distribution or forwarding of any or all of the  contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipeint,please contact
the sender by e-mail and delete all copies; your co-operation in this regard
is appreciated.


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




set form int field

2002-04-08 Thread Jefferson Rodrigues de Oliveira e Silva

Hi guys,

I'm having a problem with a bean int field.
When the user clickes in the form, the cursor goes to the end
of the text field. Then it types the value (let's say 3) and click
in the submit button.

What is happening is that the value (3) does not go to the bean
field, instead, the bean field gets a 0.

How can I do a trim in the form before the set is applied to the bean
field ?

Thanks in advance
Jefferson


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




NoClassDefFoundError - Weblogic 6.1

2002-04-08 Thread Vikram Goyal01

Hi all,

The error is:

java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm
The environment is:
Weblogic 6.1 SP1
WIN NT 2000
Struts.jar is in the lib directory of our application.
The JSP includes other JSPs which are included using the directive. I have traced the 
error to an included JSP which is using the html: form tag. This error is being 
thrown by this tag library as it is not finding the above class.
The error goes away by keeping struts.jar in the classpath of Weblogic startup. Of 
course this is not the solution.
Any clues?
Rgs,
Vikram


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




Re: Cannot find message resources under key org.apache.struts.action.MESSAGE

2002-04-08 Thread David M. Karr

 SSteib == SSteib  [EMAIL PROTECTED] writes:

SSteib Hi,
SSteib the struts-example from Struts 1.1 works with Resin 2.05 but if I start it
SSteib with the WSAD 4.0 (Websphere Application Developer) there comes this error:

SSteib Error Message: Cannot find message resources under key
SSteib org.apache.struts.action.MESSAGE
SSteib Error Code: 500
SSteib Target Servlet: null
SSteib Error Stack:
SSteib javax.servlet.jsp.JspException: Cannot find message resources under key
SSteib org.apache.struts.action.MESSAGE
SSteib  at org.apache.struts.util.RequestUtils.message(RequestUtils.java:793)
SSteib  at
SSteib org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:295)
SSteib  at index_jsp_0._jspService(index.jsp :6)
SSteib  at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:139)

SSteib  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
SSteib  at
SSteib 
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:286)


SSteib  at
SSteib org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:415)
SSteib  at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:544)
SSteib  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
SSteib ...

SSteib Has somebody an idea? I didn't changed the example. So in the
SSteib struts-config.xml it's still this code:
SSteib message-resources parameter
SSteib =org.apache.struts.webapp.example.ApplicationResources/

Try this experiment:  Add the following attribute to your message-resources
element and redeploy/retest:

  key=org.apache.struts.action.MESSAGE

However, if you've hit the problem that I've seen recently, it appeared after
the latest beta release, and I don't see how it could work in Resin, but NOT in
WSAD.

-- 
===
David M. Karr  ; Java/J2EE/XML/Unix/C++
[EMAIL PROTECTED]


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




Re: Cannot find message resources under key org.apache.struts .action.MESSAGE

2002-04-08 Thread Arron Bates

It should have been all you required.
I had the problem developing the other night, and that was the problem 
there.

You might want to try downloading the nightly build and trying again. As 
these types of bugs are being rectified it may pay to make sure that 
you're running on the latest.

Arron.


[EMAIL PROTECTED] wrote:

I tried it but there is still the same problem. Do you mean I have to wait
till 1.1 final release?




  

Arron Bates   

arronb@pacifAn: Struts Users Mailing List 
[EMAIL PROTECTED]   
ic.net.au   Kopie:   

 Thema:  Re: Antwort: Re: Cannot find message 
resources under key 
08.04.2002   org.apache.struts  .action.MESSAGE   

17:14 

Bitte 

antworten an  

Struts Users 

Mailing List 

  

  





add key=org.apache.struts.action.MESSAGE to the message-resources tag.

eg:
message-resources
  parameter=org.apache.struts.webapp.example.ApplicationResources
  key=org.apache.struts.action.MESSAGE
  /

Try that one.
Some other bright spark found it (didn't leave his name). It's a problem
with 1.1beta. Still has yet to be fixed for the full 1.1 release.

Arron.

[EMAIL PROTECTED] wrote:

Can it be that you mean this for Struts 1.02?
But I use Struts 1.1 and there must be in the struts.config.xml (instead

of

in the web.xml) the following text:
message-resources parameter=
org.apache.struts.webapp.example.ApplicationResources/

So it must have another reason it doesn't work, cause it work with Resin.





   rizvan.katchera@


   socgen.com  An: [EMAIL PROTECTED]


   Kopie:

[EMAIL PROTECTED]

   08.04.2002 16:37Thema:  Re: Cannot find

message resources under key org.apache.struts

   Bitte antworten .action.MESSAGE


   an Struts Users


   Mailing List











It is a typicall error
To solve it you must add a file called applicationResources.properties
You must check if the web.xml contains the folowing text :
init-param
 param-nameapplication/param-name

param-valueorg.apache.struts.webapp.example.ApplicationResources/param-value


 /init-param
I added an example of this file in the message
Regards
(See attached file: APPLIC~1.PRO)
__ Reply Separator
_



[EMAIL PROTECTED]
08/04/2002 15:57:00




|---+--|

|   |Return
Receipt: No|
| To:[EMAIL PROTECTED] |Importance:
Normal|
| cc: (bcc: Rizvan KATCHERA/fr/socgen)  |
|
|   |
|

|---+--|





SUBJECT: Cannot find message resources under key
org.apache.struts.action.MESSAGE


Hi,
the struts-example from Struts 1.1 works with Resin 2.05 but if I start it
with the WSAD 4.0 (Websphere Application Developer) there comes this

error:

Error Message: Cannot find message resources under key
org.apache.struts.action.MESSAGE
Error Code: 500
Target Servlet: null
Error Stack:
javax.servlet.jsp.JspException: Cannot find message resources under key
org.apache.struts.action.MESSAGE
at org.apache.struts.util.RequestUtils.message(RequestUtils.java:793)
at
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:295)
at index_jsp_0._jspService(index.jsp :6)
at

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:139)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:286)




at

Bean Validation

2002-04-08 Thread Kevin Gibbs

Hi everyone - first time posting, please be gentle with me!

Scenario:
===

My ActionForm has *very* little validation in it, this has been left to the 
storage layer.

How can I return to the input form from the Action class, and leave the 
inputted data on the screen i.e. Force a form validate() failure?

If I return new ActionForward(a_Mapping.getInputForm());, the inputted data 
does not appear on the screen.

Many Thanks - Kevin

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




Re: Antwort: Re: Antwort: Re: Cannot find message resources under key org.apache.struts .action.MESSAGE

2002-04-08 Thread David M. Karr

 SSteib == SSteib  [EMAIL PROTECTED] writes:

Arron add key=org.apache.struts.action.MESSAGE to the message-resources tag.

Arron eg:
Arron message-resources
Arron   parameter=org.apache.struts.webapp.example.ApplicationResources
Arron   key=org.apache.struts.action.MESSAGE
Arron   /

SSteib I tried it but there is still the same problem. Do you mean I have to wait
SSteib till 1.1 final release?

If that didn't fix it, then you likely have a different problem.

Assuming you're deploying the exact struts-example WAR file, here's something
that's certainly a long shot:

Amend the WAR file so that in addition to these files:

ApplicationResources.properties
ApplicationResources_ja.properties
ApplicationResources_ru.properties

Make a copy of the first file and name it
ApplicationResources_en.properties.  Then redeploy the WAR and retest.

If that fails, you may have to start tracing this in your debugger (which will
take a while to set up if you haven't done this yet).

-- 
===
David M. Karr  ; Java/J2EE/XML/Unix/C++
[EMAIL PROTECTED]


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




Re: Disabling Struts multipart request handling (1.1b) [Bug?]

2002-04-08 Thread Vincent Aumont

To answer my own question:

I need to disable the Struts multipart request handling  because I want to use my
own handler that does not  the Struts interface. It seems like we lost this
functionality when the multipartClass property was moved out of the ActionServlet
class.

I patched RequestUtils.getMultipartHandler and it works now.

I'll enter a bug report in bugzilla and submit my patch.

-Vincent.



Vincent Aumont wrote:

 Hi,

 It used to be (pre-1.0.2) that setting the ActionServlet's multipartClass
 property to none (in web.xml) would prevent struts from handling multipart
 requests.

 I had a look at the 1.1b code and at the nightly version and it seems that this
 functionality has been removed, although the documentation says the contrary.

 It seems to me that the setMultipartClass method in  ControllerConfig, which is
 currently:

 public void setMultipartClass(String multipartClass) {
 if (configured) {
 throw new IllegalStateException(Configuration is frozen);
 }
 this.multipartClass = multipartClass;
 }

 should actually be:

 public void setMultipartClass(String multipartClass) {
 if (configured) {
 throw new IllegalStateException(Configuration is frozen);
 }
if ((String multipartClass != null) and none.equals(multipartClass)) {
 this.multipartClass = null;
   } else {
 this.multipartClass = multipartClass;
   }
 }

 Has anybody encountered the same problem?

 Thanks,

 -Vincent.

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


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




Re: Bean Validation

2002-04-08 Thread David M. Karr

 Kevin == Kevin Gibbs [EMAIL PROTECTED] writes:

Kevin Hi everyone - first time posting, please be gentle with me!
Kevin Scenario:
Kevin ===

Kevin My ActionForm has *very* little validation in it, this has been left to the 
Kevin storage layer.

Kevin How can I return to the input form from the Action class, and leave the 
Kevin inputted data on the screen i.e. Force a form validate() failure?

Kevin If I return new ActionForward(a_Mapping.getInputForm());, the inputted 
data 
Kevin does not appear on the screen.

Build an ActionErrors object, with one or more errors in it.  Send it to the
Action.saveErrors() method.

After that, assuming your input attribute is properly set in the Action
definition, then you can return new ActionForward(mapping.getInput());

-- 
===
David M. Karr  ; Java/J2EE/XML/Unix/C++
[EMAIL PROTECTED]


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




Re: Disabling Struts multipart request handling (1.1b) [Bug?]

2002-04-08 Thread Marcelo Vanzin

Vincent Aumont wrote:
 I need to disable the Struts multipart request handling  because I want to use my
 own handler that does not  the Struts interface. It seems like we lost this
 functionality when the multipartClass property was moved out of the ActionServlet
 class.

The config options you had in the ActionServlet declaration have been 
moved to struts-config.xml, most of them inside the container element.

I don't think there is documentation for it yet, but the comments in the 
struts-config 1.1 DTD can help.

-- 
[]'s
Marcelo Vanzin
Touch Tecnologia
[EMAIL PROTECTED]
Life is too short to drink cheap beer


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




Re: Disabling Struts multipart request handling (1.1b) [Bug?]

2002-04-08 Thread Marcelo Vanzin

Marcelo Vanzin wrote:
 The config options you had in the ActionServlet declaration have 
 been moved to struts-config.xml, most of them inside the container 
 element.

Sorry, that would be controller element.


-- 
[]'s
Marcelo Vanzin
Touch Tecnologia
[EMAIL PROTECTED]
Life is too short to drink cheap beer


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




Re: JavaPro Magazine

2002-04-08 Thread Frederico Schuh

Anyone knows how to get a foreign subscription of this
magazine?
I've been trying to contact its distributer, Fawcette,
but they never answered any of my emails...
Do they ever answer e-mails?
I really wanted to get a subscription...

 --- Peter Pilgrim [EMAIL PROTECTED] escreveu:  
 I got this copy, and I think, it's great.
 --
 Peter Pilgrim   ++44
 (0)207-545-9923
 
  Swamped
 under electronic mails
 
 
  Message
 History 
 
 
 From:  Galbreath, Mark [EMAIL PROTECTED] on
 06/04/2002 07:49 EST
 
 Please respond to Struts Users Mailing List
 [EMAIL PROTECTED]
 
 To:Struts (E-mail)
 [EMAIL PROTECTED]
 cc:
 Subject:JavaPro Magazine
 
 
 Struts got the cover story for the April edition.
 
 Mark
 
 
 
 
 
 
 --
 
 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 unauthorized copying, disclosure or
 distribution of the material in this e-mail is
 strictly forbidden.
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
  

=

Frederico Ferro Schuh
[EMAIL PROTECTED]
ICQ: 20486081

___
Yahoo! Empregos
O trabalho dos seus sonhos pode estar aqui. Cadastre-se hoje mesmo no Yahoo! Empregos 
e tenha acesso a milhares de vagas abertas!
http://br.empregos.yahoo.com/

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




Re: Disabling Struts multipart request handling (1.1b) [Bug?]

2002-04-08 Thread Vincent Aumont

  The config options you had in the ActionServlet declaration have
  been moved to struts-config.xml, most of them inside the container
  element.

 Sorry, that would be controller element.

You're right, I can define a handler in the controller element but there is no
way to specify that I want to bypass all struts handlers.
I expected that setting this property to none would do the trick, as it was the
case for the ActionServlet parameter. I think that the person who changed teh
code omitted that feature.

-Vincent.



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




Readonly text

2002-04-08 Thread Bhaskar Gopalan

Hi,
I'm using STRUTS 1.4 but the api doesn't seem to support
the readonly=true attrib of html:text.

Any pointers?

Thnx,
-GB

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




App hung on action

2002-04-08 Thread Thinh Doan

We have 2 webapps under the same tomcat setup.  One app hung trying to logon
and the last record in the log file indicated that it's looking for Action
instance for class com.twjconsulting.app1.actions.LogonAction (the corect
class).  But apparently could not find and got lost somehow.

Would you please give me hints under what conditions the action controller
would be in this state? I have to restart tomcat under this situation to get
the apps to run again.

Appreciate your time and help.

Thinh

localhost_log.2002-04-07.txt
...
2002-04-07 22:36:59 action: Processing a POST for /jsp/logon
2002-04-07 22:36:59 action:  Looking for ActionForm bean under attribute
'logonForm'
2002-04-07 22:36:59 action:  Creating new ActionForm instance of class
'com.twjconsulting.app1.forms.LogonForm'
2002-04-07 22:36:59 action:  Storing instance under attribute 'logonForm' in
scope 'request'
2002-04-07 22:36:59 action:  Populating bean properties from this request
2002-04-07 22:36:59 action:  Validating input form properties
2002-04-07 22:36:59 action:   No errors detected, accepting input
2002-04-07 22:36:59 action:  Looking for Action instance for class
com.twjconsulting.app1.actions.LogonAction
(this was last line in log)

My configuration:

Struts 1.0.2
Tomcat 4.0.2 (also served as web server for now)
Java Runtime Env 1.3.1
RedHat Linux 6.2

Top memory ~ 105M for the 2 apps under this tomcat.


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




tiles question

2002-04-08 Thread eschneider

Hi,

Is it possible to call a tiles layout definition from an action tag in my
struts-config.xml file?

Here's the tag in my struts-config.xml:

actionpath=/resources
   forward=site.resources.page/

Here's the definition in my tiles-defs.xml:

definition name=site.resources.page extends=site.mainLayout 
  put name=body   value=/tiles/resources.jsp /
/definition

When I try to invoke this action forward I get an exception:

java.lang.IllegalArgumentException: Path site.services.page does not start
with a / character 

The forward tag is expecting a value like '/resources.jsp', not a tiles
layout.  Is what I'm trying to do possible?

Thanks,
Eric.


**
This message, including any attachments, contains confidential information intended 
for a specific individual and purpose, and is protected by law.  If you are not the 
intended recipient, please contact sender immediately by reply e-mail and destroy all 
copies.  You are hereby notified that any disclosure, copying, or distribution of this 
message, or the taking of any action based on it, is strictly prohibited.
TIAA-CREF
**

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




custom validation with Validator?

2002-04-08 Thread Rick Reumann

I'm working on using David's Validation framework with an application.
For now I'm just dealing with the server side validation. What I need
to do now is also look at some form elements and based on which ones
are filled out I need to make sure some other elements also are
completed. Obviously there can't be a default validation for these
different scenarios so I know I need to do some custom validation. I
want the results to return with the rest of the validation errors that
could occur. Where do I begin coding this validation? I was a bit
confused by the documentation overview on the validation homepage near
the end where I presume it gets into this some with pluggable
validators.  Thanks for any help.

-- 

Rick
mailto:[EMAIL PROTECTED]

I wish I had a dollar for every time I spent a dollar, because then,
Yahoo!, I'd have all my money back. 
  -Jack Handey


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




RE: server side caching in struts

2002-04-08 Thread Sandra Cann

Radhika,

One way is to use Expresso which has Caching built in for Struts.

Sandra

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, April 07, 2002 1:23 AM
 To: [EMAIL PROTECTED]
 Subject: server side caching in struts
 
 
 hi,
   I have to implement server-side caching using Struts. 
 How am i suppose to go abt it ?
   One way of doing it is to use EJBs as the backend which 
 will be called from the action class. Cld u plzzz tell me the 
 various ways in doing it ??? Im suppose to make an analysis of 
 all such diff. methods.
 
 Eagerly waiting for ur help
 
 Regards,
 Radhika 
 
 
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




html:link tag question

2002-04-08 Thread Parmar, Deepak

I would like to display href from my object.

html:link href=???
 bean:write name=myObject property=item/
/html:link

MyObject has item and Link property and I would like to put Link value at
??? in above example.

Deepak


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




Re: NoClassDefFoundError - Weblogic 6.1

2002-04-08 Thread Chuck Cavaness

I had this problem recently with our WL installation. I can't remember the 
exact cause. Obviously it's all about class loaders. The difference between 
the parent class loader and the one that is used to load the web app. One 
thing to check, see if you have the WEB-INF classes directory in the system 
classpath. If it is, try taking it out and see what happens. You're right 
of course, the struts.jar should be in the lib directory of the web app.

Chuck

At 09:55 PM 4/8/2002 +0530, you wrote:
Hi all,

The error is:

java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm
The environment is:
Weblogic 6.1 SP1
WIN NT 2000
Struts.jar is in the lib directory of our application.
The JSP includes other JSPs which are included using the directive. I have 
traced the error to an included JSP which is using the html: form tag. 
This error is being thrown by this tag library as it is not finding the 
above class.
The error goes away by keeping struts.jar in the classpath of Weblogic 
startup. Of course this is not the solution.
Any clues?
Rgs,
Vikram


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


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




RE: html:link tag question

2002-04-08 Thread Joseph Barefoot

Try this:

bean:define id=linkParam name=myObject property=Link
type=java.lang.String/

html:link href=%=linkParam% 
 bean:write name=myObject property=item/
/html:link


The bean:define tag defines a page scope bean so that it can be accessed
in JSP expressions.  I don't think you need the type attribute, but I put
it anyway for clarity.

cheers,

Joe Barefoot



-Original Message-
From: Parmar, Deepak [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 08, 2002 4:15 PM
To: Struts Users Mailing List
Subject: html:link tag question


I would like to display href from my object.

html:link href=???
 bean:write name=myObject property=item/
/html:link

MyObject has item and Link property and I would like to put Link value at
??? in above example.

Deepak


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


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




Re: html:link tag question

2002-04-08 Thread Slava_L

wut abt this:
a href='bean:write name=myObj property=link/'bean:write
name=myObj property=item/ /a
?
(i often use like this way )

- Original Message -
From: Parmar, Deepak [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, April 09, 2002 8:15 AM
Subject: html:link tag question


 I would like to display href from my object.

 html:link href=???
  bean:write name=myObject property=item/
 /html:link

 MyObject has item and Link property and I would like to put Link value at
 ??? in above example.

 Deepak


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




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




Re: NoClassDefFoundError - Weblogic 6.1

2002-04-08 Thread Max Cooper

I noticed something very strange in WL 6.1 SP2 -- it will not load jars that
have more than one dot in the name. I had to change our
jakarta-regexp-1.2.jar to jakarta-regexp-1_2.jar (got rid of the . in 1.2)
to get it to load correctly. If your struts jar is called struts-1.1.jar or
something like that, it might not load correctly.

-Max

- Original Message -
From: Chuck Cavaness [EMAIL PROTECTED]

 I had this problem recently with our WL installation. I can't remember the
 exact cause. Obviously it's all about class loaders. The difference
between
 the parent class loader and the one that is used to load the web app. One
 thing to check, see if you have the WEB-INF classes directory in the
system
 classpath. If it is, try taking it out and see what happens. You're right
 of course, the struts.jar should be in the lib directory of the web app.

 Chuck

 At 09:55 PM 4/8/2002 +0530, you wrote:
 Hi all,
 
 The error is:
 
 java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm
 The environment is:
 Weblogic 6.1 SP1
 WIN NT 2000
 Struts.jar is in the lib directory of our application.
 The JSP includes other JSPs which are included using the directive. I
have
 traced the error to an included JSP which is using the html: form tag.
 This error is being thrown by this tag library as it is not finding the
 above class.
 The error goes away by keeping struts.jar in the classpath of Weblogic
 startup. Of course this is not the solution.
 Any clues?
 Rgs,
 Vikram



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




Internal page link question

2002-04-08 Thread Joey Trevino

Hi all,

   I'm trying to use a simple anchor tag to reference
a point within the same JSP:

   A HREF=#top CLASS=redlinkBack to Top/A

But when Struts gets a hold of it, it inserts the JSP
page name into the link.  So it redraws the page
instead of just going to the internal link.  Is there
some way to keep Struts from doing this?


Thanks,
Joey

__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

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




Re: Internal page link question

2002-04-08 Thread David M. Karr

 Joey == Joey Trevino [EMAIL PROTECTED] writes:

Joey Hi all,
JoeyI'm trying to use a simple anchor tag to reference
Joey a point within the same JSP:

JoeyA HREF=#top CLASS=redlinkBack to Top/A

Joey But when Struts gets a hold of it, it inserts the JSP
Joey page name into the link.  So it redraws the page
Joey instead of just going to the internal link.  Is there
Joey some way to keep Struts from doing this?

I might be misunderstanding something here, but what do you mean when Struts
get a hold of it?  Do you mean when you change this to an html:link element?
If so, why are you doing that?  If your anchor is to a page-internal link, I
don't see much of a reason to use Struts for this.  Just use exactly what
you've written here, an ordinary a element.

-- 
===
David M. Karr  ; Java/J2EE/XML/Unix/C++
[EMAIL PROTECTED]


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