RE: CDManager sample in the book The Struts Framework

2004-03-22 Thread McCormack, Chris
InsertAction.execute appears to be trying to access a datasource which is not 
initialised.
Check the connection details are correct and that the connection is valid before 
trying to use it.

Chris McCormack

-Original Message-
From: Johnson Leung [mailto:[EMAIL PROTECTED]
Sent: 21 March 2004 18:13
To: [EMAIL PROTECTED]
Subject: CDManager sample in the book The Struts Framework


Hi All,

I am new to Struts, and just start to learn it.

I bought the book The Struts Framework and downloaded their sample
application. However, whenever I tried to retrieve (or save) records
from the database, I encountered the following error in the log. I am
using J2SE instead of J2EE. Do you think it is causing the problem? If
not, can someone help to point out what's wrong?

Thanks a lot,
Johnson
[EMAIL PROTECTED]

2004-03-21 09:28:43 StandardContext[/sonic]action: Initializing
application data source org.apache.struts.action.DATA_SOURCE
2004-03-21 09:29:13 StandardWrapperValve[cdmanager]: Servlet.service()
for servlet cdmanager threw exception
java.lang.NullPointerException
at cdmanager.actions.InsertAction.execute(Unknown Source)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:446)
 


at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:266) 


at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
 


at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
 


at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257) 


at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
 


at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)
 


at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199) 


at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
 


at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:184) 


at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
 


at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164) 


at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
 


at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156) 


at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
 


at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:833)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:732)
 


at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:619)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:688) 


at java.lang.Thread.run(Thread.java:534)


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


***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



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



hrml:link transaction

2004-03-22 Thread James Scrimshire
It appears that the token is not being saved using the transcation=true
property

is there something i am missing here?  the isValidToken(request) method in
my Action claims the token is not valid? but this is on the first
submission to the action from the followling link

html:link action=/processToken transaction=true My Link /







For the latest data on the economy and society 
consult National Statistics at http://www.statistics.gov.uk

**
Please Note:  Incoming and outgoing email messages
are routinely monitored for compliance with our policy
on the use of electronic communications
**
Legal Disclaimer  :  Any views expressed by
the sender of this message are not necessarily
those of the Office for National Statistics
**

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

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



Re: There *has* to be an easy way to do this...

2004-03-22 Thread Mark Lowe
Your using OM objects and stuffing them into your view but this should 
still work anyhow.

CreditCost newCost = new CreditCost();
creditCostList.add(newCost);
Have an add action do the above, I assume you're scoping to session as 
you're iterating through a scoped array/list and not a form property.

IMO you want to have things looking more like this

logic:iterate id=item name=costsForm property=creditCosts

and in your actions

CreditCostsForm theForm = (CreditCostsForm) form;

List costList = theForm.getCreditCosts();

costList.setCrediCost(costList.size(),new CreditCostForm());

Notice CreditCostForm not CreditCost from you OM, although you could 
get away with using CreditCost as a form property it will make life 
harder if you ever want to decouple the web and model tiers.

If you cant be arsed having webtier beans/forms then perhaps use a map 
or dynabean to do the same thing.

On 22 Mar 2004, at 08:42, Joe Hertz wrote:



I have a simple iterate in a piece of JSP (snippet follows) that 
provides an
interface inside of an HTML table to modify items that came out of the
database.

What I want to do is provide an extra row or two for new items to be 
inserted
into the database. Short of embeddeding scriptlet code to generate the
property identifiers (which are in a List), is there a good way to do 
this?

Basically the ideal answer would be to have a way to tell 
logic:iterate to go
for an extra round, with the tag being smart enough to do the 
needful.

tia

-Joe

table border=1 cellpadding=1
tr
thMinimum Purchase/th
thCost Per Credit/th
thBegin Date/th
thEnd Date/th
/tr
logic:iterate id=item name=creditCost indexId=index
type=bb.hibernate.Creditprice
trtdhtml:hidden name=item property=id indexed=true /
html:text maxlength=5 name=item property=minPurchase size=5
indexed=true //td
tdhtml:text maxlength=5 name=item property=creditCost size=5
indexed=true //td
tdhtml:text maxlength=10 name=item property=beginDate 
size=10
indexed=true //td
tdhtml:text maxlength=10 name=item property=endDate size=10
indexed=true //td/tr
/logic:iterate

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


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


Any body knows how to use Struts Pagination? Give me a sample code

2004-03-22 Thread Ramachandran
Hi Lists,

I want to use pagination in my project. I am having all the resources for
pagination. Any body please give me sample example for that one using
pager-taglib. It will be very helpful for me..

Ram


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



ActionServlet.getRequestProcessor

2004-03-22 Thread Namasivayam, Sudhakar (Cognizant)
Title: ActionServlet.getRequestProcessor






Hi all,

 I keep getting this exception message when i stop and start the webapp. IF i insert a try catch block in the action servlet class,it works fine... 

Can any one explain me why this exception occurs? 

I did verify that getServletContext().getAttribute(key); in ActionServlet.java:855 returns a RequestProcessor object. 


Thanks in advance,

Sudhakar




2004-03-22 15:18:09 Manager: start: Starting web application at '/sfpsr2'

2004-03-22 15:18:09 StandardHost[localhost]: standardHost.start /sfpsr2

2004-03-22 15:18:09 StandardContext[/sfpsr2]: Configuring ProxyDirContext [EMAIL PROTECTED]

2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploying class repositories to work directory /usr/local/tomcat4.0.4/work/Agent8050/localhost/sfpsr2

2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploy JAR /WEB-INF/lib/activation.jar to /usr/local/tomcat4.0.4/webapps/sfpsr2/WEB-INF/lib/activation.jar

2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploy JAR /WEB-INF/lib/classes12.jar to /usr/local/tomcat4.0.4/webapps/sfpsr2/WEB-INF/lib/classes12.jar

2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploy JAR /WEB-INF/lib/commons-beanutils.jar to /usr/local/tomcat4.0.4/webapps/sfpsr2/WEB-INF/lib/commons-beanutils.jar

2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploy JAR /WEB-INF/lib/commons-collections.jar to /usr/local/tomcat4.0.4/webapps/sfpsr2/WEB-INF/lib/commons-collections.jar

2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploy JAR /WEB-INF/lib/commons-dbcp-1.1.jar to /usr/local/tomcat4.0.4/webapps/sfpsr2/WEB-INF/lib/commons-dbcp-1.1.jar

2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploy JAR /WEB-INF/lib/commons-digester.jar to /usr/local/tomcat4.0.4/webapps/sfpsr2/WEB-INF/lib/commons-digester.jar

2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploy JAR /WEB-INF/lib/commons-fileupload.jar to /usr/local/tomcat4.0.4/webapps/sfpsr2/WEB-INF/lib/commons-fileupload.jar

2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploy JAR /WEB-INF/lib/commons-lang.jar to /usr/local/tomcat4.0.4/webapps/sfpsr2/WEB-INF/lib/commons-lang.jar

2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploy JAR /WEB-INF/lib/commons-logging.jar to /usr/local/tomcat4.0.4/webapps/sfpsr2/WEB-INF/lib/commons-logging.jar

2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploy JAR /WEB-INF/lib/commons-logging1.jar to /usr/local/tomcat4.0.4/webapps/sfpsr2/WEB-INF/lib/commons-logging1.jar

2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploy JAR /WEB-INF/lib/commons-validator.jar to /usr/local/tomcat4.0.4/webapps/sfpsr2/WEB-INF/lib/commons-validator.jar

2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploy JAR /WEB-INF/lib/jakarta-oro.jar to /usr/local/tomcat4.0.4/webapps/sfpsr2/WEB-INF/lib/jakarta-oro.jar

2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploy JAR /WEB-INF/lib/log4j-1.2.8.jar to /usr/local/tomcat4.0.4/webapps/sfpsr2/WEB-INF/lib/log4j-1.2.8.jar

2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploy JAR /WEB-INF/lib/mail.jar to /usr/local/tomcat4.0.4/webapps/sfpsr2/WEB-INF/lib/mail.jar

2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploy JAR /WEB-INF/lib/servlet.jar to /usr/local/tomcat4.0.4/webapps/sfpsr2/WEB-INF/lib/servlet.jar

2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploy JAR /WEB-INF/lib/struts.jar to /usr/local/tomcat4.0.4/webapps/sfpsr2/WEB-INF/lib/struts.jar

2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploy JAR /WEB-INF/lib/struts2.jar to /usr/local/tomcat4.0.4/webapps/sfpsr2/WEB-INF/lib/struts2.jar

2004-03-22 15:18:09 StandardManager[/sfpsr2]: Seeding random number generator class java.security.SecureRandom

2004-03-22 15:18:09 StandardManager[/sfpsr2]: Seeding of random number generator has been completed

2004-03-22 15:18:10 ContextConfig[/sfpsr2]: Added certificates - request attribute Valve

2004-03-22 15:18:10 Initializing application variables

2004-03-22 15:18:11 StandardWrapper[/sfpsr2:default]: Loading container servlet default

2004-03-22 15:18:11 default: init

2004-03-22 15:18:11 jsp: init

2004-03-22 15:18:12 StandardWrapper[/sfpsr2:ssi]: Loading container servlet ssi

2004-03-22 15:18:12 ssi: init

2004-03-22 15:18:12 action: init

2004-03-22 15:18:13 Manager: list: Listing contexts for virtual host 'localhost'

2004-03-22 15:19:09 StandardWrapperValve[action]: Servlet.service() for servlet action threw exception

java.lang.ClassCastException

 at org.apache.struts.action.ActionServlet.getRequestProcessor(ActionServlet.java:855)

 at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)

 at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)

 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)

 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)

 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)

 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)

 at 

How to Configure Struts in SAP web As 6.3

2004-03-22 Thread Bala S Subramanian
Hi,

  I am currently trying to plugin the struts 1.1 to SAP Web AS 6.3. I 
facing a big problem in struts which is mentioned below:

javax.servlet.jsp.JspException: Cannot find message resources under key 
org.apache.struts.action.MESSAGE
at 
org.apache.struts.util.RequestUtils.retrieveMessageResources(RequestUtils.java:1039)
at 
org.apache.struts.util.RequestUtils.message(RequestUtils.java:982)
at 
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:294)
at 
jsp_saplogin1079948821594._jspx_method_bean_message_0(jsp_saplogin1079948821594.jjsp:65535)
at 
jsp_saplogin1079948821594._jspService(jsp_saplogin1079948821594.jjsp:12)
at 
com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:445)
at 
com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:171)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
com.sap.engine.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet.java:171)
at 
com.sap.engine.services.servlets_jsp.server.ServletsAndJspImpl.startServlet(ServletsAndJspImpl.java:387)
at 
com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:375)
at 
com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:355)
at 
com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:721)
at 
com.sap.engine.services.httpserver.server.RequestAnalizer.checkFilename(RequestAnalizer.java:418)
at 
com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:223)
at 
com.sap.engine.services.httpserver.server.Client.handle(Client.java:79)
at 
com.sap.engine.services.httpserver.server.Processor.request(Processor.java:152)
at 
com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
at 
com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:60)
at 
com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:55)
at java.security.AccessController.doPrivileged(Native Method)
at 
com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:115)

Please let me know how to configurre the Struts 1.1 to SAP web AS 6.3. Any 
docs / steps are available. Please mail me

thanks
bala

Re: There *has* to be an easy way to do this..

2004-03-22 Thread Joe Hertz

In a word, Doh! 

I'm using a DynaForm, and frankly, wanted this as a form property, but 
well...Let's just say I was brainwashed by my previous paradigm. 

Rather than using a List in the dynaform, I'm going to create a bunch of 
String[] properties. Not even so much for the decoupling aspect (which isn't 
AS big of a deal as it usually is because this JSP by definition is going to 
be a maintenance screen for this particular Object regardless) but I'm going 
to need sic the validator onto the fields on the screen, so string arrays it 
is. 

JOC, is it kosher for me to be setting the form properties in the Action that 
leads into the JSP, or should I be doing it somewhere in the form's class. 
(This seems like a basic question, but in the home grown framework I was 
raised on, this concept was a bit of a no-no. Much like chaining actions is 
in Struts.

Thanks for your help.

-Joe

 -Original Message-
 From: Mark Lowe [mailto:[EMAIL PROTECTED] 
 Sent: Monday, March 22, 2004 4:20 AM
 To: Struts Users Mailing List
 Subject: Re: There *has* to be an easy way to do this...
 
 
 Your using OM objects and stuffing them into your view but 
 this should 
 still work anyhow.
 
 CreditCost newCost = new CreditCost(); creditCostList.add(newCost);
 
 Have an add action do the above, I assume you're scoping to 
 session as 
 you're iterating through a scoped array/list and not a form property.
 
 IMO you want to have things looking more like this
 
 logic:iterate id=item name=costsForm property=creditCosts
 
 and in your actions
 
 CreditCostsForm theForm = (CreditCostsForm) form;
 
 List costList = theForm.getCreditCosts();
 
 costList.setCrediCost(costList.size(),new CreditCostForm());
 
 Notice CreditCostForm not CreditCost from you OM, although you could 
 get away with using CreditCost as a form property it will make life 
 harder if you ever want to decouple the web and model tiers.
 
 If you cant be arsed having webtier beans/forms then perhaps 
 use a map 
 or dynabean to do the same thing.
 
 On 22 Mar 2004, at 08:42, Joe Hertz wrote:
 
 
 
  I have a simple iterate in a piece of JSP (snippet follows) that
  provides an
  interface inside of an HTML table to modify items that came 
 out of the
  database.
 
  What I want to do is provide an extra row or two for new items to be
  inserted
  into the database. Short of embeddeding scriptlet code to 
 generate the
  property identifiers (which are in a List), is there a good 
 way to do 
  this?
 
  Basically the ideal answer would be to have a way to tell
  logic:iterate to go
  for an extra round, with the tag being smart enough to do the 
  needful.
 
  tia
 
  -Joe
 
  table border=1 cellpadding=1
  tr
  thMinimum Purchase/th
  thCost Per Credit/th
  thBegin Date/th
  thEnd Date/th
  /tr
  logic:iterate id=item name=creditCost indexId=index 
  type=bb.hibernate.Creditprice trtdhtml:hidden name=item 
  property=id indexed=true / html:text maxlength=5 
 name=item 
  property=minPurchase size=5 indexed=true //td
  tdhtml:text maxlength=5 name=item 
 property=creditCost size=5
  indexed=true //td
  tdhtml:text maxlength=10 name=item property=beginDate 
  size=10
  indexed=true //td
  tdhtml:text maxlength=10 name=item 
 property=endDate size=10
  indexed=true //td/tr
  /logic:iterate
 
 
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


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



Re: There *has* to be an easy way to do this..

2004-03-22 Thread Mark Lowe
You could get what you're doing now running using ArrayList as a form 
property. and then nest your hibernate Beans in there until such a time 
as you have enough time to change things .

form-bean name=creditCostsForm type=...
form-property name=creditCosts type=java.util.ArrayList /
DyanaActionForm theForm = (DynaActionForm) form;

List costList = (List) theForm.get(creditCosts);

.. add your beans into the list and a new one if you so wish.

theForm.set(creditCosts,costList);

..

html:form action=/save.do
logic:iterate id=item name=creditCostsForm property=creditCosts

On 22 Mar 2004, at 11:30, Joe Hertz wrote:

In a word, Doh!

I'm using a DynaForm, and frankly, wanted this as a form property, but
well...Let's just say I was brainwashed by my previous paradigm.
Rather than using a List in the dynaform, I'm going to create a bunch 
of
String[] properties. Not even so much for the decoupling aspect (which 
isn't
AS big of a deal as it usually is because this JSP by definition is 
going to
be a maintenance screen for this particular Object regardless) but I'm 
going
to need sic the validator onto the fields on the screen, so string 
arrays it
is.

JOC, is it kosher for me to be setting the form properties in the 
Action that
leads into the JSP, or should I be doing it somewhere in the form's 
class.
(This seems like a basic question, but in the home grown framework I 
was
raised on, this concept was a bit of a no-no. Much like chaining 
actions is
in Struts.

Thanks for your help.

-Joe

-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 4:20 AM
To: Struts Users Mailing List
Subject: Re: There *has* to be an easy way to do this...
Your using OM objects and stuffing them into your view but
this should
still work anyhow.
CreditCost newCost = new CreditCost(); creditCostList.add(newCost);

Have an add action do the above, I assume you're scoping to
session as
you're iterating through a scoped array/list and not a form property.
IMO you want to have things looking more like this

logic:iterate id=item name=costsForm property=creditCosts

and in your actions

CreditCostsForm theForm = (CreditCostsForm) form;

List costList = theForm.getCreditCosts();

costList.setCrediCost(costList.size(),new CreditCostForm());

Notice CreditCostForm not CreditCost from you OM, although you could
get away with using CreditCost as a form property it will make life
harder if you ever want to decouple the web and model tiers.
If you cant be arsed having webtier beans/forms then perhaps
use a map
or dynabean to do the same thing.
On 22 Mar 2004, at 08:42, Joe Hertz wrote:



I have a simple iterate in a piece of JSP (snippet follows) that
provides an
interface inside of an HTML table to modify items that came
out of the
database.

What I want to do is provide an extra row or two for new items to be
inserted
into the database. Short of embeddeding scriptlet code to
generate the
property identifiers (which are in a List), is there a good
way to do
this?

Basically the ideal answer would be to have a way to tell
logic:iterate to go
for an extra round, with the tag being smart enough to do the
needful.
tia

-Joe

table border=1 cellpadding=1
tr
thMinimum Purchase/th
thCost Per Credit/th
thBegin Date/th
thEnd Date/th
/tr
logic:iterate id=item name=creditCost indexId=index
type=bb.hibernate.Creditprice trtdhtml:hidden name=item
property=id indexed=true / html:text maxlength=5
name=item
property=minPurchase size=5 indexed=true //td
tdhtml:text maxlength=5 name=item
property=creditCost size=5
indexed=true //td
tdhtml:text maxlength=10 name=item property=beginDate
size=10
indexed=true //td
tdhtml:text maxlength=10 name=item
property=endDate size=10
indexed=true //td/tr
/logic:iterate


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


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




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


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


Indexed Property

2004-03-22 Thread Prakasan OK
Hi,

can anyone give me a sample code for implementing indexed properties?
how should the jsp page and the corresponding Action class look like?

thanks,
Prakasan

java.lang.NoClassDefFoundError: org/xml/sax/SAXParseException

2004-03-22 Thread Bala S Subramanian
Hi ,

  I tried to call the action classes http://localhost/context 
rootlogin.do, am getting the following exception 

java.lang.NoClassDefFoundError: org/xml/sax/SAXParseException
at 
org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1403)
at 
org.apache.struts.action.ActionServlet.init(ActionServlet.java:465)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at 
com.sap.engine.services.servlets_jsp.server.runtime.context.WebComponents.getServlet(WebComponents.java:287)
at 
com.sap.engine.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet.java:81)
at 
com.sap.engine.services.servlets_jsp.server.ServletsAndJspImpl.startServlet(ServletsAndJspImpl.java:387)
at 
com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:375)
at 
com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:355)
at 
com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:721)
at 
com.sap.engine.services.httpserver.server.RequestAnalizer.checkFilename(RequestAnalizer.java:418)
at 
com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:223)
at 
com.sap.engine.services.httpserver.server.Client.handle(Client.java:79)
at 
com.sap.engine.services.httpserver.server.Processor.request(Processor.java:152)
at 
com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
at 
com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:60)
at 
com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:55)
at java.security.AccessController.doPrivileged(Native Method)
at 
com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:115)

 Please let me know how to resolve this issue.

thanks
Bala

RE: java.lang.NoClassDefFoundError: org/xml/sax/SAXParseException

2004-03-22 Thread Ashutosh Satyam
If your application is deployed as a default ROOT application,
then Your URL should be only http://localhost/login.do 

I could make out only this much. If this helps fine, else
provide some more information. 

- Ashutosh Satyam

-Original Message-
From: Bala S Subramanian [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 5:25 PM
To: Struts Users Mailing List
Subject: java.lang.NoClassDefFoundError: org/xml/sax/SAXParseException


Hi ,

  I tried to call the action classes http://localhost/context 
rootlogin.do, am getting the following exception 

java.lang.NoClassDefFoundError: org/xml/sax/SAXParseException
at 
org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1403)
at 
org.apache.struts.action.ActionServlet.init(ActionServlet.java:465)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at 
com.sap.engine.services.servlets_jsp.server.runtime.context.WebComponents.getServlet(WebComponents.java:287)
at 
com.sap.engine.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet.java:81)
at 
com.sap.engine.services.servlets_jsp.server.ServletsAndJspImpl.startServlet(ServletsAndJspImpl.java:387)
at 
com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:375)
at 
com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:355)
at 
com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:721)
at 
com.sap.engine.services.httpserver.server.RequestAnalizer.checkFilename(RequestAnalizer.java:418)
at 
com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:223)
at 
com.sap.engine.services.httpserver.server.Client.handle(Client.java:79)
at 
com.sap.engine.services.httpserver.server.Processor.request(Processor.java:152)
at 
com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
at 
com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:60)
at 
com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:55)
at java.security.AccessController.doPrivileged(Native Method)
at 
com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:115)

 Please let me know how to resolve this issue.

thanks
Bala

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



Struts Validator

2004-03-22 Thread Matthew Clark
Hi there,
 
I am new to Struts and this mailing list but by no means new to Java.  I
have been reading the Struts in Action book and taken a quick look at
the API etc and have a simple question regarding the Validator in my
environment.
 
We are an Application Service Provider and serve well over 1000 clients
(who in turn each have between 5 and 1000 end users using the system).
Although each client uses the same core application, they can have very
different views of data and input forms and may have very different
validation requirements.  
 
Is it possible to specify validation config at runtime when using the
struts validator?  So each of our clients could have a configuration
file that specified which validation XML file to use for a given input
form?  We could use a different form for each user but that would be
inefficient and a maintenance nightmare.. I want to call the same
form/servlet but have it display a different look  feel and have
different validation rules client side and server side.  At the moment,
the validation is very much tied to the presentation layer and I want to
decouple it.
 
This is really the last obstacle standing in the way of our migration to
a pure java solution using Struts..  The use of the validator would
simplify our solution a great deal and I will also be looking into the
possibility of our clients creating their own validation configuration
files (using a web interface of some sort)
 
any help or advice would be appreciated.
 
Regards,
 
Matthew


RE: java.lang.NoClassDefFoundError: org/xml/sax/SAXParseException

2004-03-22 Thread Bala S Subramanian
Hi,

   I dont have problem in accessing the url, but it says Class not founf 
exception. I would like to know from where I can get the SAX jar file so 
that I can place in Lib directory.

thanks
Bala






Ashutosh Satyam [EMAIL PROTECTED]
03/22/2004 05:34 PM
Please respond to Struts Users Mailing List

 
To: Struts Users Mailing List [EMAIL PROTECTED]
cc: 
Subject:RE: java.lang.NoClassDefFoundError: 
org/xml/sax/SAXParseException

 

If your application is deployed as a default ROOT application,
then Your URL should be only http://localhost/login.do 

I could make out only this much. If this helps fine, else
provide some more information. 

- Ashutosh Satyam

-Original Message-
From: Bala S Subramanian [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 5:25 PM
To: Struts Users Mailing List
Subject: java.lang.NoClassDefFoundError: org/xml/sax/SAXParseException


Hi ,

  I tried to call the action classes http://localhost/context 
rootlogin.do, am getting the following exception 

java.lang.NoClassDefFoundError: org/xml/sax/SAXParseException
at 
org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1403)
at 
org.apache.struts.action.ActionServlet.init(ActionServlet.java:465)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at 
com.sap.engine.services.servlets_jsp.server.runtime.context.WebComponents.getServlet(WebComponents.java:287)
at 
com.sap.engine.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet.java:81)
at 
com.sap.engine.services.servlets_jsp.server.ServletsAndJspImpl.startServlet(ServletsAndJspImpl.java:387)
at 
com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:375)
at 
com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:355)
at 
com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:721)
at 
com.sap.engine.services.httpserver.server.RequestAnalizer.checkFilename(RequestAnalizer.java:418)
at 
com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:223)
at 
com.sap.engine.services.httpserver.server.Client.handle(Client.java:79)
at 
com.sap.engine.services.httpserver.server.Processor.request(Processor.java:152)
at 
com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
at 
com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:60)
at 
com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:55)
at java.security.AccessController.doPrivileged(Native Method)
at 
com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:115)

 Please let me know how to resolve this issue.

thanks
Bala

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





RE: java.lang.NoClassDefFoundError: org/xml/sax/SAXParseException

2004-03-22 Thread anuj . upadhyay


SAX is part of the J2SE 1.4.2, see
http://java.sun.com/j2se/1.4.2/docs/api/org/xml/sax/package-summary.html

I am not sure which sdk you have and may have to get relevant jar file. More
info is available at http://java.sun.com/xml/ and http://www.saxproject.org/.

HTH
Anuj





Bala S Subramanian [EMAIL PROTECTED] on 03/22/2004 01:31:48 PM

Please respond to Struts Users Mailing List [EMAIL PROTECTED]

To:   Struts Users Mailing List [EMAIL PROTECTED]
cc:(bcc: Anuj Upadhyay/Jeppesen/TMC)

Subject:  RE: java.lang.NoClassDefFoundError: org/xml/sax/SAXParseException



Hi,

   I dont have problem in accessing the url, but it says Class not founf
exception. I would like to know from where I can get the SAX jar file so
that I can place in Lib directory.

thanks
Bala






Ashutosh Satyam [EMAIL PROTECTED]
03/22/2004 05:34 PM
Please respond to Struts Users Mailing List


To: Struts Users Mailing List [EMAIL PROTECTED]
cc:
Subject:RE: java.lang.NoClassDefFoundError:
org/xml/sax/SAXParseException



If your application is deployed as a default ROOT application,
then Your URL should be only http://localhost/login.do

I could make out only this much. If this helps fine, else
provide some more information.

- Ashutosh Satyam

-Original Message-
From: Bala S Subramanian [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 5:25 PM
To: Struts Users Mailing List
Subject: java.lang.NoClassDefFoundError: org/xml/sax/SAXParseException


Hi ,

  I tried to call the action classes http://localhost/context
rootlogin.do, am getting the following exception

java.lang.NoClassDefFoundError: org/xml/sax/SAXParseException
at
org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1403)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:465)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
com.sap.engine.services.servlets_jsp.server.runtime.context.WebComponents.getServlet(WebComponents.java:287)

at
com.sap.engine.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet.java:81)

at
com.sap.engine.services.servlets_jsp.server.ServletsAndJspImpl.startServlet(ServletsAndJspImpl.java:387)

at
com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:375)

at
com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:355)

at
com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:721)

at
com.sap.engine.services.httpserver.server.RequestAnalizer.checkFilename(RequestAnalizer.java:418)

at
com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:223)

at
com.sap.engine.services.httpserver.server.Client.handle(Client.java:79)
at
com.sap.engine.services.httpserver.server.Processor.request(Processor.java:152)
at
com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)

at
com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:60)

at
com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:55)
at java.security.AccessController.doPrivileged(Native Method)
at
com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:115)

 Please let me know how to resolve this issue.

thanks
Bala

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











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



RE: Indexed Property

2004-03-22 Thread Robert Taylor
http://jakarta.apache.org/struts/faqs/indexedprops.html

 -Original Message-
 From: Prakasan OK [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 22, 2004 6:18 AM
 To: Struts Users Mailing List
 Subject: Indexed Property
 
 
 Hi,
 
 can anyone give me a sample code for implementing indexed properties?
 how should the jsp page and the corresponding Action class look like?
 
 thanks,
 Prakasan

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



RE: java.lang.NoClassDefFoundError: org/xml/sax/SAXParseException

2004-03-22 Thread Bala S Subramanian
Hi,

  I included the rt.jar which comes along with J2SE 1.4.2 but am getting 
unsupported version error

java.lang.UnsupportedClassVersionError: org/xml/sax/SAXParseException 
(Unsupported major.minor version 48.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
at 
com.sap.engine.services.deploy.server.ApplicationLoader.loadLocalClass(ApplicationLoader.java:143)
at 
com.sap.engine.frame.core.load.ResourceLoader.loadClass(ResourceLoader.java:120)
at 
com.sap.engine.frame.core.load.ReferencedLoader.loadClass(ReferencedLoader.java:259)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
at 
org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1403)
at 
org.apache.struts.action.ActionServlet.init(ActionServlet.java:465)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at 
com.sap.engine.services.servlets_jsp.server.runtime.context.WebComponents.getServlet(WebComponents.java:287)
at 
com.sap.engine.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet.java:81)
at 
com.sap.engine.services.servlets_jsp.server.ServletsAndJspImpl.startServlet(ServletsAndJspImpl.java:387)
at 
com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:375)
at 
com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:355)
at 
com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:721)
at 
com.sap.engine.services.httpserver.server.RequestAnalizer.checkFilename(RequestAnalizer.java:418)
at 
com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:223)
at 
com.sap.engine.services.httpserver.server.Client.handle(Client.java:79)
at 
com.sap.engine.services.httpserver.server.Processor.request(Processor.java:152)
at 
com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
at 
com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:60)
at 
com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:55)
at java.security.AccessController.doPrivileged(Native Method)
at 
com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:115)

Please let me know where to get the correct version of SAX Parser.

thanks
Bala





[EMAIL PROTECTED]
03/22/2004 06:20 PM
Please respond to Struts Users Mailing List

 
To: Struts Users Mailing List [EMAIL PROTECTED]
cc: 
Subject:RE: java.lang.NoClassDefFoundError: 
org/xml/sax/SAXParseException

 



SAX is part of the J2SE 1.4.2, see
http://java.sun.com/j2se/1.4.2/docs/api/org/xml/sax/package-summary.html

I am not sure which sdk you have and may have to get relevant jar file. 
More
info is available at http://java.sun.com/xml/ and http://www.saxproject.org/.

HTH
Anuj





Bala S Subramanian [EMAIL PROTECTED] on 03/22/2004 01:31:48 PM

Please respond to Struts Users Mailing List 
[EMAIL PROTECTED]

To:   Struts Users Mailing List [EMAIL PROTECTED]
cc:(bcc: Anuj Upadhyay/Jeppesen/TMC)

Subject:  RE: java.lang.NoClassDefFoundError: 
org/xml/sax/SAXParseException



Hi,

   I dont have problem in accessing the url, but it says Class not founf
exception. I would like to know from where I can get the SAX jar file so
that I can place in Lib directory.

thanks
Bala






Ashutosh Satyam [EMAIL PROTECTED]
03/22/2004 05:34 PM
Please respond to Struts Users Mailing List


To: Struts Users Mailing List 
[EMAIL PROTECTED]
cc:
Subject:RE: java.lang.NoClassDefFoundError:
org/xml/sax/SAXParseException



If your application is deployed as a default ROOT application,
then Your URL should be only http://localhost/login.do

I could make out only this much. If this helps fine, else
provide some more information.

- Ashutosh Satyam

-Original Message-
From: Bala S Subramanian [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 5:25 PM
To: Struts Users Mailing List
Subject: java.lang.NoClassDefFoundError: org/xml/sax/SAXParseException


Hi ,

  I tried to call the action classes http://localhost/context
rootlogin.do, am getting the following exception

java.lang.NoClassDefFoundError: org/xml/sax/SAXParseException
at
org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1403)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:465)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
com.sap.engine.services.servlets_jsp.server.runtime.context.WebComponents.getServlet(WebComponents.java:287)

at
com.sap.engine.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet.java:81)

  

RE: java.lang.NoClassDefFoundError: org/xml/sax/SAXParseException

2004-03-22 Thread Kumar, Ram S
If you get an unsupported version error, you need to download the latest jar
files (XML Jar files).

Thanks and Regards,
S.Ramkumar

-Original Message-
From: Bala S Subramanian [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 22, 2004 6:45 PM
To: Struts Users Mailing List
Subject: RE: java.lang.NoClassDefFoundError: org/xml/sax/SAXParseException

Hi,
  I included the rt.jar which comes along with J2SE 1.4.2 but am getting 
unsupported version error
java.lang.UnsupportedClassVersionError: org/xml/sax/SAXParseException 
(Unsupported major.minor version 48.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
at 
com.sap.engine.services.deploy.server.ApplicationLoader.loadLocalClass(Appli
cationLoader.java:143)
at 
com.sap.engine.frame.core.load.ResourceLoader.loadClass(ResourceLoader.java:
120)
at 
com.sap.engine.frame.core.load.ReferencedLoader.loadClass(ReferencedLoader.j
ava:259)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
at 
org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1403)
at 
org.apache.struts.action.ActionServlet.init(ActionServlet.java:465)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at 
com.sap.engine.services.servlets_jsp.server.runtime.context.WebComponents.ge
tServlet(WebComponents.java:287)
at 
com.sap.engine.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet
.java:81)
at 
com.sap.engine.services.servlets_jsp.server.ServletsAndJspImpl.startServlet(
ServletsAndJspImpl.java:387)
at 
com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(Reque
stAnalizer.java:375)
at 
com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(Reque
stAnalizer.java:355)
at 
com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer
(RequestAnalizer.java:721)
at 
com.sap.engine.services.httpserver.server.RequestAnalizer.checkFilename(Requ
estAnalizer.java:418)
at 
com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnal
izer.java:223)
at 
com.sap.engine.services.httpserver.server.Client.handle(Client.java:79)
at 
com.sap.engine.services.httpserver.server.Processor.request(Processor.java:1
52)
at 
com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMes
sageListener.process(ApplicationSessionMessageListener.java:37)
at 
com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run
(UnorderedChannel.java:60)
at 
com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:55)
at java.security.AccessController.doPrivileged(Native Method)
at 
com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:115)
Please let me know where to get the correct version of SAX Parser.
thanks
Bala
[EMAIL PROTECTED]
03/22/2004 06:20 PM
Please respond to Struts Users Mailing List
 
To: Struts Users Mailing List [EMAIL PROTECTED]
cc: 
Subject:RE: java.lang.NoClassDefFoundError:
org/xml/sax/SAXParseException
 
SAX is part of the J2SE 1.4.2, see
http://java.sun.com/j2se/1.4.2/docs/api/org/xml/sax/package-summary.html
I am not sure which sdk you have and may have to get relevant jar file. 
More
info is available at http://java.sun.com/xml/ and
http://www.saxproject.org/.
HTH
Anuj
Bala S Subramanian [EMAIL PROTECTED] on 03/22/2004 01:31:48 PM
Please respond to Struts Users Mailing List 
[EMAIL PROTECTED]
To:   Struts Users Mailing List [EMAIL PROTECTED]
cc:(bcc: Anuj Upadhyay/Jeppesen/TMC)
Subject:  RE: java.lang.NoClassDefFoundError: 
org/xml/sax/SAXParseException
Hi,
   I dont have problem in accessing the url, but it says Class not founf
exception. I would like to know from where I can get the SAX jar file so
that I can place in Lib directory.
thanks
Bala
Ashutosh Satyam [EMAIL PROTECTED]
03/22/2004 05:34 PM
Please respond to Struts Users Mailing List
To: Struts Users Mailing List 
[EMAIL PROTECTED]
cc:
Subject:RE: java.lang.NoClassDefFoundError:
org/xml/sax/SAXParseException
If your application is deployed as a default ROOT application,
then Your URL should be only http://localhost/login.do
I could make out only this much. If this helps fine, else
provide some more information.
- Ashutosh Satyam
-Original Message-
From: Bala S Subramanian [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 5:25 PM
To: Struts Users Mailing List
Subject: java.lang.NoClassDefFoundError: org/xml/sax/SAXParseException
Hi ,
  I tried to call the action classes http://localhost/context
rootlogin.do, am getting the following exception
java.lang.NoClassDefFoundError: org/xml/sax/SAXParseException
at
org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1403)
at

RE: java.lang.NoClassDefFoundError: org/xml/sax/SAXParseException

2004-03-22 Thread Bala S Subramanian
I am currently using Struts 1.1 and I would like to know which version of 
SAX is supported for this. I would be greatful, if anyone of you tell me 
the site to download the jar files.

thanks
Bala





Kumar, Ram S [EMAIL PROTECTED]
03/22/2004 06:47 PM
Please respond to Struts Users Mailing List

 
To: Struts Users Mailing List [EMAIL PROTECTED]
cc: 
Subject:RE: java.lang.NoClassDefFoundError: 
org/xml/sax/SAXParseException

 

If you get an unsupported version error, you need to download the latest 
jar
files (XML Jar files).

Thanks and Regards,
S.Ramkumar

-Original Message-
From: Bala S Subramanian [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 22, 2004 6:45 PM
To: Struts Users Mailing List
Subject: RE: java.lang.NoClassDefFoundError: org/xml/sax/SAXParseException

Hi,
  I included the rt.jar which comes along with J2SE 1.4.2 but am getting 
unsupported version error
java.lang.UnsupportedClassVersionError: org/xml/sax/SAXParseException 
(Unsupported major.minor version 48.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
at 
com.sap.engine.services.deploy.server.ApplicationLoader.loadLocalClass(Appli
cationLoader.java:143)
at 
com.sap.engine.frame.core.load.ResourceLoader.loadClass(ResourceLoader.java:
120)
at 
com.sap.engine.frame.core.load.ReferencedLoader.loadClass(ReferencedLoader.j
ava:259)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
at 
org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1403)
at 
org.apache.struts.action.ActionServlet.init(ActionServlet.java:465)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at 
com.sap.engine.services.servlets_jsp.server.runtime.context.WebComponents.ge
tServlet(WebComponents.java:287)
at 
com.sap.engine.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet
.java:81)
at 
com.sap.engine.services.servlets_jsp.server.ServletsAndJspImpl.startServlet(
ServletsAndJspImpl.java:387)
at 
com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(Reque
stAnalizer.java:375)
at 
com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(Reque
stAnalizer.java:355)
at 
com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer
(RequestAnalizer.java:721)
at 
com.sap.engine.services.httpserver.server.RequestAnalizer.checkFilename(Requ
estAnalizer.java:418)
at 
com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnal
izer.java:223)
at 
com.sap.engine.services.httpserver.server.Client.handle(Client.java:79)
at 
com.sap.engine.services.httpserver.server.Processor.request(Processor.java:1
52)
at 
com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMes
sageListener.process(ApplicationSessionMessageListener.java:37)
at 
com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run
(UnorderedChannel.java:60)
at 
com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:55)
at java.security.AccessController.doPrivileged(Native Method)
at 
com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:115)
Please let me know where to get the correct version of SAX Parser.
thanks
Bala
[EMAIL PROTECTED]
03/22/2004 06:20 PM
Please respond to Struts Users Mailing List
 
To: Struts Users Mailing List 
[EMAIL PROTECTED]
cc: 
Subject:RE: java.lang.NoClassDefFoundError:
org/xml/sax/SAXParseException
 
SAX is part of the J2SE 1.4.2, see
http://java.sun.com/j2se/1.4.2/docs/api/org/xml/sax/package-summary.html
I am not sure which sdk you have and may have to get relevant jar file. 
More
info is available at http://java.sun.com/xml/ and
http://www.saxproject.org/.
HTH
Anuj
Bala S Subramanian [EMAIL PROTECTED] on 03/22/2004 01:31:48 PM
Please respond to Struts Users Mailing List 
[EMAIL PROTECTED]
To:   Struts Users Mailing List [EMAIL PROTECTED]
cc:(bcc: Anuj Upadhyay/Jeppesen/TMC)
Subject:  RE: java.lang.NoClassDefFoundError: 
org/xml/sax/SAXParseException
Hi,
   I dont have problem in accessing the url, but it says Class not founf
exception. I would like to know from where I can get the SAX jar file so
that I can place in Lib directory.
thanks
Bala
Ashutosh Satyam [EMAIL PROTECTED]
03/22/2004 05:34 PM
Please respond to Struts Users Mailing List
To: Struts Users Mailing List 
[EMAIL PROTECTED]
cc:
Subject:RE: java.lang.NoClassDefFoundError:
org/xml/sax/SAXParseException
If your application is deployed as a default ROOT application,
then Your URL should be only http://localhost/login.do
I could make out only this much. If this helps fine, else
provide some more information.
- Ashutosh Satyam
-Original Message-
From: Bala S Subramanian 

RE: java.lang.NoClassDefFoundError: org/xml/sax/SAXParseException

2004-03-22 Thread anuj . upadhyay


Bala,

I think the problem is not with the jar but the jdk version. Check which version
you have/support and then get the relevant jar.

Also have a look at: http://www.artima.com/forums/flat.jsp?forum=61thread=4792

HTH
Anuj





Bala S Subramanian [EMAIL PROTECTED] on 03/22/2004 02:20:03 PM

Please respond to Struts Users Mailing List [EMAIL PROTECTED]

To:   Struts Users Mailing List [EMAIL PROTECTED]
cc:(bcc: Anuj Upadhyay/Jeppesen/TMC)

Subject:  RE: java.lang.NoClassDefFoundError: org/xml/sax/SAXParseException



I am currently using Struts 1.1 and I would like to know which version of
SAX is supported for this. I would be greatful, if anyone of you tell me
the site to download the jar files.

thanks
Bala





Kumar, Ram S [EMAIL PROTECTED]
03/22/2004 06:47 PM
Please respond to Struts Users Mailing List


To: Struts Users Mailing List [EMAIL PROTECTED]
cc:
Subject:RE: java.lang.NoClassDefFoundError:
org/xml/sax/SAXParseException



If you get an unsupported version error, you need to download the latest
jar
files (XML Jar files).

Thanks and Regards,
S.Ramkumar

-Original Message-
From: Bala S Subramanian [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 6:45 PM
To: Struts Users Mailing List
Subject: RE: java.lang.NoClassDefFoundError: org/xml/sax/SAXParseException

Hi,
  I included the rt.jar which comes along with J2SE 1.4.2 but am getting
unsupported version error
java.lang.UnsupportedClassVersionError: org/xml/sax/SAXParseException
(Unsupported major.minor version 48.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
at
com.sap.engine.services.deploy.server.ApplicationLoader.loadLocalClass(Appli
cationLoader.java:143)
at
com.sap.engine.frame.core.load.ResourceLoader.loadClass(ResourceLoader.java:
120)
at
com.sap.engine.frame.core.load.ReferencedLoader.loadClass(ReferencedLoader.j
ava:259)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
at
org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1403)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:465)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
com.sap.engine.services.servlets_jsp.server.runtime.context.WebComponents.ge
tServlet(WebComponents.java:287)
at
com.sap.engine.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet
.java:81)
at
com.sap.engine.services.servlets_jsp.server.ServletsAndJspImpl.startServlet(
ServletsAndJspImpl.java:387)
at
com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(Reque
stAnalizer.java:375)
at
com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(Reque
stAnalizer.java:355)
at
com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer
(RequestAnalizer.java:721)
at
com.sap.engine.services.httpserver.server.RequestAnalizer.checkFilename(Requ
estAnalizer.java:418)
at
com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnal
izer.java:223)
at
com.sap.engine.services.httpserver.server.Client.handle(Client.java:79)
at
com.sap.engine.services.httpserver.server.Processor.request(Processor.java:1
52)
at
com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMes
sageListener.process(ApplicationSessionMessageListener.java:37)
at
com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run
(UnorderedChannel.java:60)
at
com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:55)
at java.security.AccessController.doPrivileged(Native Method)
at
com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:115)
Please let me know where to get the correct version of SAX Parser.
thanks
Bala
[EMAIL PROTECTED]
03/22/2004 06:20 PM
Please respond to Struts Users Mailing List

To: Struts Users Mailing List
[EMAIL PROTECTED]
cc:
Subject:RE: java.lang.NoClassDefFoundError:
org/xml/sax/SAXParseException

SAX is part of the J2SE 1.4.2, see
http://java.sun.com/j2se/1.4.2/docs/api/org/xml/sax/package-summary.html
I am not sure which sdk you have and may have to get relevant jar file.
More
info is available at http://java.sun.com/xml/ and
http://www.saxproject.org/.
HTH
Anuj
Bala S Subramanian [EMAIL PROTECTED] on 03/22/2004 01:31:48 PM
Please respond to Struts Users Mailing List
[EMAIL PROTECTED]
To:   Struts Users Mailing List [EMAIL PROTECTED]
cc:(bcc: Anuj Upadhyay/Jeppesen/TMC)
Subject:  RE: java.lang.NoClassDefFoundError:
org/xml/sax/SAXParseException
Hi,
   I dont have problem in accessing the url, but it says Class not founf
exception. I would like to know from where I can get the SAX jar file so
that I can place in Lib directory.
thanks
Bala
Ashutosh Satyam [EMAIL PROTECTED]
03/22/2004 05:34 PM

Re: java.lang.NoClassDefFoundError: org/xml/sax/SAXParseException

2004-03-22 Thread Christoph Kutzinski
Bala S Subramanian wrote:
Hi,

  I included the rt.jar which comes along with J2SE 1.4.2 but am getting 
unsupported version error

java.lang.UnsupportedClassVersionError: org/xml/sax/SAXParseException 
(Unsupported major.minor version 48.0)
This means probably that you try to run Struts with an 1.3 or lower JVM.
JVMs prior to 1.4 cannot use 1.4.2 JARs (if they are compiled with 
target 1.4 what the rt.jar surely is)

HTH
Christoph
PS: Why isn't anyone in this mailing list able to correctly reply to 
threaded messages? I'm often seeing messages not correctly appended to 
their predecessors.



[EMAIL PROTECTED]
03/22/2004 06:20 PM
Please respond to Struts Users Mailing List
 
To: Struts Users Mailing List [EMAIL PROTECTED]
cc: 
Subject:RE: java.lang.NoClassDefFoundError: org/xml/sax/SAXParseException

 



SAX is part of the J2SE 1.4.2, see
http://java.sun.com/j2se/1.4.2/docs/api/org/xml/sax/package-summary.html
I am not sure which sdk you have and may have to get relevant jar file. 
More
info is available at http://java.sun.com/xml/ and http://www.saxproject.org/.

HTH
Anuj




Bala S Subramanian [EMAIL PROTECTED] on 03/22/2004 01:31:48 PM

Please respond to Struts Users Mailing List 
[EMAIL PROTECTED]

To:   Struts Users Mailing List [EMAIL PROTECTED]
cc:(bcc: Anuj Upadhyay/Jeppesen/TMC)
Subject:  RE: java.lang.NoClassDefFoundError: 
org/xml/sax/SAXParseException



Hi,

   I dont have problem in accessing the url, but it says Class not founf
exception. I would like to know from where I can get the SAX jar file so
that I can place in Lib directory.
thanks
Bala




Ashutosh Satyam [EMAIL PROTECTED]
03/22/2004 05:34 PM
Please respond to Struts Users Mailing List
To: Struts Users Mailing List 
[EMAIL PROTECTED]
cc:
Subject:RE: java.lang.NoClassDefFoundError:
org/xml/sax/SAXParseException



If your application is deployed as a default ROOT application,
then Your URL should be only http://localhost/login.do
I could make out only this much. If this helps fine, else
provide some more information.
- Ashutosh Satyam

-Original Message-
From: Bala S Subramanian [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 5:25 PM
To: Struts Users Mailing List
Subject: java.lang.NoClassDefFoundError: org/xml/sax/SAXParseException
Hi ,

  I tried to call the action classes http://localhost/context
rootlogin.do, am getting the following exception
java.lang.NoClassDefFoundError: org/xml/sax/SAXParseException
at
org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1403)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:465)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
com.sap.engine.services.servlets_jsp.server.runtime.context.WebComponents.getServlet(WebComponents.java:287)
at
com.sap.engine.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet.java:81)
at
com.sap.engine.services.servlets_jsp.server.ServletsAndJspImpl.startServlet(ServletsAndJspImpl.java:387)
at
com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:375)
at
com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:355)
at
com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:721)
at
com.sap.engine.services.httpserver.server.RequestAnalizer.checkFilename(RequestAnalizer.java:418)
at
com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:223)
at
com.sap.engine.services.httpserver.server.Client.handle(Client.java:79)
at
com.sap.engine.services.httpserver.server.Processor.request(Processor.java:152)
at
com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
at
com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:60)
at
com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:55)
at java.security.AccessController.doPrivileged(Native Method)
at
com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:115)
 Please let me know how to resolve this issue.

thanks
Bala


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


Re: java.lang.NoClassDefFoundError: org/xml/sax/SAXParseException

2004-03-22 Thread Bala S Subramanian
Hi Chris,

Previously, i was using jdk 1.3 and I got Class not Found 
Exception (org/xml/sax/SAXParseException). And, I replaced jdk 1.3 with 
jdk 1.4 as per group message,then I got the UnsupportedException. 

I would like to know whether I can download the SAX Parser jar 
irrespective of JDK Versions. Please guide me to get the things done fast.

thanks
Bala





Christoph Kutzinski [EMAIL PROTECTED]
03/22/2004 07:00 PM
Please respond to Struts Users Mailing List

 
To: Struts Users Mailing List [EMAIL PROTECTED]
cc: 
Subject:Re: java.lang.NoClassDefFoundError: 
org/xml/sax/SAXParseException

 

Bala S Subramanian wrote:
 Hi,
 
   I included the rt.jar which comes along with J2SE 1.4.2 but am getting 

 unsupported version error
 
 java.lang.UnsupportedClassVersionError: org/xml/sax/SAXParseException 
 (Unsupported major.minor version 48.0)

This means probably that you try to run Struts with an 1.3 or lower JVM.
JVMs prior to 1.4 cannot use 1.4.2 JARs (if they are compiled with 
target 1.4 what the rt.jar surely is)


HTH
Christoph


PS: Why isn't anyone in this mailing list able to correctly reply to 
threaded messages? I'm often seeing messages not correctly appended to 
their predecessors.

 
 
 
 [EMAIL PROTECTED]
 03/22/2004 06:20 PM
 Please respond to Struts Users Mailing List
 
 
 To: Struts Users Mailing List 
[EMAIL PROTECTED]
 cc: 
 Subject:RE: java.lang.NoClassDefFoundError: 
org/xml/sax/SAXParseException
 
 
 
 
 
 SAX is part of the J2SE 1.4.2, see
 http://java.sun.com/j2se/1.4.2/docs/api/org/xml/sax/package-summary.html
 
 I am not sure which sdk you have and may have to get relevant jar file. 
 More
 info is available at http://java.sun.com/xml/ and http://www.saxproject.org/.
 
 HTH
 Anuj
 
 
 
 
 
 Bala S Subramanian [EMAIL PROTECTED] on 03/22/2004 01:31:48 PM
 
 Please respond to Struts Users Mailing List 
 [EMAIL PROTECTED]
 
 To:   Struts Users Mailing List [EMAIL PROTECTED]
 cc:(bcc: Anuj Upadhyay/Jeppesen/TMC)
 
 Subject:  RE: java.lang.NoClassDefFoundError: 
 org/xml/sax/SAXParseException
 
 
 
 Hi,
 
I dont have problem in accessing the url, but it says Class not 
founf
 exception. I would like to know from where I can get the SAX jar file 
so
 that I can place in Lib directory.
 
 thanks
 Bala
 
 
 
 
 
 
 Ashutosh Satyam [EMAIL PROTECTED]
 03/22/2004 05:34 PM
 Please respond to Struts Users Mailing List
 
 
 To: Struts Users Mailing List 
 [EMAIL PROTECTED]
 cc:
 Subject:RE: java.lang.NoClassDefFoundError:
 org/xml/sax/SAXParseException
 
 
 
 If your application is deployed as a default ROOT application,
 then Your URL should be only http://localhost/login.do
 
 I could make out only this much. If this helps fine, else
 provide some more information.
 
 - Ashutosh Satyam
 
 -Original Message-
 From: Bala S Subramanian [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 22, 2004 5:25 PM
 To: Struts Users Mailing List
 Subject: java.lang.NoClassDefFoundError: org/xml/sax/SAXParseException
 
 
 Hi ,
 
   I tried to call the action classes http://localhost/context
 rootlogin.do, am getting the following exception
 
 java.lang.NoClassDefFoundError: org/xml/sax/SAXParseException
 at
 
org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1403)
 at
 org.apache.struts.action.ActionServlet.init(ActionServlet.java:465)
 at javax.servlet.GenericServlet.init(GenericServlet.java:258)
 at
 
com.sap.engine.services.servlets_jsp.server.runtime.context.WebComponents.getServlet(WebComponents.java:287)
 
 at
 
com.sap.engine.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet.java:81)
 
 at
 
com.sap.engine.services.servlets_jsp.server.ServletsAndJspImpl.startServlet(ServletsAndJspImpl.java:387)
 
 at
 
com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:375)
 
 at
 
com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:355)
 
 at
 
com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:721)
 
 at
 
com.sap.engine.services.httpserver.server.RequestAnalizer.checkFilename(RequestAnalizer.java:418)
 
 at
 
com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:223)
 
 at
 com.sap.engine.services.httpserver.server.Client.handle(Client.java:79)
 at
 
com.sap.engine.services.httpserver.server.Processor.request(Processor.java:152)
 at
 
com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
 
 at
 
com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:60)
 
 at
 com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:55)
 at 

Re: Indexed Property

2004-03-22 Thread Mark Lowe
I don't know how helpful those examples are in reality as there are a 
few details missing..

So here's an example.

Personally i like nesting forms although this isn't to everyone's 
taste. The example uses LazyList to allow you to scope the form to 
request and the example was provided by Paul Chip on the list a few 
weeks back.

// action form

import org.apache.struts.action.ActionMapping;
import javax.servlet.http.*;
import java.util.ArrayList;
import java.util.List;
import org.apache.struts.action.ActionForm;
import org.apache.commons.collections.ListUtils;
import org.apache.commons.collections.Factory;
public class ItemsForm extends ActionForm {

private List itemList;
public ItemsForm() {
initLists();
}

private void initLists() {
Factory factory = new Factory() {
public Object create() {
return new ProductForm();
}
};
this.itemList = ListUtils.lazyList(new ArrayList(), factory);
}
public List getItems() {
return itemList;
}
public void setItems(List itemList) {
this.itemList = itemList;
}
public ItemForm getItem(int index) {
return (ItemForm) itemList.get(index);
}

public void setItem(int index,ItemForm item) {
this.itemList.add(index,item);
}
public void reset(ActionMapping mapping,
  HttpServletRequest request) {
super.reset(mapping, request);
initLists();
}
}
//ItemForm

public class ItemForm extends ActionForm {
private String name;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
//ItemsAction [i'd use LookupDispatchAction]

ItemsForm theForm = (ItemsForm) form;

ItemForm item = new ItemForm();
item.setName(First Item);
ItemForm anotherItem = new ItemForm();
anotherItem.setName(Second Item);
theForm.setItem(0,item);
theForm.setItem(1,item);
// struts config

form-bean name=itemsForm type=ItemsForm /

action path=/populate name=itemsForm scope=request ...

action path=/save name=itemsForm scope=request..

//jsp

html:form path=/save.do
logic:iterate id=item name=itemsForm property=items
html:text name=item property=item indexed=true /
or

c:forEach var=item items=${itemsForm.items}
html:text name=item property=item indexed=true /
Sorry I didn't think about the potential confusing of using item 
quite so much.. But this should help close a few gaps.

On 22 Mar 2004, at 14:14, Robert Taylor wrote:

http://jakarta.apache.org/struts/faqs/indexedprops.html

-Original Message-
From: Prakasan OK [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 6:18 AM
To: Struts Users Mailing List
Subject: Indexed Property
Hi,

can anyone give me a sample code for implementing indexed properties?
how should the jsp page and the corresponding Action class look like?
thanks,
Prakasan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


Re: Indexed Property

2004-03-22 Thread Mark Lowe
correction
On 22 Mar 2004, at 14:42, Mark Lowe wrote:
I don't know how helpful those examples are in reality as there are a 
few details missing..

So here's an example.

Personally i like nesting forms although this isn't to everyone's 
taste. The example uses LazyList to allow you to scope the form to 
request and the example was provided by Paul Chip on the list a few 
weeks back.

// action form

import org.apache.struts.action.ActionMapping;
import javax.servlet.http.*;
import java.util.ArrayList;
import java.util.List;
import org.apache.struts.action.ActionForm;
import org.apache.commons.collections.ListUtils;
import org.apache.commons.collections.Factory;
public class ItemsForm extends ActionForm {

private List itemList;
public ItemsForm() {
initLists();
}

private void initLists() {
Factory factory = new Factory() {
public Object create() {
		return new ItemForm();

return new ProductForm();
}
};
this.itemList = ListUtils.lazyList(new ArrayList(), factory);
}
public List getItems() {
return itemList;
}
public void setItems(List itemList) {
this.itemList = itemList;
}
public ItemForm getItem(int index) {
return (ItemForm) itemList.get(index);
}

public void setItem(int index,ItemForm item) {
this.itemList.add(index,item);
}
public void reset(ActionMapping mapping,
  HttpServletRequest request) {
super.reset(mapping, request);
initLists();
}
}
//ItemForm

public class ItemForm extends ActionForm {
private String name;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
//ItemsAction [i'd use LookupDispatchAction]

ItemsForm theForm = (ItemsForm) form;

ItemForm item = new ItemForm();
item.setName(First Item);
ItemForm anotherItem = new ItemForm();
anotherItem.setName(Second Item);
theForm.setItem(0,item);
theForm.setItem(1,item);
// struts config

form-bean name=itemsForm type=ItemsForm /

action path=/populate name=itemsForm scope=request ...

action path=/save name=itemsForm scope=request..

//jsp

html:form path=/save.do
logic:iterate id=item name=itemsForm property=items
html:text name=item property=item indexed=true /
or

c:forEach var=item items=${itemsForm.items}
html:text name=item property=item indexed=true /
Sorry I didn't think about the potential confusing of using item 
quite so much.. But this should help close a few gaps.

On 22 Mar 2004, at 14:14, Robert Taylor wrote:

http://jakarta.apache.org/struts/faqs/indexedprops.html

-Original Message-
From: Prakasan OK [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 6:18 AM
To: Struts Users Mailing List
Subject: Indexed Property
Hi,

can anyone give me a sample code for implementing indexed properties?
how should the jsp page and the corresponding Action class look like?
thanks,
Prakasan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


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


Form post data in tomcat log

2004-03-22 Thread hermod . opstvedt
 Hi
 
 I am getting all the post-data from my Strutsform  dumped to the
 Tomcat system log. I have searched around, but have not found any way
 of turning this off. Anybody have a clue ? Its only the form-post data
 that gets written to the log.
 
 
 Hermod


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that DnB NOR cannot
accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


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



html:Selectalternatives

2004-03-22 Thread as as
Hi
I tried a lot but in vain, to show a certain default in a drop down as selected, using 
my select statement as follows:
select name=completeName
 logic:iterate id=teacher name=teachers 
 option value=bean:write name=teacher property =SSN/
  bean:write name=teacher property =completeName/
 /option
  /logic:iterate
  /select
 
Looking for alternatives on how to implement the same: (probably using no struts tag)
 
Any help appreciated.
Thanks,
Sam.

Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.

RE: security framework!!!

2004-03-22 Thread as as
InteresTing discussion.Is there more website links on the same
 
Thanks!

Craig R. McClanahan [EMAIL PROTECTED] wrote:
(Jumping in late, and trying to catch up on several hundred email messages in my
STRUTS-USER folder, but better late than never ...)

Quoting David Friedman :

 Adam,
 
 With my structure, I might have to become a particular reseller, then flip
 into a customer of his/hers, then become one of their client accounts to
 look into a reported problem. I worry about login identities for the
 following reasons:
 
 Using a JAAS login, my principal would be fixed (set in stone) for my
 session. Then, I couldn't be able to use the 'roles' settings inside
 Struts, Tiles, and JSPs to control content.
 
 Without using a JAAS login, I also become unable to use 'roles' in Tiles and
 JSPs to control content.
 
 Without having any theories on how to successfully (and without much
 alteration to the package[s]) use roles for Struts, Tiles, and JSPs, I'm at
 a loss how to change my identity/roles
 
 If I made a filter to wrapper the Request with a HTTPServletRequestWrapper
 object then added my own push/pop/depth methods, I see how I could use roles
 in all of those places.
 
 Knowing all of the above gory details, do you (or anyone) have any
 suggestions on how to make things cleaner while using roles in all of those
 places with the various levels of control I need to exert (albeit probably
 rarely switching roles) ?
 

David,

If I understand what you're after correctly, the design you have proposed is
pretty troubling from a security perspective. In particular, consider what
happens if your system is also logging who made what changes (so you can go
audit things later). If users are allowed to impersonate each other, you have
no accountability at all. From a security perspective, it is much better that
each user have a unique individual identity, and that all actions taken by that
individual are associated with that identity.

Going back to your problem, then, have you considered that an individual user
can have more than one role? For example, if you have manager and employee
roles, you (as a manager) can have *both* of them assigned to your
UserPrincipal, and therefore you can do anything that either a manager or an
employee can do, while employees cannot execute manager functions. This is
the way roles are typically used in J2EE applications, and it maps just as well
to your five-level hierarchy as it does a two-level one.

 Thanks (to all) for any constructive suggestions,
 David

Craig McCanahan



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

Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.

Re: html:Selectalternatives

2004-03-22 Thread Mark Lowe
You haven't even tried using the struts tag..

html:select property=teacher
	html:option value=--/html:option
	html:options collection=teachers property=ssn 
labelProperty=completeName /
/html:select

now if the value of teacher equals one of the ssn values it will be 
selected.

On 22 Mar 2004, at 15:26, as as wrote:

Hi
I tried a lot but in vain, to show a certain default in a drop down as 
selected, using my select statement as follows:
select name=completeName
 logic:iterate id=teacher name=teachers
 option value=bean:write name=teacher property =SSN/
  bean:write name=teacher property =completeName/
 /option
  /logic:iterate
  /select

Looking for alternatives on how to implement the same: (probably using 
no struts tag)

Any help appreciated.
Thanks,
Sam.
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.


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


Struts web app performance improvement

2004-03-22 Thread Pingili, Madhupal
Hello All,
We just ran the stress test on a web app. ( that searchs/retrieves documents
from FileNet IS system) developed using Struts 1.1.
Overall, the application appeared to slow down significantly with only 50
users, the average response time on my PC was about 30 seconds to bring up a
page (this does not include running a query, just clicking on a struts-menu
tab heading). Once the page loaded, queries took about 5-10 seconds, but
occasionally would take longer. The number fifty is quoted because these
were simultaneous test users and not real people. We still need to determine
what these 50 users equate to in terms of real usage.

We did get the load up to about 170 users to see what the server health
would look like. The application was responding to the load test drones, and
response time from my PC was occasionally over 2 minutes to load a page.

Server stats showed disk and memory usage being pretty low on the web
server. There appeared to be hardly any paging or swapping. However, the CPU
was pinned at 98-100% with only a few users. We noticed a constant CPU of
98% with only 10 users. 

Web app. is running on WebSphere 4.0.4 AE. 
I am currently looking at the Resource Analyzer reports and searching
google for any links.

Has anyone has come across this situation and solved this problem?
Any links to performance improvement guides or general topics is highly
appreciated.

Reddy Pingili



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



Re: html:Selectalternatives

2004-03-22 Thread as as
MArk,
Thanks for the quick reply.
Yes, I did try that tooIt shows me correctly (in System.out.println), my form's 
default value of completeName of  teacher but on the jsp page/form bean, it shows 
the drop down sorted and not the selected value.
Really donno what could be wrong...?
Thanks in advance...
-Sam

Mark Lowe [EMAIL PROTECTED] wrote:
You haven't even tried using the struts tag..


--
labelProperty=completeName /


now if the value of teacher equals one of the ssn values it will be 
selected.

On 22 Mar 2004, at 15:26, as as wrote:

 Hi
 I tried a lot but in vain, to show a certain default in a drop down as 
 selected, using my  statement as follows:
 
 
 
 
 
 

 Looking for alternatives on how to implement the same: (probably using 
 no struts tag)

 Any help appreciated.
 Thanks,
 Sam.

 Do you Yahoo!?
 Yahoo! Finance Tax Center - File online. File on time.


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

Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.

RE: security framework!!! (Addendum to my previous post)

2004-03-22 Thread as as
Hi,
Has anyone tried filters framework (filter tag in web.xml) in struts for role based 
access to webpages in a enterprise wide application...deployed in weblogic...we tried 
this and seems each sub-application needs a differenet, its own web.xml and  a single 
integrated web.xml..
Any workarounds...
Thanks,
Sam.
(Basically, in our lare web app, we want to allow different users (admin, user, etc) 
access to different pages (password reset, etc) based on his privileges
 
Thanks!
 
( I am quoting below.
http://info.borland.com/techpubs/jbuilder/jbuilder8/webapps/webapp_dd_editor.html#filters
that i did find some related info, though)


as as [EMAIL PROTECTED] wrote:InteresTing discussion.Is there more website links on 
the same

Thanks!

Craig R. McClanahan wrote:
(Jumping in late, and trying to catch up on several hundred email messages in my
STRUTS-USER folder, but better late than never ...)

Quoting David Friedman :

 Adam,
 
 With my structure, I might have to become a particular reseller, then flip
 into a customer of his/hers, then become one of their client accounts to
 look into a reported problem. I worry about login identities for the
 following reasons:
 
 Using a JAAS login, my principal would be fixed (set in stone) for my
 session. Then, I couldn't be able to use the 'roles' settings inside
 Struts, Tiles, and JSPs to control content.
 
 Without using a JAAS login, I also become unable to use 'roles' in Tiles and
 JSPs to control content.
 
 Without having any theories on how to successfully (and without much
 alteration to the package[s]) use roles for Struts, Tiles, and JSPs, I'm at
 a loss how to change my identity/roles
 
 If I made a filter to wrapper the Request with a HTTPServletRequestWrapper
 object then added my own push/pop/depth methods, I see how I could use roles
 in all of those places.
 
 Knowing all of the above gory details, do you (or anyone) have any
 suggestions on how to make things cleaner while using roles in all of those
 places with the various levels of control I need to exert (albeit probably
 rarely switching roles) ?
 

David,

If I understand what you're after correctly, the design you have proposed is
pretty troubling from a security perspective. In particular, consider what
happens if your system is also logging who made what changes (so you can go
audit things later). If users are allowed to impersonate each other, you have
no accountability at all. From a security perspective, it is much better that
each user have a unique individual identity, and that all actions taken by that
individual are associated with that identity.

Going back to your problem, then, have you considered that an individual user
can have more than one role? For example, if you have manager and employee
roles, you (as a manager) can have *both* of them assigned to your
UserPrincipal, and therefore you can do anything that either a manager or an
employee can do, while employees cannot execute manager functions. This is
the way roles are typically used in J2EE applications, and it maps just as well
to your five-level hierarchy as it does a two-level one.

 Thanks (to all) for any constructive suggestions,
 David

Craig McCanahan



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

Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.

Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.

Struts/filters

2004-03-22 Thread as as
Hi,
Has anyone tried filters framework (filter tag in web.xml) in struts for role based 
access to webpages in a enterprise wide application...deployed in weblogic...we tried 
this and seems each sub-application needs a differenet, its own web.xml and  a single 
integrated web.xml..
Any workarounds...
Thanks,
Sam.
(Basically, in our lare web app, we want to allow different users (admin, user, etc) 
access to different pages (password reset, etc) based on his privileges
 
Thanks!
 
( I am quoting below.
http://info.borland.com/techpubs/jbuilder/jbuilder8/webapps/webapp_dd_editor.html#filters
that i did find some related info, though)

Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.

RE: Struts web app performance improvement

2004-03-22 Thread Smith, Darrin
What sort of box was it run on? Processor speed and number of CPUs please.

That would make a big difference.


-Original Message-
From: Pingili, Madhupal [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 8:54 AM
To: 'Struts Users Mailing List'
Subject: Struts web app performance improvement 


Hello All,
We just ran the stress test on a web app. ( that searchs/retrieves documents
from FileNet IS system) developed using Struts 1.1.
Overall, the application appeared to slow down significantly with only 50
users, the average response time on my PC was about 30 seconds to bring up a
page (this does not include running a query, just clicking on a struts-menu
tab heading). Once the page loaded, queries took about 5-10 seconds, but
occasionally would take longer. The number fifty is quoted because these
were simultaneous test users and not real people. We still need to determine
what these 50 users equate to in terms of real usage.

We did get the load up to about 170 users to see what the server health
would look like. The application was responding to the load test drones, and
response time from my PC was occasionally over 2 minutes to load a page.

Server stats showed disk and memory usage being pretty low on the web
server. There appeared to be hardly any paging or swapping. However, the CPU
was pinned at 98-100% with only a few users. We noticed a constant CPU of
98% with only 10 users. 

Web app. is running on WebSphere 4.0.4 AE. 
I am currently looking at the Resource Analyzer reports and searching
google for any links.

Has anyone has come across this situation and solved this problem?
Any links to performance improvement guides or general topics is highly
appreciated.

Reddy Pingili



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


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



Re: Struts web app performance improvement

2004-03-22 Thread as as
Hi Pingili,
I am interested in this topic too...which tool are u using for the stress test...
is it JProbe or winRunner...
I have a struts app deployed in weblogic, that I want to test and improve performance 
of...
Thaks in advance,
Sam.

Pingili, Madhupal [EMAIL PROTECTED] wrote:
Hello All,
We just ran the stress test on a web app. ( that searchs/retrieves documents
from FileNet IS system) developed using Struts 1.1.
Overall, the application appeared to slow down significantly with only 50
users, the average response time on my PC was about 30 seconds to bring up a
page (this does not include running a query, just clicking on a struts-menu
tab heading). Once the page loaded, queries took about 5-10 seconds, but
occasionally would take longer. The number fifty is quoted because these
were simultaneous test users and not real people. We still need to determine
what these 50 users equate to in terms of real usage.

We did get the load up to about 170 users to see what the server health
would look like. The application was responding to the load test drones, and
response time from my PC was occasionally over 2 minutes to load a page.

Server stats showed disk and memory usage being pretty low on the web
server. There appeared to be hardly any paging or swapping. However, the CPU
was pinned at 98-100% with only a few users. We noticed a constant CPU of
98% with only 10 users. 

Web app. is running on WebSphere 4.0.4 AE. 
I am currently looking at the Resource Analyzer reports and searching
google for any links.

Has anyone has come across this situation and solved this problem?
Any links to performance improvement guides or general topics is highly
appreciated.

Reddy Pingili



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

Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.

Re: html:Selectalternatives

2004-03-22 Thread Mark Lowe
What does you form bean look like dyna or otherwise?

The value of teacher.getSsn() (i.e. html:options collection=teachers 
property=ssn ) must match the value of html:select property=teacher 
or whatever you called it. The value of teacher must be set somewhere, 
it cant do things by magic.

On 22 Mar 2004, at 15:57, as as wrote:

MArk,
Thanks for the quick reply.
Yes, I did try that tooIt shows me correctly (in System.out.println), 
my form's default value of completeName of  teacher but on the jsp 
page/form bean, it shows the drop down sorted and not the selected 
value.
Really donno what could be wrong...?
Thanks in advance...
-Sam

Mark Lowe [EMAIL PROTECTED] wrote:
You haven't even tried using the struts tag..
--
labelProperty=completeName /
now if the value of teacher equals one of the ssn values it will be
selected.
On 22 Mar 2004, at 15:26, as as wrote:

Hi
I tried a lot but in vain, to show a certain default in a drop down as
selected, using my  statement as follows:






Looking for alternatives on how to implement the same: (probably using
no struts tag)
Any help appreciated.
Thanks,
Sam.
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.


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


RE: Struts/filters

2004-03-22 Thread Pady Srinivasan

We do this in our web app. We have a config xml with all our functional
categories defined. All these categories are accessed from the webapp using
a menu. We have a second config file that defines all the users/roles. Each
role is assigned to one or more functional categories. When user logs in,
the assigned role is loaded ( ie the javascript menu is built according to
the role ) using a filter, and saved in session.


Thanks
 
-- pady
[EMAIL PROTECTED]
 

-Original Message-
From: as as [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 22, 2004 10:00 AM
To: [EMAIL PROTECTED]
Subject: Struts/filters

Hi,
Has anyone tried filters framework (filter tag in web.xml) in struts for
role based access to webpages in a enterprise wide application...deployed in
weblogic...we tried this and seems each sub-application needs a differenet,
its own web.xml and  a single integrated web.xml..
Any workarounds...
Thanks,
Sam.
(Basically, in our lare web app, we want to allow different users (admin,
user, etc) access to different pages (password reset, etc) based on his
privileges
 
Thanks!
 
( I am quoting below.
http://info.borland.com/techpubs/jbuilder/jbuilder8/webapps/webapp_dd_editor
.html#filters
that i did find some related info, though)

Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

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



Changing the FileUpload-Processing

2004-03-22 Thread Tim . Adler
Hello everybody!
 
I wrote to the Mailing-List some days ago. That was about the displaying of
progress-bars during fileupload. I made progress on this in that manner that
I have a patched version of the commons-fileupload-library which can do the
thing. 
 
But now I have to change the way Struts handles the FileUpload. I know that
I can overwrite the RequestProcessor and implement my own one. I hope that
it is possible to achieve my goal by doing this. What I basically need, is
the sport where Struts reads the files from the multipart-request into the
DiskFileUpload, since at this spot the progress bar tugs in.
 
Can somebody tell me a good way to do this? I know that there is a
CommonsMultipartRequestHandler which starts on doing this. But where exactly
does Struts utilize this thing?
 
Thx for any help! Hope this is not too specific.

___
Tim Adler, Abt. SDA1
Adress Management Solutions
AZ | Direct
Carl-Bertelsmann Straße 161s
D-33311 Gütersloh

Tel.: 05241/ 80 - 89574
[EMAIL PROTECTED] 

 


RE: JSPG0103E: Unable to open taglibrary /WEB-INF/struts-bean.tld

2004-03-22 Thread Randy Dillon
I got this when I deployed without the taglib jar file in the war/ear files.

:- -Original Message-
:- From: ansuman_behera [mailto:[EMAIL PROTECTED]
:- Sent: Friday, March 19, 2004 2:07 AM
:- To: Struts Users Mailing List
:- Subject: JSPG0103E: Unable to open taglibrary 
:- /WEB-INF/struts-bean.tld 
:- 
:- 
:- Hi All,
:- 
:- In our project we are getting an error with the subject as 
:- the error message. 
:- 
:- We are getting this in the development environment. We are 
:- using WSAD 4.0. The interesting thing is we are not getting 
:- the error when we are using WAS 4.0.1 as part of WSAD but 
:- with WAS 4.0.2.
:- 
:- I'm writing the error message again below.
:- 
:- Have tried searching on struts, google and almost every 
:- other option but failed to find a solution to this...
:- 
:- Has anyone else faced this? Is there a solution to this?
:- 
:- thanks
:- ansu
:- 
:- [3/17/04 11:25:41:734 CST] 70060345 OSEListenerDi X 
:- PLGN0021E: Servlet Request Processor Exception: Virtual 
:- Host/WebGroup Not Found : The web group / has not been defined
:- java.lang.ClassCastException: 
:- org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
:- at 
:- javax.xml.parsers.DocumentBuilderFactory.newInstance(Documen
:- tBuilderFactory.java:147)
:- at 
:- org.apache.jasper.compiler.JspUtil.parseXMLDoc(JspUtil.java:187)
:- at 
:- org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLi
:- braryInfoImpl.java:473)
:- at 
:- org.apache.jasper.compiler.TagLibraryInfoImpl.init(TagLibr
:- aryInfoImpl.java:305)
:- at 
:- org.apache.jasper.compiler.JspParseEventListener.handleDirec
:- tive(JspParseEventListener.java:800)
:- at 
:- org.apache.jasper.compiler.DelegatingListener.handleDirectiv
:- e(DelegatingListener.java:116)
:- at 
:- org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:216)
:- at org.apache.jasper.compiler.Parser.parse(Parser.java:1115)
:- at org.apache.jasper.compiler.Parser.parse(Parser.java:1066)
:- at org.apache.jasper.compiler.Parser.parse(Parser.java:1062)
:- at 
:- org.apache.jasper.compiler.Compiler.compile(Compiler.java:237)
:- at 
:- org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:697)
:- at 
:- org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadI
:- fNecessary(JspServlet.java:244)
:- at 
:- org.apache.jasper.runtime.JspServlet$JspServletWrapper.servi
:- ce(JspServlet.java:261)
:- at 
:- org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServl
:- et.java:430)
:- at 
:- org.apache.jasper.runtime.JspServlet.service(JspServlet.java:565)
:- at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
:- at 
:- com.ibm.servlet.engine.webapp.StrictServletInstance.doServic
:- e(ServletManager.java:827)
:- at 
:- com.ibm.servlet.engine.webapp.StrictLifecycleServlet._servic
:- e(StrictLifecycleServlet.java:167)
:- at 
:- com.ibm.servlet.engine.webapp.IdleServletState.service(Stric
:- tLifecycleServlet.java:297)
:- at 
:- com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service
:- (StrictLifecycleServlet.java:110)
:- at 
:- com.ibm.servlet.engine.webapp.ServletInstance.service(Servle
:- tManager.java:472)
:- at 
:- com.ibm.servlet.engine.webapp.ValidServletReferenceState.dis
:- patch(ServletManager.java:1012)
:- at 
:- com.ibm.servlet.engine.webapp.ServletInstanceReference.dispa
:- tch(ServletManager.java:913)
:- at 
:- com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handle
:- WebAppDispatch(WebAppRequestDispatcher.java:523)
:- at 
:- com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispat
:- ch(WebAppRequestDispatcher.java:282)
:- at 
:- com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forwar
:- d(WebAppRequestDispatcher.java:112)
:- at 
:- com.ibm.servlet.engine.webapp.SimpleFileServlet.doGet(Simple
:- FileServlet.java:223)
:- at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
:- at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
:- at 
:- com.ibm.servlet.engine.webapp.StrictServletInstance.doServic
:- e(ServletManager.java:827)
:- at 
:- com.ibm.servlet.engine.webapp.StrictLifecycleServlet._servic
:- e(StrictLifecycleServlet.java:167)
:- at 
:- com.ibm.servlet.engine.webapp.IdleServletState.service(Stric
:- tLifecycleServlet.java:297)
:- at 
:- com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service
:- (StrictLifecycleServlet.java:110)
:- at 
:- com.ibm.servlet.engine.webapp.ServletInstance.service(Servle
:- tManager.java:472)
:- at 
:- com.ibm.servlet.engine.webapp.ValidServletReferenceState.dis
:- patch(ServletManager.java:1012)
:- at 
:- com.ibm.servlet.engine.webapp.ServletInstanceReference.dispa
:- tch(ServletManager.java:913)
:- at 
:- com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handle
:- WebAppDispatch(WebAppRequestDispatcher.java:523)
:- at 
:- com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispat
:- 

Re: html:Selectalternatives

2004-03-22 Thread as as
I am using ActionForm and not DynaActionForm
I will post back now with the actual classes...
Thanks!

Mark Lowe [EMAIL PROTECTED] wrote:
What does you form bean look like dyna or otherwise?

The value of teacher.getSsn() (i.e. html:options collection=teachers 
property=ssn ) must match the value of html:select property=teacher 
or whatever you called it. The value of teacher must be set somewhere, 
it cant do things by magic.


On 22 Mar 2004, at 15:57, as as wrote:

 MArk,
 Thanks for the quick reply.
 Yes, I did try that tooIt shows me correctly (in System.out.println), 
 my form's default value of completeName of  teacher but on the jsp 
 page/form bean, it shows the drop down sorted and not the selected 
 value.
 Really donno what could be wrong...?
 Thanks in advance...
 -Sam

 Mark Lowe wrote:
 You haven't even tried using the struts tag..


 --
 labelProperty=completeName /


 now if the value of teacher equals one of the ssn values it will be
 selected.

 On 22 Mar 2004, at 15:26, as as wrote:

 Hi
 I tried a lot but in vain, to show a certain default in a drop down as
 selected, using my statement as follows:

 





 Looking for alternatives on how to implement the same: (probably using
 no struts tag)

 Any help appreciated.
 Thanks,
 Sam.

 Do you Yahoo!?
 Yahoo! Finance Tax Center - File online. File on time.


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

 Do you Yahoo!?
 Yahoo! Finance Tax Center - File online. File on time.


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

Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.

RE: Struts/filters

2004-03-22 Thread Pady Srinivasan
 

 

Unfortunately, I cannot give out our code. But it basically involves the
following:

 

1.  LoginFilter authenticates the user. Creates a User object.
2.  LoginFilter calls a ConfigManager to build a Menu for the User. 
3.  ConfigManager loads the user profile from an xml file. Gets the role
assigned to the user.
4.  ConfigManager passes the Role object to a MenuManager and asks it to
build a Menu object.
5.  The LoginFilter sets the User and the Menu in the session context. 
6.  Then the LoginFilter forwards the url to the default page or the
requested page.
7.  On each page, the header section is a jsp which looks for the Menu
object and builds the corresponding Menu which has all the categories to be
accessed.

 

 

 

Thanks

 

-- pady

[EMAIL PROTECTED]

 

-Original Message-
From: as as [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 22, 2004 10:51 AM
To: [EMAIL PROTECTED]
Subject: RE: Struts/filters

 

Pady,

thats great...May I have a look at the samples if possible...That would help
me a lot with the initial learning curve.

Thanks!

Pady Srinivasan [EMAIL PROTECTED] wrote:


We do this in our web app. We have a config xml with all our functional
categories defined. All these categories are accessed from the webapp using
a menu. We have a second config file that defines all the users/roles. Each
role is assigned to one or more functional categories. When user logs in,
the assigned role is loaded ( ie the javascript menu is built according to
the role ) using a filter, and saved in session.


Thanks

-- pady
[EMAIL PROTECTED]


-Original Message-
From: as as [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 22, 2004 10:00 AM
To: [EMAIL PROTECTED]
Subject: Struts/filters

Hi,
Has anyone tried filters framework ( tag in web.xml) in struts for
role based access to webpages in a enterprise wide application...deployed in
weblogic...we tried this and seems each sub-application needs a differenet,
its own web.xml and a single integrated web.xml..
Any workarounds...
Thanks,
Sam.
(Basically, in our lare web app, we want to allow different users (admin,
user, etc) access to different pages (password reset, etc) based on his
privileges

Thanks!

( I am quoting below.
http://info.borland.com/techpubs/jbuilder/jbuilder8/webapps/webapp_dd_editor
.html#filters
that i did find some related info, though)

Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

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

Do you Yahoo!?
 http://taxes.yahoo.com/filing.html Yahoo! Finance Tax Center - File
online. File on time. 


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__



__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

Odd behaviour with utf-8 on weblogic 8.1

2004-03-22 Thread Colm Garvey
I've just discovered a very odd bug/feature , but I'm not entirely sure
what's causing it.
I have a resource bundle for thai which has been encoded as utf-8.

If I specify

%@ page contentType=text/html; charset=UTF-8 language=java ...

in my JSP pages I wind up with gobbledigook, but if I simply use:

%@ page contentType=text/html language=java

ignoring the encoding reference entirely, it works perfectly!

Now I'm not one to look a gift horse in the mouth, but this is the kind of
thing that comes back and bites you in the behind later, so does anyone have
any idea why this is happening?

Colm


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



RE: Struts/filters

2004-03-22 Thread as as
I understand. Thanks for the algorith below,  though!

Pady Srinivasan [EMAIL PROTECTED] wrote:



Unfortunately, I cannot give out our code. But it basically involves the
following:



1. LoginFilter authenticates the user. Creates a User object.
2. LoginFilter calls a ConfigManager to build a Menu for the User. 
3. ConfigManager loads the user profile from an xml file. Gets the role
assigned to the user.
4. ConfigManager passes the Role object to a MenuManager and asks it to
build a Menu object.
5. The LoginFilter sets the User and the Menu in the session context. 
6. Then the LoginFilter forwards the url to the default page or the
requested page.
7. On each page, the header section is a jsp which looks for the Menu
object and builds the corresponding Menu which has all the categories to be
accessed.







Thanks



-- pady

[EMAIL PROTECTED]



-Original Message-
From: as as [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 22, 2004 10:51 AM
To: [EMAIL PROTECTED]
Subject: RE: Struts/filters



Pady,

thats great...May I have a look at the samples if possible...That would help
me a lot with the initial learning curve.

Thanks!

Pady Srinivasan 
wrote:


We do this in our web app. We have a config xml with all our functional
categories defined. All these categories are accessed from the webapp using
a menu. We have a second config file that defines all the users/roles. Each
role is assigned to one or more functional categories. When user logs in,
the assigned role is loaded ( ie the javascript menu is built according to
the role ) using a filter, and saved in session.


Thanks

-- pady
[EMAIL PROTECTED]


-Original Message-
From: as as [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 22, 2004 10:00 AM
To: [EMAIL PROTECTED]
Subject: Struts/filters

Hi,
Has anyone tried filters framework ( tag in web.xml) in struts for
role based access to webpages in a enterprise wide application...deployed in
weblogic...we tried this and seems each sub-application needs a differenet,
its own web.xml and a single integrated web.xml..
Any workarounds...
Thanks,
Sam.
(Basically, in our lare web app, we want to allow different users (admin,
user, etc) access to different pages (password reset, etc) based on his
privileges

Thanks!

( I am quoting below.
http://info.borland.com/techpubs/jbuilder/jbuilder8/webapps/webapp_dd_editor
.html#filters
that i did find some related info, though)

Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

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

Do you Yahoo!?
Yahoo! Finance Tax Center - File
online. File on time. 


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__



__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.

AW: multiple lines in an ActionMessage object displayed via javascript alert

2004-03-22 Thread Just Fun 4 You
hm. In my ActionClass I have something like this:

ActionMessages messages = new ActionMessages();
String text = \n:  + getCriticalDate.toString() +  --;

text = text + getTotalHours() +  hours.\n;

messages.add(critical.schedule.text, text);

saveMessages(request, messages);

In my jsp:

logic:messagesPresent
  script language=javascript
   html:messages id=message message=true
 alert(c:out value=${message} /)
   /html:messages  
 /script
logic:messagesPresent


This does not work: I get a javascript error (unterminated string constant).
However everything works and the text is being displayed when I remove the
\n from the text.

the evaluated text string looks something like this if I print the text
string to the console (seems ok):   

The following dates are critical:
20.03.2004: 5 hours.

I want this format exactly being displayed using the alert function. I
cannot see where the problem is. any idea?

thx,
Dirk


-Ursprüngliche Nachricht-
Von: Mark Lowe [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 22. März 2004 00:46
An: Struts Users Mailing List
Betreff: Re: multiple lines in an ActionMessage object displayed via
javascript alert

What characters have you in your strings ?

There must be something a quote or something give js a bad day.

I assume you've something like this.

msg1 = bean:message key=message1 /;
msg2 = bean:message key=message2 /;
msg3 = bean:message key=message3 /; msg = msg1 +\n+ msg2 +\n+
msg3; alert(msg);

Paste the rendered source in to a reply and I'm sure one or more of you
messages has a character that needs escaping or something like that.


On 22 Mar 2004, at 00:17, Just Fun 4 You wrote:


  Hi,

 I create an ActionMessages object and store one ActionMessage in it. 
 The
 ActionMessage is a string which contains the \n character
 to display the whole message in more than one line:

 message1\nmessage2\nmessage3...


 In my jsp I have defined the html:message for iteration within a 
 javascript
 block as I would like to display the message by the javascript alert
 function.

 The problem is, that I always get a javascript error for the \n 
 character
 (unterminated string constant). However, if I remove the \n character
 everything works. But then, the whole message is displayed in one 
 line. Can
 someone help?

 thx,
 Dirk


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



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


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



RE: Odd behaviour with utf-8 on weblogic 8.1

2004-03-22 Thread Kumar, Ram S
Have you tried?
%@ page language=java%
%
 Response.setContentType(text/html;charset=UTF-8); in your jsp page?
%
Thanks and Regards,
S.Ramkumar

-Original Message-
From: Colm Garvey [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 22, 2004 10:06 PM
To: Struts Users Mailing List
Subject: Odd behaviour with utf-8 on weblogic 8.1

I've just discovered a very odd bug/feature , but I'm not entirely sure
what's causing it.
I have a resource bundle for thai which has been encoded as utf-8.

If I specify

%@ page contentType=text/html; charset=UTF-8 language=java ...

in my JSP pages I wind up with gobbledigook, but if I simply use:

%@ page contentType=text/html language=java

ignoring the encoding reference entirely, it works perfectly!

Now I'm not one to look a gift horse in the mouth, but this is the kind of
thing that comes back and bites you in the behind later, so does anyone have
any idea why this is happening?

Colm


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

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



RE: Refresh parent window on popup submit with old params to parent

2004-03-22 Thread Freddy Villalba Arias
I'd say:

Popup submits info.
Info ges processed.
Popup gets reloaded.
On popup reload, invoke refresh on parent, then close (in that exact
order).
Parent gets fresh info.

There is only one race-condition with this approach:

The background operations launched by the popup's submit action (I
assume there will be some) must be completed before the refresh
function is invoked on the parent window.

One way to avoid this is to wait until vital operations are completed,
then return (to the popup window).

HTH.

Freddy V.A.

-Mensaje original-
De: Gandle, Panchasheel [mailto:[EMAIL PROTECTED] 
Enviado el: jueves, 18 de marzo de 2004 14:49
Para: Struts Users Mailing List
Asunto: Refresh parent window on popup submit with old params to parent

This must have asked before but ...

I popup a child window from a parent window.
Popup window submits info, gets closed.
Parent window gets refreshed.

Whats the best way to refresh parent window, 
such that it gets the new info from child window
and the parameters that were previously 
submitted for the parent window to appear.


Thanks
Panchasheel


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


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



RE: Struts web app performance improvement

2004-03-22 Thread Pingili, Madhupal
It is Rad View's Web Load tool that our testing team used.

 -Original Message-
 From: as as [SMTP:[EMAIL PROTECTED]
 Sent: Monday, March 22, 2004 10:02 AM
 To:   Struts Users Mailing List
 Subject:  Re: Struts web app performance improvement  
 
 Hi Pingili,
 I am interested in this topic too...which tool are u using for the stress
 test...
 is it JProbe or winRunner...
 I have a struts app deployed in weblogic, that I want to test and improve
 performance of...
 Thaks in advance,
 Sam.
 
 Pingili, Madhupal [EMAIL PROTECTED] wrote:
 Hello All,
 We just ran the stress test on a web app. ( that searchs/retrieves
 documents
 from FileNet IS system) developed using Struts 1.1.
 Overall, the application appeared to slow down significantly with only
 50
 users, the average response time on my PC was about 30 seconds to bring up
 a
 page (this does not include running a query, just clicking on a
 struts-menu
 tab heading). Once the page loaded, queries took about 5-10 seconds, but
 occasionally would take longer. The number fifty is quoted because these
 were simultaneous test users and not real people. We still need to
 determine
 what these 50 users equate to in terms of real usage.
 
 We did get the load up to about 170 users to see what the server health
 would look like. The application was responding to the load test drones,
 and
 response time from my PC was occasionally over 2 minutes to load a page.
 
 Server stats showed disk and memory usage being pretty low on the web
 server. There appeared to be hardly any paging or swapping. However, the
 CPU
 was pinned at 98-100% with only a few users. We noticed a constant CPU of
 98% with only 10 users. 
 
 Web app. is running on WebSphere 4.0.4 AE. 
 I am currently looking at the Resource Analyzer reports and searching
 google for any links.
 
 Has anyone has come across this situation and solved this problem?
 Any links to performance improvement guides or general topics is highly
 appreciated.
 
 Reddy Pingili
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 Do you Yahoo!?
 Yahoo! Finance Tax Center - File online. File on time.

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



Re: AW: multiple lines in an ActionMessage object displayed via javascript alert

2004-03-22 Thread Mark Lowe
Whats actually in your properties file..?

Paste the rendered source into the reply, i think its a javascript 
problem.



On 22 Mar 2004, at 18:04, Just Fun 4 You wrote:

hm. In my ActionClass I have something like this:

ActionMessages messages = new ActionMessages();
String text = \n:  + getCriticalDate.toString() +  --;
text = text + getTotalHours() +  hours.\n;

messages.add(critical.schedule.text, text);

saveMessages(request, messages);

In my jsp:

logic:messagesPresent
  script language=javascript
   html:messages id=message message=true
 alert(c:out value=${message} /)
   /html:messages 
 /script
logic:messagesPresent
This does not work: I get a javascript error (unterminated string 
constant).
However everything works and the text is being displayed when I remove 
the
\n from the text.

the evaluated text string looks something like this if I print the text
string to the console (seems ok):
The following dates are critical:
20.03.2004: 5 hours.
I want this format exactly being displayed using the alert function. I
cannot see where the problem is. any idea?
thx,
Dirk
-Ursprüngliche Nachricht-
Von: Mark Lowe [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 22. März 2004 00:46
An: Struts Users Mailing List
Betreff: Re: multiple lines in an ActionMessage object displayed via
javascript alert
What characters have you in your strings ?

There must be something a quote or something give js a bad day.

I assume you've something like this.

msg1 = bean:message key=message1 /;
msg2 = bean:message key=message2 /;
msg3 = bean:message key=message3 /; msg = msg1 +\n+ msg2 +\n+
msg3; alert(msg);
Paste the rendered source in to a reply and I'm sure one or more of you
messages has a character that needs escaping or something like that.
On 22 Mar 2004, at 00:17, Just Fun 4 You wrote:

 Hi,

I create an ActionMessages object and store one ActionMessage in it.
The
ActionMessage is a string which contains the \n character
to display the whole message in more than one line:
message1\nmessage2\nmessage3...

In my jsp I have defined the html:message for iteration within a
javascript
block as I would like to display the message by the javascript alert
function.
The problem is, that I always get a javascript error for the \n
character
(unterminated string constant). However, if I remove the \n character
everything works. But then, the whole message is displayed in one
line. Can
someone help?
thx,
Dirk
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


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


RE: Struts web app performance improvement

2004-03-22 Thread Pingili, Madhupal
It is IBM AIX 5.1,  1 CPU, 450 MHz, 1GB RAM.  

 -Original Message-
 From: Smith, Darrin [SMTP:[EMAIL PROTECTED]
 Sent: Monday, March 22, 2004 10:03 AM
 To:   'Struts Users Mailing List'
 Subject:  RE: Struts web app performance improvement  
 
 What sort of box was it run on? Processor speed and number of CPUs please.
 
 That would make a big difference.
 
 
 -Original Message-
 From: Pingili, Madhupal [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 22, 2004 8:54 AM
 To: 'Struts Users Mailing List'
 Subject: Struts web app performance improvement 
 
 
 Hello All,
 We just ran the stress test on a web app. ( that searchs/retrieves
 documents
 from FileNet IS system) developed using Struts 1.1.
 Overall, the application appeared to slow down significantly with only
 50
 users, the average response time on my PC was about 30 seconds to bring up
 a
 page (this does not include running a query, just clicking on a
 struts-menu
 tab heading). Once the page loaded, queries took about 5-10 seconds, but
 occasionally would take longer. The number fifty is quoted because these
 were simultaneous test users and not real people. We still need to
 determine
 what these 50 users equate to in terms of real usage.
 
 We did get the load up to about 170 users to see what the server health
 would look like. The application was responding to the load test drones,
 and
 response time from my PC was occasionally over 2 minutes to load a page.
 
 Server stats showed disk and memory usage being pretty low on the web
 server. There appeared to be hardly any paging or swapping. However, the
 CPU
 was pinned at 98-100% with only a few users. We noticed a constant CPU of
 98% with only 10 users. 
 
 Web app. is running on WebSphere 4.0.4 AE. 
 I am currently looking at the Resource Analyzer reports and searching
 google for any links.
 
 Has anyone has come across this situation and solved this problem?
 Any links to performance improvement guides or general topics is highly
 appreciated.
 
 Reddy Pingili
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



RE: Struts web app performance improvement

2004-03-22 Thread Smith, Darrin
With a single 450 MHz CPU, I can see why it would drag. The cheapest way to
improve performance might simply be to upgrade the CPU to something more
modern.

-Original Message-
From: Pingili, Madhupal [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 11:28 AM
To: 'Struts Users Mailing List'
Subject: RE: Struts web app performance improvement 


It is IBM AIX 5.1,  1 CPU, 450 MHz, 1GB RAM.  

 -Original Message-
 From: Smith, Darrin [SMTP:[EMAIL PROTECTED]
 Sent: Monday, March 22, 2004 10:03 AM
 To:   'Struts Users Mailing List'
 Subject:  RE: Struts web app performance improvement  
 
 What sort of box was it run on? Processor speed and number of CPUs please.
 
 That would make a big difference.
 
 
 -Original Message-
 From: Pingili, Madhupal [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 22, 2004 8:54 AM
 To: 'Struts Users Mailing List'
 Subject: Struts web app performance improvement 
 
 
 Hello All,
 We just ran the stress test on a web app. ( that searchs/retrieves
 documents
 from FileNet IS system) developed using Struts 1.1.
 Overall, the application appeared to slow down significantly with only
 50
 users, the average response time on my PC was about 30 seconds to bring up
 a
 page (this does not include running a query, just clicking on a
 struts-menu
 tab heading). Once the page loaded, queries took about 5-10 seconds, but
 occasionally would take longer. The number fifty is quoted because these
 were simultaneous test users and not real people. We still need to
 determine
 what these 50 users equate to in terms of real usage.
 
 We did get the load up to about 170 users to see what the server health
 would look like. The application was responding to the load test drones,
 and
 response time from my PC was occasionally over 2 minutes to load a page.
 
 Server stats showed disk and memory usage being pretty low on the web
 server. There appeared to be hardly any paging or swapping. However, the
 CPU
 was pinned at 98-100% with only a few users. We noticed a constant CPU of
 98% with only 10 users. 
 
 Web app. is running on WebSphere 4.0.4 AE. 
 I am currently looking at the Resource Analyzer reports and searching
 google for any links.
 
 Has anyone has come across this situation and solved this problem?
 Any links to performance improvement guides or general topics is highly
 appreciated.
 
 Reddy Pingili
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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


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



struts-reports

2004-03-22 Thread as as
Hi,
 
I have a struts page that needs to generate reports based on filtering criterion like 
(date from, date to, type of report, type of data to show).
my back end database is hibernate.
Is there some sort of open source for such a purpose.basically looking for fast page 
response time-to fetch data from back end database using these queries..
 
Thanks in advance!

Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.

RE: Struts web app performance improvement

2004-03-22 Thread henrik . bentel
Are you running under http or https?






Pingili, Madhupal [EMAIL PROTECTED]
03/22/04 11:28 AM
Please respond to Struts Users Mailing List

 
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
cc: 
Subject:RE: Struts web app performance improvement


It is IBM AIX 5.1,  1 CPU, 450 MHz, 1GB RAM. 

 -Original Message-
 From:  Smith, Darrin [SMTP:[EMAIL PROTECTED]
 Sent:  Monday, March 22, 2004 10:03 AM
 To:'Struts Users Mailing List'
 Subject:   RE: Struts web app performance improvement 
 
 What sort of box was it run on? Processor speed and number of CPUs 
please.
 
 That would make a big difference.
 
 
 -Original Message-
 From: Pingili, Madhupal [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 22, 2004 8:54 AM
 To: 'Struts Users Mailing List'
 Subject: Struts web app performance improvement 
 
 
 Hello All,
 We just ran the stress test on a web app. ( that searchs/retrieves
 documents
 from FileNet IS system) developed using Struts 1.1.
 Overall, the application appeared to slow down significantly with only
 50
 users, the average response time on my PC was about 30 seconds to bring 
up
 a
 page (this does not include running a query, just clicking on a
 struts-menu
 tab heading). Once the page loaded, queries took about 5-10 seconds, but
 occasionally would take longer. The number fifty is quoted because these
 were simultaneous test users and not real people. We still need to
 determine
 what these 50 users equate to in terms of real usage.
 
 We did get the load up to about 170 users to see what the server 
health
 would look like. The application was responding to the load test drones,
 and
 response time from my PC was occasionally over 2 minutes to load a page.
 
 Server stats showed disk and memory usage being pretty low on the web
 server. There appeared to be hardly any paging or swapping. However, the
 CPU
 was pinned at 98-100% with only a few users. We noticed a constant CPU 
of
 98% with only 10 users. 
 
 Web app. is running on WebSphere 4.0.4 AE. 
 I am currently looking at the Resource Analyzer reports and searching
 google for any links.
 
 Has anyone has come across this situation and solved this problem?
 Any links to performance improvement guides or general topics is highly
 appreciated.
 
 Reddy Pingili
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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





complex forwarding logic?

2004-03-22 Thread Nick Wesselman
I'm writing an application that will require some fairly complex 
forwarding logic. After an action completes, it will need to query my 
model for the current application state and translate that into the 
appropriate forward/next step. The forward itself may require some 
pre-processing. To further complicate matters, I'd like to be able to 
subclass and add or remove steps from the process.

At this point, I'm planning on creating a sort-of forward helper class 
which can translate a business state into an ActionForward and prepare 
the request for this forward. I'm a bit stuck though on my subclassing. 
It seems like I'd need some sort of factory to get the right helper 
class for my application, if I don't want to subclass all my actions as 
well. Am I making sense at all here? Any thoughts?

Nick

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


Re: struts-reports

2004-03-22 Thread Mark Lowe
On 22 Mar 2004, at 19:06, as as wrote:

Hi,

I have a struts page that needs to generate reports based on filtering 
criterion like (date from, date to, type of report, type of data to 
show).
Make some util classes that return what you need with what you need 
from you model.

List fooList = HibernateHelper.getFoos(from, to);

The type of report might be more a web layer/struts thing.

my back end database is hibernate.
Well i doubt that but i see what you mean.

Is there some sort of open source for such a purpose.basically looking 
for fast page response time-to fetch data from back end database using 
these queries..
Um yes, hibernate?

Thanks in advance!

Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.


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


RE: complex forwarding logic?

2004-03-22 Thread Pady Srinivasan

You can try something like the Interceptor pattern. For a specific request,
register a series of command classes with a Manager. The Manager calls each
interceptor in the order specified. This way you can add commands ( steps )
without changing existing code. Almost like Struts Action forwarding...( :-)
)


Thanks
 
-- pady
[EMAIL PROTECTED]
 

-Original Message-
From: Nick Wesselman [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 22, 2004 1:04 PM
To: Struts Users Mailing List
Subject: complex forwarding logic?

I'm writing an application that will require some fairly complex 
forwarding logic. After an action completes, it will need to query my 
model for the current application state and translate that into the 
appropriate forward/next step. The forward itself may require some 
pre-processing. To further complicate matters, I'd like to be able to 
subclass and add or remove steps from the process.

At this point, I'm planning on creating a sort-of forward helper class 
which can translate a business state into an ActionForward and prepare 
the request for this forward. I'm a bit stuck though on my subclassing. 
It seems like I'd need some sort of factory to get the right helper 
class for my application, if I don't want to subclass all my actions as 
well. Am I making sense at all here? Any thoughts?

Nick


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


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

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



RE: Struts web app performance improvement

2004-03-22 Thread Pingili, Madhupal
http only.

 -Original Message-
 From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]
 Sent: Monday, March 22, 2004 1:07 PM
 To:   Struts Users Mailing List
 Subject:  RE: Struts web app performance improvement
 
 Are you running under http or https?
 
 
 
 
 
 
 Pingili, Madhupal [EMAIL PROTECTED]
 03/22/04 11:28 AM
 Please respond to Struts Users Mailing List
 
  
 To: 'Struts Users Mailing List'
 [EMAIL PROTECTED]
 cc: 
 Subject:RE: Struts web app performance improvement
 
 
 It is IBM AIX 5.1,  1 CPU, 450 MHz, 1GB RAM. 
 
  -Original Message-
  From:  Smith, Darrin [SMTP:[EMAIL PROTECTED]
  Sent:  Monday, March 22, 2004 10:03 AM
  To:'Struts Users Mailing List'
  Subject:   RE: Struts web app performance improvement 
  
  What sort of box was it run on? Processor speed and number of CPUs 
 please.
  
  That would make a big difference.
  
  
  -Original Message-
  From: Pingili, Madhupal [mailto:[EMAIL PROTECTED]
  Sent: Monday, March 22, 2004 8:54 AM
  To: 'Struts Users Mailing List'
  Subject: Struts web app performance improvement 
  
  
  Hello All,
  We just ran the stress test on a web app. ( that searchs/retrieves
  documents
  from FileNet IS system) developed using Struts 1.1.
  Overall, the application appeared to slow down significantly with only
  50
  users, the average response time on my PC was about 30 seconds to bring 
 up
  a
  page (this does not include running a query, just clicking on a
  struts-menu
  tab heading). Once the page loaded, queries took about 5-10 seconds, but
  occasionally would take longer. The number fifty is quoted because these
  were simultaneous test users and not real people. We still need to
  determine
  what these 50 users equate to in terms of real usage.
  
  We did get the load up to about 170 users to see what the server 
 health
  would look like. The application was responding to the load test drones,
  and
  response time from my PC was occasionally over 2 minutes to load a page.
  
  Server stats showed disk and memory usage being pretty low on the web
  server. There appeared to be hardly any paging or swapping. However, the
  CPU
  was pinned at 98-100% with only a few users. We noticed a constant CPU 
 of
  98% with only 10 users. 
  
  Web app. is running on WebSphere 4.0.4 AE. 
  I am currently looking at the Resource Analyzer reports and searching
  google for any links.
  
  Has anyone has come across this situation and solved this problem?
  Any links to performance improvement guides or general topics is highly
  appreciated.
  
  Reddy Pingili
  
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

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



RE: complex forwarding logic?

2004-03-22 Thread Hookom, Jacob
Leave action forwards alone and instead, create a supporting method that can
be called from your actions that looks at your session and returns the
appropriate actionforward.  So there's your complex logic, I wouldn't
re-write the struts forwarding framework.

String stepName = WizardSupport.getNextForward(HttpSession, SomeCriteria);
return mapping.findForward(stepName);


-Original Message-
From: Nick Wesselman [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 22, 2004 12:04 PM
To: Struts Users Mailing List
Subject: complex forwarding logic?

I'm writing an application that will require some fairly complex 
forwarding logic. After an action completes, it will need to query my 
model for the current application state and translate that into the 
appropriate forward/next step. The forward itself may require some 
pre-processing. To further complicate matters, I'd like to be able to 
subclass and add or remove steps from the process.

At this point, I'm planning on creating a sort-of forward helper class 
which can translate a business state into an ActionForward and prepare 
the request for this forward. I'm a bit stuck though on my subclassing. 
It seems like I'd need some sort of factory to get the right helper 
class for my application, if I don't want to subclass all my actions as 
well. Am I making sense at all here? Any thoughts?

Nick


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

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



user login authentication and session timeout

2004-03-22 Thread Charles Jordan
I'm looking for examples or to be pointed in the right direction on how
to achieve the following.
I want my users to be able to access a mojority of my pages without having
to login, but if they select a specific page a small login pop-up window
would display which would require a valid user name and password. I also
want the session to time-out after a period of time.
Any ides?

Charles (Allen) Jordan   [EMAIL PROTECTED]
  System Administrator(407)771-8919
  Convergys
  285 International Parkway, 
  Lake Mary, FL 32746-5007


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



Struts 1.0.2b and JDK 1.4.2

2004-03-22 Thread Kramer, Brad
Can anyone either confirm or deny if Struts 1.0.2b is compatible with
JDK 1.4.2? 
 
Thanks a lot!
 
  _  

Brad Kramer
Web  Application Server Engineering
Phone - 703.833.3402
Pager -  [EMAIL PROTECTED]
  _  

 
 


Re: Changing the FileUpload-Processing

2004-03-22 Thread Martin Cooper
You shouldn't have to worry about the request processor. The multipart
handler is pluggable, so you can simply replace the one Struts uses with
your own by specifying the class name in the 'multipartClass' attribute of
the controller element in your Struts config file.

The multipart handler is invoked at the point at which the form bean is
being populated from the request. There's some slightly hairy magic that
goes on to make this work in a Servlets 2.2 environment, and I'm looking
forward to removing that for Struts 2. For now, I'd recommend staying away
from there and doing what you need inside the multipart handler itself.

--
Martin Cooper


[EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hello everybody!

I wrote to the Mailing-List some days ago. That was about the displaying of
progress-bars during fileupload. I made progress on this in that manner that
I have a patched version of the commons-fileupload-library which can do the
thing.

But now I have to change the way Struts handles the FileUpload. I know that
I can overwrite the RequestProcessor and implement my own one. I hope that
it is possible to achieve my goal by doing this. What I basically need, is
the sport where Struts reads the files from the multipart-request into the
DiskFileUpload, since at this spot the progress bar tugs in.

Can somebody tell me a good way to do this? I know that there is a
CommonsMultipartRequestHandler which starts on doing this. But where exactly
does Struts utilize this thing?

Thx for any help! Hope this is not too specific.

___
Tim Adler, Abt. SDA1
Adress Management Solutions
AZ | Direct
Carl-Bertelsmann Straße 161s
D-33311 Gütersloh

Tel.: 05241/ 80 - 89574
[EMAIL PROTECTED]






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



RE: complex forwarding logic?

2004-03-22 Thread Joe Germuska
Depending on your appetite for the cutting edge, you may want to 
investigate struts-chain, which is currently in contrib, but which 
is targeted for replacing the current RequestProcessor on a Struts 
1.3.x timeframe (which will probably begin in earnest shortly after 
the move to Apache TLP status is complete)

http://cvs.apache.org/viewcvs.cgi/jakarta-struts/contrib/struts-chain/

The chain wouldn't solve your problem by itself, but it does expose 
the request handling lifecycle to much more flexible manipulation 
than is currently possible by extending RequestProcessor

This thread about struts-workflow from earlier today on struts-dev 
may be worth a look:
http://thread.gmane.org/gmane.comp.jakarta.struts.devel/18250

There has also been a bit of discussion about Renderers or View 
Controllers although I suspect that they may be aimed at somewhat 
lighter processing than your use case:
http://thread.gmane.org/gmane.comp.jakarta.struts.devel/18086

You aren't the only one who has faced this problem.  It would be 
great to provide support for more complex forwarding logic in the 
Struts core, if we can round up enough folks with different use cases 
to find a good general solution.

Joe

--
Joe Germuska
[EMAIL PROTECTED]
http://blog.germuska.com
  Imagine if every Thursday your shoes exploded if you tied them 
the usual way.  This happens to us all the time with computers, and 
nobody thinks of complaining.
-- Jef Raskin

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


RE: user login authentication and session timeout

2004-03-22 Thread Kumar, Ram S

Hi,
 You can consider the following ways:

  1) You can associate an action class for the page that requires a username
and password. In that action class you can prompt for username and password.
Have a separate action class for the urls that doesn't require login.

 2). Have a query string appended to every URL
(http://mydomain/mywebapp/myaction.do?login=NA) for the action that does not
require login.
And http://mydomain/mywebapp/myaction.do?login=REQUIRED). Map the urls that
requires username and password to an action class and you can do the
validation in this action class.

You can specify the session time out in web.xml file for your web app.Refer
the code snippet below.

   session-config
  session-timeout30/session-timeout!-- 30 minutes --
/session-config

HTH
Ram Kumar.
-Original Message-
From: Charles Jordan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 23, 2004 12:05 AM
To: [EMAIL PROTECTED]
Subject: user login authentication and session timeout

I'm looking for examples or to be pointed in the right direction on how
to achieve the following.
I want my users to be able to access a mojority of my pages without having
to login, but if they select a specific page a small login pop-up window
would display which would require a valid user name and password. I also
want the session to time-out after a period of time.
Any ides?

Charles (Allen) Jordan   [EMAIL PROTECTED]
  System Administrator(407)771-8919
  Convergys
  285 International Parkway, 
  Lake Mary, FL 32746-5007


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

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



Error while upgrading from struts version 1.0 to 1.1

2004-03-22 Thread Jignesh Kapadia

Hi ,
 I am upgrading my current application from Struts 1.0 to Struts 1.1. The application is working properly with version 1.0. I just copied the struts 1.1 realted jar files in my web-inf/lib directory. Now when I restart my application it gives meError while loading Action Servlet. its failing in Super.init(). Is there anything I need to do other that just realcing the war files when I upgrade the Struts version.
The error file is attached in e-mail.


Thanks and Regards,
JigneshDo you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.*** Starting the server ***
IBM WebSphere Application Server, Release 4.0.4
Advanced Single Server Edition for Multiplatforms
Copyright IBM Corp., 1997-2001

[3/20/04 14:30:12:932 EST] 26cac26b WSRegistryImp X Unable to initialize user registry 
class com.ibm.ejs.security.registry.nt.NTLocalDomainRegistryImpl for type Windows due 
to exception: Access is denied.

[3/20/04 14:30:12:979 EST] 26cac26b SASConfig X SECJ0108E: Unexpected exception 
occurred when getting user registry or registry attributes.
 Start Display Current Environment 
WebSphere AEs 4.0.4 ptf40230.02 running with process name localhost/Default Server and 
process id 346
Host Operating System is Windows NT, version 4.0
Java version = J2RE 1.3.1 IBM Windows 32 build cn131w-20020710 ORB130 (JIT enabled: 
jitc), Java Compiler = jitc, Java VM name = Classic VM
server.root = C:\Program Files\IBM\WebSphere Studio\runtimes\aes_v4
Java Home = C:\Program Files\IBM\WebSphere Studio\runtimes\aes_v4\java\jre
ws.ext.dirs = C:\Program Files\IBM\WebSphere 
Studio\runtimes\aes_v4/java/lib;C:\Program Files\IBM\WebSphere 
Studio\runtimes\aes_v4/classes;C:\Program Files\IBM\WebSphere 
Studio\runtimes\aes_v4/lib;C:\Program Files\IBM\WebSphere 
Studio\runtimes\aes_v4/lib/ext;C:\Program Files\IBM\WebSphere 
Studio\runtimes\aes_v4/web/help;C:/Program Files/SQLLIB/java/db2java.zip;C:/Program 
Files/IBM/WebSphere 
Studio/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.0.1/runtime/wasListener.jar;C:/Program
 Files/IBM/WebSphere 
Studio/wstools/eclipse/plugins/com.ibm.etools.webservice_5.0.1/runtime/worf.jar;C:\wsad40requiredjars;C:\devc\olr_properties\env;C:\JAR\persistent_services_classes.jar;C:\JAR\config_services_classes_1_0_0.jar;C:\JAR\eas_api_classes_2_1_3.jar;C:\JAR\easaccess_classes.jar;C:\JAR\codes_repository_classes.jar;C:\JAR\uniqueidgeneration_services_classes.jar;C:\JAR\xml_services_classes_1_0_0.jar;C:\projects\testingEarWeb\Web
 Content\WEB-INF\classes;C:\projects\testingEarWeb\Web Content\WEB-INF\lib
Classpath = C:\Program Files\IBM\WebSphere 
Studio\runtimes\aes_v4/properties;C:\Program Files\IBM\WebSphere 
Studio\runtimes\aes_v4/lib/bootstrap.jar;C:/Program Files/IBM/WebSphere 
Studio/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.0.1/runtime/wteServers.jar;C:/Program
 Files/IBM/WebSphere 
Studio/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.0.1/runtime/wasToolsCommon.jar
Java Library path = C:\Program Files\IBM\WebSphere 
Studio\runtimes\aes_v4/bin;C:\Program Files\IBM\WebSphere 
Studio\eclipse\jre\bin;.;C:\WINNT\System32;C:\WINNT;C:\Program 
Files\Rational\common;e:\Program Files\ibm\gsk5\lib;C:\Program 
Files\SQLLIB\BIN;C:\Program Files\SQLLIB\FUNCTION;C:\Program 
Files\SQLLIB\help;C:\Program Files\Oracle\jre\1.3.1\bin;C:\ORACLE\ora92\bin;C:\Program 
Files\Oracle\jre\1.1.8\bin;
Current trace specification = *=all=disabled
* End Display Current Environment *
[3/20/04 14:30:14:042 EST] 26cac26b ServerU Version : 4.0.4
[3/20/04 14:30:14:042 EST] 26cac26b ServerU Edition: Advanced Single Server 
Edition for Multiplatforms
[3/20/04 14:30:14:042 EST] 26cac26b ServerU Build date: Thu Sep 05 00:00:00 
EDT 2002
[3/20/04 14:30:14:042 EST] 26cac26b ServerU Build number: ptf40230.02
[3/20/04 14:30:16:792 EST] 26cac26b WSRegistryImp X Unable to initialize user registry 
class com.ibm.ejs.security.registry.nt.NTLocalDomainRegistryImpl for type Windows due 
to exception: Access is denied.

[3/20/04 14:30:16:792 EST] 26cac26b StandardIniti W SECJ0007E: Error during security 
initialization. Exception com.ibm.ejs.security.registry.RegistryErrorException: 
Windows:Access is denied.

at 
com.ibm.ejs.security.registry.WSRegistryImplFactory.create(WSRegistryImplFactory.java:128)
at 
com.ibm.ejs.security.registry.WSRegistryImplFactory.getRegistryImpl(WSRegistryImplFactory.java:72)
at 
com.ibm.ejs.security.SecurityCollaborator.initialize(SecurityCollaborator.java:345)
at 
com.ibm.ws.security.core.StandardInitializer.initialize(StandardInitializer.java:162)
at 
com.ibm.ws.runtime.StandardServer.initializeSecurityRuntime(StandardServer.java:390)
at com.ibm.ws.runtime.Server.initializeRuntime0(Server.java:953)
at 
com.ibm.ws.runtime.StandardServer.initializeRuntime0(StandardServer.java:341)
at 

RE: user login authentication and session timeout

2004-03-22 Thread Robert Taylor
Charles, you can use container managed security or the SecurityFilter  to authenticate 
users when accessing protected resources. You
can set the session time out by adding something like the following to your web.xml 
file:

session-config
session-timeout60/session-timeout
/session-config



You can find more information on SecurityFilter here:
http://sourceforge.net/projects/securityfilter/

Your servlet container documentation should let you know how to
implement container managed security.

robert



 -Original Message-
 From: Charles Jordan [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 22, 2004 1:35 PM
 To: [EMAIL PROTECTED]
 Subject: user login authentication and session timeout


 I'm looking for examples or to be pointed in the right direction on how
 to achieve the following.
 I want my users to be able to access a mojority of my pages without having
 to login, but if they select a specific page a small login pop-up window
 would display which would require a valid user name and password. I also
 want the session to time-out after a period of time.
 Any ides?

 Charles (Allen) Jordan   [EMAIL PROTECTED]
   System Administrator(407)771-8919
   Convergys
   285 International Parkway,
   Lake Mary, FL 32746-5007


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



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



RE: Error while upgrading from struts version 1.0 to 1.1

2004-03-22 Thread Saul Q Yuan
I think you need to recompile your application against the new
Struts.jar file and other jar files it depends on.
 
Saul

-Original Message-
From: Jignesh Kapadia [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 22, 2004 1:55 PM
To: [EMAIL PROTECTED]
Subject: Error while upgrading from struts version 1.0 to 1.1


Hi ,
I am upgrading my current application from Struts 1.0 to Struts
1.1. The application is working properly with version 1.0. I just copied
the struts 1.1 realted jar files in my web-inf/lib directory. Now when I
restart my application it gives meError while loading Action Servlet.
its failing in Super.init(). Is there anything I need to do other that
just realcing the war files when I upgrade the Struts version.
The error file is attached in e-mail.
 
 
Thanks and Regards,
Jignesh

Do you Yahoo!?
 http://taxes.yahoo.com/filing.html Yahoo! Finance Tax Center - File
online. File on time.



AW: AW: multiple lines in an ActionMessage object displayed via javascript alert

2004-03-22 Thread Just Fun 4 You
Hi Mark,

the properties file holds for critical.schedule.text:

critical.schedule.text=Folgende Termine sind wg zeitlicher Überlastung für


The rendered jsp looks like this:

...

logic:messagesPresent 
script language=javascript

alert(Folgende Termine sind wg zeitlicher Überlastung für
Schmidt (SCHM05) kritisch:
16.03.2004: 11 PS Tagesaufwand)

/script
/logic:messagesPresent
...


the following shows the source from the ActionClass:


ActionMessages messages = new ActionMessages(); 

String noteText = + person.getPersonDataShort() +  kritisch:\n;

Iterator it = scheduleReportList.iterator();

while(it.hasNext()){
Object object = it.next();

if(object instanceof ScheduleModel){
ScheduleModel scheduleOversized = (ScheduleModel)object;

noteText = noteText +
scheduleOversized.formatSqlDateToDate(scheduleOversized.getStartDate().toStr
ing()) +
:  + scheduleOversized.getIntDailyManHour() +  PS
Tagesaufwand\n;
}   
}   

if(messages != null){
System.out.println(Note:  + noteText);
messages.add(ActionMessages.GLOBAL_MESSAGE, new
ActionMessage(critical.schedule.text, noteText.trim()));


saveMessages(request, messages);
}


thx,
Dirk
 

-Ursprüngliche Nachricht-
Von: Mark Lowe [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 22. März 2004 18:25
An: Struts Users Mailing List
Betreff: Re: AW: multiple lines in an ActionMessage object displayed via
javascript alert

Whats actually in your properties file..?

Paste the rendered source into the reply, i think its a javascript problem.



On 22 Mar 2004, at 18:04, Just Fun 4 You wrote:

 hm. In my ActionClass I have something like this:

 ActionMessages messages = new ActionMessages();
 String text = \n:  + getCriticalDate.toString() +  --;

 text = text + getTotalHours() +  hours.\n;

 messages.add(critical.schedule.text, text);

 saveMessages(request, messages);

 In my jsp:

 logic:messagesPresent
   script language=javascript
html:messages id=message message=true
  alert(c:out value=${message} /)
/html:messages 
  /script
 logic:messagesPresent


 This does not work: I get a javascript error (unterminated string 
 constant).
 However everything works and the text is being displayed when I remove 
 the
 \n from the text.

 the evaluated text string looks something like this if I print the text
 string to the console (seems ok):

 The following dates are critical:
 20.03.2004: 5 hours.

 I want this format exactly being displayed using the alert function. I
 cannot see where the problem is. any idea?

 thx,
 Dirk


 -Ursprüngliche Nachricht-
 Von: Mark Lowe [mailto:[EMAIL PROTECTED]
 Gesendet: Montag, 22. März 2004 00:46
 An: Struts Users Mailing List
 Betreff: Re: multiple lines in an ActionMessage object displayed via
 javascript alert

 What characters have you in your strings ?

 There must be something a quote or something give js a bad day.

 I assume you've something like this.

 msg1 = bean:message key=message1 /;
 msg2 = bean:message key=message2 /;
 msg3 = bean:message key=message3 /; msg = msg1 +\n+ msg2 +\n+
 msg3; alert(msg);

 Paste the rendered source in to a reply and I'm sure one or more of you
 messages has a character that needs escaping or something like that.


 On 22 Mar 2004, at 00:17, Just Fun 4 You wrote:


  Hi,

 I create an ActionMessages object and store one ActionMessage in it.
 The
 ActionMessage is a string which contains the \n character
 to display the whole message in more than one line:

 message1\nmessage2\nmessage3...


 In my jsp I have defined the html:message for iteration within a
 javascript
 block as I would like to display the message by the javascript alert
 function.

 The problem is, that I always get a javascript error for the \n
 character
 (unterminated string constant). However, if I remove the \n character
 everything works. But then, the whole message is displayed in one
 line. Can
 someone help?

 thx,
 Dirk


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



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


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



[OT] multiple submit buttons on a single page

2004-03-22 Thread Glanville, Jay
Hello all.

A slightly of-topic question for the group ...

The situation: a form with two submit buttons, and the user doesn't use
either of them, but instead submits the form by pressing enter/return in
one of the text fields.  

Question: how does the form get submitted?  Is it by:
- the action attribute of the form (form name=XXY
action=Action.do)
- the first submit button
- the second submit button
- both submit buttons

My tests have shown one answer, but I'd like some confirmation (just
because test X says something doesn't mean my test is accurate! ;-) ).

Thanks

JDG


--
Jay Glanville

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



Re: complex forwarding logic?

2004-03-22 Thread Nick Wesselman
Thats exactly what I'm talking about, except WizardSupport would also do 
some work setting up the request for the next forward.

The problem I'm having is reuse. Say I want to use WizardSupport again 
in a similar app, but add another step. How can I subclass WizardSupport 
without having to subclass all my actions as well?

Nick

Hookom, Jacob wrote:

Leave action forwards alone and instead, create a supporting method that can
be called from your actions that looks at your session and returns the
appropriate actionforward.  So there's your complex logic, I wouldn't
re-write the struts forwarding framework.
String stepName = WizardSupport.getNextForward(HttpSession, SomeCriteria);
return mapping.findForward(stepName);
-Original Message-
From: Nick Wesselman [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 22, 2004 12:04 PM
To: Struts Users Mailing List
Subject: complex forwarding logic?

I'm writing an application that will require some fairly complex 
forwarding logic. After an action completes, it will need to query my 
model for the current application state and translate that into the 
appropriate forward/next step. The forward itself may require some 
pre-processing. To further complicate matters, I'd like to be able to 
subclass and add or remove steps from the process.

At this point, I'm planning on creating a sort-of forward helper class 
which can translate a business state into an ActionForward and prepare 
the request for this forward. I'm a bit stuck though on my subclassing. 
It seems like I'd need some sort of factory to get the right helper 
class for my application, if I don't want to subclass all my actions as 
well. Am I making sense at all here? Any thoughts?

Nick

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



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


Re: AW: AW: multiple lines in an ActionMessage object displayed via javascript alert

2004-03-22 Thread Mark Lowe
Weird ..

I thought it might be the accented characters but safari, msie mac and  
firefox all work. And mise 6 on windoze.

If the message gets to your page then its a javascript issue, but i  
certainly cant recreate it.

I assume that logic:messagesPresent /logic:messagesPresent doesn't  
appear in your rendered html..



On 22 Mar 2004, at 20:45, Just Fun 4 You wrote:

Hi Mark,

the properties file holds for critical.schedule.text:

critical.schedule.text=Folgende Termine sind wg zeitlicher Überlastung  
für

The rendered jsp looks like this:

...

logic:messagesPresent   
script language=javascript

alert(Folgende Termine sind wg zeitlicher Überlastung für
Schmidt (SCHM05) kritisch:
16.03.2004: 11 PS Tagesaufwand)

/script
/logic:messagesPresent
...
the following shows the source from the ActionClass:

ActionMessages messages = new ActionMessages();			

String noteText = 	  + person.getPersonDataShort() +  kritisch:\n;
	
Iterator it = scheduleReportList.iterator();

while(it.hasNext()){
	Object object = it.next();
	
	if(object instanceof ScheduleModel){
		ScheduleModel scheduleOversized = (ScheduleModel)object;
		
		noteText = noteText +
scheduleOversized.formatSqlDateToDate(scheduleOversized.getStartDate(). 
toStr
ing()) +
		:  + scheduleOversized.getIntDailyManHour() +  PS
Tagesaufwand\n;		
	}			
}	

if(messages != null){
	System.out.println(Note:  + noteText);	
	messages.add(ActionMessages.GLOBAL_MESSAGE, new
ActionMessage(critical.schedule.text, noteText.trim()));


saveMessages(request, messages);
}
thx,
Dirk
-Ursprüngliche Nachricht-
Von: Mark Lowe [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 22. März 2004 18:25
An: Struts Users Mailing List
Betreff: Re: AW: multiple lines in an ActionMessage object displayed  
via
javascript alert

Whats actually in your properties file..?

Paste the rendered source into the reply, i think its a javascript  
problem.



On 22 Mar 2004, at 18:04, Just Fun 4 You wrote:

hm. In my ActionClass I have something like this:

ActionMessages messages = new ActionMessages();
String text = \n:  + getCriticalDate.toString() +  --;
text = text + getTotalHours() +  hours.\n;

messages.add(critical.schedule.text, text);

saveMessages(request, messages);

In my jsp:

logic:messagesPresent
  script language=javascript
   html:messages id=message message=true
 alert(c:out value=${message} /)
   /html:messages 
 /script
logic:messagesPresent
This does not work: I get a javascript error (unterminated string
constant).
However everything works and the text is being displayed when I remove
the
\n from the text.
the evaluated text string looks something like this if I print the  
text
string to the console (seems ok):

The following dates are critical:
20.03.2004: 5 hours.
I want this format exactly being displayed using the alert function. I
cannot see where the problem is. any idea?
thx,
Dirk
-Ursprüngliche Nachricht-
Von: Mark Lowe [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 22. März 2004 00:46
An: Struts Users Mailing List
Betreff: Re: multiple lines in an ActionMessage object displayed via
javascript alert
What characters have you in your strings ?

There must be something a quote or something give js a bad day.

I assume you've something like this.

msg1 = bean:message key=message1 /;
msg2 = bean:message key=message2 /;
msg3 = bean:message key=message3 /; msg = msg1 +\n+ msg2  
+\n+
msg3; alert(msg);

Paste the rendered source in to a reply and I'm sure one or more of  
you
messages has a character that needs escaping or something like that.

On 22 Mar 2004, at 00:17, Just Fun 4 You wrote:

 Hi,

I create an ActionMessages object and store one ActionMessage in it.
The
ActionMessage is a string which contains the \n character
to display the whole message in more than one line:
message1\nmessage2\nmessage3...

In my jsp I have defined the html:message for iteration within a
javascript
block as I would like to display the message by the javascript alert
function.
The problem is, that I always get a javascript error for the \n
character
(unterminated string constant). However, if I remove the \n character
everything works. But then, the whole message is displayed in one
line. Can
someone help?
thx,
Dirk
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


-
To 

AW: AW: AW: multiple lines in an ActionMessage object displayed via javascript alert

2004-03-22 Thread Just Fun 4 You
I am pretty sure that this is a javascript issue. I am just wondering why it
all works when I remove the \n character. What does it make the difference
to javascript? Maybe others can jump in here. Again:

having a string like \nsomeText\nAnotherText\n put in a ActionMessage
object causes a javascript error (unterminated string constant).
If I remove the \n character it works. When I code
alert(\nsomeText\nAnotherText\n) directly into a html page, it also works. I
am not sure what really goes on here. I cannot see any difference...
 

-Ursprüngliche Nachricht-
Von: Mark Lowe [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 22. März 2004 21:09
An: Struts Users Mailing List
Betreff: Re: AW: AW: multiple lines in an ActionMessage object displayed via
javascript alert

Weird ..

I thought it might be the accented characters but safari, msie mac and
firefox all work. And mise 6 on windoze.

If the message gets to your page then its a javascript issue, but i
certainly cant recreate it.

I assume that logic:messagesPresent /logic:messagesPresent doesn't
appear in your rendered html..



On 22 Mar 2004, at 20:45, Just Fun 4 You wrote:

 Hi Mark,

 the properties file holds for critical.schedule.text:

 critical.schedule.text=Folgende Termine sind wg zeitlicher Überlastung 
 für


 The rendered jsp looks like this:

 ...

   logic:messagesPresent 
   script language=javascript
   
   alert(Folgende Termine sind wg zeitlicher Überlastung für
Schmidt 
 (SCHM05) kritisch:
 16.03.2004: 11 PS Tagesaufwand)
   
   /script
   /logic:messagesPresent
 ...


 the following shows the source from the ActionClass:


 ActionMessages messages = new ActionMessages();   
   
 String noteText =   + person.getPersonDataShort() +  kritisch:\n;
   
 Iterator it = scheduleReportList.iterator();
   
 while(it.hasNext()){
   Object object = it.next();
   
   if(object instanceof ScheduleModel){
   ScheduleModel scheduleOversized = (ScheduleModel)object;
   
   noteText = noteText +
 scheduleOversized.formatSqlDateToDate(scheduleOversized.getStartDate(). 
 toStr
 ing()) +
   :  + scheduleOversized.getIntDailyManHour() +  PS
 Tagesaufwand\n;  
   }   
 } 
   
 if(messages != null){
   System.out.println(Note:  + noteText);
   messages.add(ActionMessages.GLOBAL_MESSAGE, new 
 ActionMessage(critical.schedule.text, noteText.trim()));

   
   saveMessages(request, messages);
 }


 thx,
 Dirk


 -Ursprüngliche Nachricht-
 Von: Mark Lowe [mailto:[EMAIL PROTECTED]
 Gesendet: Montag, 22. März 2004 18:25
 An: Struts Users Mailing List
 Betreff: Re: AW: multiple lines in an ActionMessage object displayed 
 via javascript alert

 Whats actually in your properties file..?

 Paste the rendered source into the reply, i think its a javascript 
 problem.



 On 22 Mar 2004, at 18:04, Just Fun 4 You wrote:

 hm. In my ActionClass I have something like this:

 ActionMessages messages = new ActionMessages(); String text = \n:  
 + getCriticalDate.toString() +  --;

 text = text + getTotalHours() +  hours.\n;

 messages.add(critical.schedule.text, text);

 saveMessages(request, messages);

 In my jsp:

 logic:messagesPresent
   script language=javascript
html:messages id=message message=true
  alert(c:out value=${message} /)
/html:messages 
  /script
 logic:messagesPresent


 This does not work: I get a javascript error (unterminated string 
 constant).
 However everything works and the text is being displayed when I 
 remove the \n from the text.

 the evaluated text string looks something like this if I print the 
 text string to the console (seems ok):

 The following dates are critical:
 20.03.2004: 5 hours.

 I want this format exactly being displayed using the alert function. 
 I cannot see where the problem is. any idea?

 thx,
 Dirk


 -Ursprüngliche Nachricht-
 Von: Mark Lowe [mailto:[EMAIL PROTECTED]
 Gesendet: Montag, 22. März 2004 00:46
 An: Struts Users Mailing List
 Betreff: Re: multiple lines in an ActionMessage object displayed via 
 javascript alert

 What characters have you in your strings ?

 There must be something a quote or something give js a bad day.

 I assume you've something like this.

 msg1 = bean:message key=message1 /;
 msg2 = bean:message key=message2 /;
 msg3 = bean:message key=message3 /; msg = msg1 +\n+ msg2
 +\n+
 msg3; alert(msg);

 Paste the rendered source in to a reply and I'm sure one or more of 
 you messages has a character that needs escaping or something like 
 that.


 On 22 Mar 2004, at 00:17, 

Re: AW: AW: AW: multiple lines in an ActionMessage object displayed via javascript alert

2004-03-22 Thread Mark Lowe
send the whole rendered code with the \n's ..

On 22 Mar 2004, at 21:37, Just Fun 4 You wrote:

I am pretty sure that this is a javascript issue. I am just wondering  
why it
all works when I remove the \n character. What does it make the  
difference
to javascript? Maybe others can jump in here. Again:

having a string like \nsomeText\nAnotherText\n put in a ActionMessage
object causes a javascript error (unterminated string constant).
If I remove the \n character it works. When I code
alert(\nsomeText\nAnotherText\n) directly into a html page, it also  
works. I
am not sure what really goes on here. I cannot see any difference...

-Ursprüngliche Nachricht-
Von: Mark Lowe [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 22. März 2004 21:09
An: Struts Users Mailing List
Betreff: Re: AW: AW: multiple lines in an ActionMessage object  
displayed via
javascript alert

Weird ..

I thought it might be the accented characters but safari, msie mac and
firefox all work. And mise 6 on windoze.
If the message gets to your page then its a javascript issue, but i
certainly cant recreate it.
I assume that logic:messagesPresent /logic:messagesPresent doesn't
appear in your rendered html..


On 22 Mar 2004, at 20:45, Just Fun 4 You wrote:

Hi Mark,

the properties file holds for critical.schedule.text:

critical.schedule.text=Folgende Termine sind wg zeitlicher Überlastung
für
The rendered jsp looks like this:

...

logic:messagesPresent   
script language=javascript

alert(Folgende Termine sind wg zeitlicher Überlastung für
Schmidt
(SCHM05) kritisch:
16.03.2004: 11 PS Tagesaufwand)

/script
/logic:messagesPresent
...
the following shows the source from the ActionClass:

ActionMessages messages = new ActionMessages();			

String noteText = 	  + person.getPersonDataShort() +  kritisch:\n;
	
Iterator it = scheduleReportList.iterator();

while(it.hasNext()){
	Object object = it.next();
	
	if(object instanceof ScheduleModel){
		ScheduleModel scheduleOversized = (ScheduleModel)object;
		
		noteText = noteText +
scheduleOversized.formatSqlDateToDate(scheduleOversized.getStartDate() 
.
toStr
ing()) +
		:  + scheduleOversized.getIntDailyManHour() +  PS
Tagesaufwand\n;		
	}			
}	

if(messages != null){
	System.out.println(Note:  + noteText);	
	messages.add(ActionMessages.GLOBAL_MESSAGE, new
ActionMessage(critical.schedule.text, noteText.trim()));


saveMessages(request, messages);
}
thx,
Dirk
-Ursprüngliche Nachricht-
Von: Mark Lowe [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 22. März 2004 18:25
An: Struts Users Mailing List
Betreff: Re: AW: multiple lines in an ActionMessage object displayed
via javascript alert
Whats actually in your properties file..?

Paste the rendered source into the reply, i think its a javascript
problem.


On 22 Mar 2004, at 18:04, Just Fun 4 You wrote:

hm. In my ActionClass I have something like this:

ActionMessages messages = new ActionMessages(); String text = \n: 
+ getCriticalDate.toString() +  --;
text = text + getTotalHours() +  hours.\n;

messages.add(critical.schedule.text, text);

saveMessages(request, messages);

In my jsp:

logic:messagesPresent
  script language=javascript
   html:messages id=message message=true
 alert(c:out value=${message} /)
   /html:messages 
 /script
logic:messagesPresent
This does not work: I get a javascript error (unterminated string
constant).
However everything works and the text is being displayed when I
remove the \n from the text.
the evaluated text string looks something like this if I print the
text string to the console (seems ok):
The following dates are critical:
20.03.2004: 5 hours.
I want this format exactly being displayed using the alert function.
I cannot see where the problem is. any idea?
thx,
Dirk
-Ursprüngliche Nachricht-
Von: Mark Lowe [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 22. März 2004 00:46
An: Struts Users Mailing List
Betreff: Re: multiple lines in an ActionMessage object displayed via
javascript alert
What characters have you in your strings ?

There must be something a quote or something give js a bad day.

I assume you've something like this.

msg1 = bean:message key=message1 /;
msg2 = bean:message key=message2 /;
msg3 = bean:message key=message3 /; msg = msg1 +\n+ msg2
+\n+
msg3; alert(msg);
Paste the rendered source in to a reply and I'm sure one or more of
you messages has a character that needs escaping or something like
that.
On 22 Mar 2004, at 00:17, Just Fun 4 You wrote:

 Hi,

I create an ActionMessages object and store one ActionMessage in it.
The
ActionMessage is a string which contains the \n character to display
the whole message in more than one line:
message1\nmessage2\nmessage3...

In my jsp I have defined the html:message for iteration within a
javascript block as I would like to display the 

RE: AW: AW: multiple lines in an ActionMessage object displayed via javascript alert

2004-03-22 Thread Saul Q Yuan
Like Mark suggested, it'll help if you post the rendered jsp code here,
ie. View source, copy and paste here.

Saul

 -Original Message-
 From: Just Fun 4 You [mailto:[EMAIL PROTECTED] 
 Sent: Monday, March 22, 2004 3:37 PM
 To: 'Struts Users Mailing List'
 Subject: AW: AW: AW: multiple lines in an ActionMessage 
 object displayed via javascript alert
 
 
 I am pretty sure that this is a javascript issue. I am just 
 wondering why it all works when I remove the \n character. 
 What does it make the difference to javascript? Maybe others 
 can jump in here. Again:
 
 having a string like \nsomeText\nAnotherText\n put in a 
 ActionMessage object causes a javascript error (unterminated 
 string constant). If I remove the \n character it works. When I code
 alert(\nsomeText\nAnotherText\n) directly into a html page, 
 it also works. I am not sure what really goes on here. I 
 cannot see any difference...
  
 
 -Ursprüngliche Nachricht-
 Von: Mark Lowe [mailto:[EMAIL PROTECTED] 
 Gesendet: Montag, 22. März 2004 21:09
 An: Struts Users Mailing List
 Betreff: Re: AW: AW: multiple lines in an ActionMessage 
 object displayed via javascript alert
 
 Weird ..
 
 I thought it might be the accented characters but safari, 
 msie mac and firefox all work. And mise 6 on windoze.
 
 If the message gets to your page then its a javascript issue, 
 but i certainly cant recreate it.
 
 I assume that logic:messagesPresent 
 /logic:messagesPresent doesn't appear in your rendered html..
 
 
 
 On 22 Mar 2004, at 20:45, Just Fun 4 You wrote:
 
  Hi Mark,
 
  the properties file holds for critical.schedule.text:
 
  critical.schedule.text=Folgende Termine sind wg zeitlicher 
 Überlastung
  für
 
 
  The rendered jsp looks like this:
 
  ...
 
  logic:messagesPresent 
  script language=javascript
  
  alert(Folgende Termine sind wg zeitlicher 
 Überlastung für
 Schmidt 
  (SCHM05) kritisch:
  16.03.2004: 11 PS Tagesaufwand)
  
  /script
  /logic:messagesPresent
  ...
 
 
  the following shows the source from the ActionClass:
 
 
  ActionMessages messages = new ActionMessages(); 
  
  String noteText = + person.getPersonDataShort() +  
 kritisch:\n;
  
  Iterator it = scheduleReportList.iterator();
  
  while(it.hasNext()){
  Object object = it.next();
  
  if(object instanceof ScheduleModel){
  ScheduleModel scheduleOversized = (ScheduleModel)object;
  
  noteText = noteText + 
  
 scheduleOversized.formatSqlDateToDate(scheduleOversized.getStartDate()
  .
  toStr
  ing()) +
  :  + scheduleOversized.getIntDailyManHour() +  PS
  Tagesaufwand\n;
  }   
  }   
  
  if(messages != null){
  System.out.println(Note:  + noteText);
  messages.add(ActionMessages.GLOBAL_MESSAGE, new
  ActionMessage(critical.schedule.text, noteText.trim()));
 
  
  saveMessages(request, messages);
  }
 
 
  thx,
  Dirk
 
 
  -Ursprüngliche Nachricht-
  Von: Mark Lowe [mailto:[EMAIL PROTECTED]
  Gesendet: Montag, 22. März 2004 18:25
  An: Struts Users Mailing List
  Betreff: Re: AW: multiple lines in an ActionMessage object displayed
  via javascript alert
 
  Whats actually in your properties file..?
 
  Paste the rendered source into the reply, i think its a javascript
  problem.
 
 
 
  On 22 Mar 2004, at 18:04, Just Fun 4 You wrote:
 
  hm. In my ActionClass I have something like this:
 
  ActionMessages messages = new ActionMessages(); String 
 text = \n: 
  + getCriticalDate.toString() +  --;
 
  text = text + getTotalHours() +  hours.\n;
 
  messages.add(critical.schedule.text, text);
 
  saveMessages(request, messages);
 
  In my jsp:
 
  logic:messagesPresent
script language=javascript
 html:messages id=message message=true
   alert(c:out value=${message} /)
 /html:messages 
   /script
  logic:messagesPresent
 
 
  This does not work: I get a javascript error (unterminated string
  constant).
  However everything works and the text is being displayed when I 
  remove the \n from the text.
 
  the evaluated text string looks something like this if I print the
  text string to the console (seems ok):
 
  The following dates are critical:
  20.03.2004: 5 hours.
 
  I want this format exactly being displayed using the alert 
 function.
  I cannot see where the problem is. any idea?
 
  thx,
  Dirk
 
 
  -Ursprüngliche Nachricht-
  Von: Mark Lowe [mailto:[EMAIL PROTECTED]
  Gesendet: Montag, 22. März 2004 00:46
  An: Struts Users Mailing List
  Betreff: Re: multiple lines in an ActionMessage object 
 displayed via
  javascript 

AW: AW: AW: AW: multiple lines in an ActionMessage object displayed via javascript alert

2004-03-22 Thread Just Fun 4 You
Hi Mark,

I got it solved. It is really a stupid mistake. In a string I have to put it
like  \\nsomeText\\nAnotherText\\n. Now it works. Thanks for bearing it...


-Ursprüngliche Nachricht-
Von: Mark Lowe [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 22. März 2004 21:39
An: Struts Users Mailing List
Betreff: Re: AW: AW: AW: multiple lines in an ActionMessage object displayed
via javascript alert

send the whole rendered code with the \n's ..


On 22 Mar 2004, at 21:37, Just Fun 4 You wrote:

 I am pretty sure that this is a javascript issue. I am just wondering 
 why it all works when I remove the \n character. What does it make the 
 difference to javascript? Maybe others can jump in here. Again:

 having a string like \nsomeText\nAnotherText\n put in a 
 ActionMessage object causes a javascript error (unterminated string
constant).
 If I remove the \n character it works. When I code
 alert(\nsomeText\nAnotherText\n) directly into a html page, it also 
 works. I am not sure what really goes on here. I cannot see any 
 difference...


 -Ursprüngliche Nachricht-
 Von: Mark Lowe [mailto:[EMAIL PROTECTED]
 Gesendet: Montag, 22. März 2004 21:09
 An: Struts Users Mailing List
 Betreff: Re: AW: AW: multiple lines in an ActionMessage object 
 displayed via javascript alert

 Weird ..

 I thought it might be the accented characters but safari, msie mac and 
 firefox all work. And mise 6 on windoze.

 If the message gets to your page then its a javascript issue, but i 
 certainly cant recreate it.

 I assume that logic:messagesPresent /logic:messagesPresent doesn't 
 appear in your rendered html..



 On 22 Mar 2004, at 20:45, Just Fun 4 You wrote:

 Hi Mark,

 the properties file holds for critical.schedule.text:

 critical.schedule.text=Folgende Termine sind wg zeitlicher 
 Überlastung für


 The rendered jsp looks like this:

 ...

  logic:messagesPresent 
  script language=javascript
  
  alert(Folgende Termine sind wg zeitlicher Überlastung für
 Schmidt
 (SCHM05) kritisch:
 16.03.2004: 11 PS Tagesaufwand)
  
  /script
  /logic:messagesPresent
 ...


 the following shows the source from the ActionClass:


 ActionMessages messages = new ActionMessages();  
  
 String noteText =  + person.getPersonDataShort() +  kritisch:\n;
  
 Iterator it = scheduleReportList.iterator();
  
 while(it.hasNext()){
  Object object = it.next();
  
  if(object instanceof ScheduleModel){
  ScheduleModel scheduleOversized = (ScheduleModel)object;
  
  noteText = noteText +
 scheduleOversized.formatSqlDateToDate(scheduleOversized.getStartDate(
 )
 .
 toStr
 ing()) +
  :  + scheduleOversized.getIntDailyManHour() +  PS
 Tagesaufwand\n; 
  }   
 }
  
 if(messages != null){
  System.out.println(Note:  + noteText);
  messages.add(ActionMessages.GLOBAL_MESSAGE, new 
 ActionMessage(critical.schedule.text, noteText.trim()));

  
  saveMessages(request, messages);
 }


 thx,
 Dirk


 -Ursprüngliche Nachricht-
 Von: Mark Lowe [mailto:[EMAIL PROTECTED]
 Gesendet: Montag, 22. März 2004 18:25
 An: Struts Users Mailing List
 Betreff: Re: AW: multiple lines in an ActionMessage object displayed 
 via javascript alert

 Whats actually in your properties file..?

 Paste the rendered source into the reply, i think its a javascript 
 problem.



 On 22 Mar 2004, at 18:04, Just Fun 4 You wrote:

 hm. In my ActionClass I have something like this:

 ActionMessages messages = new ActionMessages(); String text = \n: 
 + getCriticalDate.toString() +  --;

 text = text + getTotalHours() +  hours.\n;

 messages.add(critical.schedule.text, text);

 saveMessages(request, messages);

 In my jsp:

 logic:messagesPresent
   script language=javascript
html:messages id=message message=true
  alert(c:out value=${message} /)
/html:messages 
  /script
 logic:messagesPresent


 This does not work: I get a javascript error (unterminated string 
 constant).
 However everything works and the text is being displayed when I 
 remove the \n from the text.

 the evaluated text string looks something like this if I print the 
 text string to the console (seems ok):

 The following dates are critical:
 20.03.2004: 5 hours.

 I want this format exactly being displayed using the alert function.
 I cannot see where the problem is. any idea?

 thx,
 Dirk


 -Ursprüngliche Nachricht-
 Von: Mark Lowe [mailto:[EMAIL PROTECTED]
 Gesendet: Montag, 22. März 2004 00:46
 An: Struts Users Mailing List
 Betreff: Re: multiple lines in an ActionMessage object displayed 

RE: Struts web app performance improvement

2004-03-22 Thread henrik . bentel
hmm

Try load test with only doing one thing. For example, run a load test 
where you only get a gif or the same static page over again. 
Something that does not involve business logic. See what performance you 
get. 
Then load test one part of you web-app where struts is involved (getting a 
simple jsp page, maybe with validation or tiles) but still without your 
models business login involved. 

Then same request again and again where your model is involved. Compare 
again. And so on. Makes it easier to locate what layer has the problem. 

If you have a problem right away with static resources, I would look at 
the web container or the OS/HW. 
If you have problems with dynamic resources without you model layer, look 
at struts. and so on.


.








Pingili, Madhupal [EMAIL PROTECTED]
03/22/04 12:16 PM
Please respond to Struts Users Mailing List

 
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
cc: 
Subject:RE: Struts web app performance improvement


http only.

 -Original Message-
 From:  [EMAIL PROTECTED] 
[SMTP:[EMAIL PROTECTED]
 Sent:  Monday, March 22, 2004 1:07 PM
 To:Struts Users Mailing List
 Subject:   RE: Struts web app performance improvement
 
 Are you running under http or https?
 
 
 
 
 
 
 Pingili, Madhupal [EMAIL PROTECTED]
 03/22/04 11:28 AM
 Please respond to Struts Users Mailing List
 
 
 To: 'Struts Users Mailing List'
 [EMAIL PROTECTED]
 cc: 
 Subject:RE: Struts web app performance improvement
 
 
 It is IBM AIX 5.1,  1 CPU, 450 MHz, 1GB RAM. 
 
  -Original Message-
  From:  Smith, Darrin [SMTP:[EMAIL PROTECTED]
  Sent:  Monday, March 22, 2004 10:03 AM
  To:'Struts Users Mailing List'
  Subject:   RE: Struts web app performance improvement 
  
  What sort of box was it run on? Processor speed and number of CPUs 
 please.
  
  That would make a big difference.
  
  
  -Original Message-
  From: Pingili, Madhupal [mailto:[EMAIL PROTECTED]
  Sent: Monday, March 22, 2004 8:54 AM
  To: 'Struts Users Mailing List'
  Subject: Struts web app performance improvement 
  
  
  Hello All,
  We just ran the stress test on a web app. ( that searchs/retrieves
  documents
  from FileNet IS system) developed using Struts 1.1.
  Overall, the application appeared to slow down significantly with only
  50
  users, the average response time on my PC was about 30 seconds to 
bring 
 up
  a
  page (this does not include running a query, just clicking on a
  struts-menu
  tab heading). Once the page loaded, queries took about 5-10 seconds, 
but
  occasionally would take longer. The number fifty is quoted because 
these
  were simultaneous test users and not real people. We still need to
  determine
  what these 50 users equate to in terms of real usage.
  
  We did get the load up to about 170 users to see what the server 
 health
  would look like. The application was responding to the load test 
drones,
  and
  response time from my PC was occasionally over 2 minutes to load a 
page.
  
  Server stats showed disk and memory usage being pretty low on the web
  server. There appeared to be hardly any paging or swapping. However, 
the
  CPU
  was pinned at 98-100% with only a few users. We noticed a constant CPU 

 of
  98% with only 10 users. 
  
  Web app. is running on WebSphere 4.0.4 AE. 
  I am currently looking at the Resource Analyzer reports and 
searching
  google for any links.
  
  Has anyone has come across this situation and solved this problem?
  Any links to performance improvement guides or general topics is 
highly
  appreciated.
  
  Reddy Pingili
  
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

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





Re: [OT] multiple submit buttons on a single page

2004-03-22 Thread Colin Kilburn
Hi Jay,

In my experience (although I haven't paid attention to it lately), 
neither button (e.g. submit=button caption) is submitted.   This may 
also depend on the browser.

HTH,
Colin
Glanville, Jay wrote:

Hello all.

A slightly of-topic question for the group ...

The situation: a form with two submit buttons, and the user doesn't use
either of them, but instead submits the form by pressing enter/return in
one of the text fields.  

Question: how does the form get submitted?  Is it by:
- the action attribute of the form (form name=XXY
action=Action.do)
- the first submit button
- the second submit button
- both submit buttons
My tests have shown one answer, but I'd like some confirmation (just
because test X says something doesn't mean my test is accurate! ;-) ).
Thanks

JDG

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


 

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


Disabling BACK buton

2004-03-22 Thread Au-Yeung, Stella H
We have a Struts application that allows users to create/update orders etc.
How can we disable the BACK button so users cannot use it to go back to
previous 'submitted' screens to re-submit what's been submitted.  Likewise,
we don't want the user to go back to an outdated list of search results.
Thanks for any suggestion.



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



RE: Disabling BACK buton

2004-03-22 Thread Hookom, Jacob
Look at Javaworld.com for an article on struts and tokens

-Original Message-
From: Au-Yeung, Stella H [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 22, 2004 3:36 PM
To: '[EMAIL PROTECTED]'
Subject: Disabling BACK buton

We have a Struts application that allows users to create/update orders etc.
How can we disable the BACK button so users cannot use it to go back to
previous 'submitted' screens to re-submit what's been submitted.  Likewise,
we don't want the user to go back to an outdated list of search results.
Thanks for any suggestion.



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

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



RE: [OT] multiple submit buttons on a single page

2004-03-22 Thread Wendy Smoak
 From: Glanville, Jay [mailto:[EMAIL PROTECTED] 
 The situation: a form with two submit buttons, and the user 
 doesn't use
 either of them, but instead submits the form by pressing 
 enter/return in
 one of the text fields.  
 Question: how does the form get submitted?

Anecdotally, I'd say the first submit button-- that's why I have a
hidden submit button at the top of my form that only causes Struts to
redisplay the page.  They have to actually click Finish for anything
to happen.

Prior to that, the first submit button on the form deleted a row.  So,
type in a date, accidentally hit enter, and the first row of data would
disappear!  Took me a bit to figure out what was happening.

That said, I don't think this behavior is guaranteed.  I won't go so far
as to say they're invalid HTML because I don't know for sure, but I get
the impression that multiple submit buttons are frowned on by HTML
purists.

-- 
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management 

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



test

2004-03-22 Thread shaz731
pls ignore


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



Problem with bean

2004-03-22 Thread Vishal Arora
Hi
  Can anybody me.
  I m not able to set values in my bean.
My bean is having lots of get and set method they all return boolean
values
but the value i pass is not set it takes the default value.
What's the problem does anybody ahve the clue to my problem

--
Don't worry about the world coming to an end today.It's already
tomorrow in Australia.

 Vishal.



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



Re: Validation Question with Indexed Properties

2004-03-22 Thread Craig Tataryn
friendly *bump*

On Sun, 21 Mar 2004 18:12:54 -0600 (CST), Craig Tataryn wrote:

 
 Hi, I have the following definition in my validation.xml file:
 
 formset
   form name=MarketAddressForm
   field
   property=provStateId
   indexedListProperty=address
   depends=required
   arg0 key=Listing.formError.streetProvState/
   /field
   /form
 /formset
 
 I then have a form that is built like so:
 % addressIndex = address( + region.getKey() + ); %
 html:select styleClass=Field property='%=addressIndex + .provStateId%'
 .
 .
 .
 /html:select
 
 This generates HTML that looks like:
 
 select name=address(355).provStateId class=Field
 .
 .
 .
 /select
 
 However, if I look at the javascript generated by html:javascript 
 formName=addressForm, I find:
 
  var bCancel = false; 
 
 function validateMarketAddressForm(form) {   
  
 
 
 if (bCancel) 
   return true; 
 else 
return validateRequired(form); 
} 
 
 function required () { 
 } 
 
 So does this mean that indexed properties for the validator do not work in 
 javascript?  Or am I
 doing something wrong?
 
 Thanks,
 
 Craig
 tataryn:craig/
 
 tataryn:craig/
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


tataryn:craig/

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



DynaActionForm caching issues?

2004-03-22 Thread Norris, David A. ERDC-CERL-IL Contractor
Hello,

This message is in response to Geeta Ramani's post on March 4 entitled
DynaActionForm IllegalArgumentException.

In short, I have a DynaActionForm defined in struts-config.xml. It's been
around for a while, but I find that each time I make a change to it (for
instance, adding a new property), I run into the same
IllegalArgumentException (at the same file and line number) that Geeta
described. I can work around the issue by undeploying my application,
stopping my application server entirely (JBoss 3.2.3 on Linux), and then
restarting and redeploying.

Is it possible that there are some caching issues, where Struts saves its
configured DynaActionForms somewhere in the application server's memory and
then doesn't realize it has to refresh that information when
struts-config.xml changes?

Interestingly, the Struts and all Commons jar files are kept inside my
application's war file, and are not stored in JBoss's shared library
directory. I would think this would ensure a complete Struts reload upon
each deployment, but it seems that is not the case.

I'm using Struts 1.1 final and the Commons jars included in that
distribution. I have JBoss 3.2.3 running on Linux with Sun's j2sdk 1.4.2_04.

Thanks in advance for any suggestions,
--
David Norris
[EMAIL PROTECTED]


Urgent

2004-03-22 Thread Vishal Arora
Hi,
 I m setting boolean values into my get set methods of bean
but it is returning default values.
does anybody have any answer
Thanks in advance

--
Don't worry about the world coming to an end today.It's already
tomorrow in Australia.

 Vishal.



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



RE: DynaActionForm caching issues?

2004-03-22 Thread Norris, David A. ERDC-CERL-IL Contractor
Note: JBoss 3.2.3 includes an integrated Tomcat 4.1.29, which is of course
more likely to be relevant to this problem than JBoss itself...


 -Original Message-
 From: Norris, David A. ERDC-CERL-IL Contractor 
 [mailto:[EMAIL PROTECTED] 
 Sent: Monday, March 22, 2004 4:45 PM
 To: [EMAIL PROTECTED]
 Subject: DynaActionForm caching issues?
 
 
 Hello,
 
 This message is in response to Geeta Ramani's post on March 4 
 entitled DynaActionForm IllegalArgumentException.
 
 In short, I have a DynaActionForm defined in 
 struts-config.xml. It's been around for a while, but I find 
 that each time I make a change to it (for instance, adding a 
 new property), I run into the same IllegalArgumentException 
 (at the same file and line number) that Geeta described. I 
 can work around the issue by undeploying my application, 
 stopping my application server entirely (JBoss 3.2.3 on 
 Linux), and then restarting and redeploying.
 
 Is it possible that there are some caching issues, where 
 Struts saves its configured DynaActionForms somewhere in the 
 application server's memory and then doesn't realize it has 
 to refresh that information when struts-config.xml changes?
 
 Interestingly, the Struts and all Commons jar files are kept 
 inside my application's war file, and are not stored in 
 JBoss's shared library directory. I would think this would 
 ensure a complete Struts reload upon each deployment, but it 
 seems that is not the case.
 
 I'm using Struts 1.1 final and the Commons jars included in 
 that distribution. I have JBoss 3.2.3 running on Linux with 
 Sun's j2sdk 1.4.2_04.
 
 Thanks in advance for any suggestions,
 --
 David Norris
 [EMAIL PROTECTED]
 


RE: Urgent

2004-03-22 Thread Gopalakrishnan, Jayesh
Review your set method and make sure you
are storing the value in appropriate member variable  ...
and are accessing the same variable in the get method.

thats all I can say with the info I have.

You need to provide more information for 
us to understand the issue.
Please provide the bean code sample and the get/set invocation.


-jayash

-Original Message-
From: Vishal Arora [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 2:47 PM
To: [EMAIL PROTECTED]
Subject: Urgent


Hi,
 I m setting boolean values into my get set methods of bean
but it is returning default values.
does anybody have any answer
Thanks in advance

--
Don't worry about the world coming to an end today.It's already
tomorrow in Australia.

 Vishal.



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

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



RE: Urgent

2004-03-22 Thread Dhaliwal, Pritpal (HQP)
Hello Vishal,

You should provide more information. How did you declare your bean. Copy
that line from the struts-config.xml.
Where do you set the values and where do you try to access them? How about
if you try to access them right after you set them. I am sure that will
work.

I think it seems like some scope issues is messing you up over here. By the
time you try to access your bean, the scope is lost and you get a default
bean back.

HTH,
Pritpal Dhaliwal


-Original Message-
From: Vishal Arora [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 22, 2004 2:47 PM
To: [EMAIL PROTECTED]
Subject: Urgent


Hi,
 I m setting boolean values into my get set methods of bean
but it is returning default values.
does anybody have any answer
Thanks in advance

--
Don't worry about the world coming to an end today.It's already tomorrow in
Australia.

 Vishal.



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



[OT} web service question

2004-03-22 Thread Ashish Kulkarni
Hi,
i am trying to develop a webserivce using RPC and/or
SOAP all the samples i have seen dont deal atall with
the database or with servlet context,
I want to get data from a servlet context which i load
when loading the application
can anyone provide some code example or site where i
can have this kind or example

Ashish

__
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

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



Re: AW: AW: multiple lines in an ActionMessage object displayed via javascript alert

2004-03-22 Thread Domingo A. Rodriguez S.

What if it could be solved by escaping again the '\' symbol?. Instead of
using '\n' use '\\n'.

 --- Just Fun 4 You [EMAIL PROTECTED] escribió:  Hi Mark,
 
 the properties file holds for critical.schedule.text:
 
 critical.schedule.text=Folgende Termine sind wg zeitlicher Überlastung
 für
 
 
 The rendered jsp looks like this:
 
 ...
 
   logic:messagesPresent 
   script language=javascript
   
   alert(Folgende Termine sind wg zeitlicher Überlastung für
 Schmidt (SCHM05) kritisch:
 16.03.2004: 11 PS Tagesaufwand)
   
   /script
   /logic:messagesPresent
 ...
 
 
 the following shows the source from the ActionClass:
 
 
 ActionMessages messages = new ActionMessages();   
   
 String noteText =   + person.getPersonDataShort() +  kritisch:\n;
   
 Iterator it = scheduleReportList.iterator();
   
 while(it.hasNext()){
   Object object = it.next();
   
   if(object instanceof ScheduleModel){
   ScheduleModel scheduleOversized = (ScheduleModel)object;
   
   noteText = noteText +

scheduleOversized.formatSqlDateToDate(scheduleOversized.getStartDate().toStr
 ing()) +
   :  + scheduleOversized.getIntDailyManHour() +  PS
 Tagesaufwand\n;  
   }   
 } 
   
 if(messages != null){
   System.out.println(Note:  + noteText);
   messages.add(ActionMessages.GLOBAL_MESSAGE, new
 ActionMessage(critical.schedule.text, noteText.trim()));
 
   
   saveMessages(request, messages);
 }
 
 
 thx,
 Dirk
  
 
 -Ursprüngliche Nachricht-
 Von: Mark Lowe [mailto:[EMAIL PROTECTED] 
 Gesendet: Montag, 22. März 2004 18:25
 An: Struts Users Mailing List
 Betreff: Re: AW: multiple lines in an ActionMessage object displayed via
 javascript alert
 
 Whats actually in your properties file..?
 
 Paste the rendered source into the reply, i think its a javascript
 problem.
 
 
 
 On 22 Mar 2004, at 18:04, Just Fun 4 You wrote:
 
  hm. In my ActionClass I have something like this:
 
  ActionMessages messages = new ActionMessages();
  String text = \n:  + getCriticalDate.toString() +  --;
 
  text = text + getTotalHours() +  hours.\n;
 
  messages.add(critical.schedule.text, text);
 
  saveMessages(request, messages);
 
  In my jsp:
 
  logic:messagesPresent
script language=javascript
 html:messages id=message message=true
   alert(c:out value=${message} /)
 /html:messages 
   /script
  logic:messagesPresent
 
 
  This does not work: I get a javascript error (unterminated string 
  constant).
  However everything works and the text is being displayed when I remove
 
  the
  \n from the text.
 
  the evaluated text string looks something like this if I print the
 text
  string to the console (seems ok):
 
  The following dates are critical:
  20.03.2004: 5 hours.
 
  I want this format exactly being displayed using the alert function. I
  cannot see where the problem is. any idea?
 
  thx,
  Dirk
 
 
  -Ursprüngliche Nachricht-
  Von: Mark Lowe [mailto:[EMAIL PROTECTED]
  Gesendet: Montag, 22. März 2004 00:46
  An: Struts Users Mailing List
  Betreff: Re: multiple lines in an ActionMessage object displayed via
  javascript alert
 
  What characters have you in your strings ?
 
  There must be something a quote or something give js a bad day.
 
  I assume you've something like this.
 
  msg1 = bean:message key=message1 /;
  msg2 = bean:message key=message2 /;
  msg3 = bean:message key=message3 /; msg = msg1 +\n+ msg2
 +\n+
  msg3; alert(msg);
 
  Paste the rendered source in to a reply and I'm sure one or more of
 you
  messages has a character that needs escaping or something like that.
 
 
  On 22 Mar 2004, at 00:17, Just Fun 4 You wrote:
 
 
   Hi,
 
  I create an ActionMessages object and store one ActionMessage in it.
  The
  ActionMessage is a string which contains the \n character
  to display the whole message in more than one line:
 
  message1\nmessage2\nmessage3...
 
 
  In my jsp I have defined the html:message for iteration within a
  javascript
  block as I would like to display the message by the javascript alert
  function.
 
  The problem is, that I always get a javascript error for the \n
  character
  (unterminated string constant). However, if I remove the \n character
  everything works. But then, the whole message is displayed in one
  line. Can
  someone help?
 
  thx,
  Dirk
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  

RE: Error while upgrading from struts version 1.0 to 1.1

2004-03-22 Thread Jignesh Kapadia
Well,
   All the jar files are compiled properly.  do we need to add  some special  
parameter in  in Struts-Config.xml file? It seems its looking for some Message 
Resource Factory Information. Also does Struts 1.1 work with JDK 1.3.* or we need to 
have JDK 1.4*? I am struggling with this for almost 2 days now. I created a new 
application and copied this Struts1.1/jar file along with the set of Commons.jar file.
 
It will a good if somebody can help out  in this.
 
Thanks,
Jignesh

Saul Q Yuan [EMAIL PROTECTED] wrote:
I think you need to recompile your application against the new
Struts.jar file and other jar files it depends on.

Saul

-Original Message-
From: Jignesh Kapadia [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 22, 2004 1:55 PM
To: [EMAIL PROTECTED]
Subject: Error while upgrading from struts version 1.0 to 1.1


Hi ,
I am upgrading my current application from Struts 1.0 to Struts
1.1. The application is working properly with version 1.0. I just copied
the struts 1.1 realted jar files in my web-inf/lib directory. Now when I
restart my application it gives meError while loading Action Servlet.
its failing in Super.init(). Is there anything I need to do other that
just realcing the war files when I upgrade the Struts version.
The error file is attached in e-mail.


Thanks and Regards,
Jignesh

Do you Yahoo!?
Yahoo! Finance Tax Center - File
online. File on time.


Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.

UTF-8 encoding problem (Urgent, please help)

2004-03-22 Thread Betty Koon
Hi all,
 
I ran into a problem of posting a hidden form field with a special UTF-8
characters and when it gets to the action and I looked at the action form
had a different value, it's no longer containing UTF-8 characteres instead a
'? was replaced.  In my jsp, I have to put %@ page
contentType=text/html;charset=UTF-8 language=java % at the top of my
JSP and I have added and set up the setCharacterEncodingFilter for every
request.  Is there something else I am doing wrong?
 
-Betty


Using struts-config to configure properties in action form

2004-03-22 Thread Chan, Jim
I am trying to configure properties in my ActionForm using the struts-config
file as follows.

form-bean name=myForm type=com.myCompany.MyForm 
  set-property property=foo value=bar /
/form-bean


public Class MyForm extends ActionForm
{
private String foo; 

public void setFoo(String foo)
{
this.foo = foo;
}

public String getFoo()
{
return foo;
}
}

However, I am getting an error as follows.  Anyone know if I am missing any
steps?  Any help is greatly appreciated.

java.lang.NoSuchMethodException: Bean has no property named foo
at
org.apache.commons.digester.SetPropertyRule.begin(SetPropertyRule.java:192)
at org.apache.commons.digester.Rule.begin(Rule.java:200)
at
org.apache.commons.digester.Digester.startElement(Digester.java:1273)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Source)
at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(Unknown
Source)
at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at
org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.j
ava:1006)
at
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:9
55)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:93
5)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3422)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3623)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
21)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j
ava:307)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:788)
at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:559
)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:401)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:358)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:166)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:754)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363)
at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)


Re: Error while upgrading from struts version 1.0 to 1.1

2004-03-22 Thread Saul Q Yuan
Well, here is a bit longer version of the reply. There are many changes from Struts 
1.0.1 to 1.1, you can find a full description below:

http://jakarta.apache.org/struts/userGuide/release-notes.html

and the configuration changes below.

http://jakarta.apache.org/struts/userGuide/configuration.html


Back to your particular questions, yes, you'll need to define your Message resouce 
like the following:

message-resources parameter=package.MyWebAppResources / in Struts-config.xml file. 

And Struts1.1 works with JDK1.2 and up. 

HTH,
Saul


  - Original Message - 
  From: Jignesh Kapadia 
  To: Struts Users Mailing List 
  Sent: Monday, March 22, 2004 7:52 PM
  Subject: RE: Error while upgrading from struts version 1.0 to 1.1


  Well,
 All the jar files are compiled properly.  do we need to add  some special  
parameter in  in Struts-Config.xml file? It seems its looking for some Message 
Resource Factory Information. Also does Struts 1.1 work with JDK 1.3.* or we need to 
have JDK 1.4*? I am struggling with this for almost 2 days now. I created a new 
application and copied this Struts1.1/jar file along with the set of Commons.jar file.
   
  It will a good if somebody can help out  in this.
   
  Thanks,
  Jignesh

  Saul Q Yuan [EMAIL PROTECTED] wrote:
  I think you need to recompile your application against the new
  Struts.jar file and other jar files it depends on.

  Saul

  -Original Message-
  From: Jignesh Kapadia [mailto:[EMAIL PROTECTED] 
  Sent: Monday, March 22, 2004 1:55 PM
  To: [EMAIL PROTECTED]
  Subject: Error while upgrading from struts version 1.0 to 1.1


  Hi ,
  I am upgrading my current application from Struts 1.0 to Struts
  1.1. The application is working properly with version 1.0. I just copied
  the struts 1.1 realted jar files in my web-inf/lib directory. Now when I
  restart my application it gives meError while loading Action Servlet.
  its failing in Super.init(). Is there anything I need to do other that
  just realcing the war files when I upgrade the Struts version.
  The error file is attached in e-mail.


  Thanks and Regards,
  Jignesh

  Do you Yahoo!?
  Yahoo! Finance Tax Center - File
  online. File on time.


  Do you Yahoo!?
  Yahoo! Finance Tax Center - File online. File on time.

Re: Struts web app performance improvement

2004-03-22 Thread Martin Gainty
Herr Bentel:

I would look at Performance tuning using Websphere Clustering
http://www-902.ibm.com/hk/e-business/events/archives/downloads/win_websphere
/performance.pdf
BTW
(Messaging cannot be clustered at least as of late last year)

Vielen Dank,
Martin Gainty

- Original Message -
From: Pingili, Madhupal [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Monday, March 22, 2004 1:16 PM
Subject: RE: Struts web app performance improvement


 http only.

  -Original Message-
  From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]
  Sent: Monday, March 22, 2004 1:07 PM
  To: Struts Users Mailing List
  Subject: RE: Struts web app performance improvement
 
  Are you running under http or https?
 
 
 
 
 
 
  Pingili, Madhupal [EMAIL PROTECTED]
  03/22/04 11:28 AM
  Please respond to Struts Users Mailing List
 
 
  To: 'Struts Users Mailing List'
  [EMAIL PROTECTED]
  cc:
  Subject:RE: Struts web app performance improvement
 
 
  It is IBM AIX 5.1,  1 CPU, 450 MHz, 1GB RAM.
 
   -Original Message-
   From:  Smith, Darrin [SMTP:[EMAIL PROTECTED]
   Sent:  Monday, March 22, 2004 10:03 AM
   To:'Struts Users Mailing List'
   Subject:   RE: Struts web app performance improvement
  
   What sort of box was it run on? Processor speed and number of CPUs
  please.
  
   That would make a big difference.
  
  
   -Original Message-
   From: Pingili, Madhupal [mailto:[EMAIL PROTECTED]
   Sent: Monday, March 22, 2004 8:54 AM
   To: 'Struts Users Mailing List'
   Subject: Struts web app performance improvement
  
  
   Hello All,
   We just ran the stress test on a web app. ( that searchs/retrieves
   documents
   from FileNet IS system) developed using Struts 1.1.
   Overall, the application appeared to slow down significantly with only
   50
   users, the average response time on my PC was about 30 seconds to
bring
  up
   a
   page (this does not include running a query, just clicking on a
   struts-menu
   tab heading). Once the page loaded, queries took about 5-10 seconds,
but
   occasionally would take longer. The number fifty is quoted because
these
   were simultaneous test users and not real people. We still need to
   determine
   what these 50 users equate to in terms of real usage.
  
   We did get the load up to about 170 users to see what the server
  health
   would look like. The application was responding to the load test
drones,
   and
   response time from my PC was occasionally over 2 minutes to load a
page.
  
   Server stats showed disk and memory usage being pretty low on the web
   server. There appeared to be hardly any paging or swapping. However,
the
   CPU
   was pinned at 98-100% with only a few users. We noticed a constant CPU
  of
   98% with only 10 users.
  
   Web app. is running on WebSphere 4.0.4 AE.
   I am currently looking at the Resource Analyzer reports and
searching
   google for any links.
  
   Has anyone has come across this situation and solved this problem?
   Any links to performance improvement guides or general topics is
highly
   appreciated.
  
   Reddy Pingili
  
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

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



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



RE: [OT] multiple submit buttons on a single page

2004-03-22 Thread Benz Lim


-form action=Action.do
||
||
| [] text field  |
||
| [submit1][submit2] |
-/form---

By default the first submit button should be activated for the submission.

If you press enter/return key a key event(ENTER) is send which is
equivalent to the submit button. Since now there are two button 
an array is form if you were to name them the same by
browser definition the first button is send.( if it is an array the first
will be send).

As with wendy view,
A form theorically should have only 1 submit button.

Hope this help.

Best Regards,
Benz Lim



-Original Message-
From: Glanville, Jay [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 3:51 AM
To: Struts User List
Subject: [OT] multiple submit buttons on a single page


Hello all.

A slightly of-topic question for the group ...

The situation: a form with two submit buttons, and the user doesn't use
either of them, but instead submits the form by pressing enter/return in
one of the text fields.  

Question: how does the form get submitted?  Is it by:
- the action attribute of the form (form name=XXY
action=Action.do)
- the first submit button
- the second submit button
- both submit buttons

My tests have shown one answer, but I'd like some confirmation (just
because test X says something doesn't mean my test is accurate! ;-) ).

Thanks

JDG


--
Jay Glanville

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



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



Re: Using struts-config to configure properties in action form

2004-03-22 Thread Saul Q Yuan
set-property is not a sub-tag of form-bean, form-property is though. If you're 
not using dynamic form bean, you don't need to define the properties in the 
form-bean tag.

HTH,

Saul

- Original Message - 
  From: Chan, Jim 
  To: '[EMAIL PROTECTED]' 
  Sent: Monday, March 22, 2004 8:27 PM
  Subject: Using struts-config to configure properties in action form


  I am trying to configure properties in my ActionForm using the struts-config
  file as follows.

  form-bean name=myForm type=com.myCompany.MyForm 
set-property property=foo value=bar /
  /form-bean


  public Class MyForm extends ActionForm
  {
  private String foo; 

  public void setFoo(String foo)
  {
  this.foo = foo;
  }

  public String getFoo()
  {
  return foo;
  }
  }

  However, I am getting an error as follows.  Anyone know if I am missing any
  steps?  Any help is greatly appreciated.

  java.lang.NoSuchMethodException: Bean has no property named foo
  at
  org.apache.commons.digester.SetPropertyRule.begin(SetPropertyRule.java:192)
  at org.apache.commons.digester.Rule.begin(Rule.java:200)
  at
  org.apache.commons.digester.Digester.startElement(Digester.java:1273)
  at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
  Source)
  at
  org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
  Source)
  at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(Unknown
  Source)
  at
  org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
  Source)
  at
  org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
  her.dispatch(Unknown Source)
  at
  org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
  Source)
  at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
  Source)
  at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
  at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
  at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
  at org.apache.commons.digester.Digester.parse(Digester.java:1548)
  at
  org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.j
  ava:1006)
  at
  org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:9
  55)
  at
  org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
  at javax.servlet.GenericServlet.init(GenericServlet.java:256)
  at
  org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:93
  5)
  at
  org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
  at
  org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
  3422)
  at
  org.apache.catalina.core.StandardContext.start(StandardContext.java:3623)
  at
  org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
  21)
  at
  org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
  at
  org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
  at
  org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j
  ava:307)
  at
  org.apache.catalina.core.StandardHost.install(StandardHost.java:788)
  at
  org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:559
  )
  at
  org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:401)
  at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
  at
  org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:358)
  at
  org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
  t.java:166)
  at
  org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
  at
  org.apache.catalina.core.StandardHost.start(StandardHost.java:754)
  at
  org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
  at
  org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363)
  at
  org.apache.catalina.core.StandardService.start(StandardService.java:497)
  at
  org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
  at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
  at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
  at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
  )
  at
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
  .java:25)
  at java.lang.reflect.Method.invoke(Method.java:324)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)


RE: Using struts-config to configure properties in action form

2004-03-22 Thread Chan, Jim
set-property is a sub-tag,

check out the dtd -
http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd

I suspect that my problem is because I am supposed to use sub-classes of
FormBeanConfig, but I haven't been able to hook it up to my form yet.

-Original Message-
From: Saul Q Yuan [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 6:28 PM
To: Struts Users Mailing List
Subject: Re: Using struts-config to configure properties in action form


set-property is not a sub-tag of form-bean, form-property is though.
If you're not using dynamic form bean, you don't need to define the
properties in the form-bean tag.

HTH,

Saul

- Original Message - 
  From: Chan, Jim 
  To: '[EMAIL PROTECTED]' 
  Sent: Monday, March 22, 2004 8:27 PM
  Subject: Using struts-config to configure properties in action form


  I am trying to configure properties in my ActionForm using the
struts-config
  file as follows.

  form-bean name=myForm type=com.myCompany.MyForm 
set-property property=foo value=bar /
  /form-bean


  public Class MyForm extends ActionForm
  {
  private String foo; 

  public void setFoo(String foo)
  {
  this.foo = foo;
  }

  public String getFoo()
  {
  return foo;
  }
  }

  However, I am getting an error as follows.  Anyone know if I am missing
any
  steps?  Any help is greatly appreciated.

  java.lang.NoSuchMethodException: Bean has no property named foo
  at
 
org.apache.commons.digester.SetPropertyRule.begin(SetPropertyRule.java:192)
  at org.apache.commons.digester.Rule.begin(Rule.java:200)
  at
  org.apache.commons.digester.Digester.startElement(Digester.java:1273)
  at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
  Source)
  at
  org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
  Source)
  at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(Unknown
  Source)
  at
  org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
  Source)
  at
 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
  her.dispatch(Unknown Source)
  at
  org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
  Source)
  at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
  Source)
  at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
  at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
  at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
  at org.apache.commons.digester.Digester.parse(Digester.java:1548)
  at
 
org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.j
  ava:1006)
  at
 
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:9
  55)
  at
  org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
  at javax.servlet.GenericServlet.init(GenericServlet.java:256)
  at
 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:93
  5)
  at
  org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
  at
 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
  3422)
  at
  org.apache.catalina.core.StandardContext.start(StandardContext.java:3623)
  at
 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
  21)
  at
  org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
  at
  org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
  at
 
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j
  ava:307)
  at
  org.apache.catalina.core.StandardHost.install(StandardHost.java:788)
  at
 
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:559
  )
  at
  org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:401)
  at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
  at
  org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:358)
  at
 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
  t.java:166)
  at
  org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
  at
  org.apache.catalina.core.StandardHost.start(StandardHost.java:754)
  at
  org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
  at
  org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363)
  at
  org.apache.catalina.core.StandardService.start(StandardService.java:497)
  at
  org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
  at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
  at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
  at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
  )
  at
 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
  .java:25)
  at java.lang.reflect.Method.invoke(Method.java:324)

How can I refresh my jsp

2004-03-22 Thread Mu Mike
sample1.jsp:
form action=/action1.do
..
/form
this is my action definition

   action path=/action1
   type=com.mycom.Action1
   name=myForm
   scope=session
   forward name=success path=/sample2.jsp/
   /action
but when I finished the action  in sample1, it opens sample2.jsp in the 
current window(not refresing the sample1.jsp window) and the sample2.jsp 
page remains the old(I modified some source files in the action in sample1 
which are used by sample2.jsp)

please, how can I solve this probelm,that is ,refreshing sample2.jsp in its 
own window

ThanksRegards

_
 MSN Explorer:   http://explorer.msn.com/lccn  

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


Re: Using struts-config to configure properties in action form

2004-03-22 Thread Kumar M
set-property sets the attributes on the FormBeanConfig object itself 
that is created for that particular form-bean tag. Since foo is not a 
property on FormBeanConfig you see this error. You can extend 
FormBeanConfig and include the attribute foo in there but I am not sure 
what you will gain from that. I think you are looking for ActionForm and 
form-property.

[EMAIL PROTECTED] wrote:

set-property is a sub-tag,

check out the dtd -
http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd
I suspect that my problem is because I am supposed to use sub-classes of
FormBeanConfig, but I haven't been able to hook it up to my form yet.
-Original Message-
From: Saul Q Yuan [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 6:28 PM
To: Struts Users Mailing List
Subject: Re: Using struts-config to configure properties in action form
set-property is not a sub-tag of form-bean, form-property is though.
If you're not using dynamic form bean, you don't need to define the
properties in the form-bean tag.
HTH,

Saul

- Original Message - 
 From: Chan, Jim 
 To: '[EMAIL PROTECTED]' 
 Sent: Monday, March 22, 2004 8:27 PM
 Subject: Using struts-config to configure properties in action form

 I am trying to configure properties in my ActionForm using the
struts-config
 file as follows.
 form-bean name=myForm type=com.myCompany.MyForm 
   set-property property=foo value=bar /
 /form-bean

 public Class MyForm extends ActionForm
 {
 private String foo; 

 public void setFoo(String foo)
 {
 this.foo = foo;
 }
 public String getFoo()
 {
 return foo;
 }
 }
 However, I am getting an error as follows.  Anyone know if I am missing
any
 steps?  Any help is greatly appreciated.
 java.lang.NoSuchMethodException: Bean has no property named foo
 at
org.apache.commons.digester.SetPropertyRule.begin(SetPropertyRule.java:192)
 at org.apache.commons.digester.Rule.begin(Rule.java:200)
 at
 org.apache.commons.digester.Digester.startElement(Digester.java:1273)
 at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
 Source)
 at
 org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
 Source)
 at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(Unknown
 Source)
 at
 org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
 Source)
 at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
 her.dispatch(Unknown Source)
 at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
 Source)
 at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
 Source)
 at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
 at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
 at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
 at org.apache.commons.digester.Digester.parse(Digester.java:1548)
 at
org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.j
 ava:1006)
 at
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:9
 55)
 at
 org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
 at javax.servlet.GenericServlet.init(GenericServlet.java:256)
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:93
 5)
 at
 org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
 at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
 3422)
 at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:3623)
 at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
 21)
 at
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
 at
 org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
 at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j
 ava:307)
 at
 org.apache.catalina.core.StandardHost.install(StandardHost.java:788)
 at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:559
 )
 at
 org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:401)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
 at
 org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:358)
 at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
 t.java:166)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
 at
 org.apache.catalina.core.StandardHost.start(StandardHost.java:754)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363)
 at
 org.apache.catalina.core.StandardService.start(StandardService.java:497)
 at
 org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 at 

Re: Error while upgrading from struts version 1.0 to 1.1

2004-03-22 Thread Jignesh Kapadia

Well I think my struts-config.xml is proper except 
I dont know what to put for controller /controller

In web.xml file all parameters are proper Except following
config/${module} and rulesets parameter . 
My aplication has only one module and I dont know what to put for RuleSet since I am using th e default one i.e. org.apache.commons.digester.RuleSet.

Also I have moved the MessageResources has been moved from web.xml to struts-Config.xml. From the error I had set earlier. I think its failing in ActionServlet.init().I am attaching the error file again.

Thanks,
Jignesh
Saul Q Yuan [EMAIL PROTECTED] wrote:
Well, here is a bit longer version of the reply. There are many changes from Struts 1.0.1 to 1.1, you can find a full description below:http://jakarta.apache.org/struts/userGuide/release-notes.htmland the configuration changes below.http://jakarta.apache.org/struts/userGuide/configuration.htmlBack to your particular questions, yes, you'll need to define your Message resouce like the following:in Struts-config.xml file. And Struts1.1 works with JDK1.2 and up. HTH,Saul- Original Message - From: Jignesh Kapadia To: Struts Users Mailing List Sent: Monday, March 22, 2004 7:52 PMSubject: RE: Error while upgrading from struts version 1.0 to 1.1Well,All the jar files are compiled properly. do we need to add some special
 parameter in in Struts-Config.xml file? It seems its looking for some Message Resource Factory Information. Also does Struts 1.1 work with JDK 1.3.* or we need to have JDK 1.4*? I am struggling with this for almost 2 days now. I created a new application and copied this Struts1.1/jar file along with the set of Commons.jar file.It will a good if somebody can help out in this.Thanks,JigneshSaul Q Yuan <[EMAIL PROTECTED]>wrote:I think you need to recompile your application against the newStruts.jar file and other jar files it depends on.Saul-Original Message-From: Jignesh Kapadia [mailto:[EMAIL PROTECTED] Sent: Monday, March 22, 2004 1:55 PMTo: [EMAIL PROTECTED]Subject: Error while upgrading from struts version 1.0 to 1.1Hi ,I am upgrading my current application from Struts 1.0 to Struts1.1. The application is working properly with version 1.0. I just copiedthe
 struts 1.1 realted jar files in my web-inf/lib directory. Now when Irestart my application it gives meError while loading Action Servlet.its failing in Super.init(). Is there anything I need to do other thatjust realcing the war files when I upgrade the Struts version.The error file is attached in e-mail.Thanks and Regards,JigneshDo you Yahoo!?Yahoo! Finance Tax Center - Fileonline. File on time.Do you Yahoo!?Yahoo! Finance Tax Center - File online. File on time.Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.*** Starting the server ***
IBM WebSphere Application Server, Release 4.0.4
Advanced Single Server Edition for Multiplatforms
Copyright IBM Corp., 1997-2001

[3/20/04 14:30:12:932 EST] 26cac26b WSRegistryImp X Unable to initialize user registry 
class com.ibm.ejs.security.registry.nt.NTLocalDomainRegistryImpl for type Windows due 
to exception: Access is denied.

[3/20/04 14:30:12:979 EST] 26cac26b SASConfig X SECJ0108E: Unexpected exception 
occurred when getting user registry or registry attributes.
 Start Display Current Environment 
WebSphere AEs 4.0.4 ptf40230.02 running with process name localhost/Default Server and 
process id 346
Host Operating System is Windows NT, version 4.0
Java version = J2RE 1.3.1 IBM Windows 32 build cn131w-20020710 ORB130 (JIT enabled: 
jitc), Java Compiler = jitc, Java VM name = Classic VM
server.root = C:\Program Files\IBM\WebSphere Studio\runtimes\aes_v4
Java Home = C:\Program Files\IBM\WebSphere Studio\runtimes\aes_v4\java\jre
ws.ext.dirs = C:\Program Files\IBM\WebSphere 
Studio\runtimes\aes_v4/java/lib;C:\Program Files\IBM\WebSphere 
Studio\runtimes\aes_v4/classes;C:\Program Files\IBM\WebSphere 
Studio\runtimes\aes_v4/lib;C:\Program Files\IBM\WebSphere 
Studio\runtimes\aes_v4/lib/ext;C:\Program Files\IBM\WebSphere 
Studio\runtimes\aes_v4/web/help;C:/Program Files/SQLLIB/java/db2java.zip;C:/Program 
Files/IBM/WebSphere 
Studio/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.0.1/runtime/wasListener.jar;C:/Program
 Files/IBM/WebSphere 
Studio/wstools/eclipse/plugins/com.ibm.etools.webservice_5.0.1/runtime/worf.jar;C:\wsad40requiredjars;C:\devc\olr_properties\env;C:\JAR\persistent_services_classes.jar;C:\JAR\config_services_classes_1_0_0.jar;C:\JAR\eas_api_classes_2_1_3.jar;C:\JAR\easaccess_classes.jar;C:\JAR\codes_repository_classes.jar;C:\JAR\uniqueidgeneration_services_classes.jar;C:\JAR\xml_services_classes_1_0_0.jar;C:\projects\testingEarWeb\Web
 Content\WEB-INF\classes;C:\projects\testingEarWeb\Web Content\WEB-INF\lib
Classpath = C:\Program Files\IBM\WebSphere 
Studio\runtimes\aes_v4/properties;C:\Program Files\IBM\WebSphere 
Studio\runtimes\aes_v4/lib/bootstrap.jar;C:/Program Files/IBM/WebSphere 

RequestProcessor Class cast Exception - correction

2004-03-22 Thread Namasivayam, Sudhakar (Cognizant)

 Hi all,

Sorry folks... A correction to my previous mail... 

I do not get this exception message when i stop and start the webapp. Only 
when a action is invoked this exception occurs!! 
Both the times( stop-start   and   action.do ) it is trying to get the same 
RequestProcessor object but the second time it throws an error.

If i insert a try catch block in the action servlet class,it works fine...   
Can any one explain me why this exception occurs?  
I did  verify that  getServletContext().getAttribute(key);  in  ActionServlet.java:855 
returns a RequestProcessor object. 
Pls find the log and my server.xml at the end of the mail. 
 
Thanks in advance,
Sudhakar 
 
 
 2004-03-22 15:18:09 Manager: start: Starting web application at '/sfpsr2'
 2004-03-22 15:18:09 StandardHost[localhost]: standardHost.start /sfpsr2
 2004-03-22 15:18:09 StandardContext[/sfpsr2]: Configuring ProxyDirContext [EMAIL 
PROTECTED]
 2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploying class repositories to work 
directory /usr/local/tomcat4.0.4/work/Agent8050/localhost/sfpsr2
 2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploy JAR /WEB-INF/lib/activation.jar to 
/usr/local/tomcat4.0.4/webapps/sfpsr2/WEB-INF/lib/activation.jar
 2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploy JAR /WEB-INF/lib/classes12.jar to 
/usr/local/tomcat4.0.4/webapps/sfpsr2/WEB-INF/lib/classes12.jar
 2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploy JAR 
/WEB-INF/lib/commons-beanutils.jar to 
/usr/local/tomcat4.0.4/webapps/sfpsr2/WEB-INF/lib/commons-beanutils.jar
 2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploy JAR 
/WEB-INF/lib/commons-collections.jar to 
/usr/local/tomcat4.0.4/webapps/sfpsr2/WEB-INF/lib/commons-collections.jar
 2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploy JAR 
/WEB-INF/lib/commons-dbcp-1.1.jar to 
/usr/local/tomcat4.0.4/webapps/sfpsr2/WEB-INF/lib/commons-dbcp-1.1.jar
 2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploy JAR 
/WEB-INF/lib/commons-digester.jar to 
/usr/local/tomcat4.0.4/webapps/sfpsr2/WEB-INF/lib/commons-digester.jar
 2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploy JAR 
/WEB-INF/lib/commons-fileupload.jar to 
/usr/local/tomcat4.0.4/webapps/sfpsr2/WEB-INF/lib/commons-fileupload.jar
 2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploy JAR /WEB-INF/lib/commons-lang.jar 
to /usr/local/tomcat4.0.4/webapps/sfpsr2/WEB-INF/lib/commons-lang.jar
 2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploy JAR 
/WEB-INF/lib/commons-logging.jar to 
/usr/local/tomcat4.0.4/webapps/sfpsr2/WEB-INF/lib/commons-logging.jar
 2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploy JAR 
/WEB-INF/lib/commons-logging1.jar to 
/usr/local/tomcat4.0.4/webapps/sfpsr2/WEB-INF/lib/commons-logging1.jar
 2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploy JAR 
/WEB-INF/lib/commons-validator.jar to 
/usr/local/tomcat4.0.4/webapps/sfpsr2/WEB-INF/lib/commons-validator.jar
 2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploy JAR /WEB-INF/lib/jakarta-oro.jar to 
/usr/local/tomcat4.0.4/webapps/sfpsr2/WEB-INF/lib/jakarta-oro.jar
 2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploy JAR /WEB-INF/lib/log4j-1.2.8.jar to 
/usr/local/tomcat4.0.4/webapps/sfpsr2/WEB-INF/lib/log4j-1.2.8.jar
 2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploy JAR /WEB-INF/lib/mail.jar to 
/usr/local/tomcat4.0.4/webapps/sfpsr2/WEB-INF/lib/mail.jar
 2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploy JAR /WEB-INF/lib/servlet.jar to 
/usr/local/tomcat4.0.4/webapps/sfpsr2/WEB-INF/lib/servlet.jar
 2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploy JAR /WEB-INF/lib/struts.jar to 
/usr/local/tomcat4.0.4/webapps/sfpsr2/WEB-INF/lib/struts.jar
 2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploy JAR /WEB-INF/lib/struts2.jar to 
/usr/local/tomcat4.0.4/webapps/sfpsr2/WEB-INF/lib/struts2.jar
 2004-03-22 15:18:09 StandardManager[/sfpsr2]: Seeding random number generator class 
java.security.SecureRandom
 2004-03-22 15:18:09 StandardManager[/sfpsr2]: Seeding of random number generator has 
been completed
 2004-03-22 15:18:10 ContextConfig[/sfpsr2]: Added certificates - request attribute 
Valve
 2004-03-22 15:18:10 Initializing application variables
 2004-03-22 15:18:11 StandardWrapper[/sfpsr2:default]: Loading container servlet 
default 
 2004-03-22 15:18:11 default: init
 2004-03-22 15:18:11 jsp: init
 2004-03-22 15:18:12 StandardWrapper[/sfpsr2:ssi]: Loading container servlet ssi
 2004-03-22 15:18:12 ssi: init
 2004-03-22 15:18:12 action: init
 2004-03-22 15:18:13 Manager: list: Listing contexts for virtual host 'localhost'
 2004-03-22 15:19:09 StandardWrapperValve[action]: Servlet.service() for servlet 
action threw exception
 java.lang.ClassCastException
at 
org.apache.struts.action.ActionServlet.getRequestProcessor(ActionServlet.java:855)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
  

Using SSL Extension and Workflow Extension together

2004-03-22 Thread Scott Ryan
I would like to use the Workflow extension and the SSL/Non SSL extension
together.  Is this possible?  It looks like they replace the capability of
the request processor and that they are mutually exclusive.  Is there a way
to use both?  I am using tiles to support my application.  I am able to get
them working one at a time but need to combine them together for some
applications.

Thanks

Scott D. Ryan
Director, J2EE Architecture and Development
Soaring Eagle LLC.
9742 S. Whitecliff Place
Highlands Ranch, Co. 80129
(303) 263-3044
[EMAIL PROTECTED]
BEA Technical Director



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



HELP: applet-to-action anomaly

2004-03-22 Thread w i l l i a m b o y d
hi,

please can someone help? i am building a struts 1.1 based web app using 
j2sdk1.4.2, tomcat 4.0.6. i'm using a 3rd-party tree applet for site 
navigation (a constraint specified by the client). i've got an action which 
can be accessed with this uri:

http://www.thefreelancer.net:8080/soa/jsp/enterAreaToRead.do?areaid=3

if you attempt to load this uri directly into your browser (i'm testing with 
msie 6.0 on win xp home) then, as expected, the action fails, and forwards 
to a dummy error page placeholder letting you know that you haven't logged 
in yet. that is what should happen if you try to enter the area without 
having logged in.

i've got another dummy page where you can see this 3rd-party navigation 
applet i mentioned:

http://www.thefreelancer.net:8080/soa/jsp/mockups/index.jsp

for testing, within a scriptlet inside index.jsp, i've simulated a logged-in 
user by instantiating a user bean and putting 

this user bean in the session when this index.jsp page loads. to verify that 
this user bean is, in fact, in the session, i write out the user bean's 
email address at the very bottom of the page (the bit in red that 
says, there is a reader in the session: bebop-at-propelnewmedia.com). 

the navigation applet reads in a text file that contains the links needed to 
render the nodes. i've set the Standard Area Page node to point at the 
enterAreaToRead.do?areaid=3 action:

The Society
|
+ Groups
|
|_Lorem Ipsum
|
+ BRG
| 
+ PCG
|
+ UMSIG
|
|_ Standard Area Page -- points to action
|
|_ Lorem Ipsum
|
|_ Lorem Ipsum
|
|_ Lorem Ipsum
|
|_ Lorem Ipsum


the problem is: under certain conditions, loading the index.jsp page, then 
clicking on the Standard Area Page node in the applet takes you to the 
error page when it shouldn't. it shouldn't because the action should only 
forward to that error page 

if there is no user bean in the session. but there *IS* a user bean in the 
session which is verified by the presence of the bean's email address which 
i pull out of the session at the very bottom of index.jsp. this is how to 
reproduce the problem:

1) *FIRST* load http://www.thefreelancer.net:8080/soa/jsp/enterAreaToRead.do?
areaid=3. you should be taken to the error page.

2) then, load http://www.thefreelancer.net:8080/soa/jsp/mockups/index.jsp. 
you can see that the user is logged in by the 

message at the very bottom of the page.

3) then click on the Standard Area Page node of the navigation applet on 
the left-hand side of the page. if you've done the steps in the above order, 
then you will have been forwarded to the error page (which isn't suppose to 
happen because you are logged in).

the curious thing is: also at the very bottom of the index,jsp page is 
an Enter Area link (rendered by an html:link tag) that points to the 
exact same action that the applet points to. the action forwards correctly 
if you click on this link. 

also, the applet's Standard Area Page link to the action will also work 
correctly, *BUT ONLY IF* index.jsp is the first page loaded. i suspect that 
it is something to do with the applet not knowing about the session for some 
reason. short of recoding the 

applet by having it append the session string to the uri via a passed-in 
parameter, is there some other - more straight forward (struts-specific 
maybe) -  way around this problem that you know of?

thanks in advance for your help.

--
Open WebMail Project (http://openwebmail.org)
--- End of Forwarded Message ---


--
Open WebMail Project (http://openwebmail.org)


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



  1   2   >