RE: db error

2004-03-25 Thread McCormack, Chris
It doesnt appear to be a case of missing classes etc

This exception seems pretty descriptive :
UnavailableException: Initializing application data source 
org.apache.struts.action.DATA_SOURCE

It looks like struts cannot physically get a connection to the specified source, so 
a. it doesnt exist 
b. it does exist but your application cannot get to the source (routing issue?)
c. there is a typo in the connection details. 
d. the connection details are setup incorrectly.

there are other factors etc but I would say this is an initial check list.












A minor difference I have noticed is the use of the '@' symbol to reference your box 
in the url parameter.
I have included one that I know works for one of my systems oracle connection.

Chris McCormack

-Original Message-
From: Rajat Pandit [mailto:[EMAIL PROTECTED]
Sent: 25 March 2004 11:11
To: Struts Users Mailing List
Subject: Re: db error


Thanks chris,
so this is not because of any missing classes or jar files? is this a
connectivity issue? the database server isup and my other applications
sqlplusw can access it.
any pointers?
sorry about read reciept thing in my previous mail.
rajat
- Original Message -
From: "McCormack, Chris" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, March 25, 2004 4:46 PM
Subject: RE: db error


Check your database is up before trying to connect to it. If it is and you
can ping the database from your application server box, then check your
spelling in the data source definition.

Chris McCormack

-Original Message-
From: Rajat Pandit [mailto:[EMAIL PROTECTED]
Sent: 25 March 2004 11:01
To: Struts Users Mailing List
Subject: db error


Hello All,
i am trying to connect a oracle database, and i get this stack trace, can
someone please tell me what is wrong with it.

javax.servlet.UnavailableException: Initializing application data source
org.apache.struts.action.DATA_SOURCE
 at
org.apache.struts.action.ActionServlet.initModuleDataSources(ActionServlet.j
ava:1091)
 at org.apache.struts.action.ActionServlet.init(ActionServlet.java:472)
 at javax.servlet.GenericServlet.init(GenericServlet.java:256)
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:93
4)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:821)
 at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3420)
 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
 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:579)
 at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j
ava:257)
 at org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
 at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:569
)
 at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:411)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:879)
 at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:368)
 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:738)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
 at org.apache.catalina.core.StandardService.start(StandardService.java:497)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
 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)





<--- data sources -->


















<-- code -->
ServletContext context = servlet.getServletContext();
DataSource ds = (DataSource)
context.getAttribute(Action.DATA_SOURCE_KEY);
//DataSource ds = getDataSource(req);

try {
conn = ds.getConnection();
stmt = conn

RE: db error

2004-03-25 Thread McCormack, Chris
Check your database is up before trying to connect to it. If it is and you can ping 
the database from your application server box, then check your spelling in the data 
source definition.

Chris McCormack

-Original Message-
From: Rajat Pandit [mailto:[EMAIL PROTECTED]
Sent: 25 March 2004 11:01
To: Struts Users Mailing List
Subject: db error


Hello All,
i am trying to connect a oracle database, and i get this stack trace, can someone 
please tell me what is wrong with it.

javax.servlet.UnavailableException: Initializing application data source 
org.apache.struts.action.DATA_SOURCE
 at 
org.apache.struts.action.ActionServlet.initModuleDataSources(ActionServlet.java:1091)
 at org.apache.struts.action.ActionServlet.init(ActionServlet.java:472)
 at javax.servlet.GenericServlet.init(GenericServlet.java:256)
 at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:934)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:821)
 at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3420)
 at org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
 at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
 at 
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:257)
 at org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
 at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:569)
 at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:411)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:879)
 at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:368)
 at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
 at org.apache.catalina.core.StandardService.start(StandardService.java:497)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
 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)





<--- data sources -->


















<-- code -->
ServletContext context = servlet.getServletContext();
DataSource ds = (DataSource) context.getAttribute(Action.DATA_SOURCE_KEY);
//DataSource ds = getDataSource(req);

try {
conn = ds.getConnection();
stmt = conn.createStatement();
rs = stmt.executeQuery("Select tname, tabtype from tab");

if (!rs.wasNull()) {
/**
 * some records where returned
 */
System.err.println("==");
while (rs.next()) {
System.err.println("Table Name: " + rs.getString(1));
System.err.println("TabType: " + rs.getString(2));
System.err.println("--");
}
System.err.println("==");
}


} catch (SQLException e) {
System.err.println("==> Error in getting the connection: " + 
e.getMessage());



<---end of code -->






--
Rajat Pandit  | [EMAIL PROTECTED]
System Analyst

Manchitra Services Pvt. Ltd (www.manchitra.com)
Tel: 011-26232696 / 26232798
Cellphone: 9818247126
B231 / C GK I
New Delhi 


***
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 

RE: "are you sure?"

2004-03-24 Thread McCormack, Chris
If you need this to be in a confirmation box as you say, look in to using a modal 
window that has 2 javascript backed buttons on it.

hth
Chris McCormack

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: 23 March 2004 12:22
To: Struts Users Mailing List
Subject: Re: "are you sure?"


+1
-Martin
- Original Message - 
From: "Colm Garvey" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, March 23, 2004 5:00 AM
Subject: RE: "are you sure?"


> Simplest thing to do here is make the method handle the submit for you.
> Replace the submit button with :
> 
>  onclick="areyousure();">Submit
> 
> Then change the javascript to use
> 
> ...if (agree){formname.submit();}
> 
> Good Luck,
> 
> Colm
> 
> -Original Message-
> From: Janarthan Sathiamurthy [mailto:[EMAIL PROTECTED]
> Sent: 23 March 2004 09:44
> To: Struts Users Mailing List; [EMAIL PROTECTED]
> Subject: RE: "are you sure?"
> 
> 
> Try with this -
>name="dateForm"
>   type="nl.rinke.DateForm"
>   onsubmit="return areyousure()" >
> 
> Should work
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 23, 2004 3:10 PM
> To: [EMAIL PROTECTED]
> Subject: "are you sure?"
> 
> 
> Hi list,
> 
> Still a struts newbie, I try to write an "are you sure" javascript
> confirmation box for my submit button.
> 
> The question is: how can I prevent the form from being submitted
> when the user clicks "no"?
> 
> In the Jsp, I put the following code in the head:
> 
> 
>function areyousure(){
>   var agree = false;
>   agree = confirm("are you sure?");
>   if(agree){
>  ... some code which is not important
>   }
>   return agree;
>}
> 
> 
> 
> And the form tag looks like this:
> 
>name="dateForm"
>   type="nl.rinke.DateForm"
>   onsubmit="areyousure()" >
> 
> 
> Whatever the user clicks, yes or no, the form
> gets submitted. I want to stop submitting the
> form when the user click "no".
> 
> thanks, Rinke
> 
> 
> -
> 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]


***
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]



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]



RE: RE: Re: Performance Improvement :: Struts based applications

2004-03-19 Thread McCormack, Chris
Raise the debug level for certain packages in your production environment (if you run 
debug there at all), set classes like 
log4j.logger.org.apache.commons.digester to FATAL. This will trim down your log files 
considerably. You should consider proper use of the logging levels within your 
application to provide meaningful INFO/ERROR messages so you should not have to run at 
DEBUG level anywhere other than in development.

-

How soon after starting up your appserver are you trying to hit your application ? You 
have to allow time for the appserver to initialise its resources. Tomcat 4.1.24 takes 
a little over 6 seconds to boot on one of our development boxes and initialise 7 
(pre-deployed) applications, and be ready to service requests.
If you are starting your appserver and having it redeploy your war file on startup 
then you should be expected to wait for it to initialise. If you setup connection 
pools on startup then check they are all available and none are timing out etc.

As another user said you could always run JProbe to get to the root cause without too 
much hassle :)

Chris McCormack

-Original Message-
From: Scott Piker [mailto:[EMAIL PROTECTED]
Sent: 18 March 2004 22:23
To: [EMAIL PROTECTED]
Subject: Re: RE: Re: Performance Improvement :: Struts based
applications


What's your logging level set to?  We recently did a late roll-in of log4j to our app 
and discovered that when we set logging level to debug, the initial struts/tiles 
initialization process takes forever (>5 mins) and generates thousands of lines of 
debug statements as the various config files get parsed.

>>> [EMAIL PROTECTED] 3/18/2004 3:19:19 PM >>>
Chris,

I have precompiled JSP files. So i do not think that is a problem. Rather I feel it is 
ActionServlet which is taking time to intialize on first startup. 

Yes, I tries to use the cache mechanism of Apache (in windows), like mod_cache, 
mod_file_cache, mod_mem_cache and mod_disk_cache. But could not see much improvement. 
But no cache mechanism in Tomcat.Or are you talking of something else?

Apache provides cache taglibs for the JSPs. Do you recommend to use that?? The site 
that you have mentioned http://wiki.opensymphony.com/space/OSCache, I have been to 
there, but that is a commercial one. I want a freeware. Can you give me some 
reference? 

Regards,
Satya.

that

On Thu, 18 Mar 2004 McCormack, Chris wrote :
>If you build your war file using ant then you can use jasper (see 
>org.apache.jasper.JspC) to precompile your jsps. This is useful if you are deploying 
>your app to a live user environment and dont want the initial compile time to impact 
>any users experience.
>
>On top of that you could use tomcat/apache mods to compress requests etc.
>
>If you are serious about needing bigger performance boosts, then look at partial/full 
>caching. i.e store in server ram/disk the static or infrequently changing parts of 
>your application (jsp or java objects), or have a small cache period on dynamic but 
>less frequently updated parts of your application.
>There are a few companies that ply these out of the box caching solutions on 
>companies now for extortionate cost (naming no names) but there are a few excellent 
>open source contenders. The best of the open source solutions I have used is this one 
>: http://wiki.opensymphony.com/space/OSCache (It does tie you in to using HttpSession 
>unfortunately, but with a few lines of code you can easily work around this).
>
>It is a shame that this project http://www.jcp.org/en/jsr/detail?id=128 is not in 
>progress, anyone on this list working on it ? ;)
>
>cheers
>Chris McCormack
>
>-Original Message-
> From: Axel Groß [mailto:[EMAIL PROTECTED] 
>Sent: 18 March 2004 14:43
>To: Struts Users Mailing List
>Cc: [EMAIL PROTECTED] 
>Subject: Re: Re: Performace Improvement :: Struts based applications
>
>
>some IDEs also precompile the pages...
>axel
>
>On 2004-03-18 at 14:16:26 +0100, [EMAIL PROTECTED] wrote:
> > The reason is jsps are not compiled when you hit the pages the first time.So the 
> > first call will always be slow as it alos has to compile jsps.The subsequent calls 
> > will use the compiled jsps and hence faster.
> >
> > Some server/ServletEngines have the option to precompile jsps.
> >
> > HTH.
> >
> > Regards,
> > Shirish
> >
> >
> > -Original Message-
> > From: Satya Narayan Dash [mailto:[EMAIL PROTECTED] 
> > Sent: Thursday, March 18, 2004 2:13 PM
> > To: Struts Users Mailing List
> > Cc: Vic Cekvenich
> > Subject: Re: Re: Performace Improvement :: Struts based applications
> >
> >
> > Hi,
> >
> > I have done the testing of the view layer. And what is peculiar is when i am 
> > hitting the ServletEn

Re:

2004-03-18 Thread Chris Huisman
Oh ya if you didn't realize it already, I am using LookupDispatchAction 
for my Action. 

Another question: could the request be getting lost on the way to the 
server b/c of the frames?  I don't think this is the case since the 
request of the frame the link is in should get sent to the server and 
this holds the "action" parameter, so "action" should be found and the 
value of it used to determine which method to call.

This is the action mapping I am using:
   
   attribute="viewForm"
   input="pages/products/type.jsp"
   name="viewForm"
   parameter="action"
   path="/view"
   scope="request"
   type="xxx.xxx.xxx.struts.action.ViewAction"
   validate="false">

   

where the "type" forward is where:

" target="_top">
 Machines

will eventually take the user and the "productList" forward is where:

"
target="body_content">
 Products

will take the user.
[EMAIL PROTECTED] wrote:

Hello,

I am using frames in my web app not b/c I want to, but b/c I have to.  I
am using the  tag to with a page attribute to go to my action
class.  I am able to do this successfully from one frameset to another one
using the following link in the menu frame of frameset1:
" target="_top">
 Machines

This passes the user onto a new frameset: frameset2.  I have another link
that  is almost identical to the previous one in the menu frame of
frameset2 
"
target="body_content">
 Products


This link does not work, it gives me the "Request[/view] does not contain
handler parameter named action" error.  This is very frustrating.  I know
that the ViewAction has the hanler for the parameter named action b/c I am
able to type the link into the browser address bar and everything behaves
correctly.
Any ideas as to why this is happening?

thanks,
c.


-
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: Re: Performance Improvement :: Struts based applications

2004-03-18 Thread McCormack, Chris
If you build your war file using ant then you can use jasper (see 
org.apache.jasper.JspC) to precompile your jsps. This is useful if you are deploying 
your app to a live user environment and dont want the initial compile time to impact 
any users experience.

On top of that you could use tomcat/apache mods to compress requests etc.

If you are serious about needing bigger performance boosts, then look at partial/full 
caching. i.e store in server ram/disk the static or infrequently changing parts of 
your application (jsp or java objects), or have a small cache period on dynamic but 
less frequently updated parts of your application. 
There are a few companies that ply these out of the box caching solutions on companies 
now for extortionate cost (naming no names) but there are a few excellent open source 
contenders. The best of the open source solutions I have used is this one : 
http://wiki.opensymphony.com/space/OSCache (It does tie you in to using HttpSession 
unfortunately, but with a few lines of code you can easily work around this).

It is a shame that this project http://www.jcp.org/en/jsr/detail?id=128 is not in 
progress, anyone on this list working on it ? ;)

cheers
Chris McCormack

-Original Message-
From: Axel Groß [mailto:[EMAIL PROTECTED]
Sent: 18 March 2004 14:43
To: Struts Users Mailing List
Cc: [EMAIL PROTECTED]
Subject: Re: Re: Performace Improvement :: Struts based applications


some IDEs also precompile the pages...
axel

On 2004-03-18 at 14:16:26 +0100, [EMAIL PROTECTED] wrote:
> The reason is jsps are not compiled when you hit the pages the first time.So the 
> first call will always be slow as it alos has to compile jsps.The subsequent calls 
> will use the compiled jsps and hence faster.
> 
> Some server/ServletEngines have the option to precompile jsps.
> 
> HTH.
> 
> Regards,
> Shirish
> 
> 
> -Original Message-
> From: Satya Narayan Dash [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 18, 2004 2:13 PM
> To: Struts Users Mailing List
> Cc: Vic Cekvenich
> Subject: Re: Re: Performace Improvement :: Struts based applications
> 
> 
> Hi,
> 
> I have done the testing of the view layer. And what is peculiar is when i am hitting 
> the ServletEngine for the first time, then it takes a lot of time, but subsequent 
> hits take less time. 
> 
> Is it because the ActionServlet is not initiliazed, though I have started the engine?
> 
> I would like to know if any recommended technique is given to improve the 
> performance.
> 
> Regards,
> Satya.
> 
> On Thu, 18 Mar 2004 Vic Cekvenich wrote :
> >Unit test the performance of the model layer.
> >.V
> >
> >Satya Narayan Dash wrote:
> >>Hi,
> >>
> >>I am in the process of improving a struts based application. I am using the cache 
> >>taglib (from apache) and have written some filters to improve the performace. 
> >>I am using Apache2 as the web-sever and Tomcat4 as the servelt/jsp engine. I have 
> >>optimized them both.
> >>
> >>But the peformance improvement is not substantial. Can you please give me some 
> >>tips to improve the performance ? 
> >>Need your help,
> >>Regards,
> >>Satya.
> >
> >
> >-
> >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]


***
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]



RE: calling ASP inside a JSP

2004-03-18 Thread McCormack, Chris
Use the superior JSP to suck in the contents of the ASP (using the link to it) and 
write it out directly to the frame using javascript or, another jsp that contains the 
sucked in ASP information in a bean.

Chris

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 18 March 2004 00:05
To: [EMAIL PROTECTED]
Subject: calling ASP inside a JSP


Hi All
I have a webpage in which i have two Frames.  In my left frame i want to
display an ASP page. In the main frame i have a JSP page. Can i do this at
all. I have a link to the ASP page, but i do not want to provide a link
but only want to display the content of the ASP page. Please let me know
if i can do this.

Thanks
--Mohan



-
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]



RE: Hierarchical Lists

2004-03-18 Thread McCormack, Chris
I agree. This behaviour looks very suited to a dhtml/js solution.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 17 March 2004 19:54
To: [EMAIL PROTECTED]
Subject: RE: Hierarchical Lists


Short of a reload, I believe only a JavaScript/DHTML function can provide this 
behavior.


-Original Message-
From: Randy Dillon [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 17, 2004 2:48 PM
To: Struts Users Mailing List
Subject: Hierarchical Lists


Say I have 2 (or more) lists that are part of a hierarchy, such that the first list is 
a category (say Food Groups) and the second list contains children of each of the 
first list's items (for this example, let's say Food Types).  

How do I get the second list to be filtered based on the selection in the first list?  
I know this can be done by reloading the page each time the selection is changed in 
the first list, but is there a way to do this without the page reload?

To add more detail to the example:

Food Groups Food Types
--- --
Meat&Dairy  Beef
Chicken
Milk
Eggs
Fruit&Veg   Melons
Apples
Oranges
Lettuce
. . 
. .
. .

If Meat&Dairy is selected in the Food Groups list, can the second Food Types list be 
filtered to only the Meat&Dairy food types without a page reload?


-
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]


***
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]



RE: Why is it so difficult to unsubscribe?

2004-03-15 Thread McCormack, Chris
You spelt incompetent wrong

-Original Message-
From: Kenneth Kalmer [mailto:[EMAIL PROTECTED]
Sent: 15 March 2004 04:30
To: [EMAIL PROTECTED]
Subject: Why is it so difficult to unsubscribe?


Guys

I've been trying to get my name off the stuts user digest for more than
a week now! How difficult can this be? For a foundation as big as
Apache, something as simple as a mailing list must be nothing to manage.

Admins: [EMAIL PROTECTED] must be removed from this list with
immediate effect. I've contacted you several times over, even sent mail
to the ASF directly. Now I'm publishing this in the main list to let the
people know that you and your mailing systems are very incompetant.

Thanks for all the info on the list, but our roads part now.

Cheerz


--
Kenneth Kalmer
[EMAIL PROTECTED]
http://clearplanet.co.za

"The great thing about a computer notebook is that no matter how much
you stuff into it, it doesn't get bigger or heavier"
Bill Gates

***
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]



RE: How to submit form in pop-up window and forward parent results page?

2004-03-11 Thread McCormack, Chris

Put an onSubmit(refreshOpener()) on your form (assuming your form is on your popup)

write something along these lines (code below is off the top of my head and untested)

function refreshOpener() {
 if(window.opener!=null){
   window.opener.location.href="/context/showsomething.do"; 
 }
  window.focus();
  window.close();
}

if the opener already has the page loaded you require but it needs a refresh use 
window.opener.location.reload(true);

hth
Chris

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: 11 March 2004 14:24
To: [EMAIL PROTECTED]
Subject: AW: How to submit form in pop-up window and forward parent
results page?


Hello bOOyah,

I have had the same problem that you describe. Were you able to solve it?. If so could 
you share how you did it?

Sam

-Ursprungliche Nachricht-
Von: news [mailto:[EMAIL PROTECTED] Auftrag von bOOyah
Gesendet: Donnerstag, 11. Marz 2004 11:43
An: [EMAIL PROTECTED]
Betreff: Q: How to submit form in pop-up window and forward parent
results page?


Hi all.

(Caveat: this might actually turn out to be a Javascript question):

I would appreciate any help or even alternatives to what I'm trying to 
achieve below:-

Here's a rough sequence of what I'm trying to achieve...

(1) My app has a page displaying an item link.

(2) When the user clicks on the link a pop-up browser window appears 
with a form containing all the details about that item.

(3) After modifying the item's details the user clicks on the form 
Submit button.

(4) The Submit action saves the changes to the database.

(5) The pop-up windows closes.

(6) The original, parent page 'refreshes' to reflect the changes the 
user made in the pop-up windows (e.g. changing the name of the item 
under the link).

I can get as far as step (4) using Struts and Javascript handlers.

Here's how my parent pops-up the item editing window:
--

<% String link = "javascript:popUp('"+
 request.getContextPath()+
 /editItem.do?action=edit&item="+
 itemID + "');";
%>
. . .

 


--


Here's the form element of my pop-up:
--

<% String submitScript = "form.submit();
 opener.location='"+
 request.getContextPath()+
 "/showItemDetails.do';"+
 "self.close();";
%>
. . .


--


So I'm submitting the form, telling the parent to forward to the results 
page ('/showItemDetails.do') and closing the pop-up.

But it doesn't work that way:-(

The submission works fine; the data is written to the DB.  But the 
pop-up browser window doesn't close and the parent isn't forwarded to 
the results page.  So I guess once a form is submitted the rest of the 
Javascript just 'disappears' and isn't executed?

Any help out there..?

Many thanks in advance!

-- 
bOOyah


-
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]


***
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]



RE: can anyone help me address this issue

2004-03-11 Thread McCormack, Chris
use onResize on the html element that is clicked to report its new value to a form 
variable. use an onChange for the form to auto submit itself. If you need to hide the 
submission of the form use an IFrame.

messy eugh, javascript is the pits.

Chris

-Original Message-
From: Mu Mike [mailto:[EMAIL PROTECTED]
Sent: 11 March 2004 12:16
To: [EMAIL PROTECTED]
Subject: RE: can anyone help me address this issue


I really need to get some idea about this issue, any suggestions?

Thanks&Regards


>From: "Mu Mike" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: can anyone help me address this issue
>Date: Thu, 11 Mar 2004 05:12:16 +
>
>I m using javascript "doing" dhtml, now  I have a table, every time 
>a user changes the width of a specific column(by draging the border 
>line), I will save the column index and the new width to variables 
>in javascript.Now ,after doing many such changes, I need to submit 
>those values saved in the vairables to the server side program by 
>submiting a form, which has an action path designing what action 
>should be called after it get the submitted value. Now, I m 
>wondering how I should define such javasript variables and how I can 
>submit these values by submiting a form? I m using struts, is there 
>any possibility to implement this idea in struts?
>
>Thanks&Regards
>
>_
>享用世界上最大的电子邮件系统― MSN Hotmail。  http://www.hotmail.com
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>

_
与联机的朋友进行交流,请使用 MSN Messenger:  http://messenger.msn.com/cn  


-
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]



Validator classes and validator-rules.xml

2004-03-08 Thread Chris Searle

I'm getting an odd exception:

2004-03-08 11:19:41,405 ERROR [org.apache.commons.validator.Validator] reflection: 
org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Object, 
org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, 
org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)
java.lang.NoSuchMethodException: 
org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Object, 
org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, 
org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)
   at java.lang.Class.getMethod(Class.java:978)
at 
org.apache.commons.validator.Validator.executeValidationMethod(Validator.java:501)
at 
org.apache.commons.validator.Validator.validateFieldForRule(Validator.java:424)
at org.apache.commons.validator.Validator.validateField(Validator.java:669)
at org.apache.commons.validator.Validator.validate(Validator.java:745)
at 
org.apache.struts.validator.DynaValidatorForm.validate(DynaValidatorForm.java:150)

The parameter list shown in the NoSuchMethodException appears to match
the validator-rules.xml file:

 

apart from the fourth parameter (ActionMessages vs ActionErrors) but
this is probably OK since ActionErrors is a subclass of
ActionMessages.

This parameter list also matches the javadoc.

NB: This is the Nightly Build binary download !!! I can't recall why -
just that I had a bug in the stable build that was fixed in the
nightly's. However - I've just changed from the old nightly to
20040306 (20040307 seems to be 163 bytes long) to test - and the same
problem with validation occurs.

Any hints anyone?

-- 
Chris Searle
[EMAIL PROTECTED]


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



RE: BODY onLoad Workaround

2004-03-03 Thread McCormack, Chris
I use onLoad="blah()" with tiles perfectly fine.

The simplest solution in your case, would be to go to the foot of your jsp and insert


 doSomething(); 


just before the  tag.

Chris

-Original Message-
From: Richard Yee [mailto:[EMAIL PROTECTED]
Sent: 02 March 2004 22:45
To: Struts Users Mailing List
Subject: Re: BODY onLoad Workaround


Alan,
I don't see any problem with using the BODY onLoad
event handler. I also searched on Google and found
several instances where others are using it without
any problems. What does your code look like? What
happens when you do a view/source in the browser? Have
you tried using Netscape and looking at the JavaScript
console?

-Richard



--- Alan Weissman <[EMAIL PROTECTED]> wrote:
> Hey everyone -
> 
>  
> 
> So I have a Struts/Tiles page that I
> need to have a
> Javascript function called on when the page loads. 
> Normally this is of
> course accomplished with the BODY onLoad event
> however this event isn't
> fired when my page loads and from doing extensive
> Googling I've found
> that this has something to do with the nature of
> Struts/Tiles pages
> (though I'm not sure what).  What is the best
> workaround for this?
> 
>  
> 
> Thanks so much,
> 
> Alan
> 
> 


__
Do you Yahoo!?
Yahoo! Search - Find what you're looking for faster
http://search.yahoo.com

-
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]



RE: struts and DHTML

2004-03-01 Thread McCormack, Chris
Hi Michel,
I don't know what the solution to your jsp problem is, but, as a side note I would use 
html 

RE: [OT] JSP or Velocity

2004-02-27 Thread McCormack, Chris
Having your JSP built using tiles, each (if necessary) having its own dynamic 
Tileaction is excellent. 
It offers so much flexibility, especially when its combined with JSTL.

The only gripe I have is with JSTL and not having the ability to get map sizes. Its 
easy
to code around this, but it would have been nice out of the box :P

If you ask the JSP or velocity question on a list that has a good mix of both sets of 
users,
then you are going to get a few biased opinions for either side. 
Try and figure out the requirements of what you want your application to do and would 
like it to be able
to do in the future. Then see if either does not or, is unable to offer this feature 
list. That should make your decision 
a bit easier.

Chris

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: 27 February 2004 12:59
To: Struts Users Mailing List
Subject: RE: [OT] JSP or Velocity


Havent used velocity myself , but from what Ive seen it is very good.
(Theres also a very good introduction for newbies in Teds "Struts in Action"
book where hes given a chapter to using velocity with Struts)

That said, if you learn JSP its probably a much more portable skillset that
will stand you in good stead for future projects and jobs, and theres a lot
of freely available taglibs out there you can utilise. Much more support on
the list too for any problems you may come across, and of course theres the
Tiles stuff which (again Ive not used!) is really very very cool and
powerful!

My own personal opinion of JSP otoh is rather low. I just dont like the
whole 'vibe' of it! Suffice it to say Im not a big fan of serial rendering
mechanisms - especially where the page layout and rendering instructions are
combined in the same file - and also much prefer a mechanism where I can
render to any part of the view at any part of my rendering process (Im using
a homebrew library for this that revolves around using a tree of decorator
classes to modify xhtml DOM templates - there are some open source libraries
for DOM based rendering available too such as XMLC which you might want to
look at if you have time). Of course that power comes at a cost in terms of
performance and memory usage, but for the type of apps Im working on its not
really an issue.

But weighing up the arguments for your case, Id say the best advice I can
give is that nobody got sacked for choosing JSP and its the one with the
most mindshare despite its flaws, so you wont go wrong going with it for
your project even if it can be a pain to work with sometimes!



-Original Message-
From: A.White [mailto:[EMAIL PROTECTED]
Sent: Friday, 27 February 2004 20:45
To: [EMAIL PROTECTED]
Subject: [OT] JSP or Velocity


Howdy

I am starting to develop an application using struts and have been
looking round the rest of the Jakarta project and came across the
Velocity project.

I was interested to see which which people recommended for a relative
newbie

Cheers

Andrew


-
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]



RE: Problem in nested tags- Very Urgent - Please Help

2004-02-27 Thread McCormack, Chris
>i'll try to use lazy list once i finish off my work

Eugh... We have all done it, but that is how botches get in to production code. People 
usually get too busy to apply the 'proper' code, or something more important that 
needs attention comes along. 

2 years later someone comes along and has to rewrite a major part of the application 
to compensate for the temporary fix :P

Welcome to the Software Industry.

btw that is not a personal slight on you :) just an observation of the industry as a 
whole.

-Original Message-
From: Parthasarathy Kesavaraj [mailto:[EMAIL PROTECTED]
Sent: 27 February 2004 09:45
To: 'Struts Users Mailing List'
Subject: RE: Problem in nested tags- Very Urgent - Please Help


Thanks mark , hubert and paul. i removed scope = request and it is working
fine now.

(Temporary fix :-)) i'll try to use lazy list once i finish off my work)


With Regards

Partha


-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 26, 2004 8:35 PM
To: Struts Users Mailing List
Subject: Re: Problem in nested tags- Very Urgent - Please Help


Nice one..

For some reason i thought the Factory would involve more than it does,  
so i shied away from it.

Cheers Mark

On 26 Feb 2004, at 15:57, Paul, R. Chip wrote:

> Note: I think this is likely different in current versions of the  
> commons
> collections lib, but this works for the version we are dependent on.
>
> import java.util.ArrayList;
> import java.util.List;
> import org.apache.commons.collections.Factory;
> import org.apache.commons.collections.ListUtils;
> // Nonrelevant imports ommitted
>
> public class LazyListExampleForm extends ActionForm {
>   private List actionList;
>
>   public LazyListExampleForm ()
>   {
>   Factory factory = new Factory() {
>public Object create() {
>return new ActionListBean();
>}
>};
>this.actionList = ListUtils.lazyList(new ArrayList(),
> factory);
>   }
>
>   // Getter/setters for list omitted
> }
>
> -Original Message-
> From: Mark Lowe [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 26, 2004 8:49 AM
> To: Struts Users Mailing List
> Subject: Re: Problem in nested tags- Very Urgent - Please Help
>
>
> wouldn't mind an example of how to use lazy list if you have one.
>
>
> On 26 Feb 2004, at 15:33, Paul, R. Chip wrote:
>
>> Or use the Commons Collections LazyList which handles this problem
>> automatically.
>>
>> -Original Message-
>> From: Mark Lowe [mailto:[EMAIL PROTECTED]
>> Sent: Thursday, February 26, 2004 8:09 AM
>> To: Struts Users Mailing List
>> Subject: Re: Problem in nested tags- Very Urgent - Please Help
>>
>>
>> shirish posted this a few times.
>>
>> if you're scoping to request you'll need a while loop in your
>> getFoo(int index)  method
>>
>> public class OrgManagementForm extends ActionForm {
>>
>> private List addressList = new ArrayList();
>>
>> public Address getAddress(int index) {
>>  
>>  while(index >= addressList.size() ) {
>>  this.addressList.add( new Address() );
>>  }
>>
>>  return (Address) addressList.get(index);
>> }
>>
>> bla bla.
>>
>> }
>>
>> look like it could be your problem.
>>
>>
>> On 26 Feb 2004, at 14:57, Parthasarathy Kesavaraj wrote:
>>
>>> I am having an OrganzationVO inside my form-bean.
>>>
>>> The OrganzationVO has a collection of AddressVOs.
>>>
>>> I am using nested tags like this.
>>>
>>>
>>> 
>>>
>>> >> styleClass="inputmand"  tabindex="" />
>>> 
>>> 
>>>
>>> 
>>> >> styleClass="inputmand" tabindex="" />
>>> 
>>> 
>>>
>>> 
>>>
>>> while submitting the form I am getting an exception like this.
>>>
>>>
>>> 2004-02-26 18:17:08,133 [ExecuteThread: '12' for queue:
>>> 'weblogic.kernel.Default'] DEBUG org.apache.
>>> commons.beanutils.BeanUtils -
>>> setProperty([EMAIL PROTECTED], orgVO.a
>>> ddresses[0].company1, [get populated])
>>> getAddrVOAL-->[]
>>>
>>> <[ServletContext(id=1735147,name=gbs,conte
>>> xt-path=/gbs)] Root cause of ServletException.
>>> java.lang.ArrayIndexOutOfBoundsException
>>> at java.lang.reflect.Array.get(Native Method)
>>> at
>>> org.apache.commons.beanutils.PropertyUtils.getIndexedProperty(Propert
>>> y
>>> U
>>> tils.
>>> java:525)
>>> at
>>> org.apache.commons.beanutils.PropertyUtils.getIndexedProperty(Propert 
>>> y
>>> U
>>> tils.
>>> java:428)
>>> at
>>> org.apache.commons.beanutils.PropertyUtils.getNestedProperty(Property 
>>> U
>>> t
>>> ils.j
>>> ava:770)
>>> at
>>> org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils. 
>>> j
>>> a
>>> va:80
>>> 1)
>>> at
>>> org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java: 
>>> 881)
>>> at
>>> org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
>>> at
>>> org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1252)
>>>

RE: Problem using split() method in java script

2004-02-16 Thread McCormack, Chris
Ahh yes I see how this relates to struts...

subscribe to a JS newsgroup
google is your friend

Chris

-Original Message-
From: Ramachandran [mailto:[EMAIL PROTECTED]
Sent: 16 February 2004 07:52
To: Struts Users Mailing List
Subject: Problem using split() method in java script


Hi,

 I am facing problem in java script, using spilt() methos.

 Here i want to split the strings using '\' this separator. Here it is
separating the strings. Bu it is displayed in the zeroth index array. But i
want to display in each index.

But not Working. Any body having idea please maile me.

This is my code.

 var where_is_mytool="home\mytool\mytool.cgi";
 var mytool_array=where_is_mytool.split("\\");
 alert(mytool_array[0]+" second "+mytool_array[1]+" third
"+mytool_array[2]);


-
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]



RE: corporate hierarchy

2004-02-15 Thread McCormack, Chris
Write it using DHTML.

I have written a few things that sound similar to what you are trying to achieve all 
using DHTML.

Populate your divs using jstl and style them nicely using css.
Write a few simple reusable javascript functions to show/hide the divs and you are 
away.

If you need any more help etc mail me off list.

Chris

-Original Message-
From: Christian Bollmeyer [mailto:[EMAIL PROTECTED]
Sent: 13 February 2004 21:08
To: Struts Users Mailing List
Subject: Re: corporate hierarchy


On Friday 13 February 2004 19:59, sean jones wrote:
> Is there any struts tricks or tips that would help
>
> display an orgranizational tree
>
> i have a 17 level tree that i want to represent as a tree
> on a jsp page.  i want to use "+", "-"  images to expand and
> collapse the tree.
>
> is there a java class avalable to do this also.
>
> anyone any ideas.

This depends on the amount of data to be displayed and
the level of responsiveness you want. If we're really
talking about a *17 level* thing here, first check if you
really want to confront the user with such a beast.
Not only that it will clutter up the entire screen, the
user will inevitably get dizzy and feel lost beyond
- let's say - subnodes at level 7 or 8, at the maximum.
Then, most of them will call the support line,
and the really wicked ones may finally send Evil
Clowns after you or whatever. In such cases,
it's better to provide a wizard or something else
to avoid such infavorable circumstances.

That said, some things coming instantly to
my mind when it comes to Trees; there
are several other implemenations around:

1. You can use the  tags and
use recursion. As was said, there is a
fine manual on Arron Bates's website
(www.keyboardmonkey.com) explaining
everything step-by-step. The advantage
of this is that you understand things
after you completed the tutorial, plus
you have your own, 'home-built' tree
you can refine later on. This is proba-
bly what I would choose if I had to
do a TreeView in Struts.

2. There's a project around named
 which, among other
things, provides a TreeView control,
among other things. Check out

http://struts.application-servers.com/doc/tags/treeview.html

to find out more. Don't know if it
can handle 17 levels as well, but
what they provide looks promising.
Never got wise from their license
policy terms for commercial applications,
though, so I never looked further into this.

3. Find a Javascript implementation
and populate it via Struts and
JSP. JavaScript has the advantage
of being really responsive
(serverside tree implementations
always require a roundtrip to
the server upon each click, and the
entire page has to be rebuilt),
but it's not always available
on the client and a major pain
in the *** if I were asked. I
avoid it where I can, but it
definitely has its advantages.
Note that if you choose this
approach, you have to initially
populate *everything* when
building the Tree, but it will
be faster afterwards. Still
don't know if JavaScript can
handle 17 levels. But you
can always 'reuse' the icons,
at least. Presenting a 'plus' sign,
therefore, should be considered
as one of your lowest-priority 
problems. 

> Thanks Sean

Just my 2 cents, and HTH,
-- Chris.

-
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]



RE: DataSource help

2004-02-13 Thread McCormack, Chris
put a trigger on the data table you are selecting from, that inserts a timestamp in to 
a timestamplog table, when a select is done on your data table. Or create a view and 
put a trigger on that, to preserve the functionality of the data table (ie not have a 
trigger fire when you are just doing dev etc.)

-Original Message-
From: Raman [mailto:[EMAIL PROTECTED]
Sent: 13 February 2004 12:06
To: Struts Users Mailing List
Subject: DataSource help


Hi All,

I have a problem regarding the DB connection. In my application i want to log the 
session time for each session. For that I am using the Session Listner in web.xml 
somthing like: 
actions.SessionListenerAction

My problem is:

In my struts-config.xml file I have  defined for my 
database. 
what I am thinking is to call Insert query in 
public void sessionCreated(HttpSessionEvent event) { } 

and update query public void sessionDestroyed(HttpSessionEvent event) {} function

But my problem is how to get and pass the DataSource that refers to my DB defined in 
 tag of struts-conf file to my DAO file.

WHAT I TRIED IS:
   String name = event.getName();
   HttpSession session = event.getSession();
   ServletContext sc = session.getServletContext();   
   try{   
   DataSource dataSource =(DataSource)sc.getAttribute(Action.DATA_SOURCE_KEY);   
   UpdateSessionListenerDAO dao= new  UpdateSessionListenerDAO(dataSource);
   dao.insertSessionLogging(session.getId().toString());
   }catch(Exception e){
System.out.println("ERROR " + e.getMessage());
   }

But this is not working I was not able to figure out the reason.

Pls help.. 

-- Raman

***
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]



RE: [OT] Sending email from struts

2004-02-12 Thread McCormack, Chris
On our sites we are using taglibs-mailer which is very simple and sends mail using 
tags embedded in a jsp. This makes it very simple to have the jsp render out some 
dynamic bean information in to the page and have the contents of that page be mailed 
as the mail body.

Chris

-Original Message-
From: Matt Bathje [mailto:[EMAIL PROTECTED]
Sent: 11 February 2004 16:03
To: strutslist
Subject: [OT] Sending email from struts


Hi all.

This is kind of off topic as it is not really struts related, but somebody
here would probably have the answer.

We have our application sending emails to users at some points and it is
working fine. The problem is that we have the email message hardcoded into
the Java, which we would like to avoid either by storing the message in
application.properties or our database. This would be easy, except all of
the messages contain user-specific information like their name or phone
number or order id or something like that.

Anybody have any ideas (or links to programs!) that can read in an email,
replace the information it needs to from the db, and send that to the user.

I could obviously write something myself to do it, but wouldn't want to
reinvent the wheel.

Turns out this is hard to search for too - email is not a search term that
makes things easy.

Thanks,
Matt Bathje


-
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]



RE: web spider

2004-02-05 Thread McCormack, Chris
I think the code you are waiting to see (as am I!) is from Tomeu Vizoso :)

Chris

-Original Message-
From: Michael McGrady [mailto:[EMAIL PROTECTED]
Sent: 05 February 2004 14:33
To: Struts Users Mailing List
Subject: RE: web spider


Hello, Chris,

I would love to see this code.  Thanks a million!

Michael

At 01:19 AM 2/5/2004, you wrote:
>"McCormack, Chris" <[EMAIL PROTECTED]>



-
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]



RE: web spider

2004-02-05 Thread McCormack, Chris
I would be interested to see how you have set it up :)

thanks
Chris

-Original Message-
From: Tomeu Vizoso [mailto:[EMAIL PROTECTED]
Sent: 30 January 2004 10:03
To: 'Struts Users Mailing List'
Subject: RE: web spider


Hi, I'm using a custom solution using Websphinx as the spider and Lucene
as the indexing and search engine. This results in an all-java solution
that can be deployed in any hosting provider. It requires very very
little coding, request if you want to see our code.

I'm right now having some problems with session handling, but don't
expect to be real show-stoppers.

Regards,

Tomeu Vizoso

-Mensagem original-
De: Franck Lefebure [mailto:[EMAIL PROTECTED] 
Enviada: quinta-feira, 22 de Janeiro de 2004 16:34
Para: Struts Users Mailing List
Assunto: Re: web spider


Le Thursday, January 22, 2004 11:15 AM,
McCormack, Chris <[EMAIL PROTECTED]> m'a, d'une plume
avisee, ecrit:

> Hello all
> Has anyone tried to successfully spider their struts website using any

> open-source/free spider app ?
>
No problem with htdig
-- 
Franck Lefebure


-
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]


***
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]



RE: {ICICICARE#005-216-320}Can i access session or request object from a bean which is Actionform variable

2004-01-29 Thread McCormack, Chris
Can the moderator of this list please remove this user, or the owner of the email 
[EMAIL PROTECTED] please stop spamming this list. 

-Original Message-
From: NRI Cell [mailto:[EMAIL PROTECTED]
Sent: 29 January 2004 12:25
To: Struts Users Mailing List
Subject:  {ICICICARE#005-216-320}Can i access session or request
object from a bean which is Actionform variable


Dear Sir / Madam,Thank you for writing to [EMAIL PROTECTED] We confirm receipt of your 
mail and assure you of a response shortly.To help us serve you better, we would 
request you to kindly mention your account number or any reference number you may have 
in your future correspondence.  Kindly visit our website www.icicibank.com\nri to know 
more on our products and services.  With regards,Customer Care 
ICICI Bank Limited This communication being sent by ICICI Bank Ltd. is privileged and 
confidential, and is directed to and for the use of the addressee only. If this 
message reaches anyone other than the intended recipient, we request the reader not to 
reproduce, copy, disseminate or in any manner distribute it. We further request such 
recipient to notify us immediately by return email and delete the original message. 
ICICI Bank Ltd. does not guarantee the security of any information transmitted 
electronically and is not liable for the proper, timely and complete transmission 
thereof. Before opening any attachments please check them for viruses and defects.


***
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]



RE: Regarding Server Side Validation in Struts

2004-01-29 Thread McCormack, Chris
http://www.developer.com/java/other/article.php/2214681

-Original Message-
From: Ramachandran [mailto:[EMAIL PROTECTED]
Sent: 29 January 2004 12:02
To: Struts Users Mailing List
Subject: Regarding Server Side Validation in Struts



Hi all,

 Can any one can tell, how to perform server side validation using struts. 
For example there is foem called departments, here depname is unique. How can i 
perform here.

 I know the logic at all. But is there any validator here.Can any one have 
any idea. Please mail regarding this...

Thanks,
Ram


-
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]



RE: {ICICICARE#005-212-999}redirect=true & ActionErrors

2004-01-29 Thread McCormack, Chris
can you remove this auto responding spammer pls

-Original Message-
From: NRI Cell [mailto:[EMAIL PROTECTED]
Sent: 29 January 2004 10:17
To: Struts Users Mailing List
Subject:  {ICICICARE#005-212-999}redirect=true & ActionErrors


Dear Sir / Madam,Thank you for writing to [EMAIL PROTECTED] We confirm receipt of your 
mail and assure you of a response shortly.To help us serve you better, we would 
request you to kindly mention your account number or any reference number you may have 
in your future correspondence.  Kindly visit our website www.icicibank.com\nri to know 
more on our products and services.  With regards,Customer Care 
ICICI Bank Limited This communication being sent by ICICI Bank Ltd. is privileged and 
confidential, and is directed to and for the use of the addressee only. If this 
message reaches anyone other than the intended recipient, we request the reader not to 
reproduce, copy, disseminate or in any manner distribute it. We further request such 
recipient to notify us immediately by return email and delete the original message. 
ICICI Bank Ltd. does not guarantee the security of any information transmitted 
electronically and is not liable for the proper, timely and complete transmission 
thereof. Before opening any attachments please check them for viruses and defects.


***
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]



RE: White space problem

2004-01-28 Thread McCormack, Chris
Thanks James the first solution worked fine.

Chris

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]
Sent: 28 January 2004 13:04
To: Struts Users Mailing List
Subject: Re: White space problem


Yes, same as with any tag or scriptlet.



   



Of course, you could always use a servlet filter and replace all "\n+" with
"/n".


--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017 (cell)
AIM: jmitchtx
MSN: [EMAIL PROTECTED]



- Original Message -
From: "McCormack, Chris" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, January 28, 2004 5:19 AM
Subject: White space problem



Hi all
I am using struts with jstl. I have a problem that is a bit annoying.
In the navigation jsp on one of my sites I have 2 nested c:forEach tags that
have c:if tags inside them. If a bean element meets the c:if condition
it gets c:out to the page, if not the loop skips over it until all the outer
c:forEach beans have been looped.

The problem is however when the c:if condition is not met a white line is
written out by the c:forEach (ie one white line for each iteration
regardless of the c:if condition). This ends up with a MASS of white space
on the page. Is there anyway to stop the c:forEach writing out the white
space ?

tia
Chris

***
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]


-
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]



White space problem

2004-01-28 Thread McCormack, Chris

Hi all
I am using struts with jstl. I have a problem that is a bit annoying. 
In the navigation jsp on one of my sites I have 2 nested c:forEach tags that have c:if 
tags inside them. If a bean element meets the c:if condition 
it gets c:out to the page, if not the loop skips over it until all the outer c:forEach 
beans have been looped.

The problem is however when the c:if condition is not met a white line is written out 
by the c:forEach (ie one white line for each iteration regardless of the c:if 
condition). This ends up with a MASS of white space on the page. Is there anyway to 
stop the c:forEach writing out the white space ?

tia
Chris

***
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]



RE: Session Problem

2004-01-27 Thread McCormack, Chris
put
<[EMAIL PROTECTED] contentType="text/html" session="false"%>
or
<%@ page session="false" %>

In the header of your jsp that you dont want caching.

Chris

-Original Message-
From: VERMA, SANJEEV (SBCSI) [mailto:[EMAIL PROTECTED]
Sent: 26 January 2004 18:33
To: 'Struts Users Mailing List'
Subject: RE: Session Problem


Initially I thought the same way, but it is happening between different
Machines. Looks like this is some kind of caching problem but couldn't
figure it out where.

-Original Message-
From: Robert Nocera [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 26, 2004 12:40 PM
To: 'Struts Users Mailing List'
Subject: RE: Session Problem


If there is no server activity, is it possible the page you are looking at
is cached?

-Rob

-Original Message-
From: VERMA, SANJEEV (SBCSI) [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 26, 2004 12:24 PM
To: [EMAIL PROTECTED]
Subject: Re: Session Problem

I put the topic as "Re: Session Problem" because it may be related with same
problem.

In my application I am using Struts 1.1 and WebSphere 5.0. 

First time when I login into the application it works fine.
The problem starts after that, when I open a new browser not by Ctrl+N or
File-->New-->Window, but I start a new Browser from my "Windows 2000 Start"
randomly I found myself auto logged in to my application and it happens like
1 in 10 times only.
The strange thing is even when I logged-in on my machine, if I open the
login page from other's machine also the same problem happens. Irrespective
of from where I go to login page randomly I found myself logged-in.
It is not like it happens just with my ID, it happens with anybody's ID.
And whenever that auto-login happens , it doesn't show any activity on
server(I check log files for that).

It is really a weird problem, if anybody has faced similar kind of problem,
please let me know.
By the way the WebSphere 5.0 is on AIX box.

Your help will be appreciated.
Regards
Sanjeev

-
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]


***
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]



RE: Convert JSP to static HTML...

2004-01-26 Thread McCormack, Chris
I haven't tried this bit of code (modified it from something else) but it should work.
Just add in the file writing part and you are away.

try {
StringBuffer urlString = new StringBuffer("http://my.server.co.uk";);
urlString.append("/myapp/dosomething.do");

URL url = new URL(urlString.toString());
String savedHtml = "";

BufferedInputStream ins = new BufferedInputStream(url.openStream());
BufferedReader br = new BufferedReader(new InputStreamReader(ins));
StringBuffer sb = new StringBuffer();
String line = br.readLine();
while (line != null) {
sb.append(line);
sb.append("\n");
line = br.readLine();
}
savedHtml = sb.toString();
}
catch(MalformedURLException mue) {
Log.fatal("url exception :"+mue.getMessage());
}
catch(IOException ioe) {
Log.fatal("io error :"+ioe.getMessage());
}

//write html out to a file here

Chris

-Original Message-
From: Manfred Wolff [mailto:[EMAIL PROTECTED]
Sent: 26 January 2004 14:26
To: Struts Users Mailing List
Subject: Re: Convert JSP to static HTML...


Jacob.

*Simple*: When you browse through your app right mouse click "View Page 
Source" and per copy and paste to a html file.

*More difficult*:

That is possible to do automatic. You need a little program that 
accessed the side via an URL

http://my.server/myapp/dosomething.do

and gets the http-reqeust to save it into a file. I have written such 
thing in delphi to grab websites and get some informations, I think in 
java may that not so bad.

Manfred

Jacob Wilson wrote:

>Hi All...
> 
>I have a specific requirement in my project... I want to convert the JSP pages to 
>static html pages and save them in a local directory... How do I achieve this 
>functionality??? Any suggestions appreciated.
> 
>Thanks much.
> 
>-Jacob
>
>
>
>-
>Do you Yahoo!?
>Yahoo! SiteBuilder - Free web site building tool. Try it!
>  
>

-- 
===
Dipl.-Inf. Manfred Wolff
---
phone neusta  : +49 421 20696-27
phone : +49 421 534522
mobil : +49 178 49 18 434
eFax  : +49 1212 6 626 63 965 33
---

Diese E-Mail enthält möglicherweise vertrauliche und/oder rechtlich geschützte 
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich 
erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese 
Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht 
gestattet.

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



-
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]



Cancel button causing problems in the RequestProcessor

2004-01-23 Thread Kimpton, C (Chris)
Hello All,

I am struts newbie - so this might be a config issue, but..

I have an ActionForm and Action for user input, with a html:cancel
button on it.

If the user hits the submit button, things work fine - the form is
validated, populated and passed to my action.

I thought my cancel was working before - it did not do the validation
and the isCancelled returned true, but now it is failing in the
RequestProcessor.populate - its trying to find a bean property related
to the cancel button:


StandardWrapperValve[action]: Servlet.service() for servlet action threw
exception
java.lang.IllegalArgumentException: Null property value for 'org'
java.lang.IllegalArgumentException: Null property value for 'org'
at
org.apache.commons.beanutils.PropertyUtils.getNestedProperty(PropertyUti
ls.java:755)
at
org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.jav
a:801)
at
org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:881)
at
org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1252)
at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcess
or.java:821)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
254)
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:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.j
ava:284)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:204)

at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:256)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:151)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
64)



I'd have throught that the check for the cancel would happen before the
populate so that it is short circuited?

Or should I be using prefixes/suffixes to get round this?

Does this sound correct?

Thanks for any tips,
Chris

_

This email (including any attachments to it) is confidential, legally privileged, 
subject to copyright and is sent for the personal attention of the intended recipient 
only. If you have received this email in error, please advise us immediately and 
delete it. You are notified that disclosing, copying, distributing or taking any 
action in reliance on the contents of this information is strictly prohibited. 
Although we have taken reasonable precautions to ensure no viruses are present in this 
email, we cannot accept responsibility for any loss or damage arising from the viruses 
in this email or attachments. We exclude any liability for the content of this email, 
or for the consequences of any actions taken on the basis of the information provided 
in this email or its attachments, unless that information is subsequently confirmed in 
writing. If this email contains an offer, that should be considered as an invitation 
to treat.
_


RE: Help: messagesPresent = true if JSP is served from ActionServlet

2004-01-22 Thread Chris Wall
Hey Rick.  Thanks for your reply.

I found the same behavior to be true in Struts' sample validation example
(struts-validator.war) contained w/in the Strut 1.1 distribution.  If you go
to http://localhost:7001/struts-validator/registration.do the "Validation
Error" section is displayed inappropriately.  If you go to
http://localhost:7001/struts-validator/registration.jsp, the JSP is rendered
cleanly ready for user input.

See response to questions/comments below...

-Original Message-
From: Richard Hightower [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 22, 2004 9:56 AM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: Help: messagesPresent = true if JSP is served from
ActionServlet

comments below


Rick Hightower
Developer

Struts/J2EE training -- http://www.arc-mind.com/strutsCourse.htm

Struts/J2EE consulting --
http://www.arc-mind.com/consulting.htm#StrutsMentoring

-Original Message-----
From: Chris Wall [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 22, 2004 10:22 AM
To: [EMAIL PROTECTED]
Subject: Help: messagesPresent = true if JSP is served from
ActionServlet

Hey there.

Noticed that messagesPresent is TRUE when a JSP is served from an
ActionServlet.  This causes logic within  to be executed-
for example validation errors are inappropriately displayed.  This works
fine if the JSP is render directly, but a common practice is for all web
navigation to flow in and out of ActionServlets.


 I have never seen this happen before. How long have you been using
Struts? (This is not a jab but a serious question.)
[CHRIS] About 1.5 years now.  Implemented a Struts 1.0 application.
Upgrading that application to Struts 1.1.  Included in that is upgrading the
validation to use Strut's XML-based validation.

 MVC/Model 2 requires that requests go throught the controller, and the
controller selects the next view.
[CHRIS]  Yes, we follow this pattern.  That's why I'm curious as to why
 is true when a controller (LookupDispatchAction in my
case) renders a JSP.  Seems like I'm not breaking new ground here.

*** What are the error messages?
[CHRIS] There are no Struts error messages, per se.  The errors displayed
are validation errors.  When the page first loads, since all form fields are
blank, validation errors shown are "blah is required".

*** Which class in the system saves those error messages in the first place?
an ActionForm? an Action? a Custom RequestProcessor?
[CHRIS] Dunno for sure.  This is all handled within the framework.  I would
assume that validation handles instantiating and populating ActionMessages
and ActionErrors and attaching them to the request.

*** Typically only ActionForms and Actions genereate error messages.
[CHRIS] My situation is a form within a JSP, ValidatorForm, and
LookupDispatchAction working together.

*** Suggestions:
*** Look at the message. Look in the resource bundle. Find the key
associated with the message. Grep your source for the key to see who is
putting the message in.
[CHRIS] The validation error messages being displayed are the error messages
associated with the default error tags within ApplicationResources.  For
example "errors.required".


I'm assuming that this is happening because the request contains either
ActionMessages or ActionErrors or both.  I tried setting both to null within
the ActionServer before rendering the JSP (saveMessages(request, null); and
saveErrors(request, null);), but that did not work.  Argh.


*** Explain this. What is the ActionServer?
[CHRIS] The ActionServlet is actually a LookupDispatchAction.  I guess I
meant to say just Action class.  The struts-validator example's
RegistrationAction extends Action.  The struts-validator example produces
the same behavior.

*** Do you mean you do this in an Action? RequestProcessor? or did you
override the ActionServlet?
[CHRIS] We extend LookupDispatchAction and Action only.

*** When do you do this?


How can I resolve this?  Thanks.

*** I gave some pointers above. Turn on logging to a high level using
commons logging.
[CHRIS] The contents of the request are as follows:
weblogic.servlet.network_channel.port=7001
weblogic.servlet.network_channel.sslport=7002
org.apache.struts.action.MESSAGE=org.apache.struts.util.PropertyMessageResou
[EMAIL PROTECTED]
[EMAIL PROTECTED]
org.apache.struts.action.mapping.instance=ActionConfig[path=/register,input=
/Register.jsp,name=registrationBean,paramete
r=action,scope=request,type=com.bea.medrec.actions.RegisterAction
[EMAIL PROTECTED]
org.apache.struts.action.MODULE=org.apache.struts.config.impl.ModuleConfigIm
[EMAIL PROTECTED]


- Chris




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



Help: messagesPresent = true if JSP is served from ActionServlet

2004-01-22 Thread Chris Wall
Hey there.

 

Noticed that messagesPresent is TRUE when a JSP is served from an
ActionServlet.  This causes logic within  to be executed-
for example validation errors are inappropriately displayed.  This works
fine if the JSP is render directly, but a common practice is for all web
navigation to flow in and out of ActionServlets.

 

I'm assuming that this is happening because the request contains either
ActionMessages or ActionErrors or both.  I tried setting both to null within
the ActionServer before rendering the JSP (saveMessages(request, null); and
saveErrors(request, null);), but that did not work.  Argh.

 

How can I resolve this?  Thanks.

 

- Chris



web spider

2004-01-22 Thread McCormack, Chris
Hello all
Has anyone tried to successfully spider their struts website using any 
open-source/free spider app ?

I have tried a few that I have found on source-forge and browsed my sites but I was 
wondering if anyone used a particular spider with their struts site that was very good 
!

thanks
Chris

***
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]



[OT]session tracking

2004-01-21 Thread McCormack, Chris

I know there are a lot of experienced people on this list so I wanted to ask if anyone 
had come across a solution to a problem I have been thinking over.

Is there a way to track user sessions, without using cookies when using :
proxy cache -> load balancer -> apache -> random tomcat server(serving the same webapp)

I have thought about a few solutions, and keep arriving at url rewriting, but that 
would mean a large portion of my jsps will need altering. 

Any suggestions ? (Mail me off list if you don't want to reply to an OT post :)  )

thanks
Chris


***
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]



Validation: messagesPresent=true when page is first loaded

2004-01-20 Thread Chris Wall
Hey there.

 

I upgraded my app to use Struts 1.1 validation.  This includes extending
ValidationForm and using validation.xml for field validations.  The problem
I'm running into is that when the register form page is loaded for the first
time, the "Validation Errors" section is being displayed.  For some reason
messagesPresent is true, which means that the request contains either a
ActionMessage or ActionErrors object.  This works fine if my app renders
directly to JSPs, but my app is built so that all requests are handled by
LookupDispatchActions.  So, if a JSP containing field validations is
rendered from an Action, then the request's contents will trigger
messagesPresent be true thus displaying the "Validation Errors" section
inappropriately.

 

How can I resolve this?  Thanks.

 

- Chris

 



Re: handling form based authentication w/ remember-me cookie

2004-01-13 Thread Chris Ruegger
Craig,
Ok fair enough. If the spec says it is undefined, that what is one to do?
Keep in mind I'm trying to do the right thing here and build an application
where people can logon AND I can send them a cookie to remember their user
ID.
What is the propery way to do this under J2EE/Struts? Apparently I'm not
allowed
to intercept calls to j_security_check so I should be doing something else?
That's fine,
lots of web sites do this, how should I be doing it?
Thanks,
Chris

- Original Message -
From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, January 13, 2004 6:16 PM
Subject: Re: handling form based authentication w/ remember-me cookie


> Quoting [EMAIL PROTECTED]:
>
> >
> > Are Servlet filters supposed to be called for both GET and POST
> > methods? They seem to be getting called for GETs only on Tomcat 5.
> > -Chris
>
> For filters mapped to ordinary application URLs, the filter should indeed
get
> mapped on both GET and POST methods.  For filters you attempt to put on
> "/j_security_check" you are totally outside the bounds of the servlet
> specification, and the only thing you can assume is that the behavior is
> undefined.
>
> Personally, I consider it a bug that Tomcat 5 invokes filters on this,
even if
> it's just on a GET.
>
> Craig McClanahan
>
>
> >
> >
> > > -Original Message-
> > > From: Parmar, Dipakkumar [mailto:[EMAIL PROTECTED]
> > > Sent: Tuesday, January 13, 2004 03:57 PM
> > > To: 'Struts Users Mailing List'
> > > Subject: RE: handling form based authentication w/ remember-me cookie
> > >
> > > Hi Max,
> > >
> > > I haven't tested it either.  I read it about this in "IBM WebSphere
V5.0
> > > Security handbook (page 64)".
> > >
> > > Regards,
> > > Dipak Parmar
> > >
> > >
> > > -Original Message-
> > > From: Max Cooper [mailto:[EMAIL PROTECTED]
> > > Sent: Monday, January 12, 2004 10:42 PM
> > > To: Struts Users Mailing List; [EMAIL PROTECTED]
> > > Subject: Re: handling form based authentication w/ remember-me cookie
> > >
> > >
> > > Dipak,
> > >
> > > Are you certain that the filter will be invoked on the
/j_security_check
> > > request when container-based security is used? I have not tested this,
but
> > > it would not surprise me to find that some containers do not execute
> > filters
> > > on /j_security_check requests. I don't know if the Servlet Spec says
> > > anything about this case.
> > >
> > > Chris,
> > >
> > > Another alternative to the original problem of security with "remember
me"
> > > functionality will be available soon. A patch has been submitted to my
> > > SecurityFilter project (http://www.securityfilter.org/) to support
> > "remember
> > > me" functionality. The integration should be complete soon, and a beta
> > > release will be made available once the integration is complete.
> > > SecurityFilter works very much like container-managed security
otherwise,
> > > including the configuration format (except that you declare the
> > constraints
> > > in a separate config file rather than web.xml).
> > >
> > > -Max
> > >
> > > - Original Message -
> > > From: "Parmar, Dipakkumar" <[EMAIL PROTECTED]>
> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > Sent: Monday, January 12, 2004 7:43 AM
> > > Subject: RE: handling form based authentication w/ remember-me cookie
> > >
> > >
> > > > Hi Chris,
> > > >
> > > > You can do this using Servlet Filter.  What you need to do is write
> > > > postLoginFilter that maps to the j_security_check url.
> > > >
> > > > In doFilter method, you can write your post login code after
> > > > j_security_check done is work.
> > > >
> > > > Something like:
> > > > public void doFilter(.)
> > > >
> > > > // let the j_security_check to do it's work
> > > > chain.doFilter(request, response)
> > > >
> > > > // do you post login stuff here
> > > >
> > > > Regards,
> > > > Dipak Parmar
> > > >
> > > >
> > > >
> > > &g

handling form based authentication w/ remember-me cookie

2004-01-12 Thread Chris Ruegger
I am using Struts and building a logon page to do Form-based authentication
under Tomcat. I want to also have a checkbox for the user to check that says
"remember me" so that I can send them a cookie.  I'm not sure how to "intercept"
the form values because I have to post to j_security_check. How can I get the
check-box value, set up the cookie, and send them to j_security_check with
struts?

Thanks


Re: Including multiple servlets from a jsp page.[Now: Tiles Help]

2003-11-18 Thread Chris Blackburn
Thank you very much! That was exactly what I needed. Now I just need a 
little advice on working with Tiles.
Do I need to have a tiles definition for every single different view?

I will give a small example.


 
 
 


 
 


 
 

This will give me the look for my front page. But lets say once you log 
in, you have a different 'left.bar'. So I would have to add:


 


 


 

That seems like a ton of work for each new view. If my 'mainsection' is 
my content area, that means I need to add 2 definitions for each new 
content page? Is there a way to dynamically insert a page as the 
'mainsection' Am I missing something here?

Thanks again,

Chris

Hubert Rabago wrote:

Tiles is one way to do it.  Take a look at the Tiles Controller.
http://jakarta.apache.org/struts/api/org/apache/struts/tiles/Controller.html
Check out http://www.theserverside.com/resources/article.jsp?l=Tiles101 for some
explanation on it.
--- Chris Blackburn <[EMAIL PROTECTED]> wrote:
 

I am trying to build a web page that will have multiple dynamic content
fed from multiple servlets. I thought I could just do something like:
<-- index.jsp -->





<-- end -->
What I would like to happen is have the struts servlet be run, and have
the resulting jsp page (defined in the  section of my
struts-config.xml) be "imported" into that spot. This works just fine if
there is only one servlet being called, but fails if there are more. The
error is "Cannot forward after result has been committed".
What do I need to do? Do I need to look at something like tiles? Any help,
or references to some help would be great.
Thanks,

Chris

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



__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
-
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]


Including multiple servlets from a jsp page.

2003-11-17 Thread Chris Blackburn
I am trying to build a web page that will have multiple dynamic content
fed from multiple servlets. I thought I could just do something like:

<-- index.jsp -->






<-- end -->
What I would like to happen is have the struts servlet be run, and have
the resulting jsp page (defined in the  section of my
struts-config.xml) be "imported" into that spot. This works just fine if
there is only one servlet being called, but fails if there are more. The
error is "Cannot forward after result has been committed".

What do I need to do? Do I need to look at something like tiles? Any help,
or references to some help would be great.

Thanks,

Chris

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



Re: Migration of a servlet that uses pathinfo to struts

2003-11-17 Thread Chris Searle
>>>>> "F." == Firat TIRYAKI <[EMAIL PROTECTED]> writes:

F.> I think you should manage this situation in the web.xml, don't
F.> include it in struts action servlet, just run it stand alone.

This is of course possible.

The only problem is that if the servlet is provided a directory then
it should produce a page with file and sub-dir links in it. I had
hoped that it would be possible to use the same tiles files for this
as the rest of the system - and these require that we go thru a
customized action servlet (set's up a user based menu tile amongst
other things).

Regards

-- 
Chris Searle


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



Migration of a servlet that uses pathinfo to struts

2003-11-17 Thread Chris Searle

We have a old servlet that is used to expose a set of directories
(with various checks for access etc).

This is based on the use of request.getPathInfo() and the servlet has
a servlet mapping of /files/*

  http://server/app/files/path/to/file

returns a path info of /files/path/to/file

Now - the app is being migrated to the struts framework - and I'm not
sure how best to approach this.

I have tried creating a struts action with a path="files/*" and this
is working for:

  http://server/app/do/files/filename.ext

Pathinfo read from the request in the action execute method contains
/files/filename.ext

However

  http://server/app/do/files/path/filename.ext

returns a 500 error and

2003-11-17 10:57:59,447 ERROR [org.apache.struts.action.RequestProcessor]
 Invalid path /files/path/ was requested

in the log.

I know that I can switch over to using a request parameter but I'd
like to avoid that if possible.

Is this possible? 

I did try some searching in the archives - but I guess I'm not good at
phrasing the search string - so - any links to a previous answer would
also be great.

Many thanks.

-- 
Chris Searle


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



Re: Iterating List of Lists

2003-10-30 Thread Chris Gastin
Subject: Re: Iterating List of Lists


> Try like this
>
> 
> 
> 
> 
> 
> 
> 
> -
> 
> 
>
> 
> 
> 
> 
>
>
> >From: "Chris Gastin" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Subject: Iterating List of Lists
> >Date: Thu, 30 Oct 2003 21:55:53 -0600
> >
> >I have List of Lists of DataObjects. I want to iterate through that List
of
> >Lists to get access to the Data Object, where I will print the values of
> >the
> >attributes on the data object. I have the outer loop working, but I don't
> >understand how to get the Data out of the list in the inner loop.
> >
> >This is my latest attempt:
> >
> >
> > 
> >  -
> >
> > 
> >
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> _
> Protect your PC - get McAfee.com VirusScan Online
> http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
>
>
> -
> 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]



Iterating List of Lists

2003-10-30 Thread Chris Gastin
I have List of Lists of DataObjects. I want to iterate through that List of
Lists to get access to the Data Object, where I will print the values of the
attributes on the data object. I have the outer loop working, but I don't
understand how to get the Data out of the list in the inner loop.

This is my latest attempt:



 -





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



Re: struts-el and messages

2003-10-17 Thread Chris Searle
>>>>> "Chris" == Chris Searle <[EMAIL PROTECTED]> writes:
> And the message code JSP:

>   id="message" message="true">  value="${messsge}"/> 
> 


> Nothing displays.

Sent that a bit too fast.

Think that :



would benefit by being:



:-)

-- 
Chris Searle
[EMAIL PROTECTED]


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



Re: struts-el and messages

2003-10-17 Thread Chris Searle
>>>>> "Steve" == Steve Raeburn <[EMAIL PROTECTED]> writes:

> The nightly build has a method that allows you to store
> messages in the session.  They are automatically removed
> after being displayed.

> Action: protected void saveMessages(HttpSession session,
> ActionMessages messages)

Looks interesting (thinking about it - yes - we only need messages and
not errors after a redirect).

Just downloaded the nightly and installed it.

ActionMessages messages = new ActionMessages();

messages.add(ActionMessages.GLOBAL_MESSAGE,
 new ActionMessage("message.login.succeeded"));

saveMessages(session, messages);

Compiles and runs OK.

And the message code JSP:


  

  



Nothing displays.

Does this have to change to use the session messges object? 


So - summary:

1) Errors are working (request scope)

2) Messages are not working (session scope)

with the nightly dated 16.10.2003.

-- 
Chris Searle
[EMAIL PROTECTED]


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



Re: struts-el and messages

2003-10-17 Thread Chris Searle
>>>>> "Chris" == Chris Searle <[EMAIL PROTECTED]> writes:

> Had the problem with using the html:messages with struts-el
> from the 1.1RC1 build (NullPointerException) - so I've just
> upgraded to 1.1 (thought I'd already done so).

> Now - I get no exception - but I get no message either.

Got it. The forward was set redirect="true" so of course the messages
disappeared.

However - we do have a couple of (odd) places where a redirect is
desired but keeping the messages - is this possible? Can they be
propagated over a redirect by use of session or similar?

-- 
Chris Searle
[EMAIL PROTECTED]


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



struts-el and messages

2003-10-17 Thread Chris Searle

OK,

Had the problem with using the html:messages with struts-el from the
1.1RC1 build (NullPointerException) - so I've just upgraded to 1.1
(thought I'd already done so).

Now - I get no exception - but I get no message either.

The servlet code:


ActionErrors errors = new ActionErrors();

errors.add(ActionErrors.GLOBAL_ERROR,
   new ActionError("message.login.failed"));

saveErrors(request, errors);

forward=mapping.findForward("loginfailed");

And in the jsp (note - this is using tiles - so the rest of the
tags ( etc) are not in this file:

<%@ taglib uri="/struts-html-el.tld" prefix="html"%>
<%@ taglib uri="/struts-logic-el.tld" prefix="logic"%>
<%@ taglib uri="/c.tld" prefix="c"%>


  

  



I am getting sent to the loginfailed mapping - but the message is not
displayed - no  tags in the HTML at all.

It must be something stupid on my part - this looks to me to be the
same as examples out on the net and in the docs.

Any hints welcome :-)

-- 
Chris Searle
[EMAIL PROTECTED]


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



Re: Same JSP for view and edit

2003-09-30 Thread Chris Gastin
Alun,
I have the same issue, but currently Struts does not support this feature,
and I don't know if they will. I might get blasted for the next few
statements, but I have seen some people extend the the struts custom tag to
do the same thing you are indicating. I am not saying it is the best way to
go.

For example you have the Struts class called
org.apache.struts.taglib.html.TextTag. I have seen an implmentation where
the a developer created new tag library called MyTextTag where it extended
the the Strut org.apache.struts.taglib.html.TextTag class, and added a
boolean parameter called editable. If this editable parameter was set to
true the the doStartTag() method  would call super.doStartTag(), and if it
was false it would print the value.

I don't know if this is the best way togo, but it is one option for you.

Chris Gastin


- Original Message - 
From: "Coppack Alun" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 30, 2003 9:05 PM
Subject: Same JSP for view and edit


I want to use a single JSP for view and edit functionality.

I have no problems using the one page for edit and add functionality (and a
single action as well) as these both require input fields. The issue with
view is that I don't want input fields, I only want labels/text but I want
to display the same information that would be displayed on an edit page.

It seems that I have a lot of duplication having one jsp with bean:write
fields for the view and another with the same fields but inside html:form
and html:input tags for the edit functionality.

I thought maybe it would be possible using a custom tag library that can
dynamically modify the jsp based on a request parameter.

Any other thoughts?

Thanks,

Alun





The information in this e-mail together with any attachments is
intended only for the person or entity to which it is addressed
and may contain confidential and/or privileged material.
Any form of review, disclosure, modification, distribution
and/or publication of this e-mail message is prohibited.
If you have received this message in error, you are asked to
inform the sender as quickly as possible and delete this message
and any copies of this message from your computer and/or your
computer system network.



-
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 visual IDE's

2003-08-27 Thread Chris Hall
Just wondering if any of you have used any of the visual IDE's, such as
Struts Studio or Camino.  I'm testing out Struts Studio Community Edition
and I find it quite nice (I'm new to Struts).

What are your opinions on these, or any others, visual IDE's?

Chris Hall



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.512 / Virus Database: 309 - Release Date: 8/19/2003


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



Avoiding jsessionid appending in a redirect

2003-08-14 Thread Chris Boulter
Hi,

Is there a way to insist that a jsessionid _doesn't_ get appended when
returning a redirect from an Action? In my case, I'm redirecting to an
external (non-Java) system and the jsessionid is causing the external system
problems.

I have
return new ActionForward("http://some.external.url/options";, true)
at the end of my execute() method in the Action. This is exactly the URL to
which I want to redirect, but by the time the HTTP response is seen by the
browser, it has a jsessionid on the end:

HTTP/1.1 302 Moved Temporarily
Set-Cookie: .
Location: http://some.external.url/options;jsessionid=foo.bar.com-24%3A3f4
  

I'm using SunONE v6 web server. I've tried adding this to web-apps.xml:

but it makes no difference. Interestingly, I can't reproduce the problem
with TomCat (3.3.1a), although I'm not able to engineer exactly the same
environment using TomCat.

One theory I have is that Struts (or SunONE?) is interpreting my redirect as
the first request to a webapp and, since it doesn't know whether cookies
will be accepted, it is using URL rewriting 'just in case'.

Many thanks,

Chris

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



RE: [ANNOUNCEMENT] Struts 1.1 Final released

2003-06-30 Thread Assenza, Chris
Great news, congrats. :)

-Original Message-
From: Martin Cooper [mailto:[EMAIL PROTECTED]
Sent: Monday, June 30, 2003 3:39 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: [ANNOUNCEMENT] Struts 1.1 Final released


The Struts team is proud, and extremely pleased, to announce the Final
release of Struts 1.1. This release includes significant new
functionality, as well as numerous fixes for bugs which were reported
against the previous release, and supersedes the earlier 1.0.2 version as
the latest official release of Struts from the Apache Software Foundation.

The binary distribution is available at:

http://www.apache.org/dist/jakarta/struts/binaries/

and the source distribution is available at:

http://www.apache.org/dist/jakarta/struts/source/

In addition, the library distribution, which contains updated binaries
without the sample applications, is available at:

http://www.apache.org/dist/jakarta/struts/library/

Details of the changes in this release are available in the Release Notes,
which can be found here:

http://jakarta.apache.org/struts/userGuide/release-notes-1.1.html

--
Martin Cooper

-
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 list archive no longer searchable ???

2003-06-24 Thread Chris Halverson
"Wangenheim, Marc" <[EMAIL PROTECTED]> writes:

> I'm trying to search the struts list archive on
> http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]
> ta.apache.org&count=78806 but it tells me that text searching is
> unavailable for this list ?? I know this used to be searchable. Is there
> another archive that is searchable ?

www.gmane.org
Group gmane.comp.jakarta.struts.user

cdh

-- 
Chris D. Halverson http://www.halverson.org/
YIM/AIM: chrisdhal MSN: [EMAIL PROTECTED]

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



RE: Best practices - help

2003-06-24 Thread Chris Reeves
Something I do often is create a servlet that is loaded at app startup that
loads and populates a variety of objects that I need for general use in its
init method.

If I can't guarantee that users will always use a single point of entry
(never the case in a content-heavy site), I avoid depending on a single
action to do app-wide heavy lifting.

For whatever that's worth - probably a "worst practice"...

Chris

> -Original Message-
> From: Jerry Jalenak [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 24, 2003 8:53 AM
> To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]'
> Subject: RE: Best practices - help
>
>
> This is something we do that works extremely well.  The path on the
>  can point to a set up action where you can initialize /
> populate all of those things that you application needs.  The set
> up action
> would then forward to your first .JSP or tile definition.
>
>
>
> Jerry Jalenak
> Team Lead, Web Publishing
> LabOne, Inc.
> 10101 Renner Blvd.
> Lenexa, KS  66219
> (913) 577-1496
>
> [EMAIL PROTECTED]
>
>
> -Original Message-
> From: Steve Raeburn [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 24, 2003 6:32 AM
> To: Struts Users Mailing List
> Subject: RE: Best practices - help
>
>
> have a welcome jsp page that redirects to your action:
>
> struts-config.xml:
>
>   
> 
>   
>
> index.jsp:
>
>   <%@ taglib uri="http://jakarta.apache.org/struts/tags-logic";
> prefix="logic" %>
>   
>
> (that's the whole jsp file, not just a snippet!)
>
> Steve
>
>
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Sent: June 24, 2003 4:11 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Best practices - help
> >
> >
> > Hi Steve,
> >
> > The problem is that /MyLayer.jsp happens to be my welcome page.
> >
> > This page has to be displayed on start up.How  do I get struts
> process my
> > Action servlet,myAction, in order to give /MyLayer.jsp the
> > content it needs?
> >
> > Thanks
> >
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> This transmission (and any information attached to it) may be
> confidential and is intended solely for the use of the individual
> or entity to which it is addressed. If you are not the intended
> recipient or the person responsible for delivering the
> transmission to the intended recipient, be advised that you have
> received this transmission in error and that any use,
> dissemination, forwarding, printing, or copying of this
> information is strictly prohibited. If you have received this
> transmission in error, please immediately notify LabOne at the
> following email address: [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: apache proxy/form action rewrite issue

2003-06-23 Thread Chris Reeves
Are you referring to the action forward? I can put a redirect=true there,
but it has no effect on rendering the form action. Or am I missing
something?

Chris

> -Original Message-
> From: Dirck Hecking [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 24, 2003 12:44 AM
> To: Struts Users Mailing List
> Subject: RE: apache proxy/form action rewrite issue
>
>
> The magic ingredient here is to set redirect="true" in the
> struts-config.xml for the individual form mappings. -Dirck
>
> -Original Message-
> From: Chris Reeves [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 23, 2003 9:36 PM
> To: Struts User Mailing List
> Subject: apache proxy/form action rewrite issue
>
> I have a web app using struts that runs under tomcat, behind an apache
> server using mod proxy.
>
> My web app works exactly as expected when run directly against tomcat,
> but
> fails when I attempt to use actions behind apache.
>
> For instance, my app (let's call it "thing1") has a form at
> /contact/index.jsp.
>
> The action in the form, after being rewritten by struts, becomes
> "/thing1/contact/contact.do".
>
> Is there any way to get around this? I don't want to throw more rules at
> the
> apache server, and I see no way (short of rewriting the from action with
> javascript on the client) to get rid of the rewriting (at least, I've
> found
> no way thus far).
>
> Any ideas? I've been banging my head on this one for a while now... I
> have
> some apps in struts 1.0 that just don't seem to suffer from this issue.
>
> Thanks!
>
> Chris
>
>
>
>
> -
> 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]



apache proxy/form action rewrite issue

2003-06-23 Thread Chris Reeves
I have a web app using struts that runs under tomcat, behind an apache
server using mod proxy.

My web app works exactly as expected when run directly against tomcat, but
fails when I attempt to use actions behind apache.

For instance, my app (let's call it "thing1") has a form at
/contact/index.jsp.

The action in the form, after being rewritten by struts, becomes
"/thing1/contact/contact.do".

Is there any way to get around this? I don't want to throw more rules at the
apache server, and I see no way (short of rewriting the from action with
javascript on the client) to get rid of the rewriting (at least, I've found
no way thus far).

Any ideas? I've been banging my head on this one for a while now... I have
some apps in struts 1.0 that just don't seem to suffer from this issue.

Thanks!

Chris




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



Re: Struts newsgroup?

2003-06-22 Thread Chris Halverson
Chris Halverson <[EMAIL PROTECTED]> writes:

> That's news.gmane.org. The struts group is
> gmane.comp.jakarta.struts.user.

Oh, I should mention that the gmane "groups" are mail->news gateways
for mailing lists, there's nothing different there than what is on the
mailing list.

cdh

-- 
Chris D. Halverson http://www.halverson.org/
YIM/AIM: chrisdhal MSN: [EMAIL PROTECTED]

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



Re: Struts newsgroup?

2003-06-22 Thread Chris Halverson
Vic Cekvenich <[EMAIL PROTECTED]> writes:

> news.gname.org and news.basebans.com

That's news.gmane.org. The struts group is
gmane.comp.jakarta.struts.user.

cdh

-- 
Chris D. Halverson http://www.halverson.org/
YIM/AIM: chrisdhal MSN: [EMAIL PROTECTED]

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



Re: File size limit on uploads?

2003-06-20 Thread Chris Cooper
Any takers?

- Original Message - 
From: "Chris Cooper" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, June 19, 2003 6:07 PM
Subject: File size limit on uploads?


> Chaps,
>
> I have been having a number of problems with multipart/form-data uploads
of
> files, what I thought had been a problem with the sequence of events (see
my
> previous posts) now seems to be a problem of the size of file being
> uploaded.  I was convinced that at some point I had managed to upload a
70Mb
> file, I think it must have been wishful thinking on my part... :)
>
> The problem is as follows:
>
> 1. I GET a page that displays a form for uploading multiple files.
> 2. The user selects a file and POSTs the form using the submit button.
> 3. If the file seems to be >= 2Mb(ish) the Action receives no form
> parameters or attributes excluding the usual suspects (instances of
> org.apache.struts.action.MESSAGE,
org.apache.struts.action.mapping.instance
> and org.apache.struts.action.MODULE)
> 4. There appears to be no exception being thrown, certainly not on that is
> bubbling up into my code!
> 5. I do not have a maxFileSize set in web.xml
>
> Does anyone have any ideas?
>
> Chris.
>
> -
> 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]



File size limit on uploads?

2003-06-19 Thread Chris Cooper
Chaps,

I have been having a number of problems with multipart/form-data uploads of
files, what I thought had been a problem with the sequence of events (see my
previous posts) now seems to be a problem of the size of file being
uploaded.  I was convinced that at some point I had managed to upload a 70Mb
file, I think it must have been wishful thinking on my part... :)

The problem is as follows:

1. I GET a page that displays a form for uploading multiple files.
2. The user selects a file and POSTs the form using the submit button.
3. If the file seems to be >= 2Mb(ish) the Action receives no form
parameters or attributes excluding the usual suspects (instances of
org.apache.struts.action.MESSAGE, org.apache.struts.action.mapping.instance
and org.apache.struts.action.MODULE)
4. There appears to be no exception being thrown, certainly not on that is
bubbling up into my code!
5. I do not have a maxFileSize set in web.xml

Does anyone have any ideas?

Chris.

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



Re: Nested recursion does not recurse!

2003-06-18 Thread Chris Hatton
I thought I successfully migrated to Struts 1.1 rc2.  I tried again and you 
were right, that did fix the problem.  I did not need the new nested tags 
jar.

Thanks, Arron!

Chris

On Tue, 17 Jun 2003 21:07:23 -0600, Arron Bates  wrote:

All the markup seems fine.

This is very indicative of the older Struts on the newer tomcat. Double 
check
the version of Struts. 4.1.x was broken with recursion and such things, 
but
it's fixed for RC2. As a last resort, try this jar...

keyboardmonkey.com/downloads/km-nested-v2.03.jar

...throw it into the WEB-INF/lib directory. It has just the new nested 
tags,
should show if it's the tag version being out of whack.

Sandeep:
The new version of the tags above, doesn't need a  for 
included
pages. Now all the tags now use the request object to hold their 
references,
all the nested tags just look for that rather than look at the current 
JSP's
tag layout. It just means that as long as the nested structure is started
(nested:form, nested:root, any nested parent tag), any include file can 
just
mark up child tags like normal and it should work.

I probably wouldn't have done this on purpose, but using the request 
object
use was the only way I could get the new tomcat working for some reason.

Arron.



Are you sure you want to include a page that has a
form in it?
nested:form, nested:nest and nested:iterate all start
a new "root" element that nested will use.
Whenever you do a jsp:include always do a

nested:root

at the beginning if you are using nested tags.

sandeep
--- Chris Hatton <[EMAIL PROTECTED]> wrote:
> Hi, everyone,
> > Am I crazy?  I have been trying to get recursion to
> work using Arron's > examples at keyboardmonkey and it absolutely will
> not recurse.  It just > repeats the very first element.
> > Here's what I get displayed in my HTML results:
> --
> USA - productTree
> ALABAMA - productTree.treeNodes[0]
> ALABAMA - productTree.treeNodes[0]
> ALABAMA - productTree.treeNodes[0]
> ALABAMA - productTree.treeNodes[0]
> --
> > Why is the same nested level repeated over and over?
>  Note: my Form class > returns Object arrays (i.e. TreeNode[]
> getTreeNodes()).
> > Here's productNode.jsp:
> > --
> <%@ taglib uri="/WEB-INF/tld/struts-nested.tld"
> prefix="nested" %>
> > 
>   	 -
>  	
> 	 	
>  id="node" property="treeNodes"> 			
> page="productNode.jsp" /> > 		 	
>
> --
> > > And the relevant code from product.jsp:
> --
> 
> .
> 	
> 	
> 		
> 	
> 	
> 
> 
> --
> > I should note that I set isExpanded (i.e.
> "showChildren") to true for the > very top-level element.  I do have 
other
> (non-nested) Struts tags included > in this page outside the 
ProductTree code.
> > I'm on Tomcat 4.1.18, RedHat 8.0, Struts 1.1 rc2,
> jdk 1.3.1_07.
> > Thanks!
> 	Chris Hatton
> 	Tobin International
> > > > -- > Using M2, Opera's revolutionary e-mail client:
> http://www.opera.com/m2/
> >
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
-
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]




--
Chris Hatton
Sr. Software Engineer
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Nested recursion does not recurse!

2003-06-17 Thread Chris Hatton
Hi, everyone,

Am I crazy?  I have been trying to get recursion to work using Arron's 
examples at keyboardmonkey and it absolutely will not recurse.  It just 
repeats the very first element.

Here's what I get displayed in my HTML results:
--
USA - productTree
ALABAMA - productTree.treeNodes[0]
ALABAMA - productTree.treeNodes[0]
ALABAMA - productTree.treeNodes[0]
ALABAMA - productTree.treeNodes[0]
--
Why is the same nested level repeated over and over?  Note: my Form class 
returns Object arrays (i.e. TreeNode[] getTreeNodes()).

Here's productNode.jsp:

--
<%@ taglib uri="/WEB-INF/tld/struts-nested.tld" prefix="nested" %>

 	 -  	
	 		 			 
		 	
  
--

And the relevant code from product.jsp:
--

.







--
I should note that I set isExpanded (i.e. "showChildren") to true for the 
very top-level element.  I do have other (non-nested) Struts tags included 
in this page outside the ProductTree code.

I'm on Tomcat 4.1.18, RedHat 8.0, Struts 1.1 rc2, jdk 1.3.1_07.

Thanks!
Chris Hatton
Tobin International


--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: OT FRIDAY: Take a break with struts users

2003-06-13 Thread Chris Halverson
[EMAIL PROTECTED] writes:

> At least a couple of years ago (the last time I had a need to use AIM) you
> could also setup an AIM-specific account (there is no charge), although the
> account name cannot conflict with an existing AOL screen name.

Correct:

http://my.screenname.aol.com/

cdh

-- 
Chris D. Halverson http://www.halverson.org/
YIM/AIM: chrisdhal MSN: [EMAIL PROTECTED]

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



Re: Login and security checks

2003-06-13 Thread Chris Halverson
[EMAIL PROTECTED] writes:

> there is definitely a need for browsing before creating a user id. How can I
> organize my webapp so that some of the content is available to anybody, but
> other parts can only be done when the user logs in?  This may also be tied
> into when to use http and when to use https.  Any hints or links are
> welcome.

http://securityfilter.sf.net/

cdh

-- 
Chris D. Halverson http://www.halverson.org/
YIM/AIM: chrisdhal MSN: [EMAIL PROTECTED]

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



Re: OT FRIDAY: Take a break with struts users

2003-06-13 Thread Chris Halverson
"James Mitchell" <[EMAIL PROTECTED]> writes:

> I use GAIM when on Linux and regular AIM when on windoze.  Except for sleep,
> family and driving, I'm almost always online.

Then you (and everybody else) should be able to join the "struts"
group on AIM (w/ either gaim or "regular" AIM). There's 2 of us there
now as it's in "test" mode :) It's just a regular AIM group.

cdh

-- 
Chris D. Halverson http://www.halverson.org/
YIM/AIM: chrisdhal MSN: [EMAIL PROTECTED]

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



Re: Newbie Q: Missing parameters with multipart/form-data

2003-06-13 Thread Chris Cooper
Andrew,

Thanks for responding, answers are as follows:

> I havent really grokked what it is your doing here, but can share an
insight
> into multipart forms using struts that you probably already know and
> probably wont help you - but maybe you can relate it to your situation?

I'm basically producing a page with a form to upload 8 files at a time for
processing and upload into a DB.  The user navigates to a target folder
(with a folderId) in a previous page, and is then forwarded to this page.
After each upload (of one or more files) takes place, the user is forwarded
back to the same page to upload more files.  Essentially I'm writing a bulk
upload facility into an existing struts app.

> HttpServletRequest parameters for multipart forms as provided by the
servlet
> api only include those values that are part of the request uri - form
fields
> are not included. Obviously this makes life a little difficult so struts
(or
> rather the commons file-upload) kindly parses the request to extract the
> field values (and files) from whatever elwierdo format the browser
submitted
> them in and uses them to populate an object that 'wraps' the original
> request. This populating is done just prior to the actionform being
> populated (and only occurs if you have an action form!).

Thanks that clarified a few queries I had about the sequence of events.

> The wrapper is available throughout your action, however when you forward
> from the action is is 'unwrapped' so forwarding is done using the original
> request object (theres a bug in some 1.1 versions prior to b3 where this
> didnt happen) as some containers dont like to forward on the wrapper -
which
> doesnt extend HttpServletRequestWrapper in order to stay compatible with
> servlet api 2.2

The version of struts we are using is 1.0.2, which is the latest stable
release as far as I know, we have not upgraded here to the latest beta.
Although I'm not sure if that is inertia or for a reason.  It is however
interesting to know that there is a related bug that has been fixed.  Is is
possible to just swap the jar for the old version with the new?  Or are
there interface changes and/or deprecations that would have to be taken into
account?  Oh and I suppose most importantly is the new version stable? :)

> Now in your case, as far as I can see from what you are saying, you are
> repeating the *same* process 3 times, and the first two times it works,
and
> the third fails. What is different the third time? Can you explain the
> problem better?

The first time the page is generated from a GET, the second is the result of
the first POST and the third is the result of the second POST, as far as I
can tell the HTML generated from the GET and both POSTs are identical.  The
session is the same as is everything else apart from the files beiong
uploaded, which as I mentioned earlier are 500K, 1M and 2.1M in size.  I
don't think the file size is the problem as I have sucessfully uploaded
files of 70 to 80Mb.

> I can easily imagine something failing on the first or second try, but the
> third... strange!

Tell me about it! :)

> 
> This folderId parameter is added as a hidden input in the form on the
> generated page. (upload.do?folderId=n)
> 
> The "?folder=n" in the url is a url parameter thinghy not a hidden input -
> so that statement seems a bit contradictory. Which is it you are using. As
> explained above the difference can be significant for a multipart form.

Yeah on re-reading that does look a little confusing, what I meant was:
The initial request is in the guise of a URL encoded parameter
(upload.do?folderId=n), the HTML that is generated has the form with the
hidden input ()

> Since the aim is to upload multiple files (one at a time?) I presume you
are
> using a session scoped action form?

Unfortunately, a decision was made (long before I started working here) to
only use part of Struts, specifically Actions but not Forms (NO I HAVE NO
IDEA WHY!) so session scoped action forms are not being used.  The JSP uses
a number of taglibs to generate XML, with the outer-most taglib used to
apply XSLT to the resultant XML to generate HTML.  It would appear that
anything less than 4 levels of inderection here is regarded with derrision
and distain. (Or event the work of children) :)

Cheers,

Chris.

> -Original Message-
> From: Chris Cooper [mailto:[EMAIL PROTECTED]
> Sent: Friday, 13 June 2003 16:54
> To: Struts Users Mailing List
> Subject: Re: Newbie Q: Missing parameters with multipart/form-data
>
>
> No takers?
>
>
> > Hi guys,
> >
> > I've had a good look through the archives (and in fact pretty much the
> whole
> > of Usenet!) and I find several mentions of my problem similar to my own,
> but
> > no solutions.
> >
> > Please bear

Re: Newbie Q: Missing parameters with multipart/form-data

2003-06-13 Thread Chris Cooper
No takers?


> Hi guys,
>
> I've had a good look through the archives (and in fact pretty much the
whole
> of Usenet!) and I find several mentions of my problem similar to my own,
but
> no solutions.
>
> Please bear with me and read "parameter" as "parameter/attribute", I still
> haven't quite got the distinction concrete in my mind as yet!
>
> The problem is as follows:
>
> 1. I have a form for uploading multiple files, initially the user GETs the
> page with the form, the URL for this form has a URL encoded parameter for
a
> target folderId in my database.  This folderId parameter is added as a
> hidden input in the form on the generated page. (upload.do?folderId=n)
>
> 2. The user selects a number of files to upload using:
>
> 
> 
> etc...
> 
> Submit...
> 
>
> The user then hits the upload button to POST the form.
>
> 3. The UploadAction receives the POST request, processes each file and
sets
> the ForwardAction to the same page upload.do (my users may want to upload
> more files), the folderId is again added as a hidden input into the form,
> and the URL encoded parameter is now gone.
>
> 4. Step 2 happens again. Parameter folderId is still there in the form.
>
> 5. Step 3 happens again. Parameter folderId is still there attached to the
> request.
>
> 6. Step 2 happens again. Parameter folderId is *definitely* still there in
> the form, I have checked the HTML source!
>
> 7. Step 3 loses the plot, the getParameter("folderId") and
> getAttribute("folderId") both return null!  The parameter is no longer
> attached to the request nor are any of the file parameters present.
However
> the usual struts attributes are attached as expected.
>
> The form is very definitely being POSTed and the form definitely has the
> hidden input and the file inputs present, but at some point before my
> Action's performActionOnMultipartForm () method is being called, the
> parameters disappear into the Ether...
>
> I have reproduced this problem consistently, on reach occasion i upload
the
> same files (one each time) all three are JPEG images 500Kb, 1Mb and 2.1Mb
in
> size respectively, is the file size a problem?
>
> Frankly I am very confused, and would really appreciate any light that
> anyone can show on this, a solution would earn my undying gratitude :)
>
> Regards,
>
> Chris Cooper
>
> -
> 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]



Newbie Q: Missing parameters with multipart/form-data

2003-06-12 Thread Chris Cooper
Hi guys,



I've had a good look through the archives (and in fact pretty much the whole
of Usenet!) and I find several mentions of my problem similar to my own, but
no solutions.



Please bear with me and read "parameter" as "parameter/attribute", I still
haven't quite got the distinction concrete in my mind as yet!



The problem is as follows:



1. I have a form for uploading multiple files, initially the user GETs the
page with the form, the URL for this form has a URL encoded parameter for a
target folderId in my database.  This folderId parameter is added as a
hidden input in the form on the generated page. (upload.do?folderId=n)

2. The user selects a number of files to upload using:





etc...



Submit...



The user then hits the upload button to POST the form.

3. The UploadAction receives the POST request, processes each file and sets
the ForwardAction to the same page upload.do (my users may want to upload
more files), the folderId is again added as a hidden input into the form,
and the URL encoded parameter is now gone.

4. Step 2 happens again. Parameter folderId is still there in the form.

5. Step 3 happens again. Parameter folderId is still there attached to the
request.

6. Step 2 happens again. Parameter folderId is *definitely* still there in
the form, I have checked the HTML source!

7. Step 3 loses the plot, the getParameter("folderId") and
getAttribute("folderId") both return null!  The parameter is no longer
attached to the request nor are any of the file parameters present.  However
the usual struts attributes are attached as expected.



The form is very definitely being POSTed and the form definitely has the
hidden input and the file inputs present, but at some point before my
Action's performActionOnMultipartForm () method is being called, the
parameters disappear into the Ether...



I have reproduced this problem consistently, on reach occasion i upload the
same files (one each time) all three are JPEG images 500Kb, 1Mb and 2.1Mb in
size respectively, is the file size a problem?



Frankly I am very confused, and would really appreciate any light that
anyone can show on this, a solution would earn my undying gratitude :)



Regards,



Chris Cooper

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



Re: List sorting with struts tags

2003-06-04 Thread Chris Hatton
Check Arron's NeXt tutorials at KeyboardMonkey.

--> http://www.keyboardmonkey.com/pilotlight/index.jsp?content=yesplease

Chris Hatton

On Mon, 2 Jun 2003 17:08:48 -0400, Franck Lefebure <[EMAIL PROTECTED]> 
wrote:

Hi,
I've a sorted ArrayList of beans eg : Foo {key, country, town}
1 - USA - NewYork
2 - USA - Washington
3 - France - Paris
4 - England - London
5 - England - Manchester
Is there a smart way with html/beans tags to output something like that
:
USA
-NewYork-WashingtonFrance
-ParisEngland
-London -Manchester
Any Idea ?

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




--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


for (slightly) more complex comparison

2003-06-03 Thread Chris Hatton
Hello, everyone,

I'm using the  tag but I need to match on more that one
String value using logical "OR".  In other words, how can I use the tag
to do the following?
if (((myString.equals("option_1")) || (myString.equals("option_2"))) {
  // Do some stuff
}
Thanks!
   Chris Hatton
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: wondering

2003-06-03 Thread Chris Hatton
I create them with straight HTML.  If you use the Tiles extension well, 
there's no WYSIWYG needed.

As far as I know, there is no WYSIWYG editor out there with explicit 
support for Struts tags.  If you have to have one, design your web pages 
with one, then go in and replace the HTML with your tags.

Chris Hatton

On Mon, 2 Jun 2003 11:56:02 +0200, peter bosmans 
<[EMAIL PROTECTED]> wrote:

Hi,

I'm pretty new with struts and I've created little tests with jsp-pages
in the view-module.
During the older days, i've got (for example) dreamweaver to create
fancy html-pages on a WYSIWYG way-of-work.
I was wondering how other struts-people now create there jsp-pages with
the taglibs of struts, and holding the flexibility of an WYSIWYG editor.
Can anybody tell me how they work to create there view-pages. (fast and
fancy)
Thanks in advance,

Peter

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




--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Web Page acess to struts-user archive?

2003-06-03 Thread Chris Halverson
"José Fortunato H. Tomás" <[EMAIL PROTECTED]> writes:

> Is there any Web Page to query and access to the history or archive
> for this mailling list?

www.gmane.org, search under group: gmane.comp.jakarta.struts.user

cdh

-- 
Chris D. Halverson http://www.halverson.org/

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



Re: Struts IRC online

2003-06-01 Thread Chris Halverson
"Mark Galbreath" <[EMAIL PROTECTED]> writes:

> Just kidding - any IRC server should pick up a new channel within 45
> minutes, but I logon to irc.darkmyst.org 6667

Well, any server on the same network, yes. Perhaps that's what he mean
(ie. EFnet, DALNet, Openprojects.net, etc.).

Therefore, I think the question still stands, but restated as "which
IRC network?"

cdh

-- 
Chris D. Halverson http://www.halverson.org/

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



nested depth, iterate

2003-04-03 Thread Chris Butler
Is there anyway to determine the level you are down in the nesting?
Ideally, the number of levels back up to the ...  I would
kinda assume that the level would be equal to descent... meaning that
the nested:root level would be equal to zero...

 

Also, I'd like to use this in conjunction with a fixed length iterate
tag.

Essentially letting me loop a number of times specified by the
nested:depth.

 

Any thoughts on approach?  Should I just write my own tag lib?

 

Thanks,

Chris



RE: [OT] Contract Work: Going Rate?

2003-03-28 Thread Assenza, Chris
That's really over-generalized.  Those statistics cannot be so broadly
applied to the market. 100,000 available jobs in IT can mean anything from
network admins to programmers or perhaps help desk / customer-support
people.  I also think you'd need to compare the number of tangible
programming positions and their technology demands (like Java or .NET,
Cobol, HTML, etc.) to the available market of potential workers with the
appropriate experience and interest.  Not everyone is going to want to, or
be able to, switch careers and go bang their head against Cobol for IBM
Mainframes if their interest and expertise is J2EE; unless, they physically
-must- do so for their own survival.  In that case, it may be true, perhaps
they are not qualified. 

The bottom line is that you can only talk about qualification within the
context of a single given programming position (or a number of like
programming positions), not the IT sector as a whole.  It's irrelevant and
even a bit gauche. 

Chris

-Original Message-
From: Sterin, Ilya [mailto:[EMAIL PROTECTED]
Sent: Friday, March 28, 2003 1:34 PM
To: 'apachep2 '; ''Struts Users Mailing List' '
Subject: RE: [OT] Contract Work: Going Rate?


Not sure about why all are ranting about this economy, but there are more
than enough jobs available in IT.  It's qualifications what set the ones
with a job apart from the ones without.  There are still over 100,000
reported unfilled jobs in the IT sector, as well as if you go to
monster.com, jobs.perl.org, and many other sites, you'll see daily postings
of jobs.  So there are jobs, I guess the question is whether the developers
we are speaking of are qualified for those jobs.

Ilya

-Original Message-
From: apachep2
To: 'Struts Users Mailing List'
Sent: 3/28/03 7:50 AM
Subject: RE: [OT] Contract Work: Going Rate?

Have you guys ever think of a situation, when a developer loses his job
for a while, he will take whatever contract it is and being paid
whatever the employer will offer? In this economy condition, supply of
developers always exceeds demanding. I see seniors applying for an entry
level job.

-Original Message-
From: Sterin, Ilya [mailto:[EMAIL PROTECTED] 
Sent: March 28, 2003 9:04 AM
To: 'Andrew Hill '; 'Struts Users Mailing List '
Subject: RE: [OT] Contract Work: Going Rate?

I'm still not understanding why you are having problems believing those
rates?

Here, an average IT employee salary for full time staff employee, is
$30+/hour.  An employer, spends about another 20% on benefits, madical,
dental, etc...  So the employer, really faces about a $36-$40 average
expense on an employee.  Now, if this contract is say 1 year or less,
then
there is a drawback of having someone stay, when they are not needed
after
the work is done.

Now, $40 dollars, is just per employee expense.  Now, each employer has
to
pay FICA tax, for each on staff employee, which is about 15% more.  So
now
were are up to about the $50 round about figure per hour.  Lets see,
then
there is office expenses, etc... so the figure is getting higher and
higher
and that's just the average.

Now, an average rate for a contractor is about $50, which actually saves
the
company money, for outsourcing it, then also allows them to only be
billed
for hours as needed, so if one week there is a break, and no work is
done,
there is no bill, at least some of the time, since as we know,
consultants
always find ways to bill:-)

Now, getting to higher figures of say $75/hour-$150/hour, those are
usually
for expert consultants.  Say, I know people who've written books on the
subject, and they have the credibility to charge that much, etc...  Also
past experience, thorough knowledge of technology, being a core team
developer of this particular technology or similar ranking.  Also, most
of
those rates are for shorter term projects.

I hope this helps you understand this a bit better.  An averag
McDonald's
employee is costing the company about $25/hour, so if the burger flipper
was
smart, he or she would break a deal of $20/hour and call it a day:-)

Ilya


-Original Message-
From: Andrew Hill
To: Struts Users Mailing List
Sent: 3/27/03 9:02 PM
Subject: RE: [OT] Contract Work: Going Rate?

Half right. :-)

I guess low is a distinctly relative term. Especially when comparing
apples & oranges (or salary & contract) ;->.

Rates here may be low compared to US or UK contract rates (are they
really so high?  - still have trouble believing those figures!), but as
for those in India, Russia, etc... they would get a fraction of the
going rate here, and there are probably folk doing the same stuff
elsewhere who get even less. 

-Original Message-
From: Scott Barr [mailto:[EMAIL PROTECTED]
Sent: Friday, 28 March 2003 07:44
To: Struts Users Mailing List
Subject: RE: [OT] Contract Work: Going Rate?



Yeah, but we both (i think Andrew is an 

does not support idName property?

2003-03-27 Thread Chris Butler
Hey folks,

I was looking for a way which would allow a nested radio button to pass
along a value of a bean.  The below example has a list of answer groups,
each of which answer group should have a selected answer.


 
 

For some reason the  tag doesn't support "idName".  Is
this just an oversight?  Also, value cannot be omitted based on the
 definition, so I imagine the above looks a little bit
redundant by specifying the "selectedAnswerId" twice.

Note: if I leave out "idName", the jsp does not interpret the value as a
bean-related field, but interprets it as a literal value.

Thoughts?

Chris

PS: have tested more complex behavior of nested:iterate and tiles bug
that is in bugzilla and will update the bug report as requested.

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



RE: [ANN] New York Struts Group - Manchester UK

2003-03-26 Thread Chris May
Maybe, if it was south Manchester (I'm based in the Midlands). Any takers?

Chris

>>> "David Bolsover" <[EMAIL PROTECTED]> 03/25/03 11:10pm >>>
New York a bit far for me on a regular basis

Any interest in somthing similar in Manchester UK - has distinct benefit of better 
beer =:o)

db

-Original Message-
From: Daniel Jaffa [mailto:[EMAIL PROTECTED] 
Sent: 25 March 2003 21:45
To: Struts Users Mailing List
Subject: [ANN] New York Struts Group


Vic pushed into creating a group (thx vic for taking the plunge)
http://groups.yahoo.com/group/struts_NYC 

I have created two polls one for how often monthly, bi-monthly, once a
quarter, and another for the day of the week.  Once we have those down we
can choose the actual date, and location. Depending on how big the group is
i think i can find a spot for a group under 20-25 people.

Daniel Jaffa
- Original Message -
From: "Jimmy Emmanual" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, March 25, 2003 3:30 PM
Subject: RE: New York City Struts Group


> I would love to also...
> Jimmy
>
> Jimmy
> x2723
>
>
> -Original Message-
> From: Elio Bonazzi [mailto:[EMAIL PROTECTED] 
> Sent: March 25, 2003 3:32 PM
> To: Struts Users Mailing List
> Subject: RE: New York City Struts Group
>
>
> I would love to participate in it.
> Elio
>
> -Original Message-
> From: Michelle Harris [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, March 25, 2003 3:25 PM
> To: Struts Users Mailing List
> Subject: RE: New York City Struts Group
>
>
> I'd be in for it.
>
> Thanks,
> Michelle Harris
>
> -Original Message-
> From: Daniel Jaffa [mailto:[EMAIL PROTECTED] 
> Sent: Tue 3/25/2003 15:21
> To: Struts Users Mailing List
> Cc:
> Subject: New York City Struts Group
>
>
>
> How many people would be intrested in the formation of a New York
> City
> Struts User group.
> If Atlanta GA, New Jersey can have one so should we.
>
> Daniel Jaffa
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED] 
> For additional commands, e-mail: [EMAIL PROTECTED] 
>
>
>
>
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.463 / Virus Database: 262 - Release Date: 3/17/2003
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.463 / Virus Database: 262 - Release Date: 3/17/2003
>
>
>
> -
> 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: working with a team

2003-03-21 Thread Chris Trawick
We have a team of several jsp and ejb developers.  We all develop and unit
test with local instances of the application and communicate our changes via
CVS.  Only when we are ready for a release do we commit the latest to a
server.  We agree that several JSP developers working off the same
deployment is a Bad Thing, so we don't.

As for struts-config management, that too can be problematic.  We avoid
those issues as well by using XDoclet.

chris

- Original Message -
From: "Dan Allen" <[EMAIL PROTECTED]>
To: "Struts-User List" <[EMAIL PROTECTED]>
Sent: Friday, March 21, 2003 12:01 AM
Subject: working with a team


> I am looking for some advice/articles on setting up my struts
> application so that all members of the team can all work with it.
> Let me first state my situation/dilemma and let you know what I am
> looking for.
>
> 1. I have a source tree (/home/me/src/struts/projects/project1)
> outside of the web folder (ie /var/tomcat/webapps) where I am
> coding.  When I change a source file I run `ant build` and `ant
> reload`, if I just change a web file, I run `ant update`.  All of
> these processes copy the files into the
> /var/tomcat4/webapps/project1 folder and change the state of the
> running application (if necessary)
>
> 2. My JSP developer, working on his own computer, copies down all
> the web files, modifies the ones he is working on and ftps them back
> to the source folder
>
> 3. I then have to run `ant update` to move the web files to the
> container.
>
> This is obviously not the way to do things, but we just got started
> using struts 2 weeks ago and haven't had a chance to organize
> things.  Now it is time to organize things.  I am running Eclipse
> and it makes it very easy to rebuild and restart the application or
> container, but I am not sure how to handle the case of multiple
> developers on mutiple computers.
>
> In short, how does the JSP developer update the web content and
> restart the application from a remote computer and still keep the
> files in sync with what I am working on?  I have CVS experience and
> I guess I could setup CVS, but that still doesn't handle the issue
> that the source repository is outside of the container and something
> needs to move the files into the container and possibly restart the
> applicaiton or container if necessary (if there is a change to
> struts-config.xml or tiles-definitions.xml).
>
> My JSP developer is coming from the viewpoint of just uploading a
> page and being able to access it, so this is all foreign to him.
> Since an action must proceed every page, it is necessary to restart
> the application each time a change to struts-config.xml is made.
> Plus, the JSP developer has to use struts-console (or edit by hand,
> prone to error) the struts-config.xml file.
>
> I am looking for a tutorial on setting up a team to run struts.
> Anyone, any info, please!
>
> Dan
>
> --
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> Daniel Allen, <[EMAIL PROTECTED]>
> http://www.mojavelinux.com/
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> Windows is packaged with Solitaire (ooh)!
> Linux is distributed with Doom...
> you can have your deck of cards, I'll take a chainsaw!
>  -- Linus Torvalds
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>
> -
> 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: nested:iterate & jsp:include, nesting reference incorrect?

2003-03-14 Thread Chris Butler
Arron,

Thanks - that bugfix jar seems to have resolved the problem.
It works correctly against the test anyway for a first check.

BTW, I like your recursive monkey tree example on your site... ;-)

http://www.keyboardmonkey.com/pilotlight/monkey-tree/monkey-tree-02.jsp?
content=yesplease

Chris

-Original Message-
From: Arron Bates [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 13, 2003 6:10 PM
To: Struts Users Mailing List
Subject: Re: nested:iterate & jsp:include, nesting reference incorrect? 

Have you tried the latest and greatest nested tags?...

An update changing all the internals that would affect this have
changed. It
went in after RC1, so either fetch a nightly, or simply download...

 http://keyboardmonkey.com/downloads/km-nested-v2.03.jar

...and pop it into your WEB-INF/lib directory and spin your container
again.
If the problem persists, please get back to me.

Arron.


> In my http request scope, I'm seeing  losing my
> iterate index when passing the nesting context to an included jsp.
I've
> been using struts-1.1RC1.  I've dumped out the request attributes, pre
> and post jsp include to see what's in there...
> 
> *** external.jsp
> 
>   
>   

RE: Question about NestedIterateTag (also: nested:iterate & nested:root)

2003-03-13 Thread Chris Butler
I've also attached all test files to the bug report at:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17977

Personally, I'm seeing more of a problem with the actual
names re: the nesting level rather than the actual objects,
but your problem could be a symptom of the same issue too.

chris

-Original Message-
From: Bhamani, Nizar A TL56E [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 13, 2003 4:31 PM
To: 'Struts Users Mailing List'
Cc: Chris Butler
Subject: RE: Question about NestedIterateTag (also: nested:iterate &
nested:root)

Didn't get the attachment. May be the discussion group filtered it out.
Can
you send it to me in an email separately.

Thanks,



-Original Message-
From: Chris Butler [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 13, 2003 4:28 PM
To: Struts Users Mailing List
Subject: RE: Question about NestedIterateTag (also: nested:iterate &
nested:root)

I seem to be having a very similarly related problem with respect to
nested:iterate and jsp:include.  I've found that the index is lost and
it always finds the name for the first element in the collection only.

A simple test that I've done - I've attached.

Chris

-Original Message-
From: Bhamani, Nizar A TL56E [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 13, 2003 4:01 PM
To: 'Struts Users Mailing List'
Subject: Question about NestedIterateTag

We have written our own tag to print a bunch of fields read from an XML
file. I am using various NestedTextTag, NestedRadioTag, NestedSelectTag,
NestedOptionsTag and it all works fine.

I had to enhance this to use iterations of a list of fields and am using
NestedIterateTag.


However using NestedIterateTag dosen't seem to iterate over the
collection
As expected. It just prints prints out the first object from the
collection.

Has anybody has experience using the NestedIterateTag ???


Here is the logic in short:


public class MyTag extends NestedWriteTag implements NestedNameSupport
{
public int doStartTag() throws JspException
{
// Some stuff removed 

NestedIterateTag iterateTag = new NestedIterateTag();
iterateTag.setParent(this);
iterateTag.setPageContext(pageContext);

// "theCollectionProperty" is of ArrayList type.
iterateTag.setProperty("theCollectionProperty");
iterateTag.doStartTag();


// Do some stuff to use NestedTextTag, NestedRadioTag
etc
and
// set their parent as iterateTag.

iterateTag.doEndTag();

return (SKIP_BODY); 
}

}


Again, the iteration works only for the first element in the collection.

Doesn't work for all the elements in the collection.


Any help would be appreciated.

Thanks,

Nizar.

-
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: Question about NestedIterateTag (also: nested:iterate & nested:root)

2003-03-13 Thread Chris Butler
I seem to be having a very similarly related problem with respect to
nested:iterate and jsp:include.  I've found that the index is lost and
it always finds the name for the first element in the collection only.

A simple test that I've done - I've attached.

Chris

-Original Message-
From: Bhamani, Nizar A TL56E [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 13, 2003 4:01 PM
To: 'Struts Users Mailing List'
Subject: Question about NestedIterateTag

We have written our own tag to print a bunch of fields read from an XML
file. I am using various NestedTextTag, NestedRadioTag, NestedSelectTag,
NestedOptionsTag and it all works fine.

I had to enhance this to use iterations of a list of fields and am using
NestedIterateTag.


However using NestedIterateTag dosen't seem to iterate over the
collection
As expected. It just prints prints out the first object from the
collection.

Has anybody has experience using the NestedIterateTag ???


Here is the logic in short:


public class MyTag extends NestedWriteTag implements NestedNameSupport
{
public int doStartTag() throws JspException
{
// Some stuff removed 

NestedIterateTag iterateTag = new NestedIterateTag();
iterateTag.setParent(this);
iterateTag.setPageContext(pageContext);

// "theCollectionProperty" is of ArrayList type.
iterateTag.setProperty("theCollectionProperty");
iterateTag.doStartTag();


// Do some stuff to use NestedTextTag, NestedRadioTag
etc
and
// set their parent as iterateTag.

iterateTag.doEndTag();

return (SKIP_BODY); 
}

}


Again, the iteration works only for the first element in the collection.

Doesn't work for all the elements in the collection.


Any help would be appreciated.

Thanks,

Nizar.

-
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]

nested:iterate & jsp:include, nesting reference incorrect?

2003-03-13 Thread Chris Butler
In my http request scope, I'm seeing  losing my
iterate index when passing the nesting context to an included jsp. I've
been using struts-1.1RC1.  I've dumped out the request attributes, pre
and post jsp include to see what's in there...

*** external.jsp

  
  

RE: Nested and Tiles taglibs together

2003-03-12 Thread Chris Butler
Cedric (and others),

Thanks for the response and insight.  I'll cast my vote on the bugfix.
I'd definitely like to see the behavior I described below.

As for nested/tiles interaction and potential to allow for request
scoping of variables, hopefully I can contact the fellow who does the
nested tags and see if that's a possibility.  It makes sense to allow
for an option to push nested tags to the request scope since many
of the original struts tags support it.

Chris

Re: struts and jsp 1.2 & 2.0, etc.  Apologies for the misnaming of 2.0
as 1.3 - I haven't kept up with that particular spec for a long while.

-Original Message-
From: Cedric Dumoulin [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 12, 2003 12:43 PM
To: Struts Users Mailing List
Subject: Re: Nested and Tiles taglibs together


  Hi Chris,

Chris Butler wrote:

>So, I've been using struts for a while... even back when Tiles used to
>be called "Components". :-)
>I'm pretty impressed with how far things have come and how useful the
>framework is...
>
>Anyway, I'm new to using  tags and am trying to use them in
>combination with Tiles.
>The goal I have is to iterate over a bunch of questions, each question
>which has its own layout. For now, ignore how the layout switch is
>handled - I'm more concerned about passing nested context between tiles
>if it's possible.  (I've actually accomplished the switch via a
>logic:equals sort of hack for the time being rather than pre-loading
any
>data in a tiles controller.  Why this works with a tiles:insert, I'm
not
>sure since one would think it would have flush-from-within-a
custom-tile
>issues as well.)
>
>First pass (without swapped layout):
>
>
>
>
> 
>
>
>
>What I would like to do in concept:
>*** questions.jsp
>
>
>
>
>*** questionLayout.jsp
>
>
>
> 
>
>
>Problems I've had:
>1. Tiles & flush = "false"
>   I'm using JBoss 3.2.0RC1 w/Jetty - the Tiles flush tag doesn't seem 
>   to work or Jetty mishandles it.  I know we're fighting against the
>JSP 1.1 spec.
>   Symptom: The flushed tile HTML appears first, the containing JSP
HTML
>after
>  
>
  There is a ticket opened in bugzilla for this issue.You can try the 
proposed patch, and vote for it.

>2. Losing nested context
>   Once I do the tiles:insert, I lose the nested context.  I need to be
>able
>   to generate the problem index for each question in the form.  This
>should
>   look something like:
>   questions[0].question.questionId=""
>   questions[1].question.questionId=""
>  
>
  I don't know how nested is implemented, but it looks like it store its

context in the page scope. Need to be in the request scope to work with 
Tiles

>Thoughts:
>1. When will Struts move to support JSP 1.2?  It's been around for a
>long time now.
>   In fact, isn't JSP 1.3 out there as well?
>
  It is jsp1.2

>
>2. Is there any good documentation on Tiles and Nested in combination?
>   So far, I've been to a lot of the struts resources without much
luck.
>
  I don't know about any documentation for Tiles/nested. Any help is 
welcome.

   Cedric

>
>3. I love the concept of Tiles controllers.  These are fantastic for
>moving a 
>   Tile around a webapp solely by referencing it via the JSP/tiles
defs.
>Is
>   there anyway to leverage this concept in relation to my desired
>objectives?
>
>Thanks loads - any tips or even possible approaches would be fantastic.
>
>Chris
>
>
>-
>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]



Nested and Tiles taglibs together

2003-03-12 Thread Chris Butler
So, I've been using struts for a while... even back when Tiles used to
be called "Components". :-)
I'm pretty impressed with how far things have come and how useful the
framework is...

Anyway, I'm new to using  tags and am trying to use them in
combination with Tiles.
The goal I have is to iterate over a bunch of questions, each question
which has its own layout. For now, ignore how the layout switch is
handled - I'm more concerned about passing nested context between tiles
if it's possible.  (I've actually accomplished the switch via a
logic:equals sort of hack for the time being rather than pre-loading any
data in a tiles controller.  Why this works with a tiles:insert, I'm not
sure since one would think it would have flush-from-within-a custom-tile
issues as well.)

First pass (without swapped layout):




  



What I would like to do in concept:
*** questions.jsp




*** questionLayout.jsp



  


Problems I've had:
1. Tiles & flush = "false"
   I'm using JBoss 3.2.0RC1 w/Jetty - the Tiles flush tag doesn't seem 
   to work or Jetty mishandles it.  I know we're fighting against the
JSP 1.1 spec.
   Symptom: The flushed tile HTML appears first, the containing JSP HTML
after

2. Losing nested context
   Once I do the tiles:insert, I lose the nested context.  I need to be
able
   to generate the problem index for each question in the form.  This
should
   look something like:
   questions[0].question.questionId=""
   questions[1].question.questionId=""

Thoughts:
1. When will Struts move to support JSP 1.2?  It's been around for a
long time now.
   In fact, isn't JSP 1.3 out there as well?

2. Is there any good documentation on Tiles and Nested in combination?
   So far, I've been to a lot of the struts resources without much luck.

3. I love the concept of Tiles controllers.  These are fantastic for
moving a 
   Tile around a webapp solely by referencing it via the JSP/tiles defs.
Is
   there anyway to leverage this concept in relation to my desired
objectives?

Thanks loads - any tips or even possible approaches would be fantastic.

Chris


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



Mapped property question

2003-03-11 Thread Stillwell, Chris
I have a Properties object that is stored in the servlet context and I am
trying to access the contained values using the WriteTag.  The problem is
that the property key names consist of dot separated nodes.

myapp.property.name=value

I try using:



And I get:
java.lang.IllegalArgumentException: Null property value for 'myapp'

I presume because it is looking for a nested property.  I tried using:

but that returned blank.  The only thing that worked was to rename the
property key and replace the periods with slashes as follows:

This worked, but is not really a viable solution for me since the property
keys are previously defined in existing code.  

I looked through the user guide and did some searching on the list, but did
not come up with a solution. Any suggestions?

Thanks,

Chris

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



Re: [Q] Log Viewing tool for Windows environment?

2003-03-10 Thread Chris Halverson
"Jeff Smith" <[EMAIL PROTECTED]> writes:

> In the UN*X world, I had the tail command for such purposes. But I've never
> seen anything like this for Windows.

You can also try GnuWin32:

http://gnuwin32.sourceforge.net/

Totally free, works great.

They also have links to other similar sites:

http://gnuwin32.sourceforge.net/links.html

cdh

-- 
Chris D. Halverson http://www.halverson.org/

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



Re: How fast is ?

2003-03-04 Thread Chris Trawick
Great!  Let us know when you've got it done.

chris

- Original Message -
From: "Boris Folgmann" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, March 04, 2003 4:33 AM
Subject: Re: How fast is ?


> David Graham wrote:
>
> >> It's as fast as it takes to lookup a key in a hashmap.  If that's
> >> unacceptable then you should write a different jsp for each language
with
> >> hardcoded text.
>
>
> I'm searching a more automated solution. If the design has to be changed
> every translated JSP should be changed automatically, so something like a
> preprocessor would be great.
>
> cu,
> boris
>
> --
> Dipl.-Inf. Boris Folgmann   mailto:[EMAIL PROTECTED]
> Folgmann IT-Consulting  http://www.folgmann.de
>
>
> -
> 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: Anyone using JBoss with custom validator rules?

2003-03-04 Thread Chris Trawick
What version of JBoss are you using?

I have successfully gotten custom validators to work without a hitch on
JBoss 3.0.x (all versions beta through latest).  All validator classes and
jars are contained in the war like this:

/WEB-INF/*.tld
/WEB-INF/web.xml
/WEB-INF/struts-config.xml
/WEB-INF/validation.xml
/WEB-INF/validator-rules.xml
/WEB-INF/custom-validator-rules.xml
/WEB-INF/lib/commons-beanutils.jar
/WEB-INF/lib/commons-collections-2.0.jar
/WEB-INF/lib/commons-digester.jar
/WEB-INF/lib/commons-logging.jar
/WEB-INF/lib/commons-validator.jar
/WEB-INF/lib/jakarta-oro.jar
/WEB-INF/lib/struts.jar
/WEB-INF/classes/**/*.properties
/WEB-INF/classes/**/*.class

chris

- Original Message -
From: "Brian Topping" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, March 03, 2003 5:31 PM
Subject: Anyone using JBoss with custom validator rules?


Hi all,

I have Validator operational with two-password validation along the lines of
what is in the developer guide.  I've found that the custom validator
function can be found when the setup is running under standalone Tomcat
4.0.x, but not when that tomcat is running under JBoss, I get the attached
NoClassDefFoundError exception.  I've traced the cause of the exception down
to Line 367 of Validator.java v1.11:

 Method m = c.getMethod(va.getMethod(), paramClass);

The class that getMethod is operating on was loaded via
getClassLoader().loadClass() a dozen or so lines earlier. I presume the
problem then is not related to the class itself, but the method signature
classes.

I've checked a hundred times that the classpath is clean of everything but
the code in the nightly build.  There are no additional or incorrect
validator jars anywhere else on the classpath during compile or deployment,
which is what I am implying from the exception I am getting below.  I've
also
checked that the correct validator jar is in the JBoss deployment, inside
the
WAR file along with the rest of the correctly operating Struts jars.

It looks like an incompatibility at best from where I am right now...  Any
ideas appreciated.

Brian


java.lang.reflect.InvocationTargetException
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.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:
2
80)
at
org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:216)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces
s
or.java:479)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1420)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:520)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
...
Caused by: java.lang.NoClassDefFoundError:
org/apache/commons/validator/ValidatorAction
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:1627)
at java.lang.Class.privateGetPublicMethods(Class.java:1655)
at java.lang.Class.getMethod0(Class.java:1744)
at java.lang.Class.getMethod(Class.java:963)
at
org.apache.commons.validator.Validator.validateFieldForRule(Validator.java:3
9
3)
at
org.apache.commons.validator.Validator.validateField(Validator.java:512)
at
org.apache.commons.validator.Validator.validate(Validator.java:551)
at
org.apache.struts.validator.ValidatorForm.validate(ValidatorForm.java:152)
at
com.bill2.incamail.web.controller.DomainSetupAction.choosePlan(DomainSetupAc
t
ion.java:186)
... 42 more



-
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] Text editor usage (was RE: [OT]: What is vim?)

2003-03-03 Thread Assenza, Chris
If one were to make a value judgement such as "better" then one would
require a common basis for comparison.  I would be safe in assuming that not
everyone here is analyzing this question based on a common frame of
reference, in fact I bet we all have slightly different concepts of who or
what makes a better programmer.

Therefore, the first question to ask must instead be: "What does it mean to
be a good programmer?" or even: "What is a good programmer."  For argument's
sake, as part of our answer to that question we say that one trait of a good
programmer is thorough knowledge (or perhaps memorization) of a syntax.  If
that is true, then someone who uses a text editor is more likely to be
considered a better programmer.  

However, it can be argued that syntax memorization is not so all-important.
For example, there are many excellent writers and thinkers who cannot spell
worth a dime, yet they work with words all day long.  As such, the
programmer who uses an IDE may well be a "better" programmer in the sense
that A) the IDE supplements their knowledge of the syntax and B) separates
the programmer from a requirement to memorize syntax and instead allows them
to focus on what they're supposed to be doing: engineering software through
solid design principles, etc. 

Ultimately, I think the answer is completely subjective and depends wholly
on what one means by "better" programmer. Certainly someone who lives in an
IDE cannot jump into Textpad and be expected to be nearly as productive, but
that does not necessarily diminish their core aptitude as a programmer! 

All that being said, if you don't use Textpad you're a n00b! =)

-Chris

-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]
Sent: Monday, March 03, 2003 4:58 PM
To: Struts Users Mailing List
Subject: RE: [OT] Text editor usage (was RE: [OT]: What is vim?)


No. I very specifically said that the better programmers CAN use text
editors and command-line tools. This does not mean that they have to, only
that they COULD use them if they choose to. I now use the Eclipse IDE for
alot of my personal programming because it is like a text editor that wants
to be helpful. I like the wrappers that it gives me for the compiles and
junit tests, but that it keeps out of the way for the actual editing if I
don't invoke any of the "helpful" intelli-wotsits.

Simon

>-Original Message-
>From: Chen, Gin [mailto:[EMAIL PROTECTED]
>Sent: Monday, March 03, 2003 3:49 PM
>To: 'Struts Users Mailing List'
>Subject: RE: [OT] Text editor usage (was RE: [OT]: What is vim?)
>
>
>I think your confusing personal perference with programming skill.
>Thats like saying that Ted drink Sprite when most of the 
>better programmers
>drinks Mountain Dew.
>-Tim
>
>-Original Message-
>From: Chappell, Simon P [mailto:[EMAIL PROTECTED]
>Sent: Monday, March 03, 2003 4:38 PM
>To: Struts Users Mailing List
>Subject: [OT] Text editor usage (was RE: [OT]: What is vim?)
>
>
>Actually, my primary point was text editor usage and 
>programmer ability.
>
>It is my personal observation that the better programmers use 
>text editors.
>(vi or emacs or jedit or vim ... I don't care ... that's not 
>the argument
>here). I'm not quite saying that IDEs are bad, although I'm certainly
>tempted to say that some days, but programmers who CAN program 
>with text
>editors and command-line tools are orders of magnitude better 
>than those who
>can't. You are more than welcome to tell me that you believe 
>this is not so,
>but I have observed it enough that, to me, it is a truism.
>
>Simon
>
>>-Original Message-
>>From: David Graham [mailto:[EMAIL PROTECTED]
>>Sent: Monday, March 03, 2003 2:56 PM
>>To: [EMAIL PROTECTED]
>>Subject: RE: [OT]: What is vim?
>>
>>
>>> >
>>> >VIM (vi) beats the hell out of EMACS, unless you are a LISP
>>> >weenie with a
>>> >masochistic bent.  And any non-dot-completion editor refines
>>> >your sense of
>>> >the API because it forces you to RTFM.
>>> >
>>> >Mark
>>
>>I use an ide and am referencing javadoc all the time anyways.  
>>I don't see 
>>any correlation between ide use and api ignorance.
>>
>>David
>>
>>
>>_
>>Add photos to your messages with MSN 8. Get 2 months FREE*.  
>>http://join.msn.com/?page=features/featuredemail
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>

RE: Add blank option to select

2003-03-03 Thread Bredesen, Chris - NA US HQ Delray
Because I'm a big moron and like to overcomplicate things!  I better get
back home, my village is missing its idiot.

Thanks a million 

> -Original Message-
> From: David Graham [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 03, 2003 4:57 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Add blank option to select
> 
> 
> Why can't you just put this at the beginning of your select 
> box  value="">?
> 
> David
> 
> 
> 
> >From: "Bredesen, Chris - NA US HQ Delray" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" 
> <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List (E-mail)" 
> <[EMAIL PROTECTED]>
> >Subject: Add blank option to select
> >Date: Mon, 3 Mar 2003 16:50:59 -0500
> >
> >Hi All,
> >
> >I have a proprietary table object which I expose to 
> html:options via an
> >adaptor class that extends AbstractList.  The List 
> implementation gives
> >collection-like random access to my proprietary object which 
> is then used 
> >to
> >build a select box.
> >
> >What I need is to add a blank option to the select that is 
> not present in 
> >my
> >data.  Since my List implementation is just an adaptor, and 
> not a new data
> >structure, I cannot just add another member.  I tried doing 
> a Union in my
> >SQL query to tack on a blank record but the crap DB API 
> won't have it.
> >
> >Any way to do with Struts 1.0.2?  I guess extending the 
> OptionsTag (haven't
> >worked this one out in my head yet but I assume it would be fairly
> >straightforward) is the way to go, but if anyone has another 
> way, I'm all
> >ears.
> >
> >Thanks,
> >
> >Chris
> >
> >
> >Chris Bredesen
> >Software Architect
> >MyTravel USA
> >part of MyTravel group
> >(561) 266-6154
> >[EMAIL PROTECTED]
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> _
> The new MSN 8: smart spam protection and 2 months FREE*  
> http://join.msn.com/?page=features/junkmail
> 
> 

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



Add blank option to select

2003-03-03 Thread Bredesen, Chris - NA US HQ Delray
Hi All,

I have a proprietary table object which I expose to html:options via an
adaptor class that extends AbstractList.  The List implementation gives
collection-like random access to my proprietary object which is then used to
build a select box.

What I need is to add a blank option to the select that is not present in my
data.  Since my List implementation is just an adaptor, and not a new data
structure, I cannot just add another member.  I tried doing a Union in my
SQL query to tack on a blank record but the crap DB API won't have it.

Any way to do with Struts 1.0.2?  I guess extending the OptionsTag (haven't
worked this one out in my head yet but I assume it would be fairly
straightforward) is the way to go, but if anyone has another way, I'm all
ears.

Thanks,

Chris

____
Chris Bredesen
Software Architect
MyTravel USA
part of MyTravel group
(561) 266-6154
[EMAIL PROTECTED]


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



Re: Help: ActionError - does not expand the{0}placeholder

2003-02-22 Thread Chris Trawick
am i the only one scratching my head at this?  did i miss something?

- Original Message -
From: "w i l l i a m b o y d" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Saturday, February 22, 2003 11:17 PM
Subject: Re: Help: ActionError -  does not expand
the{0}placeholder


> jeff,
>
> i *am* impressed. and the impression i get is that you have no interest
> whatsoever in helping me solve my problem, except in as much as it gives
you
> a reason to spout off how much you know about the validation framework.
> which i've already clarified, is of no use to me and my setup.
>
> SHEESH!!!
>
> - Original Message -
> From: "Jeff Kyser" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Sunday, February 23, 2003 3:59 AM
> Subject: Re: Help: ActionError -  does not expand
> the{0}placeholder
>
>
> > Sorry, Will, I missed the 1.0.2 reference. Have only worked with 1.1.3,
> > and using the validation framework. In that situation, the
> > validation.xml
> > file is essentially a bridge between the validation rules (in
> > validator-rules.xml)
> > and the error messages in your resource bundle. And unless you'd
> > created one, it wouldn't exist. It could be named anything really, as
> > you
> > specify its name in your struts-config.xml file:
> >
> >   > className="org.apache.struts.validator.ValidatorPlugIn">
> >   >value="/WEB-INF/validator-rules.xml,
> >
> > /WEB-INF/validator-custom-rules.xml,
> > **/WEB-INF/validation.xml">
> >  
> >  
> >
> > but i guess all that's not much help.
> >
> > -jeff
> >
> > On Saturday, February 22, 2003, at 09:14  PM, w i l l i a m b o y d
> > wrote:
> >
> > > thanks for your reply, jeff.
> > >
> > > i wasn't aware that struts 1.0.2 used a validation.xml file. there is
> > > nothing like that anywhere on my system. besides, it's not the
> > > validation
> > > that is the problem. the validation is working fine. the problem is
> > > that the
> > > paramater being passed into the ActionError constructor isn't being
> > > included
> > > in the error message that is being output.
> > >
> > > - Original Message -
> > > From: "Jeff Kyser" <[EMAIL PROTECTED]>
> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > Sent: Sunday, February 23, 2003 3:06 AM
> > > Subject: Re: Help: ActionError -  does not expand the
> > > {0}placeholder
> > >
> > >
> > >> So what does your validation.xml file look like w.r.t. the rule in
> > >> question?
> > >>
> > >> -jeff
> > >>
> > >> On Saturday, February 22, 2003, at 09:00  PM, w i l l i a m b o y d
> > >> wrote:
> > >>
> > >>> hello all,
> > >>>
> > >>> developing on w98 with tomcat 3.2.24, mysql 3.23.36, struts 1.0.2,
> > >>> jdk
> > >>> 1.3.1., servlet 2.2. will be deploying on basically similar setup;
> > >>> but
> > >>> deployment os is xp.
> > >>>
> > >>> i got a jsp page that has a choice box that allows multiple choices.
> > >>> i
> > >>> set a
> > >>> validation rule in my action form's validate method, that disallows
> > >>> users
> > >>> from selecting more options than permitted by my limit. if a user
> > >>> goes
> > >>> over
> > >>> the limit the form doesn't get submitted. the validation rule is
> > >>> checked
> > >>> just fine; struts creates an error for it and adds it to the errors
> > >>> collection. but the error message that is displayed on the input
page
> > >>> does
> > >>> not contain the parameterized message as expected. instead, it shows
> > >>> the
> > >>> complete, unformatted message, exactly (minus an apostrophe) as it
> > >>> appears
> > >>> in the resource bundle! does anybody know what i'm overlooking? is
> > >>> this a
> > >>> bug in 1.0.2?
> > >>>
> > >>> here is what gets displayed (verbatim) on the input page after the
> > >>> validation error is created:
> > >>>
> > >>>   Sorry! Youve selected too many choices for {0}.  (what
happened
> > >>> to my
> > >>> apostrophe in "You've" ?)
> > >>>
> > >>> here is the appropriate line from my resource bundle:
> > >>>
> > >>>   error.prefs.limit=Sorry! You've selected too many choices for
> > >>> {0}.
> > >>>
> > >>> here is a snip from my form's validate method:
> > >>>   ...
> > >>>   ActionErrors errors = new ActionErrors();
> > >>>   ...
> > >>>   if ( isTooManyPrefs ) {
> > >>>  ActionError prefMusicError = new ActionError(
> > >>> "error.prefs.limit",
> > >>> "Preferred Music" );
> > >>>   errors.add( "prefMusic", prefMusicError );
> > >>>
> > >>>}
> > >>>   ...
> > >>>
> > >>> here are the results of me looping through
prefMusicError.getValues()
> > >>> inside
> > >>> validate:
> > >>>
> > >>>   error.prefs.limit's replacement value # 0: Preferred Music
> > >>>   error.prefs.limit's replacement value # 1: null
> > >>>   error.prefs.limit's replacement value # 2: null
> > >>>   error.prefs.limit's repl

Re: Re: combining commons-*.jar

2003-02-21 Thread Chris Trawick
What is cleaning up the classpath about anyway?  For building?  Ant takes
care of that, just use a lib directory.  For deployment?  Try /WEB-INF/lib
or use your container's libdir.

Coupling all the commons products together violates their designed
modularity and introduces bloat.  I personally don't have warm fuzzies about
bundling 8 megs of fluff with every war and passing it around between
different servers.  It especially gets in the way of JBoss, when a large
transfer (even just filesystem-to-filesystem) can cause the deployer to hose
itself by trying to load the thing before it's actually there.

Then again, maybe your situation is different...

chris

- Original Message -
From: "Jason Vinson" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, February 21, 2003 8:33 AM
Subject: Re: Re: combining commons-*.jar


> So if there was an upgrade, i could just rebundle them all correct?  If
that's the only drawback, I think I may go ahead and combine them.  Anyone
else care to comment?
>
> Jason
>
>
> ---Original Message---
> From: Ian Hunter <[EMAIL PROTECTED]>
> Sent: 02/21/03 08:32 AM
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Re: combining commons-*.jar
>
> >
> > If one component was upgraded, you'd have to replace the whole shootin'
> match.
>
> - Original Message -
> From: "Jason Vinson" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Friday, February 21, 2003 8:28 AM
> Subject: combining commons-*.jar
>
>
> > This may be a dumb question, but is there any reason to not combine all
> the commons-*.jar libraries into one jar file?  I am attempting to clean
> up
> our server's classpath, and combining all these jars would really help
> out.
> >
> > TIA,
> > Jason
> >
> > -
> > 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: question about logging

2003-02-19 Thread Stillwell, Chris
I have been trying to configure my Struts 1.1 application to use a custom
logger that wraps log4j.
I implemented a Logger class that implements the commons Log interface.  
I created a commons-logging.properties file and placed it in the
WEB-INF/classes directory.
It contains the properties:
org.apache.commons.logging.Log=com.myaap.Logger
org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.LogFac
toryImpl

I still only get the commons SimpleLog.  I am deploying my application to
tomcat 3.3.1.  What have I missed or not understand?

Regards,

Chris

> -Original Message-
> From: Sri Sankaran [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 19, 2003 8:20 AM
> To: Struts Users Mailing List
> Subject: RE: question about logging
> 
> 
> Struts itself uses commons logging.  So you can simply 
> include the necessary jars from commons logging and say, 
> log4j/jdk1.4 in conjunction with the respective properties 
> files in your classpath to control how the messages are 
> output.  You can learn a lot more about it at 
> http://jakarta.apache.org/log4j/docs/index.html.
> 
> Of course, you can use the same technique to control and 
> configure log messages generated by your application.
> 
> Sri
> 

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




RE: How stable is struts 1.1 beta 3

2003-02-19 Thread Stillwell, Chris
We would like to know the answer to this question as well.  We are just in
the design phase of a new project and are trying to decide between 1.0.2 and
1.1-b3.  I would prefer to go with 1.1-b3 since it appears from the project
plan on the Struts web site that it is intended to be the release candidate.
I am also hoping that there will be a 1.1 release prior to our going into
production in early summer.  Is that a realistic expectation?  Is anybody
using 1.1 in production?  Our management team gets shaky knees when you
mention things like building a product on beta software and would most
likely just say no.

Cheers,

Chris

> -Original Message-
> From: Jagannayakam [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 19, 2003 7:23 AM
> To: Struts-User Mailing List
> Subject: How stable is struts 1.1 beta 3 
> 
> 
> Hi ,
> 
> We already developed a J2EE product . Now we think of implementing the
> struts framework for better navigation , exception framework .
> 
> Any sugesstions on - how stable is this release of struts 1.1 beta 3 .
> Are there any major known issues in this ?
> 
> Regards,
> 
> Jagan.
> 
> 
> 
> -
> 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 design flaw -- ActionForms are not true domain objects

2003-02-17 Thread Chris Halverson
"James Childers" <[EMAIL PROTECTED]> writes:

> You can't really use that outside of a servlet container. This is
> not a knock to Struts; it was never designed to be a general purpose
> MVC model. But noone is going to write a Swing app using Struts, for
> example.

http://javaboutique.internet.com/tutorials/Swing/

It can be done.

cdh

-- 
Chris D. Halverson http://www.halverson.org/

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




RE: [OT - Java] Need a recommendation on a Design Pattern class

2003-02-11 Thread Assenza, Chris
The company that owns and runs TheServerSide.com seems to have some nice
offerings that should satisfy your needs, though I've never attended their
training so I can't vouch for it. :)

http://www.middleware-company.com/training/trainingIndex.shtml
http://www.middleware-company.com/training/schedule.shtml

Chris

-Original Message-
From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 12:36 PM
To: [EMAIL PROTECTED]
Subject: [OT - Java] Need a recommendation on a Design Pattern class


Hi All,

Sorry for the OT post, but I need a recommendation from all you guru's out
there.  I've been asked to find a 3 to 5 day class on Design Patterns with a
Java slant.  If anyone has attended something like this, and can recommend
for (or against), I would appreciate it.  You can reply via the list or
directly to me.

TIA!

Jerry Jalenak
Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496
[EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential
and is intended solely for the use of the individual or entity to which it
is addressed. If you are not the intended recipient or the person
responsible for delivering the transmission to the intended recipient, be
advised that you have received this transmission in error and that any use,
dissemination, forwarding, printing, or copying of this information is
strictly prohibited. If you have received this transmission in error, please
immediately notify LabOne at the following email address:
[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: Rendering alternate rows of a table in Struts

2003-02-07 Thread Assenza, Chris
Indeed, JSP is starting to feel mature in many more ways. :)

Chris

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 07, 2003 3:54 PM
To: [EMAIL PROTECTED]
Subject: RE: Rendering alternate rows of a table in Struts


Cool!  JSP is catching up to ColdFusion's ease of use.  I'm a big CF fan but

there's really no need for it when we have free Java.

David

>You are correct that designing correct tags in JSP 1.1/1.2 isn't all that
>easy.  However, folks will *really* like what is coming up in JSP 2.0 in
>this area -- in particular two interesting features:
>
>* A new tag invocation protocol (SimpleTag) that is so simple :-)
>   you almost can't get it wrong -- a single method call to implement,
>   and no worries about tag pooling or instance reuse.
>
>* Tag files, which allow a page author to point at a chunk of
>   JSP code (which might itself have tag invocations insode) and
>   say, in effect, "treat this chunk of stuff as a custom tag".
>   Now, page authors can create and reuse presentation-ish stuff
>   just as easily as Java programmers can reuse classes.
>

>
>Craig


_
The new MSN 8: advanced junk mail protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail


-
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: Rendering alternate rows of a table in Struts

2003-02-07 Thread Assenza, Chris
Craig wrote: 

> * Tag files, which allow a page author to point at a chunk of
>   JSP code (which might itself have tag invocations insode) and
>   say, in effect, "treat this chunk of stuff as a custom tag".
>   Now, page authors can create and reuse presentation-ish stuff
>  just as easily as Java programmers can reuse classes.

Now THAT is cool. Really glad to hear that - I've got to start getting
up-to-date on some of the newer specs. :)

-Chris


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




RE: Opinions: fine or coarse grained actions

2003-02-07 Thread Assenza, Chris
The new one on design patterns: 
http://www.amazon.com/exec/obidos/tg/detail/-/0321127420/qid=1044650306/sr=8
-1/ref=sr_8_1/104-1055391-3511918?v=glance&s=books&n=507846

Chris

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 07, 2003 3:37 PM
To: 'Struts Users Mailing List'
Subject: RE: Opinions: fine or coarse grained actions


Is that in "Refactoring: Improving the Design of Existing Code" or his
co-authored book on design patterns?

Mark

-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]] 
Sent: Friday, February 07, 2003 3:12 PM

Personally, I liken the fine-grained Actions to what Fowler [1] calls 
"Transaction Scripts", and coarse-grained Actions to what Fowler calls 
"Domain Models".

In that latter case, the Domain Model is finely grained and so an Action 
can become more coarse.

-Ted.



-
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]




  1   2   3   4   5   6   >