That is my problem...how do you get the relative path
(in an action class)? Could you provide or point me
to some example code?
OR, even an example of using
'ApplicationResources.Properties' to read in a path
value would satisfy me.
thanks
--- Stephen Smithstone [EMAIL PROTECTED]
wrote:
try
Not sure, but perhaps can you get the relative path by calling
java.lang.system.getProperty('prop_name')
not sure what the identifier for relative path is though..
On Wed, 12 Mar 2003 10:36:09 -0800 (PST), bobd wrote
That is my problem...how do you get the relative path
(in an action class)?
try using an action that gets the relative path then pass that path to the
bean maybe
On Tuesday 11 March 2003 6:52 am, bobd wrote:
This is a rather silly problem I have been putting off
and now I really need to fix it...
In my Struts app, bean classes are parsing and writing
XML files
.
Hope that helps,
Jefficus
- Original Message -
From: bobd [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, March 10, 2003 11:52 PM
Subject: relative path problem
This is a rather silly problem I have been putting off
and now I really need to fix
Smith [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 11, 2003 11:35 AM
To: Struts Users Mailing List
Subject: Re: relative path problem
I find that paths can be stated as absolute, from the root of my web-app.
So, for example, my style sheets are linked as:
link rel=stylesheet type=text/css
href
This is a rather silly problem I have been putting off
and now I really need to fix it...
In my Struts app, bean classes are parsing and writing
XML files on disk. These files are currently being
pulled in using a full directory path! (i.e.
/usr/local/...) Attempts to use relative paths (from
I just upgraded to Struts 1.1b3
I get the following error when I start my application.
If anyone can point me in the right direction here, I would appreciate it.
ERROR Message:
Starting service Tomcat-Standalone
Apache Tomcat/4.1.18-LE-jdk14
Feb 18, 2003 10:33:34 AM
]]
Sent: Tuesday, February 18, 2003 11:06 AM
To: [EMAIL PROTECTED]
Subject: Resource Path problem
I just upgraded to Struts 1.1b3
I get the following error when I start my application.
If anyone can point me in the right direction here, I would appreciate
it.
ERROR Message:
Starting service Tomcat
/param-value
/init-param
I don't know why this didn't work ???
-Original Message-
From: Damm, Gary [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 18, 2003 12:06 PM
To: Struts Users Mailing List
Subject: RE: Resource Path problem
Not sure but it looks like it may be having
Templates path names are case sensitive. Check carefully your filenames.
Cedric
Jenny wrote:
Hi, All:
I have a index.jsp and a folder called templates in same directory as WEB-INF
directory does. In the template directory, I have welcome.jsp. In my index.jsp, I
will refer welcome.jsp. The
Hi, All:
I have a index.jsp and a folder called templates in same directory as WEB-INF
directory does. In the template directory, I have welcome.jsp. In my index.jsp, I will
refer welcome.jsp. The way I refer it is as following:
index.jsp
---
% page language=java %
% taglib
hello Jenny,
try this one...
template:insert template=templates/welcome.jsp
try removing the / before templates which is your templates directory.
Boney
Jenny wrote: Hi, All:
I have a index.jsp and a folder called templates in same directory as WEB-INF
directory does. In the
]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Sunday, September 08, 2002 10:42 PM
Subject: Re: path problem
hello Jenny,
try this one...
template:insert template=templates/welcome.jsp
try removing the / before templates which is your templates
directory.
Boney
Jenny wrote: Hi, All
I make the sample about the logon.do, everything works
but know i put the JSP files archived in a jsp/test/
folder and works fine with the HTML Tags but now i
deelte the custom tags and failed. Find Ok the Logon
main page but when it try to go to the action it get a
path like this
In my jsp I'm trying to submit my form to: /admin/login/LoginForm.do
so my tag looks like:html:form action=/admin/login/LoginForm.do
and the corresponding action tag (in the struts-config) looks like this:
action path=/LoginForm type=app.LoginAction name=LoginForm
scope=request
All my Struts actions work OK until I inserted base href='http://java'
in my HTML document.
After Craig fixed this for form:link page="/logoff.do" it works ok for NOT
linking to http://java/logoff.do. I am very happy to use this tag now.
But when I used: form:form action="listfaq.do"
All my Struts actions work OK until I inserted base href='http://java' in
my HTML document.
This doc base caused
form:link page="/logoff.do"bean:message
key="mainMenu.logoff"//form:link
to link to http://java/logoff.do and of course Struts action servlet does
not know how to handle this.
%/logoff.do which is wierd. In other words,
it seems that my Tomcat does not translate %=xxx% tag before taglib calls.
Anyway, it's mostly solved for myself.
Deping
- Original Message -
From: "Craig R. McClanahan" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, Januar
"/logoff.do"
Anyway, it's mostly solved for myself.
Deping
Craig
- Original Message -
From: "Craig R. McClanahan" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, January 05, 2001 6:42 PM
Subject: Re: Action Path Problem when Doc Base used
Deping Ch
19 matches
Mail list logo