Re: help with modules

2004-03-26 Thread James Norman
Try adding contextRelative=true to the forwards in your struts-config. I remember a similar problem I had a while back, but I'm not entirely sure this will solve it. Here is an example of an Action I had in a struts module I wrote: action path=/listLoggers

struts module

2003-11-20 Thread James Norman
I've recently written a struts module that I am plugging into one of our apps. I'm getting some odd behavior when I do action forwards to jsp's. Heres the situation: in web.xml I have: param: config value: /WEB-INF/conf/struts-config.xml param: config/logging value:

tiles and getRequestURI

2003-11-11 Thread James Norman
isn't terribly useful. I have found a few emails regarding this in the archives, but no solutions. Is there a configuration which will tell the controller not to mess with the requestURI? Any insight would be appreciated. Thanks, James Norman

Re: tiles and getRequestURI

2003-11-11 Thread James Norman
James Norman [EMAIL PROTECTED]: I'm in the process of porting a web application from the Jetspeed/Turbine framework over to struts and I ran into a problem someone may be able to help me with. When I have a Jsp that is included by a tile, the httpServletRequest.getRequestURI() returns

[Friday] Quote

2003-06-27 Thread James Norman
There are two ways of constructing a software design; one way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult. - C. A. R. Hoare

Re: Contents of directory on server?

2003-06-11 Thread James Norman
You can always call servletContext.getRealPath() then create a File and list the contents. This however would require that your war be unpacked, and is not good practice. You could maybe define the location of the war file on a init-param of web.xml, then at startup build an index of the war

Re: PHP version of Struts

2003-06-11 Thread James Norman
The real advantage of PHP is the number of people that know PHP. The number of people that know jsp/velocity is dwarfed by those that know PHP, thus you can hire cheaper labor and the company saves money. This technology may not solve any problems for the Java programmer however it would

Re: Error [Ljava.lang.String;@d23.

2003-06-06 Thread James Norman
You might want to take a look at the Java Code Conventions. Also, just use a String for the getters and setters, you don't need to use a String array. http://java.sun.com/docs/codeconv/ On Fri, 2003-06-06 at 08:22, Sashi Ravipati wrote: Hi I get the following error when the jsp page is

Re: [Tiles] Forwarding To JSP Error Page From Within Tiles (Help!)

2003-06-06 Thread James Norman
It's a hack, but the action displaySystemError.do could send some javascript that when loaded will send the browser window to a specified error page. script language=JavaScript window.location=http://www.google.com;; /script On Fri, 2003-06-06 at 08:46, Hohlen, John C wrote: This is a

RE: [Tiles] Forwarding To JSP Error Page From Within Tiles (Help! )

2003-06-06 Thread James Norman
You could write a servlet Filter that will buffer the output, and after the tiles execute the filter will determine whether to send the output to the client. If the filter determines that an error occurred then is can forward to the displaySystemError.do. You will have to write a

Re: tags to compare properties of 2 bean.

2003-06-05 Thread James Norman
You can use the JSTL tags for this. c:if test=${ bean1.property == bean2.property} ... /c:if On Wed, 2003-06-04 at 13:34, Zhu He wrote: Hi We can use struts tag to compare the property of a bean to a value, like logic:equal name=bean property=prop1

RE: Very simple and URGENT Tag question - Please Help

2003-06-04 Thread James Norman
If you placed a Map in the context you can reference items in the Map by the key. Example would be to place a Map with a key of ID and some value into context. You can reference the value by calling c:out value=${reference.ID} /. This is useful when you can't write a bean. On Tue, 2003-06-03

Re: Collection Implementation

2003-06-03 Thread James Norman
Vectors *are* synchronized. You will still have a problem if your code looks like if( vector.contains( someObject) ) vector.remove( anotherObject ) Any will need to synchronize on something else or on the instance itself. On Mon, 2003-06-02 at 15:05, sjones wrote: some implemenations

Re: struts tags vs jstl

2003-06-03 Thread James Norman
I'm pretty sure that the latest release of Struts includes a subset of Struts tags that have been configured to support the EL Expression language. This is the expression language that is built into JSTL. I think that only the Struts tags that don't have equivalents in the JSTL have been ported.

Re: to forward or NOT?

2003-06-02 Thread James Norman
From what I understand about the question, it sounds like the user is downloading a file from the server and you want to abort the request after the action executes. It also sounds like the download is taking place in the Action. What I don't understand is how the users web page could be changed