Re: help wanted : lock mechanism in JSP/servlet

2001-06-20 Thread David Winterfeldt

You set up a listener for a session to end and then do
something.  I did this in Tomcat 3.1, but there was a
bug and if the user just closed the browser the event
didn't occur (if they clicked on my logout action,
then it worked (session.invalidate())).  So I also
made a thread that checked every so often and after a
certain amount of time I removed the lock.

David

--- Tony Riyanto [EMAIL PROTECTED] wrote:
 Hi there,
 
 I want to implement an applicatif lock mechanism.
 In my web-site, I have a set of pages that can
 modify some global informations (let's say for
 example the list of administrators).
 I want to refuse access to these modification pages
 when somebody is currently modifying this
 information.
 
 I think of creating a Singleton class that
 implements a lock variable. But my problem is, how
 we can prevent the case where a person access to
 these pages (thus positioning the lock), but forget
 to get out of these pages properly (for example when
 he kills the browser).
 
 Has anybody been confronted to this problem ?
 Is there any mechanism in JSP/Servlet technology to
 capture the end of a user session and do some action
 ?
 
 Thanks in advance for your help,
 
 tony riyanto
 [EMAIL PROTECTED]
 
 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



Re: validation in the form vs. validation in the business domain object

2001-06-20 Thread David Winterfeldt

Someone I know extended Exception and they throw
nested exceptions that eventually are passed back to
the Struts layer and then an ActionError is
constructed for each exception.  Something like that
seems like a clean way to keep things separated.  I
did something similiar on a project with a Swing and
EJBs.

David

--- James Hoffa [EMAIL PROTECTED] wrote:
 What ideas do people have about where is the best
 place to perform validation of items that come back
 from ActionForms?
 
 Example: check to see if the user's choice of
 motherboard, memory, and cpu are compatible with
 each
 other.
 
 Following the struts example, it seems like the
 validate() method in an ActionForm is used only for
 light validation (i.e. checking to see if something
 was left blank, or checking for alpha and numeric
 chars). This approach seems correct to me, since
 there
 should not be business logic inside the ActionForm. 
 
 That leaves most of the work to the business domain
 object since any nontrivial application will not
 have
 business logic in the Action class either.
 
 The business domain object, in many cases, will be
 accessed remotely from the Action class.
 
 Does it make sense for the business domain object to
 return an ActionErrors object(it is serializable)? 
 I
 am not 100% comfortable yet with the idea of
 importing
 ActionErrors into the business object since it
 couples
 it to struts to a certain extent, and it could
 potentially be large.
 
 Is the only alternative to send back a list of
 generic
 error codes from the business object that each map
 to
 an ActionError and the Action class could add the
 ActionErrors? (i think i'd  rather import
 actionerrors
 in this case) 
 
 What are some of the best practices people have
 found to work for this problem?
 
 Craig and ALL Struts creators:  Struts is really
 great. Thank you for all of your hard work. It is
 definitely something to be proud of.
 
 __
 Do You Yahoo!?
 Get personalized email addresses from Yahoo! Mail
 http://personal.mail.yahoo.com/


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



total silly question

2001-06-20 Thread Louise Van Der [EMAIL PROTECTED]

Hi

I am totally new to struts and am lookign for a library of all the HTML tags

eg
html:link

does any one have a url that can take me to a page that has all these tags
and explanations pls?

thank you
Louise


**

The information in this e-mail is confidential and is legally privileged.
It is intended solely for the addressee.  If this email is not intended for
you, you cannot copy, distribute, or disclose the included information
to any-one

If you are not the intended recipient please delete the mail. Whilst
all reasonable steps have been taken to ensure the accuracy and
integrity of all data transmitted electronically, no liability is accepted
if the data, for whatever reason, is corrupt or does not reach it's
intended destination.
All business is undertaken, subject to our standard trading conditions
which are available on request.

***



RE: total silly question

2001-06-20 Thread Geddes, Mark (ANTS)

http://jakarta.apache.org/struts/struts-html.html

-Original Message-
From: Louise Van Der Bijl@i-Commerce
[mailto:[EMAIL PROTECTED]]
Sent: 20 June 2001 08:01
To: '[EMAIL PROTECTED]'
Subject: total silly question


Hi

I am totally new to struts and am lookign for a library of all the HTML tags

eg
html:link

does any one have a url that can take me to a page that has all these tags
and explanations pls?

thank you
Louise


**

The information in this e-mail is confidential and is legally privileged.
It is intended solely for the addressee.  If this email is not intended for
you, you cannot copy, distribute, or disclose the included information
to any-one

If you are not the intended recipient please delete the mail. Whilst
all reasonable steps have been taken to ensure the accuracy and
integrity of all data transmitted electronically, no liability is accepted
if the data, for whatever reason, is corrupt or does not reach it's
intended destination.
All business is undertaken, subject to our standard trading conditions
which are available on request.

***



***
This email message contains confidential information for the above addressee only.  If 
you are not the intended addressee you must not disclose or use the information in any 
manner whatsoever.

Any opinion or views contained in this email message are those of the sender, do not 
represent those of the Company in any way and reliance should not be placed upon its 
contents.

Unless otherwise stated this email message is not intended to be contractually 
binding.  Where an Agreement exists between our respective companies and there is 
conflict between the contents of this email message and the Agreement then the terms 
of that Agreement shall prevail.

Abbey National Treasury Services plc. Registered in England. Registered Office:  Abbey 
House, Baker Street, London NW1 6XL.  Company Registration No: 2338548.  Regulated by 
the SFA
***



Re: Extending ActionServlet

2001-06-20 Thread Thomas Siedschlag

Hi,

to have multiple struts-config files were nice. But you must take care in
defining actions, because multiple config files were merged to only one file.

To avoid this, is there a way to have more than one ActionServlet with fully
seperated struts-config files in the same web application context?

Thomas

 
 
 On Tue, 19 Jun 2001, Dan Miser wrote:
 
  Craig,
  
  There are a few problems with that approach:
  
  1. If you just have multiple struts-config elements, you end up not
 having
  a root element. That will cause the Digester to throw an exception when
  starting up.
  
 
 Argh, I knew there had to be some fly in the ointment ...
 
  2. So I added an element named root and put multiple struts-config
  elements under the root. The problem then becomes the code in the
  ActionServlet is looking for struts-config to be the root element.
  
  3. Next, I extended the ActionServlet and overrode the initDigester
 method,
  changing the calls in the digester to reference */struts-config
 everywhere.
  That would work, but AddDataSourceRule is a private class, so I had to
 copy
  that from ActionServlet.
  
  After changing web.xml to use my new ActionServlet, I was able to get a
  module approach with a reorganized struts-config.xml from
 struts-example
  (I broke it up into global, login, registration, subscription, and
 admin).
  Worked beautifully. Of course, the struts-config.dtd would need to
 reflect
  this rework too.
 
 That seems like an approach worth considering, since it doesn't break old
 struts-config.xml files,
 
  --
  Dan Miser
  http://www.distribucon.com
  
 
 Craig
 
 
  - Original Message -
  From: Craig R. McClanahan [EMAIL PROTECTED]
   I haven't actually tried this, but conceptually it should work --
 could
   someone please try it and confirm to the list?
  
   The basic thought is that a single struts-config.xml file can actually
   have more than one struts-config section in it.  Given, this you can
   logically divide your overall configuration into modules or
 whatever,
   and have each development group maintain their own stuff in their own
   struts-config.xml file.  Then, when you deploy the app, part of the
   process would be simply combining all the struts-config.xml files into
 a
   single one (simple concatenation).
  
   It's worth a shot ...
  
   Craig
  
  
  
  
 

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net

--
GMX Tipp:

Machen Sie Ihr Hobby zu Geld bei unserem Partner 11!
http://profiseller.de/info/index.php3?ac=OM.PS.PS003K00596T0409a




RE: logic tags

2001-06-20 Thread Jon.Ridgway

Hi Pratima,

I guess the simple answer is that in JSP getters and setters should handle
strings only. So the logic tags expect strings.

There is no if/else tag, there are plans for if/else and switch in the 1.1
to do list (see http://jakarta.apache.org/struts/todo-1.1.html).


Jon.

-Original Message-
From: Gogineni, Pratima [mailto:[EMAIL PROTECTED]] 
Sent: 19 June 2001 23:00
To: '[EMAIL PROTECTED]'
Subject: logic tags


Hi,

I am trying to see if there is a less clumsy way of doing the following ...
I have a boolean bean property - I was trying to use one of the logic tags
to test if this value is true.
my question is why do I need to supply a value attribute even for bean
properties that are boolean? 

I guess I am looking for an logic:if tag.
Or have I not read the manual/guide properly  missed something?

Would the fact that there is no tag - that assumes a bean property is
boolean mean that - having boolean properties is discouraged/restricted to
using in special cases? 

for example I have to do something like this:
logic:equal name=myBean property=isEditEnabled
scope=session value=true
!--- some code here --
  /logic:equal

I was hoping to do something like:
logic:if name=myBean property=isEditEnabled
scope=session
!--- some code here --
  /logic:equal

Thanks
Pratima



newbie question: Missing message for key index.title error

2001-06-20 Thread O'Neill, John H

Hi Everyone,

Could anyone please tell me why I am getting the following error message
when trying to run the 'blank' example that comes with Struts?

Cheers,
John


Error 500
An error has occured while processing
request:http://localhost:8080/blank/index.jsp
Message: Server caught unhandled exception from servlet [jsp]: Missing
message for key index.title

Target Servlet: jsp
StackTrace: 

Root Error-1: Missing message for key index.title
javax.servlet.jsp.JspException: Missing message for key index.title
java.lang.Throwable(java.lang.String) java.lang.Exception(java.lang.String)
javax.servlet.jsp.JspException(java.lang.String) int
org.apache.struts.taglib.bean.MessageTag.doStartTag() void
blank._index_xjsp_jspsrc_910258570._jspService(javax.servlet.http.HttpServle
tRequest, javax.servlet.http.HttpServletResponse) void
org.apache.jasper.runtime.HttpJspBase.service(javax.servlet.http.HttpServlet
Request, javax.servlet.http.HttpServletResponse) void
javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) void
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(javax.servlet
.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, boolean)
void
org.apache.jasper.runtime.JspServlet.serviceJspFile(javax.servlet.http.HttpS
ervletRequest, javax.servlet.http.HttpServletResponse, java.lang.String,
java.lang.Throwable, boolean) void
org.apache.jasper.runtime.JspServlet.service(javax.servlet.http.HttpServletR
equest, javax.servlet.http.HttpServletResponse) void
javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) void
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(javax.servlet.
ServletRequest, javax.servlet.ServletResponse) void
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(javax.servlet.
ServletRequest, javax.servlet.ServletResponse) void
com.ibm.servlet.engine.webapp.IdleServletState.service(com.ibm.servlet.engin
e.webapp.StrictLifecycleServlet, javax.servlet.ServletRequest,
javax.servlet.ServletResponse) void
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(javax.servlet.S
ervletRequest, javax.servlet.ServletResponse) void
com.ibm.servlet.engine.webapp.ServletInstance.service(javax.servlet.ServletR
equest, javax.servlet.ServletResponse,
com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent) void
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(com.ibm.se
rvlet.engine.webapp.ServletInstanceReference, javax.servlet.ServletRequest,
javax.servlet.ServletResponse,
com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent) void
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(javax.servle
t.ServletRequest, javax.servlet.ServletResponse,
com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent) void
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(c
om.ibm.servlet.engine.webapp.WebAppRequest,
javax.servlet.http.HttpServletResponse, boolean) void
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(javax.servlet
.ServletRequest, javax.servlet.ServletResponse, boolean) void
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(javax.servlet.
ServletRequest, javax.servlet.ServletResponse) void
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(java.lang.Obje
ct) void
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(java.lan
g.Object) void
com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(java.lan
g.Object) void
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(java.lang.S
tring, com.ibm.servlet.engine.srp.ISRPConnection) void
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(com.ibm.ser
vlet.engine.oselistener.api.IOSEConnection) void
com.ibm.servlet.engine.http_transport.HttpTransportHandler.handleConnection(
java.net.Socket) void
com.ibm.servlet.engine.http_transport.HttpTransportHandler.run() void
java.lang.Thread.run() 

Wrapped Error-2: Missing message for key index.title
javax.servlet.ServletException: Missing message for key index.title
java.lang.Throwable(java.lang.String) java.lang.Exception(java.lang.String)
javax.servlet.ServletException(java.lang.Throwable) void
org.apache.jasper.runtime.PageContextImpl.handlePageException(java.lang.Exce
ption) void
blank._index_xjsp_jspsrc_910258570._jspService(javax.servlet.http.HttpServle
tRequest, javax.servlet.http.HttpServletResponse) void
org.apache.jasper.runtime.HttpJspBase.service(javax.servlet.http.HttpServlet
Request, javax.servlet.http.HttpServletResponse) void
javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) void
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(javax.servlet
.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, boolean)
void
org.apache.jasper.runtime.JspServlet.serviceJspFile(javax.servlet.http.HttpS
ervletRequest, javax.servlet.http.HttpServletResponse, 

Displaying unicode hexadecimal character references with Struts

2001-06-20 Thread Hartmut Bernecker

Hello,

HTML 4.0 allows to display unicode characters by using Decimal
(#123456;) or Hexadecimal (#x00FE;) Character References.
Now, if a bean property contains some String with character references
(e. g. new String(#12456;#12521;#12540;);) then I expect a correct
output when displaying that bean-properties with a JSP-page.
But what happens? - The output to the browser is not
#12456;#12521;#12540; (which would be displayed correct), but
amp;#12456;amp;#12521;amp;#12540; which is displayed as
#12456;#12521;#12540; - what is not nice!

Why that behavior?
How to switch off that mechanism?

I appreciate any hint!

Cheers
Hartmut



RE: Struts setup Q...

2001-06-20 Thread Jon.Ridgway

Hi John,

Did you ever get to the bottom of this one?

Jon.

-Original Message-
From: O'Neill, John H [mailto:JohnH.O'[EMAIL PROTECTED]] 
Sent: 19 June 2001 13:57
To: [EMAIL PROTECTED]
Subject: Struts setup Q...

Hi,

Could anyone tell me why I am getting the following error message. It occurs
when I try to access any Jsp page. I have Struts1.0b-3 set up and running in
the Websphere Test Environment within Visual Age for Java 3.53. The struts
'ActionServlet' servlet seems to get instantiated correctly in my
environment. Is this a problem with attributes I need to provide to the
servlet in one of the config files?

Cheers,
John


Error 500
An error has occured while processing
request:http://localhost:8080/blank/index.jsp
Message: Directive: Invalid attribute, prefix

Target Servlet: jsp
StackTrace: 

Root Error-1: Directive: Invalid attribute, prefix
com.ibm.servlet.engine.webapp.WebAppErrorReport: Directive: Invalid
attribute, prefix java.lang.Throwable(java.lang.String)
java.lang.Exception(java.lang.String)
javax.servlet.ServletException(java.lang.String)
com.ibm.websphere.servlet.error.ServletErrorReport(java.lang.String)
com.ibm.servlet.engine.webapp.WebAppErrorReport(java.lang.String) void
com.ibm.servlet.engine.webapp.WebAppDispatcherResponse.sendError(int,
java.lang.String) void
com.sun.jsp.runtime.JspServlet.unknownException(javax.servlet.http.HttpServl
etResponse, java.lang.Throwable) void
com.sun.jsp.runtime.JspServlet.service(javax.servlet.http.HttpServletRequest
, javax.servlet.http.HttpServletResponse) void
javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) void
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(javax.servlet.
ServletRequest, javax.servlet.ServletResponse) void
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(javax.servlet.
ServletRequest, javax.servlet.ServletResponse) void
com.ibm.servlet.engine.webapp.IdleServletState.service(com.ibm.servlet.engin
e.webapp.StrictLifecycleServlet, javax.servlet.ServletRequest,
javax.servlet.ServletResponse) void
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(javax.servlet.S
ervletRequest, javax.servlet.ServletResponse) void
com.ibm.servlet.engine.webapp.ServletInstance.service(javax.servlet.ServletR
equest, javax.servlet.ServletResponse,
com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent) void
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(com.ibm.se
rvlet.engine.webapp.ServletInstanceReference, javax.servlet.ServletRequest,
javax.servlet.ServletResponse,
com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent) void
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(javax.servle
t.ServletRequest, javax.servlet.ServletResponse,
com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent) void
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(c
om.ibm.servlet.engine.webapp.WebAppRequest,
javax.servlet.http.HttpServletResponse, boolean) void
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(javax.servlet
.ServletRequest, javax.servlet.ServletResponse, boolean) void
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(javax.servlet.
ServletRequest, javax.servlet.ServletResponse) void
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(java.lang.Obje
ct) void
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(java.lan
g.Object) void
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(java.lang.S
tring, com.ibm.servlet.engine.srp.ISRPConnection) void
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(com.ibm.ser
vlet.engine.oselistener.api.IOSEConnection) void
com.ibm.servlet.engine.http_transport.HttpTransportHandler.handleConnection(
java.net.Socket) void
com.ibm.servlet.engine.http_transport.HttpTransportHandler.run() void
java.lang.Thread.run() 

-
John O' Neill
Fidelity Investments (FISC IRL)
Phone : (W) 00 353 1 6141258
(M) 00 353 86 6774844
email : johnh.o'[EMAIL PROTECTED]
-



RE: struts-stub

2001-06-20 Thread Jon.Ridgway








Hi Jaskirat,



Did you ever get to the bottom of this? Do
you have the initial error messages from your tomcat log generated when the web
app is deployed into the container?



Jon.



-Original Message-
From: jaskirat
[mailto:[EMAIL PROTECTED]] 
Sent: 20 June 2001 00:20
To: [EMAIL PROTECTED]
Subject: struts-stub



Hello struts gurus,
I started with the struts tutorial and could not really start off.

I copied
struts-stub.war (from StrutbyStrut.htm tutorial ) in my webapps
directory.
When I started tomcat , it gave lot of error messages. 
Then I tried http://localhost:8080/struts-stub
and tomcat sent some error messages to the browser which I have copied below.
Can some one give any clues to what I am doing wrong.

I using Windows 98 and tomcat 3.2, jdk1.3 and java2.
TIA

Jaskirat

Error:
500
Location: /struts-stub/index.jsp
Internal Servlet Error:
javax.servlet.ServletException:
Cannot find global ActionForward for name welcome
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459)
at
_0002findex_0002ejspindex_jsp_3._jspService(_0002findex_0002ejspindex_jsp_3.java:102)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at
org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at
java.lang.Thread.run(Thread.java:484)
Root cause: 
javax.servlet.jsp.JspException:
Cannot find global ActionForward for name welcome
at
org.apache.struts.taglib.logic.ForwardTag.doEndTag(ForwardTag.java:148)
at
_0002findex_0002ejspindex_jsp_3._jspService(_0002findex_0002ejspindex_jsp_3.java:89)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at
org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at
java.lang.Thread.run(Thread.java:484)








Re: newbie question: Missing message for key index.title error

2001-06-20 Thread Oleg V Alexeev

Hello John,

You must place string for key index.title to the your resources.
Name for the resource bundle is in parameter application in servlet
description for ActionServlet in web.xml.

Wednesday, June 20, 2001, 12:55:40 PM, you wrote:

ONJH Hi Everyone,

ONJH Could anyone please tell me why I am getting the following error message
ONJH when trying to run the 'blank' example that comes with Struts?

ONJH Cheers,
ONJH John


ONJH Error 500
ONJH An error has occured while processing
ONJH request:http://localhost:8080/blank/index.jsp
ONJH Message: Server caught unhandled exception from servlet [jsp]: Missing
ONJH message for key index.title

ONJH Target Servlet: jsp
ONJH StackTrace: 

ONJH Root Error-1: Missing message for key index.title
ONJH javax.servlet.jsp.JspException: Missing message for key index.title
ONJH java.lang.Throwable(java.lang.String) java.lang.Exception(java.lang.String)
ONJH javax.servlet.jsp.JspException(java.lang.String) int
ONJH org.apache.struts.taglib.bean.MessageTag.doStartTag() void
ONJH blank._index_xjsp_jspsrc_910258570._jspService(javax.servlet.http.HttpServle
ONJH tRequest, javax.servlet.http.HttpServletResponse) void
ONJH org.apache.jasper.runtime.HttpJspBase.service(javax.servlet.http.HttpServlet
ONJH Request, javax.servlet.http.HttpServletResponse) void
ONJH javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
ONJH javax.servlet.ServletResponse) void
ONJH org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(javax.servlet
ONJH .http.HttpServletRequest, javax.servlet.http.HttpServletResponse, boolean)
ONJH void
ONJH org.apache.jasper.runtime.JspServlet.serviceJspFile(javax.servlet.http.HttpS
ONJH ervletRequest, javax.servlet.http.HttpServletResponse, java.lang.String,
ONJH java.lang.Throwable, boolean) void
ONJH org.apache.jasper.runtime.JspServlet.service(javax.servlet.http.HttpServletR
ONJH equest, javax.servlet.http.HttpServletResponse) void
ONJH javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
ONJH javax.servlet.ServletResponse) void
ONJH com.ibm.servlet.engine.webapp.StrictServletInstance.doService(javax.servlet.
ONJH ServletRequest, javax.servlet.ServletResponse) void
ONJH com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(javax.servlet.
ONJH ServletRequest, javax.servlet.ServletResponse) void
ONJH com.ibm.servlet.engine.webapp.IdleServletState.service(com.ibm.servlet.engin
ONJH e.webapp.StrictLifecycleServlet, javax.servlet.ServletRequest,
ONJH javax.servlet.ServletResponse) void
ONJH com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(javax.servlet.S
ONJH ervletRequest, javax.servlet.ServletResponse) void
ONJH com.ibm.servlet.engine.webapp.ServletInstance.service(javax.servlet.ServletR
ONJH equest, javax.servlet.ServletResponse,
ONJH com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent) void
ONJH com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(com.ibm.se
ONJH rvlet.engine.webapp.ServletInstanceReference, javax.servlet.ServletRequest,
ONJH javax.servlet.ServletResponse,
ONJH com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent) void
ONJH com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(javax.servle
ONJH t.ServletRequest, javax.servlet.ServletResponse,
ONJH com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent) void
ONJH com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(c
ONJH om.ibm.servlet.engine.webapp.WebAppRequest,
ONJH javax.servlet.http.HttpServletResponse, boolean) void
ONJH com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(javax.servlet
ONJH .ServletRequest, javax.servlet.ServletResponse, boolean) void
ONJH com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(javax.servlet.
ONJH ServletRequest, javax.servlet.ServletResponse) void
ONJH com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(java.lang.Obje
ONJH ct) void
ONJH com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(java.lan
ONJH g.Object) void
ONJH com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(java.lan
ONJH g.Object) void
ONJH com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(java.lang.S
ONJH tring, com.ibm.servlet.engine.srp.ISRPConnection) void
ONJH com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(com.ibm.ser
ONJH vlet.engine.oselistener.api.IOSEConnection) void
ONJH com.ibm.servlet.engine.http_transport.HttpTransportHandler.handleConnection(
ONJH java.net.Socket) void
ONJH com.ibm.servlet.engine.http_transport.HttpTransportHandler.run() void
ONJH java.lang.Thread.run() 

ONJH Wrapped Error-2: Missing message for key index.title
ONJH javax.servlet.ServletException: Missing message for key index.title
ONJH java.lang.Throwable(java.lang.String) java.lang.Exception(java.lang.String)
ONJH javax.servlet.ServletException(java.lang.Throwable) void
ONJH org.apache.jasper.runtime.PageContextImpl.handlePageException(java.lang.Exce
ONJH ption) void
ONJH 

RE: VAJ 3.5.3 Struts

2001-06-20 Thread Jon.Ridgway

Hi Shipra,

Did you ever get to the bottom of this?

Jon.

-Original Message-
From: David Janovy [mailto:[EMAIL PROTECTED]] 
Sent: 18 June 2001 23:54
To: [EMAIL PROTECTED]
Subject: RE: VAJ 3.5.3  Struts

Did you import the struts source code and the associated resources? This
is my directory structure for the struts code with relevant resources
shown:
[d:IBMVJava\ide\project_resources]
  [Struts]
[META-INF] --taglib.tld
  [tlds]   --struts-bean.tld
   --struts-form.tld
   --struts-html.tld
   --struts-logic.tld
   --struts-template.tld
[org]
  [apache]
[struts]
  [action]
  [actions]
  [digester]
  [resources] --struts-config_1_0.dtd
  --web-app_2_2.dtd
  --web-app-2_3.dtd
  [taglib]
[bean]
[html]
[logic]
[template]
  [util]

With the resources imported with the source code, I did not have to have
them in the WEB-INF folder under the WTE environment.

David Janovy

-Original Message-
From: Jain, Shipra [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 18, 2001 2:23 PM
To: '[EMAIL PROTECTED]'
Subject: VAJ 3.5.3  Struts


Hi

I am trying to run Struts example( IBM's employeelist example) in VAJ's
Test
environment. I am using VAJ 3.5.3 and I followed the instructions found
at
IBM's VADD site.
http://www7.software.ibm.com/vad.nsf/Data/Document2558?OpenDocumentSubM
ast=
1
But's its still not working. At initialization of ActionServlet it
throws
following exception

[01.06.18 17:09:36:349 EDT] 254f ServletInstan A SRVE0048I: Loading
servlet:
action
[01.06.18 17:09:36:900 EDT] 254f WebGroup  A SRVE0091I: [Servlet
LOG]:
action: init
[01.06.18 17:09:37:241 EDT] 254f WebGroup  A SRVE0091I: [Servlet
LOG]:
action: null
[01.06.18 17:09:37:291 EDT] 254f WebGroup  A SRVE0091I: [Servlet
LOG]:
action: null

resolveEntity('-//Apache Software Foundation//DTD Struts Configuration
1.0//EN', 'http://localhost/struts/dtds/struts-config_1_0.dtd')
 Not registered, use system identifier
Parse Fatal Error at line 5 column -1: External entity not found:
http://localhost/struts/dtds/struts-config_1_0.dtd;.
External entity not found:
http://localhost/struts/dtds/struts-config_1_0.dtd;.
java.lang.Throwable()
java.lang.Exception()
org.xml.sax.SAXException(java.lang.String, java.lang.Exception)
org.xml.sax.SAXParseException(java.lang.String,
org.xml.sax.Locator,
java.lang.Exception)
void com.sun.xml.parser.Parser.fatal(java.lang.String,
java.lang.Object [], java.lang.Exception)
void
com.sun.xml.parser.Parser.externalParameterEntity(com.sun.xml.parser.Ext
erna
lEntity)
boolean com.sun.xml.parser.Parser.maybeDoctypeDecl()
void
com.sun.xml.parser.Parser.parseInternal(org.xml.sax.InputSource)
void com.sun.xml.parser.Parser.parse(org.xml.sax.InputSource)
void javax.xml.parsers.SAXParser.parse(org.xml.sax.InputSource,
org.xml.sax.HandlerBase)
void javax.xml.parsers.SAXParser.parse(java.io.InputStream,
org.xml.sax.HandlerBase)
java.lang.Object
org.apache.struts.digester.Digester.parse(java.io.InputStream)
void org.apache.struts.action.ActionServlet.initMapping()
void org.apache.struts.action.ActionServlet.init()
void
javax.servlet.GenericServlet.init(javax.servlet.ServletConfig)
void
com.ibm.servlet.engine.webapp.StrictServletInstance.doInit()
void
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(javax.servlet
.Ser
vletConfig)
void
com.ibm.servlet.engine.webapp.PreInitializedServletState.init(com.ibm.se
rvle
t.engine.webapp.StrictLifecycleServlet, javax.servlet.ServletConfig)
void
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init(javax.servlet.
Serv
letConfig)
void com.ibm.servlet.engine.webapp.ServletInstance.init()
void
javax.servlet.GenericServlet.init(javax.servlet.ServletConfig)
void
com.ibm.servlet.engine.webapp.ServletManager.addServlet(java.lang.String
,
javax.servlet.Servlet, java.util.Properties)
void
com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(java.lang
.Str
ing)
void
com.ibm.servlet.engine.webapp.WebAppServletManager.loadAutoLoadServlets(
)
void com.ibm.servlet.engine.webapp.WebApp.loadServletManager()
void
com.ibm.servlet.engine.webapp.WebApp.init(com.ibm.servlet.engine.config.
WebA
ppInfo, com.ibm.servlet.engine.webapp.WebAppContext)
void com.ibm.servlet.engine.srt.WebGroup.loadWebApp()
void
com.ibm.servlet.engine.srt.WebGroup.init(com.ibm.servlet.engine.ServletH
ost,
com.ibm.servlet.engine.config.WebGroupInfo)
void com.ibm.servlet.engine.ServletHost.loadWebGroups()
void
com.ibm.servlet.engine.ServletHost.init(com.ibm.servlet.engine.ServletEn
gine
, com.ibm.servlet.engine.config.ServletHostInfo)
void 

Re: validation in the form vs. validation in the business domain object

2001-06-20 Thread SRadford


That's the way I'm looking to do it.

I have a class called BuisnessException that descends from Exception. This
is thrown and then I convert it to an ActionError within Struts. I plan to
give the oppotunity to nest them at a later date.



Sean


--
Dr Sean Radford, MBBS, MSc
Senior Consultant
Agora Professional Services Ltd
[EMAIL PROTECTED]
http://www.agora.co.uk
--
Agora Professional Services is an entrepreneurial consulting firm
specialising in e-Business and innovative solutions since 1995.




   
 
David  
 
Winterfeldt   To: [EMAIL PROTECTED]   
 
dwinterfeldt@cc:  
 
yahoo.comSubject: Re: validation in the form vs. 
validation in the business domain object  
   
 
20/06/2001 
 
08:05  
 
Please respond 
 
to struts-user 
 
   
 
   
 




Someone I know extended Exception and they throw
nested exceptions that eventually are passed back to
the Struts layer and then an ActionError is
constructed for each exception.  Something like that
seems like a clean way to keep things separated.  I
did something similiar on a project with a Swing and
EJBs.

David

--- James Hoffa [EMAIL PROTECTED] wrote:
 What ideas do people have about where is the best
 place to perform validation of items that come back
 from ActionForms?

 Example: check to see if the user's choice of
 motherboard, memory, and cpu are compatible with
 each
 other.

 Following the struts example, it seems like the
 validate() method in an ActionForm is used only for
 light validation (i.e. checking to see if something
 was left blank, or checking for alpha and numeric
 chars). This approach seems correct to me, since
 there
 should not be business logic inside the ActionForm.

 That leaves most of the work to the business domain
 object since any nontrivial application will not
 have
 business logic in the Action class either.

 The business domain object, in many cases, will be
 accessed remotely from the Action class.

 Does it make sense for the business domain object to
 return an ActionErrors object(it is serializable)?
 I
 am not 100% comfortable yet with the idea of
 importing
 ActionErrors into the business object since it
 couples
 it to struts to a certain extent, and it could
 potentially be large.

 Is the only alternative to send back a list of
 generic
 error codes from the business object that each map
 to
 an ActionError and the Action class could add the
 ActionErrors? (i think i'd  rather import
 actionerrors
 in this case)

 What are some of the best practices people have
 found to work for this problem?

 Craig and ALL Struts creators:  Struts is really
 great. Thank you for all of your hard work. It is
 definitely something to be proud of.

 __
 Do You Yahoo!?
 Get personalized email addresses from Yahoo! Mail
 http://personal.mail.yahoo.com/


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/






Unsubscribe me...............

2001-06-20 Thread Sachin Mapara
Title: Unsubscribe me...





Please unsubscribe me from this list.


Sachin Mapara.
Trigyn Technologies Ltd.
Tel :- 518 86 86 (O) Ext.- 537 
 95251 - 44 10 39 (R)






RE: Unsubscribe me...............

2001-06-20 Thread Dinesh Chaturvedi

you r kicked offf
Go to hell
 

Thanks  Regards 

Dinesh Chaturvedi 
Solution Developer 
Nihilent Technologies Pvt Ltd. 
Pune 6054452 Ext 464 

-Original Message-
From: Sachin Mapara [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 20, 2001 3:36 PM
Subject: Unsubscribe me...



Please unsubscribe me from this list. 

Sachin Mapara. 
Trigyn Technologies Ltd. 
Tel  :- 518 86 86 (O)  Ext.- 537
95251 - 44 10 39 (R) 





AW: Displaying unicode hexadecimal character references with Struts

2001-06-20 Thread andreas . jost

Hi

There is an attribut called filter in bean:write. The default is set to
true. Set it to false and try again.

Cheers 
Andy


-Ursprüngliche Nachricht-
Von: Hartmut Bernecker [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 20. Juni 2001 11:10
An: [EMAIL PROTECTED]
Betreff: Displaying unicode hexadecimal character references with Struts


Hello,

HTML 4.0 allows to display unicode characters by using Decimal
(#123456;) or Hexadecimal (#x00FE;) Character References.
Now, if a bean property contains some String with character references
(e. g. new String(#12456;#12521;#12540;);) then I expect a correct
output when displaying that bean-properties with a JSP-page.
But what happens? - The output to the browser is not
#12456;#12521;#12540; (which would be displayed correct), but
amp;#12456;amp;#12521;amp;#12540; which is displayed as
#12456;#12521;#12540; - what is not nice!

Why that behavior?
How to switch off that mechanism?

I appreciate any hint!

Cheers
Hartmut



RE: newbie question: Missing message for key index.title error

2001-06-20 Thread O'Neill, John H

Hi Oleg,

I currently have the parameters to the ActionServlet in web.xml as
follows.

!-- Standard Action Servlet Configuration (with debugging) --
  servlet
servlet-nameaction/servlet-name
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
  param-nameapplication/param-name
  param-valueApplicationResources/param-value
/init-param
init-param
  param-nameconfig/param-name
  param-value/WEB-INF/struts-config.xml/param-value
/init-param
init-param
  param-namedebug/param-name
  param-value2/param-value
/init-param
init-param
  param-namedetail/param-name
  param-value2/param-value
/init-param
init-param
  param-namevalidate/param-name
  param-valuetrue/param-value
/init-param
load-on-startup2/load-on-startup
  /servlet

This seems to be as you are saying to have it. I also have the
classpath set to find the directory where my ApplicationResources.properties
file is and it contains the 'index.title' and other string property values.
Unfortunately this doesn't seem to solve the problem. Any other ideas?

Thanks,
John

-Original Message-
From:   Oleg V Alexeev [SMTP:[EMAIL PROTECTED]]
Sent:   Wednesday, June 20, 2001 10:19 AM
To: [EMAIL PROTECTED]
Subject:Re: newbie question: Missing message for key
index.title error

Hello John,

You must place string for key index.title to the your resources.
Name for the resource bundle is in parameter application in servlet
description for ActionServlet in web.xml.

Wednesday, June 20, 2001, 12:55:40 PM, you wrote:

ONJH Hi Everyone,

ONJH Could anyone please tell me why I am getting the following
error message
ONJH when trying to run the 'blank' example that comes with Struts?

ONJH Cheers,
ONJH John


ONJH Error 500
ONJH An error has occured while processing
ONJH request:http://localhost:8080/blank/index.jsp
ONJH Message: Server caught unhandled exception from servlet [jsp]:
Missing
ONJH message for key index.title

ONJH Target Servlet: jsp
ONJH StackTrace: 

ONJH Root Error-1: Missing message for key index.title
ONJH javax.servlet.jsp.JspException: Missing message for key
index.title
ONJH java.lang.Throwable(java.lang.String)
java.lang.Exception(java.lang.String)
ONJH javax.servlet.jsp.JspException(java.lang.String) int
ONJH org.apache.struts.taglib.bean.MessageTag.doStartTag() void
ONJH
blank._index_xjsp_jspsrc_910258570._jspService(javax.servlet.http.HttpServle
ONJH tRequest, javax.servlet.http.HttpServletResponse) void
ONJH
org.apache.jasper.runtime.HttpJspBase.service(javax.servlet.http.HttpServlet
ONJH Request, javax.servlet.http.HttpServletResponse) void
ONJH
javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
ONJH javax.servlet.ServletResponse) void
ONJH
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(javax.servlet
ONJH .http.HttpServletRequest,
javax.servlet.http.HttpServletResponse, boolean)
ONJH void
ONJH
org.apache.jasper.runtime.JspServlet.serviceJspFile(javax.servlet.http.HttpS
ONJH ervletRequest, javax.servlet.http.HttpServletResponse,
java.lang.String,
ONJH java.lang.Throwable, boolean) void
ONJH
org.apache.jasper.runtime.JspServlet.service(javax.servlet.http.HttpServletR
ONJH equest, javax.servlet.http.HttpServletResponse) void
ONJH
javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
ONJH javax.servlet.ServletResponse) void
ONJH
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(javax.servlet.
ONJH ServletRequest, javax.servlet.ServletResponse) void
ONJH
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(javax.servlet.
ONJH ServletRequest, javax.servlet.ServletResponse) void
ONJH
com.ibm.servlet.engine.webapp.IdleServletState.service(com.ibm.servlet.engin
ONJH e.webapp.StrictLifecycleServlet, javax.servlet.ServletRequest,
ONJH javax.servlet.ServletResponse) void
ONJH
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(javax.servlet.S
ONJH ervletRequest, javax.servlet.ServletResponse) void
ONJH
com.ibm.servlet.engine.webapp.ServletInstance.service(javax.servlet.ServletR
ONJH equest, javax.servlet.ServletResponse,
ONJH com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent)
void
ONJH
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(com.ibm.se
ONJH rvlet.engine.webapp.ServletInstanceReference,
javax.servlet.ServletRequest,
ONJH javax.servlet.ServletResponse,
ONJH 

Re[2]: newbie question: Missing message for key index.title error

2001-06-20 Thread Oleg V Alexeev

Hello John,

Remove resources from classpath and place it to the WEB-INF/classes
directory. For example

WEB-INF
  classes
 ApplicationResources.properties
 ApplicationResources_en.properties
  (...place here resources for every language used in your app...)
  
In resources track for string

index.title=Some title

in every file.

That's all.
  
Wednesday, June 20, 2001, 1:37:53 PM, you wrote:

ONJH Hi Oleg,

ONJH I currently have the parameters to the ActionServlet in web.xml as
ONJH follows.

ONJH !-- Standard Action Servlet Configuration (with debugging) --
ONJH   servlet
ONJH servlet-nameaction/servlet-name
ONJH servlet-classorg.apache.struts.action.ActionServlet/servlet-class
ONJH init-param
ONJH   param-nameapplication/param-name
ONJH   param-valueApplicationResources/param-value
ONJH /init-param
ONJH init-param
ONJH   param-nameconfig/param-name
ONJH   param-value/WEB-INF/struts-config.xml/param-value
ONJH /init-param
ONJH init-param
ONJH   param-namedebug/param-name
ONJH   param-value2/param-value
ONJH /init-param
ONJH init-param
ONJH   param-namedetail/param-name
ONJH   param-value2/param-value
ONJH /init-param
ONJH init-param
ONJH   param-namevalidate/param-name
ONJH   param-valuetrue/param-value
ONJH /init-param
ONJH load-on-startup2/load-on-startup
ONJH   /servlet

ONJH This seems to be as you are saying to have it. I also have the
ONJH classpath set to find the directory where my ApplicationResources.properties
ONJH file is and it contains the 'index.title' and other string property values.
ONJH Unfortunately this doesn't seem to solve the problem. Any other ideas?

ONJH Thanks,
ONJH John

ONJH -Original Message-
ONJH From:   Oleg V Alexeev [SMTP:[EMAIL PROTECTED]]
ONJH Sent:   Wednesday, June 20, 2001 10:19 AM
ONJH To: [EMAIL PROTECTED]
ONJH Subject:Re: newbie question: Missing message for key
ONJH index.title error

ONJH Hello John,

ONJH You must place string for key index.title to the your resources.
ONJH Name for the resource bundle is in parameter application in servlet
ONJH description for ActionServlet in web.xml.

ONJH Wednesday, June 20, 2001, 12:55:40 PM, you wrote:

ONJH ONJH Hi Everyone,

ONJH ONJH Could anyone please tell me why I am getting the following
ONJH error message
ONJH ONJH when trying to run the 'blank' example that comes with Struts?

ONJH ONJH Cheers,
ONJH ONJH John


ONJH ONJH Error 500
ONJH ONJH An error has occured while processing
ONJH ONJH request:http://localhost:8080/blank/index.jsp
ONJH ONJH Message: Server caught unhandled exception from servlet [jsp]:
ONJH Missing
ONJH ONJH message for key index.title

ONJH ONJH Target Servlet: jsp
ONJH ONJH StackTrace: 

ONJH ONJH Root Error-1: Missing message for key index.title
ONJH ONJH javax.servlet.jsp.JspException: Missing message for key
ONJH index.title
ONJH ONJH java.lang.Throwable(java.lang.String)
ONJH java.lang.Exception(java.lang.String)
ONJH ONJH javax.servlet.jsp.JspException(java.lang.String) int
ONJH ONJH org.apache.struts.taglib.bean.MessageTag.doStartTag() void
ONJH ONJH
ONJH blank._index_xjsp_jspsrc_910258570._jspService(javax.servlet.http.HttpServle
ONJH ONJH tRequest, javax.servlet.http.HttpServletResponse) void
ONJH ONJH
ONJH org.apache.jasper.runtime.HttpJspBase.service(javax.servlet.http.HttpServlet
ONJH ONJH Request, javax.servlet.http.HttpServletResponse) void
ONJH ONJH
ONJH javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
ONJH ONJH javax.servlet.ServletResponse) void
ONJH ONJH
ONJH org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(javax.servlet
ONJH ONJH .http.HttpServletRequest,
ONJH javax.servlet.http.HttpServletResponse, boolean)
ONJH ONJH void
ONJH ONJH
ONJH org.apache.jasper.runtime.JspServlet.serviceJspFile(javax.servlet.http.HttpS
ONJH ONJH ervletRequest, javax.servlet.http.HttpServletResponse,
ONJH java.lang.String,
ONJH ONJH java.lang.Throwable, boolean) void
ONJH ONJH
ONJH org.apache.jasper.runtime.JspServlet.service(javax.servlet.http.HttpServletR
ONJH ONJH equest, javax.servlet.http.HttpServletResponse) void
ONJH ONJH
ONJH javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
ONJH ONJH javax.servlet.ServletResponse) void
ONJH ONJH
ONJH com.ibm.servlet.engine.webapp.StrictServletInstance.doService(javax.servlet.
ONJH ONJH ServletRequest, javax.servlet.ServletResponse) void
ONJH ONJH
ONJH com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(javax.servlet.
ONJH ONJH ServletRequest, 

Re: AW: Displaying unicode hexadecimal character references with Struts

2001-06-20 Thread Hartmut Bernecker

Hi Andreas,

that's it, thank you!
- But now with the drawback that characters like  are not transformed
in Character Entity References (amp;).
But I think, I can life with that. :-)

BTW: Would it not be nice if the filtering would be able to recognize
Entity or Decimal References and do *not* treat them?
Then it would be still possible to *display* #x1234 by having in the
Bean the String amp;#x1234.


Hartmut


[EMAIL PROTECTED] schrieb:
 
 Hi
 
 There is an attribut called filter in bean:write. The default is set to
 true. Set it to false and try again.
 
 Cheers
 Andy
 
 -Ursprüngliche Nachricht-
 Von: Hartmut Bernecker [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 20. Juni 2001 11:10
 An: [EMAIL PROTECTED]
 Betreff: Displaying unicode hexadecimal character references with Struts
 
 Hello,
 
 HTML 4.0 allows to display unicode characters by using Decimal
 (#123456;) or Hexadecimal (#x00FE;) Character References.
 Now, if a bean property contains some String with character references
 (e. g. new String(#12456;#12521;#12540;);) then I expect a correct
 output when displaying that bean-properties with a JSP-page.
 But what happens? - The output to the browser is not
 #12456;#12521;#12540; (which would be displayed correct), but
 amp;#12456;amp;#12521;amp;#12540; which is displayed as
 #12456;#12521;#12540; - what is not nice!
 
 Why that behavior?
 How to switch off that mechanism?
 
 I appreciate any hint!
 
 Cheers
 Hartmut



RE: Re[2]: newbie question: Missing message for key index.title error

2001-06-20 Thread O'Neill, John H

Hi Oleg,

That is the way I have it set up Unless my directory structure is wrong?

Directory structure as follows

web group name
  web
WEB-INF
  classes

John


-Original Message-
From:   Oleg V Alexeev [SMTP:[EMAIL PROTECTED]]
Sent:   Wednesday, June 20, 2001 10:54 AM
To: [EMAIL PROTECTED]
Subject:Re[2]: newbie question: Missing message for key
index.title error

Hello John,

Remove resources from classpath and place it to the WEB-INF/classes
directory. For example

WEB-INF
  classes
 ApplicationResources.properties
 ApplicationResources_en.properties
  (...place here resources for every language used in your
app...)
  
In resources track for string

index.title=Some title

in every file.

That's all.
  
Wednesday, June 20, 2001, 1:37:53 PM, you wrote:

ONJH Hi Oleg,

ONJH I currently have the parameters to the ActionServlet
in web.xml as
ONJH follows.

ONJH !-- Standard Action Servlet Configuration (with debugging)
--
ONJH   servlet
ONJH servlet-nameaction/servlet-name
ONJH
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
ONJH init-param
ONJH   param-nameapplication/param-name
ONJH   param-valueApplicationResources/param-value
ONJH /init-param
ONJH init-param
ONJH   param-nameconfig/param-name
ONJH   param-value/WEB-INF/struts-config.xml/param-value
ONJH /init-param
ONJH init-param
ONJH   param-namedebug/param-name
ONJH   param-value2/param-value
ONJH /init-param
ONJH init-param
ONJH   param-namedetail/param-name
ONJH   param-value2/param-value
ONJH /init-param
ONJH init-param
ONJH   param-namevalidate/param-name
ONJH   param-valuetrue/param-value
ONJH /init-param
ONJH load-on-startup2/load-on-startup
ONJH   /servlet

ONJH This seems to be as you are saying to have it. I also
have the
ONJH classpath set to find the directory where my
ApplicationResources.properties
ONJH file is and it contains the 'index.title' and other string
property values.
ONJH Unfortunately this doesn't seem to solve the problem. Any
other ideas?

ONJH Thanks,
ONJH John

ONJH -Original Message-
ONJH From:   Oleg V Alexeev [SMTP:[EMAIL PROTECTED]]
ONJH Sent:   Wednesday, June 20, 2001 10:19 AM
ONJH To: [EMAIL PROTECTED]
ONJH Subject:Re: newbie question: Missing message
for key
ONJH index.title error

ONJH Hello John,

ONJH You must place string for key index.title to the your
resources.
ONJH Name for the resource bundle is in parameter
application in servlet
ONJH description for ActionServlet in web.xml.

ONJH Wednesday, June 20, 2001, 12:55:40 PM, you wrote:

ONJH ONJH Hi Everyone,

ONJH ONJH Could anyone please tell me why I am getting the
following
ONJH error message
ONJH ONJH when trying to run the 'blank' example that
comes with Struts?

ONJH ONJH Cheers,
ONJH ONJH John


ONJH ONJH Error 500
ONJH ONJH An error has occured while processing
ONJH ONJH request:http://localhost:8080/blank/index.jsp
ONJH ONJH Message: Server caught unhandled exception from
servlet [jsp]:
ONJH Missing
ONJH ONJH message for key index.title

ONJH ONJH Target Servlet: jsp
ONJH ONJH StackTrace: 

ONJH ONJH Root Error-1: Missing message for key
index.title
ONJH ONJH javax.servlet.jsp.JspException: Missing message
for key
ONJH index.title
ONJH ONJH java.lang.Throwable(java.lang.String)
ONJH java.lang.Exception(java.lang.String)
ONJH ONJH javax.servlet.jsp.JspException(java.lang.String)
int
ONJH ONJH
org.apache.struts.taglib.bean.MessageTag.doStartTag() void
ONJH ONJH
ONJH
blank._index_xjsp_jspsrc_910258570._jspService(javax.servlet.http.HttpServle
ONJH ONJH tRequest,
javax.servlet.http.HttpServletResponse) void
ONJH ONJH
ONJH
org.apache.jasper.runtime.HttpJspBase.service(javax.servlet.http.HttpServlet
ONJH ONJH Request, javax.servlet.http.HttpServletResponse)
void
ONJH ONJH
ONJH

RE: Calendar Tag Library

2001-06-20 Thread Jon.Ridgway









Hi Matt,



The Jakarta Taglib
project has the DateTime tag lib. You may also find
useful tag libs at www.jsptags.com



Jon.



-Original Message-
From: Matt Raible
[mailto:[EMAIL PROTECTED]] 
Sent: 18 June 2001 21:41
To: Struts User
Subject: Calendar Tag Library





Does anyone know of JSP Tag
Libraries that can be used to render a Calendar?











Thanks,











Matt










Re: newbie question: Missing message for key index.title error

2001-06-20 Thread Philip Planinsky

Helo John,
this problem is kind a strange,
because the reason for this is the 'classpath'

When you're starting your AppServer, e.g. Tomacat,
you must ensure that the struts.jar is loaded from the directory of your
application,
not from any other directory set through your 'classpath'


register('-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN',
'jar:file:C:\tomcat\webapps\sadmin\WEB-INF\lib\struts.jar!/
org/apache/struts/resources/web-app_2_2.dtd'


the best you can do is to set your classpath=.;
and place all of your .jars files in the lib directory of your application.

I don't have any idea why this is the decision of this problem, but it
works!

regards,
Philip






Re[4]: newbie question: Missing message for key index.title e rror

2001-06-20 Thread Oleg V Alexeev

Hello John,

Remove struts.jar and all links to the WEB-INF/classes from your
classpath.

Wednesday, June 20, 2001, 2:08:28 PM, you wrote:

ONJH Hi Oleg,

ONJH That is the way I have it set up Unless my directory structure is wrong?

ONJH Directory structure as follows

ONJH web group name
ONJH   web
ONJH WEB-INF
ONJH   classes

ONJH John


ONJH -Original Message-
ONJH From:   Oleg V Alexeev [SMTP:[EMAIL PROTECTED]]
ONJH Sent:   Wednesday, June 20, 2001 10:54 AM
ONJH To: [EMAIL PROTECTED]
ONJH Subject:Re[2]: newbie question: Missing message for key
ONJH index.title error

ONJH Hello John,

ONJH Remove resources from classpath and place it to the WEB-INF/classes
ONJH directory. For example

ONJH WEB-INF
ONJH   classes
ONJH  ApplicationResources.properties
ONJH  ApplicationResources_en.properties
ONJH   (...place here resources for every language used in your
ONJH app...)
  
ONJH In resources track for string

ONJH index.title=Some title

ONJH in every file.

ONJH That's all.
  
ONJH Wednesday, June 20, 2001, 1:37:53 PM, you wrote:

ONJH ONJH Hi Oleg,

ONJH ONJH I currently have the parameters to the ActionServlet
ONJH in web.xml as
ONJH ONJH follows.

ONJH ONJH !-- Standard Action Servlet Configuration (with debugging)
--
ONJH ONJH   servlet
ONJH ONJH servlet-nameaction/servlet-name
ONJH ONJH
ONJH servlet-classorg.apache.struts.action.ActionServlet/servlet-class
ONJH ONJH init-param
ONJH ONJH   param-nameapplication/param-name
ONJH ONJH   param-valueApplicationResources/param-value
ONJH ONJH /init-param
ONJH ONJH init-param
ONJH ONJH   param-nameconfig/param-name
ONJH ONJH   param-value/WEB-INF/struts-config.xml/param-value
ONJH ONJH /init-param
ONJH ONJH init-param
ONJH ONJH   param-namedebug/param-name
ONJH ONJH   param-value2/param-value
ONJH ONJH /init-param
ONJH ONJH init-param
ONJH ONJH   param-namedetail/param-name
ONJH ONJH   param-value2/param-value
ONJH ONJH /init-param
ONJH ONJH init-param
ONJH ONJH   param-namevalidate/param-name
ONJH ONJH   param-valuetrue/param-value
ONJH ONJH /init-param
ONJH ONJH load-on-startup2/load-on-startup
ONJH ONJH   /servlet

ONJH ONJH This seems to be as you are saying to have it. I also
ONJH have the
ONJH ONJH classpath set to find the directory where my
ONJH ApplicationResources.properties
ONJH ONJH file is and it contains the 'index.title' and other string
ONJH property values.
ONJH ONJH Unfortunately this doesn't seem to solve the problem. Any
ONJH other ideas?

ONJH ONJH Thanks,
ONJH ONJH John

ONJH ONJH -Original Message-
ONJH ONJH From:   Oleg V Alexeev [SMTP:[EMAIL PROTECTED]]
ONJH ONJH Sent:   Wednesday, June 20, 2001 10:19 AM
ONJH ONJH To: [EMAIL PROTECTED]
ONJH ONJH Subject:Re: newbie question: Missing message
ONJH for key
ONJH ONJH index.title error

ONJH ONJH Hello John,

ONJH ONJH You must place string for key index.title to the your
ONJH resources.
ONJH ONJH Name for the resource bundle is in parameter
ONJH application in servlet
ONJH ONJH description for ActionServlet in web.xml.

ONJH ONJH Wednesday, June 20, 2001, 12:55:40 PM, you wrote:

ONJH ONJH ONJH Hi Everyone,

ONJH ONJH ONJH Could anyone please tell me why I am getting the
ONJH following
ONJH ONJH error message
ONJH ONJH ONJH when trying to run the 'blank' example that
ONJH comes with Struts?

ONJH ONJH ONJH Cheers,
ONJH ONJH ONJH John


ONJH ONJH ONJH Error 500
ONJH ONJH ONJH An error has occured while processing
ONJH ONJH ONJH request:http://localhost:8080/blank/index.jsp
ONJH ONJH ONJH Message: Server caught unhandled exception from
ONJH servlet [jsp]:
ONJH ONJH Missing
ONJH ONJH ONJH message for key index.title

ONJH ONJH ONJH Target Servlet: jsp
ONJH ONJH ONJH StackTrace: 

ONJH ONJH ONJH Root Error-1: Missing message for key
ONJH index.title
ONJH ONJH ONJH javax.servlet.jsp.JspException: Missing message
ONJH for key
ONJH ONJH index.title
ONJH ONJH ONJH java.lang.Throwable(java.lang.String)
ONJH ONJH 

Re: [ANNOUNCMENT] Strut by Strut

2001-06-20 Thread Ted Husted

Sorry for the troubles with the inital WAR. I was experimenting with an
alternate configuration, which, as it turns out, is not compatible with
all versions of all containers. I've returned to the conventional
configuration, and you may wish to download the updated copy.

 http://www.husted.com/about/struts/struts-stub.zip 

Ted Husted wrote:
 
 A new article regarding building Struts applications is available at
 
  http://www.husted.com/about/struts/ 
 
 entitled Strut by Strut. Feedback is welcome. A followup article
 regarding using a database with Struts (Stepping Out) is nearly
 complete. Stay tuned.
 
 -- Ted Husted, Husted dot Com, Fairport NY USA.
 -- Custom Software ~ Technical Services.
 -- Tel 716 737-3463.
 -- http://www.husted.com/about/struts/



Re: [ANNOUNCMENT] Strut by Strut

2001-06-20 Thread Ted Husted

If you want to convert an integer to a String on the fly, you can do
this:

/**
 * Return the script as int
 *
 * @return the script as int
 */
public int getScriptInt() {
return ( Integer.valueOf(this.script).intValue() );
}

Assuming the String has been validated first. 

To move the data from one bean to another, you can either use a bulk
setter or constructor

myBean.set( getScriptInt(),getTitle(),getCurrentDate() ); // or
new myBean( getScriptInt(),getTitle(),getCurrentDate() ); 

Or, if your internal bean is designed to accept Strings for incoming
data (as, say, RowSets are), then you could also have the ActionForm
bean generate a hash map that matched your internal bean's mutators with
the populate() method of Struts BeanUtil.

populate(myInternalBean,myActionForm.toMap());

Ryan Cornia wrote:
 
 Great article!
 
 I'm fairly new to Struts and am still struggling with ActionForm setters/getters vs. 
bean setters/getters. In your template file, all properties for both the form and 
bean are Strings. How would you implement an int property -
 
 In the form, it would it be -
 public String getProperty10() {
   return(this.property10);
 }
 
 public void setProperty10(String property10) {
   this.property10 = property10;
 }
 
 public int getProperty10Int() {
return this.property10.intValue();
 }
 
 In the bean, would it be? -
 
 int property10Int = 0;
 
 public int getProperty10Int() {
   return(this.property10Int);
 }
 
 public void setProperty10Int(int property10) {
   this.property10Int = property10;
 }
 
 If this is the case, how do you copy the properties from the FormBean to the Bean 
when the Action is done and validated?
 
 MyForm frm = (MyForm)form;
 MyBean bean = Should the bean be in the session?;
 
 /** What if I have 100 properties, is there a better way to set them all? **/
 bean.setProperty0(frm.getProperty0());
 .
 .
 .
 bean.setProperty10Int(frm.getProperty10Int());
 
 bean.writeToDatabase();
 
 Is this the best way to mesh all of this together?
 
 Thanks for all the hard work. It's a very valuable article.
 Ryan




Re: ActionForm Bean and Action class relation

2001-06-20 Thread Ted Husted

It might help to explain the circumstances. I'm not sure why you would
start with one ActionForm bean and then switch to another. You may wish
to have one larger ActionForm bean that can be used in both places. 

A popular pattern is to use one Action to handle several related tasks,
like all the inserts, selects, updates, and deletes for a given table in
your your database. In this case, it is convenient to use several
different ActionMappings, but have them all use the same Action class
(TYPE=...). An easy way to tell which ActionMapping was used, is to set
the parameter property for each. 

path= /package/myAction/Input.do
type = package.myAction
parameter = this
validate = false

and 

path= /package/myAction/Insert.do
type = package.myAction
parameter = that
validate = true

The mappings are passed to validate(), reset(), and perform(), so in
each case you can tell which task is in use with 

String task = mappings.getParameter();

For multipage wizard forms, David W's validator has a page feature
that helps with that.

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

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


Viplava Nekkalapudi wrote:
 
 Hi,
I have a small problem in handling the Action form
 beans and Action classes. For every action class, we
 have a request scope action form bean. My action class
 executes before the jsp page displays and it is mapped
 to a form bean. The first time JSP is displayed, my
 form bean properties are null/blank, and the form bean
 will be populated when I submit the jsp page. I need
 to validate form parameters at this time in the second
 action class which has mapped to different form bean
 and jsp page.  How to use the same bean between
 requests with request scope? Do I need to use the form
 bean in session scope?
Do I need to use dfferent action classes for
 different actions on the same page, OR one action
 class? How to handle form beans and action classes
 between multiple pages some data with session scope
 and some with request scope.
 
 Thanks in advance.
 
 __
 Do You Yahoo!?
 Spot the hottest trends in music, movies, and more.
 http://buzz.yahoo.com/



Re: validation in the form vs. validation in the business domain object

2001-06-20 Thread William Jaynes

David,

Barracuda does this nested Exception procedure (as I believe you
probably know already). I've been playing with their forms package a bit
in a Struts app of mine. I like the scheme, in general, but the problem
I have with their particular implementation is as follows... The
Validator classes that throw the ValidationExceptions set the exception
message to be a resource key. At some point in the Action class I check
for validation exceptions and iterate through any that exist. I use
getMessage() to get the key and add a new ActionError to the
ActionErrors object. The problem comes with messages that need
substitutions. If I have a resource message like Date should be between
{0} and {1} I need some scheme for the Validator class to communicate
the specific parameters that go along with the resource key. Seems to me
that the ValidationException class needs a property like
MessageArguments (possibly an array of Objects, since that is ultimately
what MessageResources needs) that the Validator class can set and the
Action class can get as it iterates through the exceptions.

I've coded extensions to the Barracuda classes for this, but it's
awkward and means I need to always use my own versions of Validator
classes.

On the Struts side of things, I find that if I have a resource key and
an array of Objects that are the substitutions to be used in the
message, there's no ActionError constructor that will let me pass in the
array. Instead I have to manipulate things and use one of the existing
constructors that specify each replacement value explicitly. Of course I
could extend and make my own, but it seems reasonable that ActionError
should have such a constructor. It would also permit more than 4
substitutions, if anyone would need more.

Just my thoughts,
Will


- Original Message -
From: David Winterfeldt [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 20, 2001 3:05 AM
Subject: Re: validation in the form vs. validation in the business
domain object


 Someone I know extended Exception and they throw
 nested exceptions that eventually are passed back to
 the Struts layer and then an ActionError is
 constructed for each exception.  Something like that
 seems like a clean way to keep things separated.  I
 did something similiar on a project with a Swing and
 EJBs.

 David

 --- James Hoffa [EMAIL PROTECTED] wrote:
  What ideas do people have about where is the best
  place to perform validation of items that come back
  from ActionForms?
 
  Example: check to see if the user's choice of
  motherboard, memory, and cpu are compatible with
  each
  other.
 
  Following the struts example, it seems like the
  validate() method in an ActionForm is used only for
  light validation (i.e. checking to see if something
  was left blank, or checking for alpha and numeric
  chars). This approach seems correct to me, since
  there
  should not be business logic inside the ActionForm.
 
  That leaves most of the work to the business domain
  object since any nontrivial application will not
  have
  business logic in the Action class either.
 
  The business domain object, in many cases, will be
  accessed remotely from the Action class.
 
  Does it make sense for the business domain object to
  return an ActionErrors object(it is serializable)?
  I
  am not 100% comfortable yet with the idea of
  importing
  ActionErrors into the business object since it
  couples
  it to struts to a certain extent, and it could
  potentially be large.
 
  Is the only alternative to send back a list of
  generic
  error codes from the business object that each map
  to
  an ActionError and the Action class could add the
  ActionErrors? (i think i'd  rather import
  actionerrors
  in this case)
 
  What are some of the best practices people have
  found to work for this problem?
 
  Craig and ALL Struts creators:  Struts is really
  great. Thank you for all of your hard work. It is
  definitely something to be proud of.
 
  __
  Do You Yahoo!?
  Get personalized email addresses from Yahoo! Mail
  http://personal.mail.yahoo.com/


 __
 Do You Yahoo!?
 Get personalized email addresses from Yahoo! Mail
 http://personal.mail.yahoo.com/




Re: Options tag - 'selected'

2001-06-20 Thread Jonathan Asbell

Martin, I have been trying to find out how to handle this for months.
Thanks

- Original Message -
From: Martin Cooper [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 20, 2001 12:44 AM
Subject: Re: Options tag - 'selected'


 The reason you see 'selected=selected' is for XHTML compatibility. In
 XHTML (and XML) a value must always be specified for an attribute, so you
 can't just say 'selected'. The spec states that, in cases like this, the
 value should be the same as the attribute name. Hence
'selected=selected',
 'multiple=multiple', etc.

 --
 Martin Cooper


 - Original Message -
 From: Simon Liang [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, June 19, 2001 4:41 PM
 Subject: RE: Options tag - 'selected'


  Got it, while going throught search of old mailing list emails.
 
  html:select name=userprofileForm property=preferredLanguage
  value=en_uk
  html:options collection=languageTypes property=value
 labelProperty=label/
/html:select
 
  But look at what it produces:(instead of just 'selected', it's outputted
  twice?)
 
  select name=preferredLanguage
  option value=en_usEnglish/option
  option value=en_uk selected=selectedBritish English/option
/select
 
 
  -Original Message-
  From: Simon Liang
  Sent: Tuesday, June 19, 2001 4:19 PM
  To: [EMAIL PROTECTED]
  Subject: Options tag
 
 
  Hi All:
 
  I don't know if i am doing something wrong or not. Either i am really
 stupid
  or i am totally misunderstanding something here - as i have tried for
the
  last serveral hrs getting options tag to output the 'selected' text in
 html.
 
  I basically followed the example(subscription.jsp) on this, but couldn't
  figure out why it's not outputting 'selected' as the example claims is
  working.
 
  !---here is the jsp --
  %
java.util.ArrayList list = new java.util.ArrayList();
list.add(new com.vns.um.struts.LabelValueBean(English, en_us));
list.add(new com.vns.um.struts.LabelValueBean(British English,
  en_uk));
pageContext.setAttribute(languageTypes, list);
  %
 
  html:form action=/saveProfile
  HR
TR
  tdhtml:text name=userprofileForm property=uid size=10
  maxlength=10//TD
  tdhtml:text name=userprofileForm property=password size=10
  maxlength=10//TD
  tdhtml:text name=userprofileForm property=firstName size=10
  maxlength=10//TD
/tr
 tr
html:select name=userprofileForm property=preferredLanguage 
  html:options collection=languageTypes property=value
  match=en_uk
 labelProperty=label/
/html:select
/tr
  /html:form
 
  How do i get en_uk selected? Thanks for any help.
 
  Simon
 
 
 
 
 


  This message is intended only for the use of the Addressee(s) and may
  contain information that is PRIVILEGED and CONFIDENTIAL. If you are not
  the intended recipient, dissemination of this communication is
prohibited.
  If you have received this communication in error, please erase all
copies
  of the message and its attachments and notify [EMAIL PROTECTED]
  immediately.
 


 
 
 


  This message is intended only for the use of the Addressee(s) and may
  contain information that is PRIVILEGED and CONFIDENTIAL. If you are not
  the intended recipient, dissemination of this communication is
prohibited.
  If you have received this communication in error, please erase all
copies
  of the message and its attachments and notify [EMAIL PROTECTED]
  immediately.
 


 






Re: Options tag

2001-06-20 Thread Philip Planinsky

Hi Simon,

suppose you have the following
labels in options:

green
yellow
red

and the corresponding values:

1
2
3

All you have to do is:

html:select property=color
html:options collection=allcolors property=id
propertyLabel=name/
/html:select

where 'color' is an: private int color;
in your ActionForm bean

and 'allcolors' is a collection of beans

so if you want the 'yellow' to be preselected you just set the
'color' property of your form to value 2 before displaying the JSP.

regards,
Philip


- Original Message -
From: Simon Liang [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 20, 2001 2:18 AM
Subject: Options tag


 Hi All:

 I don't know if i am doing something wrong or not. Either i am really
stupid
 or i am totally misunderstanding something here - as i have tried for the
 last serveral hrs getting options tag to output the 'selected' text in
html.

 I basically followed the example(subscription.jsp) on this, but couldn't
 figure out why it's not outputting 'selected' as the example claims is
 working.

 !---here is the jsp --
 %
   java.util.ArrayList list = new java.util.ArrayList();
   list.add(new com.vns.um.struts.LabelValueBean(English, en_us));
   list.add(new com.vns.um.struts.LabelValueBean(British English,
 en_uk));
   pageContext.setAttribute(languageTypes, list);
 %

 html:form action=/saveProfile
 HR
   TR
 tdhtml:text name=userprofileForm property=uid size=10
 maxlength=10//TD
 tdhtml:text name=userprofileForm property=password size=10
 maxlength=10//TD
 tdhtml:text name=userprofileForm property=firstName size=10
 maxlength=10//TD
   /tr
tr
   html:select name=userprofileForm property=preferredLanguage 
 html:options collection=languageTypes property=value
 match=en_uk
labelProperty=label/
   /html:select
   /tr
 /html:form

 How do i get en_uk selected? Thanks for any help.

 Simon






 This message is intended only for the use of the Addressee(s) and may
 contain information that is PRIVILEGED and CONFIDENTIAL. If you are not
 the intended recipient, dissemination of this communication is prohibited.
 If you have received this communication in error, please erase all copies
 of the message and its attachments and notify [EMAIL PROTECTED]
 immediately.







Re: apostrophe in an application resource properties file does disappear in the JSP file compiled!!!!!!!!!!!

2001-06-20 Thread Matteo Di Giovinazzo

If I use the properties file, with the traditional (for the java world) 
backslash escaping ( \' ), in a java program (swing, awt, console, ecc) it 
works fine: the single quote appear.
Instead, if I use the properties file (with \' too) in a struts webapp the 
single quote disappear.
The escaping with double single quote ( '' ) works, but in my java program 
(swing, awt, ecc) I have a double single quote!

Please inform me if I was wrong!

Matteo Di Giovinazzo





RE: Options tag

2001-06-20 Thread Afzal, Tanver



 -Original Message-
 From: Philip Planinsky [SMTP:[EMAIL PROTECTED]]
 Sent: Wednesday, June 20, 2001 8:06 AM
 To:   [EMAIL PROTECTED]
 Subject:  Re: Options tag
 
 Hi Simon,
 
 suppose you have the following
 labels in options:
 
 green
 yellow
 red
 
 and the corresponding values:
 
 1
 2
 3
 
 All you have to do is:
 
 html:select property=color
 html:options collection=allcolors property=id
 propertyLabel=name/
 /html:select
 
 where 'color' is an: private int color;
 in your ActionForm bean
 
 and 'allcolors' is a collection of beans
 
 so if you want the 'yellow' to be preselected you just set the
 'color' property of your form to value 2 before displaying the JSP.
 
 regards,
 Philip
 
 
 - Original Message -
 From: Simon Liang [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, June 20, 2001 2:18 AM
 Subject: Options tag
 
 
  Hi All:
 
  I don't know if i am doing something wrong or not. Either i am really
 stupid
  or i am totally misunderstanding something here - as i have tried for
 the
  last serveral hrs getting options tag to output the 'selected' text in
 html.
 
  I basically followed the example(subscription.jsp) on this, but couldn't
  figure out why it's not outputting 'selected' as the example claims is
  working.
 
  !---here is the jsp --
  %
java.util.ArrayList list = new java.util.ArrayList();
list.add(new com.vns.um.struts.LabelValueBean(English, en_us));
list.add(new com.vns.um.struts.LabelValueBean(British English,
  en_uk));
pageContext.setAttribute(languageTypes, list);
  %
 
  html:form action=/saveProfile
  HR
TR
  tdhtml:text name=userprofileForm property=uid size=10
  maxlength=10//TD
  tdhtml:text name=userprofileForm property=password size=10
  maxlength=10//TD
  tdhtml:text name=userprofileForm property=firstName size=10
  maxlength=10//TD
/tr
 tr
html:select name=userprofileForm property=preferredLanguage 
  html:options collection=languageTypes property=value
  match=en_uk
 labelProperty=label/
/html:select
/tr
  /html:form
 
  How do i get en_uk selected? Thanks for any help.
 
  Simon
 
 
 
 
 
 ==
 ==
  This message is intended only for the use of the Addressee(s) and may
  contain information that is PRIVILEGED and CONFIDENTIAL. If you are not
  the intended recipient, dissemination of this communication is
 prohibited.
  If you have received this communication in error, please erase all
 copies
  of the message and its attachments and notify [EMAIL PROTECTED]
  immediately.
 
 ==
 ==
 



Cannot remove attribute from request

2001-06-20 Thread Zhengxi Ruan

Hi,
We are using Bluestone/HP UBS 7.2 with patch and  Struts building project.
Struts released its final 1.0 version last Friday. But we got an error which
was not showing up in the previous Struts release when we moved to 1.0 final
version . I was wondering if anybody got the same error. Is there any way to
work around this problem?

 The following if the error message: 

java.lang.IllegalArgumentException: Cannot remove attribute from request
at
SaApi.servlet.jsp.SaPageContext.removeAttribute(SaPageContext.java:378)
at org.apache.struts.taglib.html.FormTag.doEndTag(FormTag.java:591)
at
SaServletEngine.web.kmp_logon_sjsp_VERSION1._jspService(kmp_logon_sjsp_VERSI
ON1.java:547)
at SaApi.servlet.jsp.SaJspServlet.service(SaJspServlet.java:108)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at
SaApi.servlet.SaServletUtils.serviceRequest(SaServletUtils.java:1571)
at
SaApi.servlet.SaServletUtils.processServletRequest(SaServletUtils.java:1753)
at
SaApi.servlet.SaServletInvokerApp.SaProcessInputStream(SaServletInvokerApp.j
ava:290)
at
SaApi.servlet.SaServletInvokerApp.handleClient(SaServletInvokerApp.java:135)
at SaApi.SaApp.processRequest(SaApp.java:1335)
at SaApi.SaSamUbsContext.processActivator(SaSamUbsContext.java:1640)
at SaApi.SaSamUbsContext.queueActivator(SaSamUbsContext.java:1534)
at SaApi.SaSamUbsContext.processActivator(SaSamUbsContext.java:1501)
at SaApi.SaSamUbsContext.processRequest(SaSamUbsContext.java:1965)
at SaApi.SaSamUbsContext.execute(SaSamUbsContext.java:2120)
at SaApi.SaThreadPool$Worker.run(SaThreadPool.java:737)
at java.lang.Thread.run(Unknown Source)


Thanks,
Jesse



Re: Extending ActionServlet

2001-06-20 Thread Dan Miser

Sure. Specify multliple config parameters in web.xml would be the first
thing I would think of trying. I don't see why merging to one file is a big
deal. Part of your build script (via Ant, perhaps) would be a step that
would concat the files together.
--
Dan Miser
http://www.distribucon.com

- Original Message -
From: Thomas Siedschlag [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 20, 2001 3:34 AM
Subject: Re: Extending ActionServlet


 to have multiple struts-config files were nice. But you must take care in
 defining actions, because multiple config files were merged to only one
file.

 To avoid this, is there a way to have more than one ActionServlet with
fully
 seperated struts-config files in the same web application context?





Unsubscribe problems

2001-06-20 Thread Hans Bure

Hi folks,

I have no tried to unsubscribe from this list 4 different times in the 
period of a week, using [EMAIL PROTECTED]
.  I have also sent an email to [EMAIL PROTECTED], which 
was ignored as well.

So, perhaps that is the reason that you guys keep getting random unsubcribe 
messages?  I would say that instead of writing back nasty responses, you 
would rather find a way to fix the problem?

NOTE:  Please remove me from this list, as well.  This seems to be the only 
way to removed...
_
Get your FREE download of MSN Explorer at http://explorer.msn.com




RE: Struts setup Q...

2001-06-20 Thread Satyen . Chikane

seems to me like ur tag libraries are not setup correctly...
try removing the tags and tag lib reference from ur page and see whether it
works.. if it works then u can set up ur env. to use the tags...
-satyen
-Original Message-
From: Jon.Ridgway [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 20, 2001 10:18 AM
To: [EMAIL PROTECTED]
Cc: JohnH.O'[EMAIL PROTECTED]
Subject: RE: Struts setup Q...


Hi John,

Did you ever get to the bottom of this one?

Jon.

-Original Message-
From: O'Neill, John H [mailto:JohnH.O'[EMAIL PROTECTED]] 
Sent: 19 June 2001 13:57
To: [EMAIL PROTECTED]
Subject: Struts setup Q...

Hi,

Could anyone tell me why I am getting the following error message. It occurs
when I try to access any Jsp page. I have Struts1.0b-3 set up and running in
the Websphere Test Environment within Visual Age for Java 3.53. The struts
'ActionServlet' servlet seems to get instantiated correctly in my
environment. Is this a problem with attributes I need to provide to the
servlet in one of the config files?

Cheers,
John


Error 500
An error has occured while processing
request:http://localhost:8080/blank/index.jsp
Message: Directive: Invalid attribute, prefix

Target Servlet: jsp
StackTrace: 

Root Error-1: Directive: Invalid attribute, prefix
com.ibm.servlet.engine.webapp.WebAppErrorReport: Directive: Invalid
attribute, prefix java.lang.Throwable(java.lang.String)
java.lang.Exception(java.lang.String)
javax.servlet.ServletException(java.lang.String)
com.ibm.websphere.servlet.error.ServletErrorReport(java.lang.String)
com.ibm.servlet.engine.webapp.WebAppErrorReport(java.lang.String) void
com.ibm.servlet.engine.webapp.WebAppDispatcherResponse.sendError(int,
java.lang.String) void
com.sun.jsp.runtime.JspServlet.unknownException(javax.servlet.http.HttpServl
etResponse, java.lang.Throwable) void
com.sun.jsp.runtime.JspServlet.service(javax.servlet.http.HttpServletRequest
, javax.servlet.http.HttpServletResponse) void
javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) void
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(javax.servlet.
ServletRequest, javax.servlet.ServletResponse) void
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(javax.servlet.
ServletRequest, javax.servlet.ServletResponse) void
com.ibm.servlet.engine.webapp.IdleServletState.service(com.ibm.servlet.engin
e.webapp.StrictLifecycleServlet, javax.servlet.ServletRequest,
javax.servlet.ServletResponse) void
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(javax.servlet.S
ervletRequest, javax.servlet.ServletResponse) void
com.ibm.servlet.engine.webapp.ServletInstance.service(javax.servlet.ServletR
equest, javax.servlet.ServletResponse,
com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent) void
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(com.ibm.se
rvlet.engine.webapp.ServletInstanceReference, javax.servlet.ServletRequest,
javax.servlet.ServletResponse,
com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent) void
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(javax.servle
t.ServletRequest, javax.servlet.ServletResponse,
com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent) void
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(c
om.ibm.servlet.engine.webapp.WebAppRequest,
javax.servlet.http.HttpServletResponse, boolean) void
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(javax.servlet
.ServletRequest, javax.servlet.ServletResponse, boolean) void
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(javax.servlet.
ServletRequest, javax.servlet.ServletResponse) void
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(java.lang.Obje
ct) void
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(java.lan
g.Object) void
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(java.lang.S
tring, com.ibm.servlet.engine.srp.ISRPConnection) void
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(com.ibm.ser
vlet.engine.oselistener.api.IOSEConnection) void
com.ibm.servlet.engine.http_transport.HttpTransportHandler.handleConnection(
java.net.Socket) void
com.ibm.servlet.engine.http_transport.HttpTransportHandler.run() void
java.lang.Thread.run() 

-
John O' Neill
Fidelity Investments (FISC IRL)
Phone : (W) 00 353 1 6141258
(M) 00 353 86 6774844
email : johnh.o'[EMAIL PROTECTED]
-


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

If you are not the intended recipient, any disclosure, copying, distribution
or any action taken or omitted to be taken in reliance on it, is prohibited
and may be 

WTE/Struts parser incompatibilities - pandoras box?

2001-06-20 Thread sbt

In this document:


http://www7.software.ibm.com/vad.nsf/Data/Document2558?OpenDocumentSubMast

IBM discuss how to make Struts work with the VAJ 3.5.3 WTE. For the XML
Parser incompatibilities they have the following solution:


 [...] If you download JAXP 1.01 from Sun and import the entire contents   
 of the jaxp.jar file and all of the classes in the parser.jar file except  
 those that start with org.w3c into VisualAge for Java, then you will have  
 an additional parser that corresponds to the JAXP API and works with   
 Struts, but does not conflict with the IBM XML4Java parser that the WTE
 requires. I import these files into a special JAXP 1.0.1 -- no w3c 
 project. [...]





I've found that if I do as they suggest conflicts arise. The WTE complains
about the packages starting with org.xml.sax (Cannot create open edition
of ...).

However if I omit those packages too it works like a charm! Now, what I
want to know is:

Shouldn't the parser project really be called JAXP_no_org or does what
I'm doing have ramifications that I cannot see?

brgds,
S. Bro





Re: Unsubscribe me...............

2001-06-20 Thread Richard N. Mixon
Title: Unsubscribe me...



You must unsubscribe from mailing lists yourself. 
No one else can do it for you.

Go back to where you signed up for the list and 
there will be instructions on how to unsubscribe.

Your note does not say what mailing list you are 
trying to unsubscribe from. If it is one of the Struts mailing lists, go to the 
bottom of page http://jakarta.apache.org/struts/index.html

hope this helps - Richard

  - Original Message - 
  From: 
  Sachin Mapara 
  Sent: Wednesday, June 20, 2001 3:05 
  AM
  Subject: Unsubscribe 
  me...
  
  Please unsubscribe me from this 
  list. 
  Sachin Mapara. 
  Trigyn 
  Technologies Ltd. Tel :- 518 86 86 (O) Ext.- 
  537  
  95251 - 44 10 39 (R) 


form is null in Action

2001-06-20 Thread Michelle Popovits



Hi,


- In my SEARCH action I retrieve the required data 
from a datasource based on user entered search criteria.
- I place this data in a new EDIT Form 
instanceand place it in the session.
- I Then forward to the EDIT jsp (which uses the 
EDIT Form) and the data is displayed nicely in a table.
- I then click SUBMIT which sends me to the EDIT 
Action.
- In the EDIT action the form argument is 
null. I am expecting that my EDIT Form would be available here. If I 
do a getAttribute from the session the EDIT Form is there.

Why is the form argument in the perform() method of 
the EDIT action null?

Thanks,
Michelle


RE: Cannot remove attribute from request

2001-06-20 Thread Ritter, Steve

Hello Jesse, please check the struts-user archives and search for Cannot remove 
attribute from request.  Its a well known issue.  Here is some stuff I sent out 
before:

Read this included thread and follow the links identified.  I am pretty sure that it 
covers your problem and potential fixes.  It reads best if you start with the bottom 
and then read the top.  To summarize, this is a known bug with VAJ and it has to do 
with the version of Jasper they are using.  Jasper is a set of JSP classes produced by 
Apache, lots of servlet engines use the Jasper package but there are known bugs with 
the older versions of it.  This is one of them.  Your two solutions are as follows:

1. Edit org.apache.struts.taglib.html.FormTag.doEndTag() as described (note, there are 
2 FormTag classes in Struts.  One in taglib and one in taglib.html, I had to edit 
the one in taglib.html). Recompile struts.

Or 

2. Preferrably get your servlet engine to use the newer version of Jasper (the one you 
need to get is included with the Tomcat 3.2.2 distribution).  I think there are 
actually instructions on how to do this with your servlet engine in the mail archives 
for struts-user.
 
--Steve

--- BEGIN INCLUDED 

Hi Steve,

Try editing org.apache.struts.taglib.FormTag.doEndTag as follows : 

 
// Remove the page scope attributes we created
pageContext.getRequest().removeAttribute(Constants.BEAN_KEY);
pageContext.getRequest().removeAttribute(Constants.FORM_KEY);

Jon.

-Original Message-
From: Ritter, Steve [mailto:[EMAIL PROTECTED]] 
Sent: 05 June 2001 20:03
To: '[EMAIL PROTECTED]'
Subject: Need help with Can't remove attributes from request scope probl
em.

Hi everyone,

We ran into a problem running b2/b3 on Servletmill that others seem to have
hit with WTE.  It occurs when trying to access the login page from
struts-example, you get an IllegalArgumentException with message Can't
remove attributes from request scope.  It seems this thread discusses a
potential HACK to fix the issue.

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

The top-most posting in this thread indicates bugzilla id 932 which I
checked into:

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=932

So, according to Craig the bug is really in the servlet container and it
would seem that my servlet container has the very same prolem.  What is
suggested work around for this?  Can someone help me with some more details
in the event that I need to speak with my container vendor?

--Steve


 END INCLUDED 

 -Original Message-
 From: Van-Landeghem Tom [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, June 13, 2001 7:08 AM
 To: '[EMAIL PROTECTED]'
 Subject: can't remove attributes from servlet
 
 
 Hi,
  
 Today is my first day I try to play with Struts using Visual 
 Age V3.5.3.
 I try settingup and running the EmployeeList example 
 application from IBM in
 the WTE of VAJ.
 I get the following exception when I try to run the application :
 can't remove attributes from servlet
 which seems to be thrown by the Formtag.doEndTag()
 anybody has any ideas ?
  
 Tom
 
 -Original Message-
 From: Zhengxi Ruan [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, June 20, 2001 6:57 AM
 To: '[EMAIL PROTECTED]'
 Subject: Cannot remove attribute from request
 
 
 Hi,
 We are using Bluestone/HP UBS 7.2 with patch and  Struts 
 building project.
 Struts released its final 1.0 version last Friday. But we got 
 an error which
 was not showing up in the previous Struts release when we 
 moved to 1.0 final
 version . I was wondering if anybody got the same error. Is 
 there any way to
 work around this problem?
 
  The following if the error message: 
 
 java.lang.IllegalArgumentException: Cannot remove attribute 
 from request
 at
 SaApi.servlet.jsp.SaPageContext.removeAttribute(SaPageContext.
 java:378)
 at 
 org.apache.struts.taglib.html.FormTag.doEndTag(FormTag.java:591)
 at
 SaServletEngine.web.kmp_logon_sjsp_VERSION1._jspService(kmp_lo
 gon_sjsp_VERSI
 ON1.java:547)
 at 
 SaApi.servlet.jsp.SaJspServlet.service(SaJspServlet.java:108)
 at 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
 at
 SaApi.servlet.SaServletUtils.serviceRequest(SaServletUtils.java:1571)
 at
 SaApi.servlet.SaServletUtils.processServletRequest(SaServletUt
 ils.java:1753)
 at
 SaApi.servlet.SaServletInvokerApp.SaProcessInputStream(SaServl
 etInvokerApp.j
 ava:290)
 at
 SaApi.servlet.SaServletInvokerApp.handleClient(SaServletInvoke
 rApp.java:135)
 at SaApi.SaApp.processRequest(SaApp.java:1335)
 at 
 SaApi.SaSamUbsContext.processActivator(SaSamUbsContext.java:1640)
 at 
 SaApi.SaSamUbsContext.queueActivator(SaSamUbsContext.java:1534)
 at 
 SaApi.SaSamUbsContext.processActivator(SaSamUbsContext.java:1501)
 at 
 SaApi.SaSamUbsContext.processRequest(SaSamUbsContext.java:1965)
 at 

moving computer into DMZ affects Class.getResource() result

2001-06-20 Thread Nick Afshartous


We've now identified the problem.  Looks like a bug in iPlanet 
web server 6.0.  
-- 

Nick


Nick Afshartous writes:
  
  Ok, here's one for the books.  Our app works fine in 
  our own local network.  We then moved the same box 
  into the company's DMZ to set up for a demo.  
  
  Boom! It stopped working.  At first we thought it was a Struts
  issue because the because this line in ActionServlet.initDigester
  
URL url = this.getClass().getResource(registrations[i+1]);
  
  is returning null.  This is where the Struts DTDs get registered
  with the Digester.
  Then I tried inserting a call to getResource()
  to see if it could find one of our resource files 
  (ApplicationResource.properties) and that failed as well.
  
  I know getResource() uses the class loader, but does anyone
  have any idea why moving a computer from behind a firewall into
  a DMZ would affect how resources are found ? 
  
  Thanks for any info to help figure this one out.
  -- 
  
   Nick
  
  
  




help with checkbox

2001-06-20 Thread Alex Colic

Hi, I am hoping someone can point me in the right direction.

First, I have a checkbox that regardless of if the user checks it or not I
need it to be set to true. Can someone suggest a way via JavaScript or
otherwise to set this checkbox to true.

Second, for the same checkbox, if I do not set its value and then go a few
pages forward I have a status page that displays  the value of the checkbox.
If I have not checked the box the value is false, if I then go back a few
pages and then check the box and go to forward to the status page again it
is shown as checked but, if I go back and uncheck the box and then go
forward it is still shown as checked.

Any ideas what is up.

Thanks

Alex




Re: Extending ActionServlet

2001-06-20 Thread Jonathan

I dont understand. Noone has to concat anything.  You can include xml
fragments in your master struts-config.xml like this:

!DOCTYPE project [
 !ENTITY header SYSTEM file:///config1.inc
 !ENTITY common SYSTEM file:///config2.inc
]

where config1.inc is a file with xml fragments of parameters and
config2.inc is a file with xml fragments of more parameters.  You just
point to the file.  Wantto take them out? Pull them out of the top of
struts-config.xml



- Original Message -
From: Dan Miser [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 20, 2001 10:07 AM
Subject: Re: Extending ActionServlet


 Sure. Specify multliple config parameters in web.xml would be the first
 thing I would think of trying. I don't see why merging to one file is a
big
 deal. Part of your build script (via Ant, perhaps) would be a step that
 would concat the files together.
 --
 Dan Miser
 http://www.distribucon.com

 - Original Message -
 From: Thomas Siedschlag [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, June 20, 2001 3:34 AM
 Subject: Re: Extending ActionServlet


  to have multiple struts-config files were nice. But you must take care
in
  defining actions, because multiple config files were merged to only one
 file.
 
  To avoid this, is there a way to have more than one ActionServlet with
 fully
  seperated struts-config files in the same web application context?






RE: VAJ 3.5.3 Struts

2001-06-20 Thread Roxie Rochat

I had the same problem until I followed the directions for fixing
WebSphere's
classloader problem with DTDs.  See:
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg07524.html
Roxie

-Original Message-
From: Jon.Ridgway [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 20, 2001 4:26 AM
To: [EMAIL PROTECTED]
Subject: RE: VAJ 3.5.3  Struts


Hi Shipra,

Did you ever get to the bottom of this?

Jon.

-Original Message-
From: David Janovy [mailto:[EMAIL PROTECTED]] 
Sent: 18 June 2001 23:54
To: [EMAIL PROTECTED]
Subject: RE: VAJ 3.5.3  Struts

Did you import the struts source code and the associated resources? This
is my directory structure for the struts code with relevant resources
shown:
[d:IBMVJava\ide\project_resources]
  [Struts]
[META-INF] --taglib.tld
  [tlds]   --struts-bean.tld
   --struts-form.tld
   --struts-html.tld
   --struts-logic.tld
   --struts-template.tld
[org]
  [apache]
[struts]
  [action]
  [actions]
  [digester]
  [resources] --struts-config_1_0.dtd
  --web-app_2_2.dtd
  --web-app-2_3.dtd
  [taglib]
[bean]
[html]
[logic]
[template]
  [util]

With the resources imported with the source code, I did not have to have
them in the WEB-INF folder under the WTE environment.

David Janovy

-Original Message-
From: Jain, Shipra [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 18, 2001 2:23 PM
To: '[EMAIL PROTECTED]'
Subject: VAJ 3.5.3  Struts


Hi

I am trying to run Struts example( IBM's employeelist example) in VAJ's
Test
environment. I am using VAJ 3.5.3 and I followed the instructions found
at
IBM's VADD site.
http://www7.software.ibm.com/vad.nsf/Data/Document2558?OpenDocumentSubM
ast=
1
But's its still not working. At initialization of ActionServlet it
throws
following exception

[01.06.18 17:09:36:349 EDT] 254f ServletInstan A SRVE0048I: Loading
servlet:
action
[01.06.18 17:09:36:900 EDT] 254f WebGroup  A SRVE0091I: [Servlet
LOG]:
action: init
[01.06.18 17:09:37:241 EDT] 254f WebGroup  A SRVE0091I: [Servlet
LOG]:
action: null
[01.06.18 17:09:37:291 EDT] 254f WebGroup  A SRVE0091I: [Servlet
LOG]:
action: null

resolveEntity('-//Apache Software Foundation//DTD Struts Configuration
1.0//EN', 'http://localhost/struts/dtds/struts-config_1_0.dtd')
 Not registered, use system identifier
Parse Fatal Error at line 5 column -1: External entity not found:
http://localhost/struts/dtds/struts-config_1_0.dtd;.
External entity not found:
http://localhost/struts/dtds/struts-config_1_0.dtd;.
java.lang.Throwable()
java.lang.Exception()
org.xml.sax.SAXException(java.lang.String, java.lang.Exception)
org.xml.sax.SAXParseException(java.lang.String,
org.xml.sax.Locator,
java.lang.Exception)
void com.sun.xml.parser.Parser.fatal(java.lang.String,
java.lang.Object [], java.lang.Exception)
void
com.sun.xml.parser.Parser.externalParameterEntity(com.sun.xml.parser.Ext
erna
lEntity)
boolean com.sun.xml.parser.Parser.maybeDoctypeDecl()
void
com.sun.xml.parser.Parser.parseInternal(org.xml.sax.InputSource)
void com.sun.xml.parser.Parser.parse(org.xml.sax.InputSource)
void javax.xml.parsers.SAXParser.parse(org.xml.sax.InputSource,
org.xml.sax.HandlerBase)
void javax.xml.parsers.SAXParser.parse(java.io.InputStream,
org.xml.sax.HandlerBase)
java.lang.Object
org.apache.struts.digester.Digester.parse(java.io.InputStream)
void org.apache.struts.action.ActionServlet.initMapping()
void org.apache.struts.action.ActionServlet.init()
void
javax.servlet.GenericServlet.init(javax.servlet.ServletConfig)
void
com.ibm.servlet.engine.webapp.StrictServletInstance.doInit()
void
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(javax.servlet
.Ser
vletConfig)
void
com.ibm.servlet.engine.webapp.PreInitializedServletState.init(com.ibm.se
rvle
t.engine.webapp.StrictLifecycleServlet, javax.servlet.ServletConfig)
void
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init(javax.servlet.
Serv
letConfig)
void com.ibm.servlet.engine.webapp.ServletInstance.init()
void
javax.servlet.GenericServlet.init(javax.servlet.ServletConfig)
void
com.ibm.servlet.engine.webapp.ServletManager.addServlet(java.lang.String
,
javax.servlet.Servlet, java.util.Properties)
void
com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(java.lang
.Str
ing)
void
com.ibm.servlet.engine.webapp.WebAppServletManager.loadAutoLoadServlets(
)
void com.ibm.servlet.engine.webapp.WebApp.loadServletManager()
void
com.ibm.servlet.engine.webapp.WebApp.init(com.ibm.servlet.engine.config.
WebA
ppInfo, com.ibm.servlet.engine.webapp.WebAppContext)
void com.ibm.servlet.engine.srt.WebGroup.loadWebApp()
void

test please ignore

2001-06-20 Thread Michelle Popovits



this is a test


RE: form is null in Action

2001-06-20 Thread Satyen . Chikane



Hi,
Check 
the mapping for the form class in the config-file... the EDIT action should be 
pointing to the correct form class...


-satyen

  -Original Message-From: Michelle Popovits 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, June 20, 2001 
  3:57 PMTo: [EMAIL PROTECTED]Subject: form 
  is null in Action
  Hi,
  
  
  - In my SEARCH action I retrieve the required 
  data from a datasource based on user entered search criteria.
  - I place this data in a new EDIT Form 
  instanceand place it in the session.
  - I Then forward to the EDIT jsp (which uses the 
  EDIT Form) and the data is displayed nicely in a table.
  - I then click SUBMIT which sends me to the EDIT 
  Action.
  - In the EDIT action the form argument is 
  null. I am expecting that my EDIT Form would be available here. If 
  I do a getAttribute from the session the EDIT Form is there.
  
  Why is the form argument in the perform() method 
  of the EDIT action null?
  
  Thanks,
  Michelle

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

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

Visit us at www.ingbarings.com

--



Re: form is null in Action

2001-06-20 Thread dhay



Have you got the session for this form in your struts-config set to request?  It
caught me out too - if so, it looks for form in request, not in session.

Dave





Michelle Popovits [EMAIL PROTECTED] on
06/20/2001 10:56:41 AM

Please respond to [EMAIL PROTECTED]; Please
  respond to Michelle Popovits
  [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  form is null in Action



Hi,


- In my SEARCH action I retrieve the required data from a datasource
based on user entered search criteria.
- I place this data in a new EDIT Form instance and place it in the
session.
- I Then forward to the EDIT jsp (which uses the EDIT Form) and the data
is displayed nicely in a table.
- I then click SUBMIT which sends me to the EDIT Action.
- In the EDIT action the form argument is null.  I am expecting that my EDIT
Form would be available here.  If I do a getAttribute from the session the EDIT
Form is there.

Why is the form argument in the perform() method of the EDIT action null?

Thanks,
Michelle




Hi,


- In my SEARCH action I retrieve the required data 
from a datasource based on user entered search criteria.
- I place this data in a new EDIT Form 
instanceand place it in the session.
- I Then forward to the EDIT jsp (which uses the 
EDIT Form) and the data is displayed nicely in a table.
- I then click SUBMIT which sends me to the EDIT 
Action.
- In the EDIT action the form argument is 
null. I am expecting that my EDIT Form would be available here. If I 
do a getAttribute from the session the EDIT Form is there.

Why is the form argument in the perform() method of 
the EDIT action null?

Thanks,
Michelle


Re: Re[2]: Dynamic creation of Actions's with 'forName'

2001-06-20 Thread Craig R. McClanahan



On Wed, 20 Jun 2001, Oleg V Alexeev wrote:

 Hello Craig,
 
 Interesting question and clear answer... 8)
 

Yah, I really enjoy the interesting ones :-).

 What do you think about such caching for Class? With this approach we
 call forName() method only once - no other overhead.
 

Class loaders do this kind of caching already, so I guess I don't see all
that much benefit.

For Struts in particular, if you're concerned about repeated
Class.forName() calls, a better strategy is avoidance -- arrange your
application so that the form beans are created for you ahead of
time.  Then Struts will never have to call it.

Or, throw you can just throw hardware at it and take advantage of Moore's
Law ... :-)

Craig




Re: Extending ActionServlet

2001-06-20 Thread Craig R. McClanahan



On Wed, 20 Jun 2001, Thomas Siedschlag wrote:

 Hi,
 
 to have multiple struts-config files were nice. But you must take care in
 defining actions, because multiple config files were merged to only one file.
 

Also true for global forwards, form bean definitions, data sources, etc.

 To avoid this, is there a way to have more than one ActionServlet with fully
 seperated struts-config files in the same web application context?
 

That is also a highly requested feature.  It's going to take some
interesting internal rework to pull this off, because right now the major
configuration objects that Struts builds are exposed as servlet context
attributes under a single name.

 Thomas
 

Craig




Re: validation in the form vs. validation in the business domain object

2001-06-20 Thread David Winterfeldt

I think it is reasonable to have a feature request to
have ActionError have a constructor that takes an
Object array since especially since MessageResources
can do this.  So you could either send a proposal to
the e-mail list or the better place would probably be
to submit the request through bugzilla so it doesn't
get lost.  

As far as having more than four args, I think this was
a decision based on how many args to support in the
tags, but I'm not sure.  The MessageResources
getMessage(Locale locale, String key, Object args[])
directly passes in the object array to an instance of
java.text.MessageFormat.  So if ActionError could take
an Object[] then it could call the method in
MessageResources that takes an array and it doesn't
look like MessageFormat has any limitations for the
number of arguments it can handle.

David

--- William Jaynes [EMAIL PROTECTED] wrote:
 David,
 
 Barracuda does this nested Exception procedure (as I
 believe you
 probably know already). I've been playing with their
 forms package a bit
 in a Struts app of mine. I like the scheme, in
 general, but the problem
 I have with their particular implementation is as
 follows... The
 Validator classes that throw the
 ValidationExceptions set the exception
 message to be a resource key. At some point in the
 Action class I check
 for validation exceptions and iterate through any
 that exist. I use
 getMessage() to get the key and add a new
 ActionError to the
 ActionErrors object. The problem comes with messages
 that need
 substitutions. If I have a resource message like
 Date should be between
 {0} and {1} I need some scheme for the Validator
 class to communicate
 the specific parameters that go along with the
 resource key. Seems to me
 that the ValidationException class needs a property
 like
 MessageArguments (possibly an array of Objects,
 since that is ultimately
 what MessageResources needs) that the Validator
 class can set and the
 Action class can get as it iterates through the
 exceptions.
 
 I've coded extensions to the Barracuda classes for
 this, but it's
 awkward and means I need to always use my own
 versions of Validator
 classes.
 
 On the Struts side of things, I find that if I have
 a resource key and
 an array of Objects that are the substitutions to be
 used in the
 message, there's no ActionError constructor that
 will let me pass in the
 array. Instead I have to manipulate things and use
 one of the existing
 constructors that specify each replacement value
 explicitly. Of course I
 could extend and make my own, but it seems
 reasonable that ActionError
 should have such a constructor. It would also permit
 more than 4
 substitutions, if anyone would need more.
 
 Just my thoughts,
 Will
 
 
 - Original Message -
 From: David Winterfeldt [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, June 20, 2001 3:05 AM
 Subject: Re: validation in the form vs. validation
 in the business
 domain object
 
 
  Someone I know extended Exception and they throw
  nested exceptions that eventually are passed back
 to
  the Struts layer and then an ActionError is
  constructed for each exception.  Something like
 that
  seems like a clean way to keep things separated. 
 I
  did something similiar on a project with a Swing
 and
  EJBs.
 
  David
 
  --- James Hoffa [EMAIL PROTECTED] wrote:
   What ideas do people have about where is the
 best
   place to perform validation of items that come
 back
   from ActionForms?
  
   Example: check to see if the user's choice of
   motherboard, memory, and cpu are compatible with
   each
   other.
  
   Following the struts example, it seems like the
   validate() method in an ActionForm is used only
 for
   light validation (i.e. checking to see if
 something
   was left blank, or checking for alpha and
 numeric
   chars). This approach seems correct to me, since
   there
   should not be business logic inside the
 ActionForm.
  
   That leaves most of the work to the business
 domain
   object since any nontrivial application will not
   have
   business logic in the Action class either.
  
   The business domain object, in many cases, will
 be
   accessed remotely from the Action class.
  
   Does it make sense for the business domain
 object to
   return an ActionErrors object(it is
 serializable)?
   I
   am not 100% comfortable yet with the idea of
   importing
   ActionErrors into the business object since it
   couples
   it to struts to a certain extent, and it could
   potentially be large.
  
   Is the only alternative to send back a list of
   generic
   error codes from the business object that each
 map
   to
   an ActionError and the Action class could add
 the
   ActionErrors? (i think i'd  rather import
   actionerrors
   in this case)
  
   What are some of the best practices people
 have
   found to work for this problem?
  
   Craig and ALL Struts creators:  Struts is really
   great. Thank you for all of your hard work. It
 is
   definitely 

servlet-mapping for action servlet in struts iplanet

2001-06-20 Thread Matt Raible

I am trying to get Struts working in iPlanet 6.0 SP2, and hoping that
someone else has already solved this issue:

I have a form that is defined in a page:

html:form action=/signin focus=username

If I have the servlet mapping for my action form as *.do, the form HTML
output is:

form name=signInForm method=POST
action=/NASApp/uijumpstart/signin.do

which is exactly how I want it to look.  However, when I click submit, I
get my favorite error:

GX Error (GX2GX)
socket result code missing!!!

So in an effort to fix this, I change the servlet mapping to /*.do, but then
my form HTML output is:

form name=signInForm method=POST action=/NASApp/uijumpstart/

And I end up on my welcome-page.  Any ideas how to make this work would be
GREATLY appreciated.

Thanks,

Matt


  servlet-mapping
servlet-nameaction/servlet-name
url-pattern*.do/url-pattern
  /servlet-mapping




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




Subsessions needed?

2001-06-20 Thread Thomas Klute

Hi,

I have some problems finding the correct scope for my 
ActionFormBeans - 

I've splited one big form.jsp Page to several small
pages (formx.jsp, x=1,2,...), each page has a subset 
of the form-fields of form.jsp. I would like one
ActionFormBean to collect the data from these pages
and more than one instance of these pages in order
to create/modify more than one dataset.
The scope request for the actionformbean creates a
new bean with every request - impossible to collect the
data from more than one page.
The scope session creates one actionformbean per 
session - impossible to have more than one instance
of a form-page-set.

My indea was to create subsessions, but I think it's 
impossible without modifying struts code (f.e.
processActionForm() in ActionServlet.java).
I would like to keep struts code untouched - 
anybody has any indeas?

Thanks and regards,
 Thomas



Re: form is null in Action

2001-06-20 Thread Michelle Popovits



I do have it set to session in the action 
element

 action 
path="/editPersonalInfo" 
 
type="com.bmo.ifl.laps.actions.EditPersonalInfoAction" 
 
name="personalInfoForm" 
 scope="session" 
 input="/editPersonalInfo.jsp" 


  - Original Message - 
  From: 
  [EMAIL PROTECTED] 
  
  To: [EMAIL PROTECTED] 
  ; Michelle Popovits 
  Sent: Wednesday, June 20, 2001 12:11 
  PM
  Subject: Re: form is null in Action
  Have you got the session for this form in your 
  struts-config set to request? Itcaught me out too - if so, it looks 
  for form in request, not in 
  session.Dave"Michelle Popovits" [EMAIL PROTECTED] 
  on06/20/2001 10:56:41 AMPlease respond to [EMAIL PROTECTED]; 
  Please respond to "Michelle 
  Popovits" [EMAIL PROTECTED]To: 
  [EMAIL PROTECTED]cc: 
  (bcc: David Hay/Lex/Lexmark)Subject: form is null in 
  ActionHi,- In my SEARCH action I retrieve the 
  required data from a datasourcebased on user entered search criteria.- 
  I place this data in a new EDIT Form instance and place it in 
  thesession.- I Then forward to the EDIT jsp (which uses the EDIT Form) 
  and the datais displayed nicely in a table.- I then click SUBMIT which 
  sends me to the EDIT Action.- In the EDIT action the form argument is 
  null. I am expecting that my EDITForm would be available here. 
  If I do a getAttribute from the session the EDITForm is there.Why 
  is the form argument in the perform() method of the EDIT action 
  null?Thanks,Michelle


Re: Extending ActionServlet

2001-06-20 Thread Dan Miser

I tried using entity references before with no luck. After reading this
post, I just tried again, and it doesn't work. Do you have a working example
of how to split the struts-config.xml from struts-example into modules (e.g.
global, logon, subscription, registration, and admin)? I haven't looked at
it, but I'm guessing the problem is in the Digester.

Assuming entity references don't work, I outlined the reasoning for the
approach I took in a previous message in this thread.
--
Dan Miser
http://www.distribucon.com

- Original Message -
From: Jonathan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 20, 2001 10:35 AM
Subject: Re: Extending ActionServlet


 I dont understand. Noone has to concat anything.  You can include xml
 fragments in your master struts-config.xml like this:

 !DOCTYPE project [
  !ENTITY header SYSTEM file:///config1.inc
  !ENTITY common SYSTEM file:///config2.inc
 ]

 where config1.inc is a file with xml fragments of parameters and
 config2.inc is a file with xml fragments of more parameters.  You just
 point to the file.  Wantto take them out? Pull them out of the top of
 struts-config.xml



 - Original Message -
 From: Dan Miser [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, June 20, 2001 10:07 AM
 Subject: Re: Extending ActionServlet


  Sure. Specify multliple config parameters in web.xml would be the first
  thing I would think of trying. I don't see why merging to one file is a
 big
  deal. Part of your build script (via Ant, perhaps) would be a step that
  would concat the files together.





RE: Struts 1.0 - IllegalArgumentException (form related)

2001-06-20 Thread Jacob Thomas


The problem will go away if you use a newer Servlet engine such as Tomcat
3.2.2.

For a starting point check:
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg09580.html

Regards,
Jacob

-Original Message-
From: MCCOLLOUGH,JEFFERY S (Non-HP-Roseville,ex1)
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 20, 2001 10:23 AM
To: '[EMAIL PROTECTED]'
Subject: Struts 1.0 - IllegalArgumentException (form related)


   I just implemented the final release of Struts 1.0 (running on HP
Bluestone), and am having a consistent problem with pages that contain a
form.  The troubling thing is that all of these pages/forms worked
beautifully within the Struts 0.5 release.  
   Without going into too much specific detail about my pages and forms, has
anyone been experiencing the following error?   If so, are there any obvious
steps I can take to correct it?  The exact same problem occurrs when
attempting to access the struts-example application included with the
release.  The index page is fine (no forms) but clicking a link that targets
a page with a form gives the below error.
   Any direction would be helpful!!



***
java.lang.IllegalArgumentException: Cannot remove attribute from request
at
SaApi.servlet.jsp.SaPageContext.removeAttribute(SaPageContext.java:496)
at org.apache.struts.taglib.html.FormTag.doEndTag(FormTag.java:591)
at mercury.logout_sjsp._jspService(logout_sjsp.java:881)
at SaApi.servlet.jsp.SaJspServlet.service(SaJspServlet.java:133)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at
SaApi.servlet.SaServletUtils.serviceRequest(SaServletUtils.java:2295)
at
SaApi.servlet.SaServletUtils.processServletRequest(SaServletUtils.java:2607)
at
SaApi.servlet.SaServletInvokerApp.SaProcessInputStream(SaServletInvokerApp.j
ava:365)
at
SaApi.servlet.SaServletInvokerApp.handleClient(SaServletInvokerApp.java:178)
at SaApi.SaApp.processRequest(SaApp.java:1335)
at SaApi.SaSamUbsContext.processActivator(SaSamUbsContext.java:1676)
at SaApi.SaSamUbsContext.queueActivator(SaSamUbsContext.java:1570)
at SaApi.SaSamUbsContext.processActivator(SaSamUbsContext.java:1537)
at SaApi.SaSamUbsContext.processRequest(SaSamUbsContext.java:2001)
at SaApi.SaSamUbsContext.execute(SaSamUbsContext.java:2156)
at SaApi.SaThreadPool$Worker.run(SaThreadPool.java:737)
at java.lang.Thread.run(Thread.java:484)




Re: Extending ActionServlet

2001-06-20 Thread Jonathan

Hello Dan.  If you have ANT, that is a good example.  If not, than just make
sure you DO NOT HAVE A COMPLETE XML DOCUMENT IN THE FRAGMENT.

ex.


The include file myInclude.inc would contain:
!-- Properties --
 property name=weblogic.install.dir value=/weblogic/
!-- End of properties --

Notice this IS NOT VALID XML.  Thats because it will be shoved into the
struts-config.xml which IS valid xml.

Then you will declare these includes in the struts-config.xml file on the
FIRST LINE of struts-config.xml like this:
!DOCTYPE project [
!ENTITY config1 SYSTEM file:///config1.inc
!ENTITY config2 SYSTEM file:///config2.inc
]

Then you need to include these files (it acts like including).  Where you
want this to be inserted put it in like this
config1;

You may recognize this because it is an entity.  You declared the entity
at the top with !ENTITY config1 SYSTEM file:///config1.inc.  Because of
this declaration you can now refer to the external file as config1; inside
struts-config.xml, and it will plug the whole contents of that file in place
of config1;  Get it?  If not e-mail me back.



- Original Message -
From: Dan Miser [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; Jonathan [EMAIL PROTECTED]
Sent: Wednesday, June 20, 2001 1:14 PM
Subject: Re: Extending ActionServlet


 I tried using entity references before with no luck. After reading this
 post, I just tried again, and it doesn't work. Do you have a working
example
 of how to split the struts-config.xml from struts-example into modules
(e.g.
 global, logon, subscription, registration, and admin)? I haven't looked at
 it, but I'm guessing the problem is in the Digester.

 Assuming entity references don't work, I outlined the reasoning for the
 approach I took in a previous message in this thread.
 --
 Dan Miser
 http://www.distribucon.com

 - Original Message -
 From: Jonathan [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, June 20, 2001 10:35 AM
 Subject: Re: Extending ActionServlet


  I dont understand. Noone has to concat anything.  You can include xml
  fragments in your master struts-config.xml like this:
 
  !DOCTYPE project [
   !ENTITY header SYSTEM file:///config1.inc
   !ENTITY common SYSTEM file:///config2.inc
  ]
 
  where config1.inc is a file with xml fragments of parameters and
  config2.inc is a file with xml fragments of more parameters.  You just
  point to the file.  Wantto take them out? Pull them out of the top of
  struts-config.xml
 
 
 
  - Original Message -
  From: Dan Miser [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Wednesday, June 20, 2001 10:07 AM
  Subject: Re: Extending ActionServlet
 
 
   Sure. Specify multliple config parameters in web.xml would be the
first
   thing I would think of trying. I don't see why merging to one file is
a
  big
   deal. Part of your build script (via Ant, perhaps) would be a step
that
   would concat the files together.






MessageBundle

2001-06-20 Thread Simon Liang

Hi all:

For some reason, Strut can't find my message bundle. For testing purpose, i
have 2 language(thus 2 properties files).
MyResources.properties(default for English)
MyResources_fr.properties(for French)

On the JSP message bean call, the default English works fine. But i can't
get the French version to work. It tells me:
javax.servlet.jsp.JspException: Cannot find message resources under key
MyResources

!-- jsp code --
h3bean:message bundle=MyResouces locale=fr key=um_user.heading/
%= userSession.getName()%
/h3
!-- end jsp code --

!-- the xml config file here --
servlet
servlet-nameaction/servlet-name

servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
param-nameapplication/param-name
param-valueMyResources/param-value
/init-param
...
/servlet

Am i doing something wrong? Please help!

Simon




This message is intended only for the use of the Addressee(s) and may
contain information that is PRIVILEGED and CONFIDENTIAL. If you are not
the intended recipient, dissemination of this communication is prohibited.
If you have received this communication in error, please erase all copies
of the message and its attachments and notify [EMAIL PROTECTED]
immediately.





Re: Unsubscribe me...............

2001-06-20 Thread jaskirat

[EMAIL PROTECTED]

send mail to the above address .. you are sending mail to the wrong
place.
regards
Jaskirat

At 06:05 AM 6/20/01 -0400, you wrote:

Please
unsubscribe me from this list. 

Sachin Mapara. 
Trigyn
Technologies Ltd. 
Tel :- 518 86 86
(O) Ext.- 537


95251 - 44 10 39 (R) 




Re: Extending ActionServlet

2001-06-20 Thread Dan Miser

I understand entity references in XML. That wasn't the problem. I'll start
the ball rolling by showing you exactly what I did to struts-example, and
you can tell me if this is what you did to get Struts to work in a module
approach (using entity references).

Here's my complete struts-config.xml:
?xml version=1.0 encoding=ISO-8859-1 ?

!DOCTYPE struts-config PUBLIC
  -//Apache Software Foundation//DTD Struts Configuration 1.0//EN
  http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd;
  [!ENTITY global   SYSTEM
file://d:/tomcat/webapps/struts-example/WEB-INF/global.xml
   !ENTITY logonSYSTEM
file://d:/tomcat/webapps/struts-example/WEB-INF/logon.xml
   !ENTITY registration SYSTEM
file://d:/tomcat/webapps/struts-example/WEB-INF/registration.xml
   !ENTITY subscription SYSTEM
file://d:/tomcat/webapps/struts-example/WEB-INF/subscription.xml
   !ENTITY adminSYSTEM
file://d:/tomcat/webapps/struts-example/WEB-INF/admin.xml
  ]

struts-config
  global;
  logon;
  registration;
  subscription;
  admin;
/struts-config

Here's the admin.xml file:
  action-mappings
actionpath=/admin/addFormBean
   type=org.apache.struts.actions.AddFormBeanAction/
actionpath=/admin/addForward
   type=org.apache.struts.actions.AddForwardAction/
actionpath=/admin/addMapping
   type=org.apache.struts.actions.AddMappingAction/
actionpath=/admin/reload
   type=org.apache.struts.actions.ReloadAction/
actionpath=/admin/removeFormBean
   type=org.apache.struts.actions.RemoveFormBeanAction/
actionpath=/admin/removeForward
   type=org.apache.struts.actions.RemoveForwardAction/
actionpath=/admin/removeMapping
   type=org.apache.struts.actions.RemoveMappingAction/
  /action-mappings

The other xml files are similar to admin.xml, except they define form-beans,
action-mappings, etc. that are specific to the area of functionality they
are grouped in (e.g. logon, registration, etc.)

Using this approach, struts-example will not work. Do you get different
results?
--
Dan Miser
http://www.distribucon.com

- Original Message -
From: Jonathan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 20, 2001 1:27 PM
Subject: Re: Extending ActionServlet


 Hello Dan.  If you have ANT, that is a good example.  If not, than just
make
 sure you DO NOT HAVE A COMPLETE XML DOCUMENT IN THE FRAGMENT.

 ex.


 The include file myInclude.inc would contain:
 !-- Properties --
  property name=weblogic.install.dir value=/weblogic/
 !-- End of properties --

 Notice this IS NOT VALID XML.  Thats because it will be shoved into the
 struts-config.xml which IS valid xml.

 Then you will declare these includes in the struts-config.xml file on the
 FIRST LINE of struts-config.xml like this:
 !DOCTYPE project [
 !ENTITY config1 SYSTEM file:///config1.inc
 !ENTITY config2 SYSTEM file:///config2.inc
 ]

 Then you need to include these files (it acts like including).  Where
you
 want this to be inserted put it in like this
 config1;

 You may recognize this because it is an entity.  You declared the entity
 at the top with !ENTITY config1 SYSTEM file:///config1.inc.  Because of
 this declaration you can now refer to the external file as config1;
inside
 struts-config.xml, and it will plug the whole contents of that file in
place
 of config1;  Get it?  If not e-mail me back.





RE: Struts 1.0 - IllegalArgumentException (form related)

2001-06-20 Thread SCHACHTER,MICHAEL (HP-NewJersey,ex2)

Upgrade HP Bluestone to Maintenence Pack 2, available from here:

http://www.bluestone.com/SaISAPI.dll/SaServletEngine.class/support/patch_dow
nload.jsp

For the drop down product box choose Total-e-Server and download
Maintenence Pack 2

-Original Message-
From: MCCOLLOUGH,JEFFERY S (Non-HP-Roseville,ex1)
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 20, 2001 1:23 PM
To: '[EMAIL PROTECTED]'
Subject: Struts 1.0 - IllegalArgumentException (form related)


   I just implemented the final release of Struts 1.0 (running on HP
Bluestone), and am having a consistent problem with pages that contain a
form.  The troubling thing is that all of these pages/forms worked
beautifully within the Struts 0.5 release.  
   Without going into too much specific detail about my pages and forms, has
anyone been experiencing the following error?   If so, are there any obvious
steps I can take to correct it?  The exact same problem occurrs when
attempting to access the struts-example application included with the
release.  The index page is fine (no forms) but clicking a link that targets
a page with a form gives the below error.
   Any direction would be helpful!!



***
java.lang.IllegalArgumentException: Cannot remove attribute from request
at
SaApi.servlet.jsp.SaPageContext.removeAttribute(SaPageContext.java:496)
at org.apache.struts.taglib.html.FormTag.doEndTag(FormTag.java:591)
at mercury.logout_sjsp._jspService(logout_sjsp.java:881)
at SaApi.servlet.jsp.SaJspServlet.service(SaJspServlet.java:133)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at
SaApi.servlet.SaServletUtils.serviceRequest(SaServletUtils.java:2295)
at
SaApi.servlet.SaServletUtils.processServletRequest(SaServletUtils.java:2607)
at
SaApi.servlet.SaServletInvokerApp.SaProcessInputStream(SaServletInvokerApp.j
ava:365)
at
SaApi.servlet.SaServletInvokerApp.handleClient(SaServletInvokerApp.java:178)
at SaApi.SaApp.processRequest(SaApp.java:1335)
at SaApi.SaSamUbsContext.processActivator(SaSamUbsContext.java:1676)
at SaApi.SaSamUbsContext.queueActivator(SaSamUbsContext.java:1570)
at SaApi.SaSamUbsContext.processActivator(SaSamUbsContext.java:1537)
at SaApi.SaSamUbsContext.processRequest(SaSamUbsContext.java:2001)
at SaApi.SaSamUbsContext.execute(SaSamUbsContext.java:2156)
at SaApi.SaThreadPool$Worker.run(SaThreadPool.java:737)
at java.lang.Thread.run(Thread.java:484)




Re: Subsessions needed?

2001-06-20 Thread Ted Husted

I would try and put the big form into the session context myself, and
then update it from the sub forms as I go. When the workflow is
complete, and the record sets are updated, I'd remove the big form from
the session context.

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

Thomas Klute wrote:
 
 Hi,
 
 I have some problems finding the correct scope for my
 ActionFormBeans -
 
 I've splited one big form.jsp Page to several small
 pages (formx.jsp, x=1,2,...), each page has a subset
 of the form-fields of form.jsp. I would like one
 ActionFormBean to collect the data from these pages
 and more than one instance of these pages in order
 to create/modify more than one dataset.
 The scope request for the actionformbean creates a
 new bean with every request - impossible to collect the
 data from more than one page.
 The scope session creates one actionformbean per
 session - impossible to have more than one instance
 of a form-page-set.
 
 My indea was to create subsessions, but I think it's
 impossible without modifying struts code (f.e.
 processActionForm() in ActionServlet.java).
 I would like to keep struts code untouched -
 anybody has any indeas?
 
 Thanks and regards,
  Thomas



Re: Extending ActionServlet

2001-06-20 Thread Jonathan

I suspect that you may have problems pointing to the external file.
You have file://
I have file:///
Also, I think it is better to use relative references


- Original Message -
From: Dan Miser [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; Jonathan [EMAIL PROTECTED]
Sent: Wednesday, June 20, 2001 3:15 PM
Subject: Re: Extending ActionServlet


 I understand entity references in XML. That wasn't the problem. I'll start
 the ball rolling by showing you exactly what I did to struts-example, and
 you can tell me if this is what you did to get Struts to work in a module
 approach (using entity references).

 Here's my complete struts-config.xml:
 ?xml version=1.0 encoding=ISO-8859-1 ?

 !DOCTYPE struts-config PUBLIC
   -//Apache Software Foundation//DTD Struts Configuration
1.0//EN
   http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd;
   [!ENTITY global   SYSTEM
 file://d:/tomcat/webapps/struts-example/WEB-INF/global.xml
!ENTITY logonSYSTEM
 file://d:/tomcat/webapps/struts-example/WEB-INF/logon.xml
!ENTITY registration SYSTEM
 file://d:/tomcat/webapps/struts-example/WEB-INF/registration.xml
!ENTITY subscription SYSTEM
 file://d:/tomcat/webapps/struts-example/WEB-INF/subscription.xml
!ENTITY adminSYSTEM
 file://d:/tomcat/webapps/struts-example/WEB-INF/admin.xml
   ]
 
 struts-config
   global;
   logon;
   registration;
   subscription;
   admin;
 /struts-config

 Here's the admin.xml file:
   action-mappings
 actionpath=/admin/addFormBean
type=org.apache.struts.actions.AddFormBeanAction/
 actionpath=/admin/addForward
type=org.apache.struts.actions.AddForwardAction/
 actionpath=/admin/addMapping
type=org.apache.struts.actions.AddMappingAction/
 actionpath=/admin/reload
type=org.apache.struts.actions.ReloadAction/
 actionpath=/admin/removeFormBean
type=org.apache.struts.actions.RemoveFormBeanAction/
 actionpath=/admin/removeForward
type=org.apache.struts.actions.RemoveForwardAction/
 actionpath=/admin/removeMapping
type=org.apache.struts.actions.RemoveMappingAction/
   /action-mappings

 The other xml files are similar to admin.xml, except they define
form-beans,
 action-mappings, etc. that are specific to the area of functionality they
 are grouped in (e.g. logon, registration, etc.)

 Using this approach, struts-example will not work. Do you get different
 results?
 --
 Dan Miser
 http://www.distribucon.com

 - Original Message -
 From: Jonathan [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, June 20, 2001 1:27 PM
 Subject: Re: Extending ActionServlet


  Hello Dan.  If you have ANT, that is a good example.  If not, than just
 make
  sure you DO NOT HAVE A COMPLETE XML DOCUMENT IN THE FRAGMENT.
 
  ex.
 
 
  The include file myInclude.inc would contain:
  !-- Properties --
   property name=weblogic.install.dir value=/weblogic/
  !-- End of properties --
 
  Notice this IS NOT VALID XML.  Thats because it will be shoved into the
  struts-config.xml which IS valid xml.
 
  Then you will declare these includes in the struts-config.xml file on
the
  FIRST LINE of struts-config.xml like this:
  !DOCTYPE project [
  !ENTITY config1 SYSTEM file:///config1.inc
  !ENTITY config2 SYSTEM file:///config2.inc
  ]
 
  Then you need to include these files (it acts like including).  Where
 you
  want this to be inserted put it in like this
  config1;
 
  You may recognize this because it is an entity.  You declared the
entity
  at the top with !ENTITY config1 SYSTEM file:///config1.inc.  Because
of
  this declaration you can now refer to the external file as config1;
 inside
  struts-config.xml, and it will plug the whole contents of that file in
 place
  of config1;  Get it?  If not e-mail me back.






Re: Extending ActionServlet

2001-06-20 Thread Dan Miser

I've tried the following:

file://d:/tomcat/webapps/struts-example/WEB-INF/admin.xml
file:///d:/tomcat/webapps/struts-example/WEB-INF/admin.xml
admin.xml
./admin.xml

All of them do not work with varying degrees of bad/good (exceptions on
start up, to 503 errors when runnint the struts-example). The closest I can
get is using the second URI.

Have you tried this? Does it work? Do you get exceptions on start up? Can
you access the entire site?
--
Dan Miser
http://www.distribucon.com

- Original Message -
From: Jonathan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 20, 2001 2:35 PM
Subject: Re: Extending ActionServlet


 I suspect that you may have problems pointing to the external file.
 You have file://
 I have file:///
 Also, I think it is better to use relative references





Re: Form input using image tag

2001-06-20 Thread Martin Cooper

What version of Struts are you using? There was a bug that caused what you
are seeing, but that was fixed in February. If you're not yet using Struts
1.0, I would encourage you to update to that now.

--
Martin Cooper


- Original Message -
From: Luna, Kat [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 04, 2001 11:47 AM
Subject: Form input using image tag


 Hi,

 I'm trying to use the html:image tag to submit a form, but the graphic
 is not rendering correctly.
 html:img works fine for display, but this is the resulting source code
 of html:image src=images/submit.gif / tag:


   tr
 tdinput type=image name= src=images/submit.gif/td
 tdinput type=image name= src=images/reset.gif/td
   /tr

 Does anyone know why there is a blank property for name showing up and
 how to get rid of this?

 Thanks

 Kat Luna
 [EMAIL PROTECTED]







Classpath and WebLogic 6.0sp2

2001-06-20 Thread Perry Hoekstra

Greet the sun all:

I am running into what I believe is a classpath/classloader problem
concerning Struts 1.0 and WebLogic 6.0sp2.  I run down the litany of
what I have done:

1) Started out creating a little HelloWorld-based app that linked two
JSPs through an ActionClass in order to confirm that I had Struts
configured correctly within WLS.  The struts.jar file was part of the
*.war file (in the lib directory) moved to WLS.  Everything worked
(yay)!

2.) Started working on my actual application.  Again, started out with
two JSPs linked through an ActionClass.  The struts.jar file was part of
the *.war file (in the lib directory) moved to WLS.  When I clicked on
the link, WLS threw ClassNotFoundException, identifying
org.apache.struts.action.Action as the culprit.  How could that be, I
asked?  The HelloWorld-based application worked and found
org.apache.struts.action.Action.  I tried the HelloWorld-app and
low-and-behold, it broke also, stating that it could not find a message
key.

3.) I have tried various combinations of having both Struts-enabled
applications have the struts.jar in the WEB-INF/lib (breaks one or the
other), having it on the WLS classpath (WLS throws ClassNotFound stating
that Struts classes not found in temporary directorys used by WLS), etc.
and no combination will allow both Struts-enabled applications to run
successfully with WLS.

Has anybody been able to run multiple Struts-enabled applications on WLS
and if so, how did you handle the classloader issue?

--
Perry Hoekstra
E-Commerce Architect
Talent Software Solutions
[EMAIL PROTECTED]





Re: Classpath and WebLogic 6.0sp2

2001-06-20 Thread Matt Raible

I deployed all the struts sample applications from 1.0
to WLS 6.0 SP2 last night, and they all worked!

Matt

--- Perry Hoekstra [EMAIL PROTECTED] wrote:
 Greet the sun all:
 
 I am running into what I believe is a
 classpath/classloader problem
 concerning Struts 1.0 and WebLogic 6.0sp2.  I run
 down the litany of
 what I have done:
 
 1) Started out creating a little HelloWorld-based
 app that linked two
 JSPs through an ActionClass in order to confirm that
 I had Struts
 configured correctly within WLS.  The struts.jar
 file was part of the
 *.war file (in the lib directory) moved to WLS. 
 Everything worked
 (yay)!
 
 2.) Started working on my actual application. 
 Again, started out with
 two JSPs linked through an ActionClass.  The
 struts.jar file was part of
 the *.war file (in the lib directory) moved to WLS. 
 When I clicked on
 the link, WLS threw ClassNotFoundException,
 identifying
 org.apache.struts.action.Action as the culprit.  How
 could that be, I
 asked?  The HelloWorld-based application worked and
 found
 org.apache.struts.action.Action.  I tried the
 HelloWorld-app and
 low-and-behold, it broke also, stating that it could
 not find a message
 key.
 
 3.) I have tried various combinations of having both
 Struts-enabled
 applications have the struts.jar in the WEB-INF/lib
 (breaks one or the
 other), having it on the WLS classpath (WLS throws
 ClassNotFound stating
 that Struts classes not found in temporary
 directorys used by WLS), etc.
 and no combination will allow both Struts-enabled
 applications to run
 successfully with WLS.
 
 Has anybody been able to run multiple Struts-enabled
 applications on WLS
 and if so, how did you handle the classloader issue?
 
 --
 Perry Hoekstra
 E-Commerce Architect
 Talent Software Solutions
 [EMAIL PROTECTED]
 
 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



Who Uses Struts (Struts Acceptance in Industry)

2001-06-20 Thread Molitor, Stephen

Hi.  I am a developer for a medium sized (45,000 employees) company in the
Midwest United States.  We are thinking about using Struts.  We've played
with it, and think it's great.  However, we have to sell it to our
management.  One concern that our managers have is that Struts is relatively
new, and they wonder how much industry acceptance Struts has.  So, my
question is, what companies use Struts?  Any success stories, horror
stories?  Actual company names would be great, but descriptions like 'a
large telecommunications company in the Midwest' would also be OK.  

Any other advice on how to sell Struts to management, pointers to magazine
articles, etc., would also be appreciated.  Or, conversely, anyone who feels
that Struts is not appropriate for enterprise application development should
also reply.  Feel free to reply to me personally if you don't feel
comfortable replying to the public mailing list.

Thanks!

Steve Molitor
[EMAIL PROTECTED]



Re: Who Uses Struts (Struts Acceptance in Industry)

2001-06-20 Thread David Winterfeldt

Here is a good resource for articles and downloads.
http://www.husted.com/about/struts/

There is a short list of web sites listed here, but I
think most people using Struts are using it for the
intranet development of forms. 
http://www.husted.com/about/struts/resources.htm#sites

I've used Struts template tags on a couple of small
sites.  I made an intranet application for a large
insurance company in the midwest and I am currently at
a large magazine with an online version and we are
using Struts for an intranet project.

Craig recently mentioned that there were over 1300
people subscribe to the struts-user list.


David

--- Molitor, Stephen [EMAIL PROTECTED] wrote:
 Hi.  I am a developer for a medium sized (45,000
 employees) company in the
 Midwest United States.  We are thinking about using
 Struts.  We've played
 with it, and think it's great.  However, we have to
 sell it to our
 management.  One concern that our managers have is
 that Struts is relatively
 new, and they wonder how much industry acceptance
 Struts has.  So, my
 question is, what companies use Struts?  Any success
 stories, horror
 stories?  Actual company names would be great, but
 descriptions like 'a
 large telecommunications company in the Midwest'
 would also be OK.  
 
 Any other advice on how to sell Struts to
 management, pointers to magazine
 articles, etc., would also be appreciated.  Or,
 conversely, anyone who feels
 that Struts is not appropriate for enterprise
 application development should
 also reply.  Feel free to reply to me personally if
 you don't feel
 comfortable replying to the public mailing list.
 
 Thanks!
 
 Steve Molitor
 [EMAIL PROTECTED]


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



Re: Classpath and WebLogic 6.0sp2

2001-06-20 Thread Perry Hoekstra

Do you have struts.jar on the WLS classpath or in the individual *.war
files?

Matt Raible wrote:

 I deployed all the struts sample applications from 1.0
 to WLS 6.0 SP2 last night, and they all worked!

 Matt

 --- Perry Hoekstra [EMAIL PROTECTED] wrote:
  Greet the sun all:
 
  I am running into what I believe is a
  classpath/classloader problem
  concerning Struts 1.0 and WebLogic 6.0sp2.  I run
  down the litany of
  what I have done:
 
  1) Started out creating a little HelloWorld-based
  app that linked two
  JSPs through an ActionClass in order to confirm that
  I had Struts
  configured correctly within WLS.  The struts.jar
  file was part of the
  *.war file (in the lib directory) moved to WLS.
  Everything worked
  (yay)!
 
  2.) Started working on my actual application.
  Again, started out with
  two JSPs linked through an ActionClass.  The
  struts.jar file was part of
  the *.war file (in the lib directory) moved to WLS.
  When I clicked on
  the link, WLS threw ClassNotFoundException,
  identifying
  org.apache.struts.action.Action as the culprit.  How
  could that be, I
  asked?  The HelloWorld-based application worked and
  found
  org.apache.struts.action.Action.  I tried the
  HelloWorld-app and
  low-and-behold, it broke also, stating that it could
  not find a message
  key.
 
  3.) I have tried various combinations of having both
  Struts-enabled
  applications have the struts.jar in the WEB-INF/lib
  (breaks one or the
  other), having it on the WLS classpath (WLS throws
  ClassNotFound stating
  that Struts classes not found in temporary
  directorys used by WLS), etc.
  and no combination will allow both Struts-enabled
  applications to run
  successfully with WLS.
 
  Has anybody been able to run multiple Struts-enabled
  applications on WLS
  and if so, how did you handle the classloader issue?
 
  --
  Perry Hoekstra
  E-Commerce Architect
  Talent Software Solutions
  [EMAIL PROTECTED]
 
 

 __
 Do You Yahoo!?
 Get personalized email addresses from Yahoo! Mail
 http://personal.mail.yahoo.com/

--
Perry Hoekstra
E-Commerce Architect
Talent Software Solutions
[EMAIL PROTECTED]





Report to Recipient(s)

2001-06-20 Thread Paladin

Incident Information:-

Originator:Firmin David [EMAIL PROTECTED]
Recipients:'[EMAIL PROTECTED]'
[EMAIL PROTECTED]
Subject:  RE: Form with request scope

Message from Firmin David [EMAIL PROTECTED] was NOT delivered,
because it contained banned content.




Report to Recipient(s)

2001-06-20 Thread Paladin

Incident Information:-

Originator:Michael Mok [EMAIL PROTECTED]
Recipients:[EMAIL PROTECTED]
Subject:  RE: Form with request scope

Message from Michael Mok [EMAIL PROTECTED] was NOT delivered,
because it contained banned content.




Report to Recipient(s)

2001-06-20 Thread Paladin

Incident Information:-

Originator:Jim Richards [EMAIL PROTECTED]
Recipients:[EMAIL PROTECTED]
Subject:  more template:include/ questions

Message from Jim Richards [EMAIL PROTECTED] was NOT delivered, because it
contained banned content.




Report to Recipient(s)

2001-06-20 Thread Paladin

Incident Information:-

Originator:Cedric Dumoulin [EMAIL PROTECTED]
Recipients:[EMAIL PROTECTED]
Subject:  Re: more template:include/ questions

Message from Cedric Dumoulin [EMAIL PROTECTED] was NOT delivered,
because it contained banned content.




Report to Recipient(s)

2001-06-20 Thread Paladin

Incident Information:-

Originator:Timothy Hicks [EMAIL PROTECTED]
Recipients:[EMAIL PROTECTED]
Subject:  Form with request scope

Message from Timothy Hicks [EMAIL PROTECTED] was NOT
delivered, because it contained banned content.




Report to Recipient(s)

2001-06-20 Thread Paladin

Incident Information:-

Originator:Craig R. McClanahan [EMAIL PROTECTED]
Recipients:[EMAIL PROTECTED], Jonathan
[EMAIL PROTECTED]
Subject:  Re: input in XML config

Message from Craig R. McClanahan [EMAIL PROTECTED] was NOT delivered,
because it contained banned content.




RE: Who Uses Struts (Struts Acceptance in Industry)

2001-06-20 Thread Ritter, Steve

Hi Stephen,

I've used Struts on several projects now.  Only one of them was an enterprise class 
application used for trading securities.  The other projects were intranet 
applications but nonetheless they were transactional and secure (the only thing that 
made them not conform to an enterprise app was that there were no scaling 
requirements, low volume stuff).

I would say that you have to ask if not Struts, what?.  That is, what are you 
comparing struts to?  If the only other choice is build it by hand then I can 
garauntee that struts has great arguments that will help.  I believe a previous reply 
pointed out links to these types of docs.

If you are comparing struts to some other web-app framework it might be a little more 
difficult since I have not seen many comparisons out there.  I know the barracuda guys 
did a very superficial comparison but that's the only one I know about.

Hope some of this helps.

--Steve

 -Original Message-
 From: Molitor, Stephen [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, June 20, 2001 1:07 PM
 To: '[EMAIL PROTECTED]'
 Subject: Who Uses Struts (Struts Acceptance in Industry)
 
 
 Hi.  I am a developer for a medium sized (45,000 employees) 
 company in the
 Midwest United States.  We are thinking about using Struts.  
 We've played
 with it, and think it's great.  However, we have to sell it to our
 management.  One concern that our managers have is that 
 Struts is relatively
 new, and they wonder how much industry acceptance Struts has.  So, my
 question is, what companies use Struts?  Any success stories, horror
 stories?  Actual company names would be great, but 
 descriptions like 'a
 large telecommunications company in the Midwest' would also be OK.  
 
 Any other advice on how to sell Struts to management, 
 pointers to magazine
 articles, etc., would also be appreciated.  Or, conversely, 
 anyone who feels
 that Struts is not appropriate for enterprise application 
 development should
 also reply.  Feel free to reply to me personally if you don't feel
 comfortable replying to the public mailing list.
 
 Thanks!
 
 Steve Molitor
 [EMAIL PROTECTED]
 



Re: JSP translated to Tags???

2001-06-20 Thread Eduardo Pelegri-Llopart

I see two main benefits to something like this.  One is that it can be
done by page authors, wihtout having to ask the developer.  If a page
author has some fragment, it may even be just plain template!, it can
encapsulate and reuse it.

The other benefit is that is is actually quite hard to reuse tag
handlers from Java.  The instantiation protocol is quite complex and
easy to get wrong.  There is a reason for it but...

The details of JST may or not be the best, but I like the concept, and
the vendors and developers I've talked to like it too.  Other opinions?  

- eduard/o

Gogineni, Pratima wrote:
 
 Speaking of JRUN - I was playing with their latest version 3.1 and they have
 a very strange concept/tool ..
 
 You can write jsp pages and name them with a *.jst extension and they get
 translated to a custom tag instead of to a servlet. I thought it was not a
 good idea - jsp to create tags to use in jsp? and i guess you lose quite a
 bit of control on how it is translated etc. and I dont see why writing the
 code  as  scriptlets in the jsp page is better than writing the tag handler
 classes your self?
 
 Does any one see any merits in this approach?
 
 pratima
 -Original Message-
 From: Gogineni, Pratima
 Sent: Saturday, June 09, 2001 9:24 PM
 To: '[EMAIL PROTECTED]'
 Subject: RE: more strange JRUN behavior
 
 sadly - I see this in 3.0 as well as 3.1 which was very recently released. I
 havent tested the basic authentication as yet. I thought I would have more
 control using the form based authentication. I need to evaluate and see if
 the basic authentication works fine - else I should probably go with custom
 authentication 
 
 I went through their forums too and found messages about the form based
 authentication.
 
 Pratima
 
 -Original Message-
 From: George Craig [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, June 09, 2001 7:28 PM
 To: [EMAIL PROTECTED]
 Subject: Re: more strange JRUN behavior
 
 I, too, have observed this intermittent quirkiness in its authentication
 behavior.
 
 After reading all of their forum posts, the consensus is to use Basic
 authentication. I concur that it has been the most stable for container
 authentication in J-Run. I would shy away from Form-based authentication
 until Macromedia has stabilized it in the next release (to some extent IIRC,
 even they acknowledge its shortcomings.) However, I realize this might not
 be an option for you.
 
 For us, we've opted to use SiteMinder.
 
 george
 
 - Original Message -
 From: Gogineni, Pratima [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Saturday, June 09, 2001 8:16 PM
 Subject: more strange JRUN behavior
 
 
  I have  a webapp that I have been testing under both tomcat and JRUN for
  sometime now. About a month ago I decided to go with app server provided
  form based security.
  I tested my app on JRUN,Tomcat and Resin and it worked fine.
 
  Since then I had been working only on tomcat - now when I tested with JRUN
  the login screen comes up, I enter the name and password and the screen
 just
  hangs and the progress bar tells me opening page j_security-check  - now
  to check if it was the application that was causing the problem. I created
 a
  dummy page that does nothing as the welcome page and I CAN login.
 
  So something in my application is causing JRUN to hang at the security
 check
  - doesnt make too much sense to me. Another thing is that I disabled the
  authentication totally and the application works fine on JRUN.
 
  Now the question is - has anyone had similar problems with JRUN or have an
  idea why something like this should occur? Surely my app should not
  interfere with the appserver authentication - it should atleast
 authenticate
  me and then show an error page. Also works fine in tomcat No error
  messages in the log files... My init servlets (both Action servlet and my
  own custom servlet) seem to be starting up fine.
 
  Does anyone have good/bad experiences with JRUN? I have had extremely
 flaky
  behavior from JRUN.
  Things seem to work great on Tomcat and Resin.
 
  pratima



form is null in Action

2001-06-20 Thread Michelle Popovits




Hi,


- In my SEARCH action I retrieve the required data 
from a datasource based on user entered search criteria.
- I place this data in a new EDIT Form 
instanceand place it in the session.
- I Then forward to the EDIT jsp (which uses the 
EDIT Form) and the data is displayed nicely in a table.
- I then click SUBMIT which sends me to the EDIT 
Action.
- In the EDIT action the form argument is 
null. I am expecting that my EDIT Form would be available here. If I 
do a getAttribute from the session the EDIT Form is there.

Why is the form argument in the perform() method of 
the EDIT action null?

Thanks,
Michelle


A strange problem about locale.

2001-06-20 Thread Liang Li



I have 
several properties files as :

Resources.properties for English 
(en)
Resources_es.propertiesfor 
Spanish
Resources_de.properties for 
Germany.

At first everything worked fine, just as I expected: 
after I changed the locale in "Regional Options" in Control Panel, the following 
code will return the correct locale.
 
 HttpServletRequest request = 
(HttpServletRequest) pageContext.getRequest(); Locale 
locale = request.getLocale();

But after a while (I can't remember what I modified 
seriously), it doesn't work. Even I set the locale in Regional Options to 
Spanish, the code always return en_US. And I rebooted several time, no 
difference

Can anybody help me ? I have Win2000 
Professional.

Thanks.


RE: A strange problem about locale.

2001-06-20 Thread Simon Liang



Hi 
Li:

I 
think the request.getLocale() examine the 'Accept-Language' header coming from 
the browser. So if the language preference for the browser is set to 
English(en_us). English locale is always returned - perhaps this explains your 
problem.

hope 
this helps.
Simon


  -Original Message-From: Liang Li 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, June 20, 2001 2:17 
  PMTo: '[EMAIL PROTECTED]'Subject: A strange 
  problem about locale.
  I 
  have several properties files as :
  
  Resources.properties for English 
  (en)
  Resources_es.propertiesfor 
  Spanish
  Resources_de.properties for 
  Germany.
  
  At first everything 
  worked fine, just as I expected: after I changed the locale in "Regional 
  Options" in Control Panel, the following code will return the correct 
  locale.
   
  
   
  HttpServletRequest request = (HttpServletRequest) 
  pageContext.getRequest(); Locale locale = 
  request.getLocale();
  
  But after a while (I 
  can't remember what I modified seriously), it doesn't work. Even I set the 
  locale in Regional Options to Spanish, the code always return en_US. And I 
  rebooted several time, no difference
  
  Can anybody help 
  me ? I have Win2000 Professional.
  
  Thanks.





This message is intended only for the use of the Addressee(s) and may

contain information that is PRIVILEGED and CONFIDENTIAL. If you are not

the intended recipient, dissemination of this communication is prohibited.

If you have received this communication in error, please erase all copies

of the message and its attachments and notify [EMAIL PROTECTED]

immediately.





Re: test, please ignore

2001-06-20 Thread Mats Josefsson

 this is a test to see is I can post messages or not.

Just curious:

Do you have anything to say, or ask, on the list? If you have, why not post
a
real message instead of sending an empty test mail to thousands of people?
If you don't have anything to say, why do you need to test?

The accepted way to do it, is to wait until you really have something to
say.
Then you post yor message. If the message doesn't show up on the list, then
it might be ok to post a test message. But not until yuu have done your best
to track down the problem yourself.

(I bet your next post will be a question on how to unsubscribe. We get even
more of those messages on this list.)




RE: creating ActionError inside a jsp page

2001-06-20 Thread Nanduri, Amarnath

Ronald,

 Thanks for your excellent suggestion. I was thinking of extending the
ActionError object to make a confirmation msg object. This way logically
there would be a clean distinction between error msgs and confirmation msgs.
The struts html:errors/ tag would then show both the messages. Since this
tag exists on every page i do not need to write my own tag and hence keep an
extra tag in the jsp pages. Any suggestions/comments ?

cheers,
Amar..

-Original Message-
From: Roland Huss [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 20, 2001 5:34 PM
To: [EMAIL PROTECTED]
Subject: Re: creating ActionError inside a jsp page


Hi,

  Is it possible to create an Action Error object inside a jsp page. When i
 am trying to forward the user from one page to an other page, i need to
show
 a confirmation message to the user (in the new page) and i was thinking of
 using an Action Error object. thanks.

I would recommend to use an own tag for informational messages to make
the separation clean between errors and messages.

For example, you could have a method in your (base) action for setting
info messages into the session under some ID.  A custom tag checks for
the existence of a session attribute ID and prints the stored info
message (and finally cleans up the session, of course).

cu...
-- 
...roland huss
 consol.de



Re: JSP translated to Tags???

2001-06-20 Thread Martin Cooper

It seems to me that this is logically equivalent to using jsp:include with
jsp:param to specify the attribute values. In other words, this:

mytags:foo attr1=bar attr2=baz/

would be logically equivalent to this:

jsp:include page=mytags/foo.jsp
jsp:param name=attr1 value=bar/
jsp:param name=attr2 value=baz/
/jsp:include

Is this correct, or is there more to it than that?

I guess one thing you would gain from using a tag versus an include is
better performance, but the idea does seem a little odd to me.

--
Martin Cooper


- Original Message -
From: Eduardo Pelegri-Llopart [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 20, 2001 1:46 PM
Subject: Re: JSP translated to Tags???


 I see two main benefits to something like this.  One is that it can be
 done by page authors, wihtout having to ask the developer.  If a page
 author has some fragment, it may even be just plain template!, it can
 encapsulate and reuse it.

 The other benefit is that is is actually quite hard to reuse tag
 handlers from Java.  The instantiation protocol is quite complex and
 easy to get wrong.  There is a reason for it but...

 The details of JST may or not be the best, but I like the concept, and
 the vendors and developers I've talked to like it too.  Other opinions?

 - eduard/o

 Gogineni, Pratima wrote:
 
  Speaking of JRUN - I was playing with their latest version 3.1 and they
have
  a very strange concept/tool ..
 
  You can write jsp pages and name them with a *.jst extension and they
get
  translated to a custom tag instead of to a servlet. I thought it was not
a
  good idea - jsp to create tags to use in jsp? and i guess you lose quite
a
  bit of control on how it is translated etc. and I dont see why writing
the
  code  as  scriptlets in the jsp page is better than writing the tag
handler
  classes your self?
 
  Does any one see any merits in this approach?
 
  pratima
  -Original Message-
  From: Gogineni, Pratima
  Sent: Saturday, June 09, 2001 9:24 PM
  To: '[EMAIL PROTECTED]'
  Subject: RE: more strange JRUN behavior
 
  sadly - I see this in 3.0 as well as 3.1 which was very recently
released. I
  havent tested the basic authentication as yet. I thought I would have
more
  control using the form based authentication. I need to evaluate and see
if
  the basic authentication works fine - else I should probably go with
custom
  authentication 
 
  I went through their forums too and found messages about the form based
  authentication.
 
  Pratima
 
  -Original Message-
  From: George Craig [mailto:[EMAIL PROTECTED]]
  Sent: Saturday, June 09, 2001 7:28 PM
  To: [EMAIL PROTECTED]
  Subject: Re: more strange JRUN behavior
 
  I, too, have observed this intermittent quirkiness in its authentication
  behavior.
 
  After reading all of their forum posts, the consensus is to use Basic
  authentication. I concur that it has been the most stable for container
  authentication in J-Run. I would shy away from Form-based authentication
  until Macromedia has stabilized it in the next release (to some extent
IIRC,
  even they acknowledge its shortcomings.) However, I realize this might
not
  be an option for you.
 
  For us, we've opted to use SiteMinder.
 
  george
 
  - Original Message -
  From: Gogineni, Pratima [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Saturday, June 09, 2001 8:16 PM
  Subject: more strange JRUN behavior
 
  
   I have  a webapp that I have been testing under both tomcat and JRUN
for
   sometime now. About a month ago I decided to go with app server
provided
   form based security.
   I tested my app on JRUN,Tomcat and Resin and it worked fine.
  
   Since then I had been working only on tomcat - now when I tested with
JRUN
   the login screen comes up, I enter the name and password and the
screen
  just
   hangs and the progress bar tells me opening page j_security-check  -
now
   to check if it was the application that was causing the problem. I
created
  a
   dummy page that does nothing as the welcome page and I CAN login.
  
   So something in my application is causing JRUN to hang at the security
  check
   - doesnt make too much sense to me. Another thing is that I disabled
the
   authentication totally and the application works fine on JRUN.
  
   Now the question is - has anyone had similar problems with JRUN or
have an
   idea why something like this should occur? Surely my app should not
   interfere with the appserver authentication - it should atleast
  authenticate
   me and then show an error page. Also works fine in tomcat No error
   messages in the log files... My init servlets (both Action servlet and
my
   own custom servlet) seem to be starting up fine.
  
   Does anyone have good/bad experiences with JRUN? I have had extremely
  flaky
   behavior from JRUN.
   Things seem to work great on Tomcat and Resin.
  
   pratima





Re: JSP translated to Tags???

2001-06-20 Thread Martin Cooper

It seems to me that this is logically equivalent to using jsp:include with
jsp:param to specify the attribute values. In other words, this:

mytags:foo attr1=bar attr2=baz/

would be logically equivalent to this:

jsp:include page=mytags/foo.jsp
jsp:param name=attr1 value=bar/
jsp:param name=attr2 value=baz/
/jsp:include

Is this correct, or is there more to it than that?

I guess one thing you would gain from using a tag versus an include is
better performance, but the idea does seem a little odd to me.

--
Martin Cooper


- Original Message -
From: Eduardo Pelegri-Llopart [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 20, 2001 1:46 PM
Subject: Re: JSP translated to Tags???


 I see two main benefits to something like this.  One is that it can be
 done by page authors, wihtout having to ask the developer.  If a page
 author has some fragment, it may even be just plain template!, it can
 encapsulate and reuse it.

 The other benefit is that is is actually quite hard to reuse tag
 handlers from Java.  The instantiation protocol is quite complex and
 easy to get wrong.  There is a reason for it but...

 The details of JST may or not be the best, but I like the concept, and
 the vendors and developers I've talked to like it too.  Other opinions?

 - eduard/o

 Gogineni, Pratima wrote:
 
  Speaking of JRUN - I was playing with their latest version 3.1 and they
have
  a very strange concept/tool ..
 
  You can write jsp pages and name them with a *.jst extension and they
get
  translated to a custom tag instead of to a servlet. I thought it was not
a
  good idea - jsp to create tags to use in jsp? and i guess you lose quite
a
  bit of control on how it is translated etc. and I dont see why writing
the
  code  as  scriptlets in the jsp page is better than writing the tag
handler
  classes your self?
 
  Does any one see any merits in this approach?
 
  pratima
  -Original Message-
  From: Gogineni, Pratima
  Sent: Saturday, June 09, 2001 9:24 PM
  To: '[EMAIL PROTECTED]'
  Subject: RE: more strange JRUN behavior
 
  sadly - I see this in 3.0 as well as 3.1 which was very recently
released. I
  havent tested the basic authentication as yet. I thought I would have
more
  control using the form based authentication. I need to evaluate and see
if
  the basic authentication works fine - else I should probably go with
custom
  authentication 
 
  I went through their forums too and found messages about the form based
  authentication.
 
  Pratima
 
  -Original Message-
  From: George Craig [mailto:[EMAIL PROTECTED]]
  Sent: Saturday, June 09, 2001 7:28 PM
  To: [EMAIL PROTECTED]
  Subject: Re: more strange JRUN behavior
 
  I, too, have observed this intermittent quirkiness in its authentication
  behavior.
 
  After reading all of their forum posts, the consensus is to use Basic
  authentication. I concur that it has been the most stable for container
  authentication in J-Run. I would shy away from Form-based authentication
  until Macromedia has stabilized it in the next release (to some extent
IIRC,
  even they acknowledge its shortcomings.) However, I realize this might
not
  be an option for you.
 
  For us, we've opted to use SiteMinder.
 
  george
 
  - Original Message -
  From: Gogineni, Pratima [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Saturday, June 09, 2001 8:16 PM
  Subject: more strange JRUN behavior
 
  
   I have  a webapp that I have been testing under both tomcat and JRUN
for
   sometime now. About a month ago I decided to go with app server
provided
   form based security.
   I tested my app on JRUN,Tomcat and Resin and it worked fine.
  
   Since then I had been working only on tomcat - now when I tested with
JRUN
   the login screen comes up, I enter the name and password and the
screen
  just
   hangs and the progress bar tells me opening page j_security-check  -
now
   to check if it was the application that was causing the problem. I
created
  a
   dummy page that does nothing as the welcome page and I CAN login.
  
   So something in my application is causing JRUN to hang at the security
  check
   - doesnt make too much sense to me. Another thing is that I disabled
the
   authentication totally and the application works fine on JRUN.
  
   Now the question is - has anyone had similar problems with JRUN or
have an
   idea why something like this should occur? Surely my app should not
   interfere with the appserver authentication - it should atleast
  authenticate
   me and then show an error page. Also works fine in tomcat No error
   messages in the log files... My init servlets (both Action servlet and
my
   own custom servlet) seem to be starting up fine.
  
   Does anyone have good/bad experiences with JRUN? I have had extremely
  flaky
   behavior from JRUN.
   Things seem to work great on Tomcat and Resin.
  
   pratima





Re: creating ActionError inside a jsp page

2001-06-20 Thread Martin Cooper

Are you forwarding directly from one JSP to another? That would seem to be
mixing controller functionality with the view. On the other hand, if you're
not doing that, then the Action between the pages is the place to create
your ActionError.

--
Martin Cooper


- Original Message -
From: Nanduri, Amarnath [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 20, 2001 11:04 AM
Subject: creating ActionError inside a jsp page



 Hi All,

  Is it possible to create an Action Error object inside a jsp page. When i
 am trying to forward the user from one page to an other page, i need to
show
 a confirmation message to the user (in the new page) and i was thinking of
 using an Action Error object. thanks.


 cheers,
 Amar..





Re: Subsessions needed?

2001-06-20 Thread Mike Williams

   On Wed, 20 Jun 2001 19:01:52 +0200,
   Thomas == Thomas Klute [EMAIL PROTECTED] wrote:

  Thomas The scope request for the actionformbean creates a
  Thomas new bean with every request - impossible to collect the
  Thomas data from more than one page.

How about if you propagate data thru the pages using hidden fields?  Note,
though, that this means passing lots more data back-and-forth between the
browser and server, and you'll have to re-validate the data for each
request.

  Thomas The scope session creates one actionformbean per 
  Thomas session - impossible to have more than one instance
  Thomas of a form-page-set.

For each distinct multi-page operation, you could generate a unique
operation ID (or call it a sub-session ID, if you like).  Then, use the
op-ID as the key to store your ActionForm on the Session.  You'd need to
invoke ActionForm.validate() yourself within your action, as the ActionForm
would no longer have standard name.  Plus, you might have to deal with
ActionForms for aborted operations littering your session.

-- 
Mike




Re: form is null in Action

2001-06-20 Thread Michelle Popovits



Yes, that was it.
The form tag's name attribute in the struts-config 
file was misspelled (first letter was uppercase when it should have been 
lowercase).

Thanks!
Michelle

  - Original Message - 
  From: 
  [EMAIL PROTECTED] 
  
  To: [EMAIL PROTECTED] 
  
  Sent: Wednesday, June 20, 2001 12:08 
  PM
  Subject: RE: form is null in Action
  
  Hi,
  Check the mapping for the form class in the 
  config-file... the EDIT action should be pointing to the correct form 
  class...
  
  
  -satyen
  
-Original Message-From: Michelle Popovits 
[mailto:[EMAIL PROTECTED]]Sent: Wednesday, June 20, 2001 
3:57 PMTo: [EMAIL PROTECTED]Subject: 
form is null in Action
Hi,


- In my SEARCH action I retrieve the required 
data from a datasource based on user entered search criteria.
- I place this data in a new EDIT Form 
instanceand place it in the session.
- I Then forward to the EDIT jsp (which uses 
the EDIT Form) and the data is displayed nicely in a table.
- I then click SUBMIT which sends me to the 
EDIT Action.
- In the EDIT action the form argument is 
null. I am expecting that my EDIT Form would be available here. 
If I do a getAttribute from the session the EDIT Form is there.

Why is the form argument in the perform() 
method of the EDIT action null?

Thanks,
Michelle--The 
  information in this Internet email is confidential and may be legally 
  privileged. It is intended solely for the addressee. Access to this 
  Internet email by anyone else is unauthorised.If you are not the 
  intended recipient, any disclosure, copying, distributionor any action 
  taken or omitted to be taken in reliance on it, is prohibitedand may be 
  unlawful. When addressed to our clients any opinions or advicecontained in 
  this Internet email are subject to the terms and conditionsexpressed in 
  any applicable governing ING Barings' terms of business orclient 
  engagement letter.Visit us at 
  www.ingbarings.com--


Re: creating ActionError inside a jsp page

2001-06-20 Thread Ted Husted

It should be possible, but you would also have to replicate the Action
classes's SaveError method to expose the error collection to the next
page in the request.

See David Winterfeldt's validation package for tags that seperate errors
and other messages. 

 http://www.husted.com/about/struts/ 

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

Nanduri, Amarnath wrote:
 
 Hi All,
 
  Is it possible to create an Action Error object inside a jsp page. When i
 am trying to forward the user from one page to an other page, i need to show
 a confirmation message to the user (in the new page) and i was thinking of
 using an Action Error object. thanks.
 
 cheers,
 Amar..



RE: Nested Beans on form not being updated

2001-06-20 Thread Simon Liang

Hello:

I am experiencing the same problem. Basically on a post to the form. the
nested beans are set to null. Is this right? Are we doing something wrong or
misunderstanding something here?

!-- here is the code fragment --
html:form
...
html:text name=userprofileForm property=name styleClass=select/
...
html:text name=userprofileForm property=profileWebAddress.mail
styleClass=select/ 
...
/html:form
!-- end code fragment --

On the post, the object 'profileWebAddress' is null. Is this valid? Can
someone shine some light into this?

Please help.

Simon



-Original Message-
From: Chuck Stern [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 18, 2001 1:24 AM
To: Struts-User
Subject: Nested Beans on form not being updated


Hi,

I have a form with multiple beans on it but the nested beans are not getting
updated when I change the data and submit.  I use dot notation to display
the data from the beans and populate the form, that works great.  After
submitting, the nested beans are set to null.

I've tried putting the form bean in both request and session but get the
same results.  Any ideas?


Thanks,
Chuck



This message is intended only for the use of the Addressee(s) and may
contain information that is PRIVILEGED and CONFIDENTIAL. If you are not
the intended recipient, dissemination of this communication is prohibited.
If you have received this communication in error, please erase all copies
of the message and its attachments and notify [EMAIL PROTECTED]
immediately.





Re: [ANNOUNCMENT] Strut by Strut

2001-06-20 Thread Ho Soo Aun



Ted Husted wrote:

 Sorry for the troubles with the inital WAR. I was experimenting with an
 alternate configuration, which, as it turns out, is not compatible with
 all versions of all containers. I've returned to the conventional
 configuration, and you may wish to download the updated copy.

  http://www.husted.com/about/struts/struts-stub.zip 

I download this WAR and its runs ok on JBOSS-2.2.2_Tomcat-3.2.2 on
win2kpro..
That was after I encounter this problem.

[EmbeddedTomcatSX] resolveEntity('-//Apache Software Foundation//DTD Struts
Configuration 1.0//EN',
'http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd')
[EmbeddedTomcatSX]  Resolving to alternate DTD
'jar:file:D:\JBoss_Tomcat\tomcat\webapps\struts-stub\WEB-INF\lib\struts.jar!/org/apache/struts/resources/struts-config_1_0.dtd'

[EmbeddedTomcatSX] New org.apache.struts.action.ActionForward
[EmbeddedTomcatSX] Set org.apache.struts.action.ActionForward properties
[EmbeddedTomcatSX] Call
org.apache.struts.action.ActionServlet.addForward(ActionForward[welcome])
[EmbeddedTomcatSX] Pop org.apache.struts.action.ActionForward
[EmbeddedTomcatSX] New org.apache.struts.action.ActionForward
[EmbeddedTomcatSX] Set org.apache.struts.action.ActionForward properties
[EmbeddedTomcatSX] Call
org.apache.struts.action.ActionServlet.addForward(ActionForward[help])
[EmbeddedTomcatSX] Pop org.apache.struts.action.ActionForward
[EmbeddedTomcatSX] Parse Error at line 45 column -1: Element
struts-config does not allow form-beans here.
[EmbeddedTomcatSX] org.xml.sax.SAXParseException: Element struts-config
does not allow form-beans here.
[EmbeddedTomcatSX]  at
org.apache.crimson.parser.Parser2.error(Parser2.java:3013)
[EmbeddedTomcatSX]  at
org.apache.crimson.parser.ValidatingParser$ChildrenValidator.consume(ValidatingParser.java:349)

Comparing the struts-config.xml  file with those in other struts example, I
move the form-beans element infront of global-forwards
and it works.
So the order is important here.

Just started to learn Struts.
Thanks

Soo Aun




Re: Help, How to check (initially) a radio button?

2001-06-20 Thread Eda Srinivasareddy
 
 Do You Yahoo!?
Yahoo! Mail Personal Address - 
Get email at your own domain with Yahoo! Mail.

unable to programmatically perform a submit

2001-06-20 Thread Michelle Popovits




Hi,

I am trying to get an image map working that does a 
submit.
The image map itself works.
However, when I click on the image area it 
complains when trying to execute the submit.

Error: object doesn't support 
this property or method.

I have tried just performing a submit without the 
event assignment, like so:
MAP NAME="MyMap" AREA 
SHAPE="Rect" NOHREF COORDS="82,2 163,23" 
/MAP

This works in my 
non-strutsform version.


Here is the html 
output:

MAP NAME="MyMap" AREA 
SHAPE="Rect" NOHREF COORDS="82,2 163,23" 
/MAP

img 
src="/LAPS1/VirtualClassroomWAR/images/tab1a.gif" border="0" 
usemap="#MyMap"
struts version

strutshtml:html
strutshtml:form 
action="editPersonalInfo.do" name="personalInfoForm" 
type="com.bmo.ifl.laps.forms.PersonalInfoForm"
MAP NAME="MyMap" AREA 
SHAPE="Rect" NOHREF COORDS="82,2 163,23" 
/MAP

strutshtml:img usemap="#MyMap" 
pageKey="page.editPersonalInfo.tabImage" border="0" 
/.../strutshtml:form
/strutshtml:html


non-struts version - this 
works

form id=f1MAP NAME="MyMap2" AREA 
SHAPE="Rect" NOHREF COORDS="82,2 163,23" 
/MAP

img USEMAP="#MyMap2" SRC="%= request.getContextPath() 
%/images/tab1a.gif" BORDER="0" input type=text name=event 
value=UPDATE_PERSONAL_INFO

/form

I don't believe the image map is the problem. 
I think that there is just some reason why it will not except a submit() 
programmatically.

Thanks,
Michelle


why does it take so long for my postings to show up?

2001-06-20 Thread Michelle Popovits



I am just curious why it takes so long for postings 
to show up?
I postedmessage at 12pm est and it finally 
showed up at 5pm -- that's 5 hours.

This posting I am writing at 5:21pm EST. I 
wonder how long it will take.

Is it just me or is this the way that this is 
supposed to work?

Thanks,
Michelle


Re: form is null in Action

2001-06-20 Thread Linnea Ahlbeck



Hi!!

In your struts-config.xml-file - is your form-bean correctly defined 
there??

!-- Address form bean 
-- form-bean 
name="addressForm" 
type="Web.AddressBook.AddressForm"/

The formbean should also be specified in your the action, tag name:

!-- Edit an address 
-- action 
path="/editAddress" 
type="Web.AddressBook.EditAddressAction" 
name="addressForm" 
scope="session" 
validate="false" forward 
name="success" 
path="/Address.jsp"/ forward 
name="failure" path="/ErrorLDAP.jsp"/ 
/action

Hope this can help!! 

/Linnéa

- Original Message - 

  From: 
  Michelle Popovits 
  To: [EMAIL PROTECTED] 
  Sent: Wednesday, June 20, 2001 5:47 
  PM
  Subject: form is null in Action
  
  
  Hi,
  
  
  - In my SEARCH action I retrieve the required 
  data from a datasource based on user entered search criteria.
  - I place this data in a new EDIT Form 
  instanceand place it in the session.
  - I Then forward to the EDIT jsp (which uses the 
  EDIT Form) and the data is displayed nicely in a table.
  - I then click SUBMIT which sends me to the EDIT 
  Action.
  - In the EDIT action the form argument is 
  null. I am expecting that my EDIT Form would be available here. If 
  I do a getAttribute from the session the EDIT Form is there.
  
  Why is the form argument in the perform() method 
  of the EDIT action null?
  
  Thanks,
  Michelle