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
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:
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
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
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
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
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
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
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
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
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
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
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
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.
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
15 matches
Mail list logo