How to convert absolute URL to context-relative URL?

2006-08-13 Thread Michael Cheung
Hi, all; I get requestURL from request object in Action, then I want to create a ActionForward object for this URL to return. So I have to convert the absolute URL from requestURL to context relative URL. Thanks a lot. Regards; Michael -

Re[2]: some question, please help me.

2006-08-13 Thread Michael Cheung
Hi, Thanks for your help. I am using the c.tld from struts-el. and it give me the following error message: [According to TLD or attribute directive in tag file, attribute items does not accept any expressions] when I change to c-rt.tld, same as c.tld from struts-el, it works as you said. Then w

Re: [using #(anchor) in xxx.do][solved]]

2006-08-13 Thread Deva Pitchai(NatureSoft)
Hi Wendy, your link helped me alot and gave me wht i need. thanks Deva Wendy Smoak wrote: On 8/11/06, Deva Pitchai <[EMAIL PROTECTED]> wrote: Is there a possibilty of using a anchor tag like below from the struts action ... I know wht to do in the html side.. but dont dont know how to i

Re: Splitting validation.xml

2006-08-13 Thread Wendy Smoak
On 8/13/06, Kevin Maeer <[EMAIL PROTECTED]> wrote: Initially I'm trying to get this to work using Oracle JDeveloper (10.1.2) and its embedded OC4J (which could well be the problem). We're using Struts 1.2.7. The ValidatorPlugIn in struts-config.xml currently looks like: The a

Re: Splitting validation.xml

2006-08-13 Thread Martin Gainty
in your init() method you can read in any old text file with BufferedReader such as reader = new BufferedReader(new FileReader("/usr/local/package/Servlet.properties")); Anyone else ? Martin -- * This email message and any f

RE: Splitting validation.xml

2006-08-13 Thread Kevin Maeer
Initially I'm trying to get this to work using Oracle JDeveloper (10.1.2) and its embedded OC4J (which could well be the problem). We're using Struts 1.2.7. The ValidatorPlugIn in struts-config.xml currently looks like: We're using Spring as well as Struts and directly below the

RE: Problem writting to the output stream within an action

2006-08-13 Thread David Friedman
Yes. Just return or return null instead of an ActionForward. Don't look for a mapping using mapping.findforward(null). As a side note, you have a lot of nested "try/catch" and "if" statements which a) can be difficult to read (I had trouble) and the nested try/catches can cause performance issue

Problem writting to the output stream within an action

2006-08-13 Thread Bart Busschots
Hi, I'm trying to write a struts action that will render a PDF rather than some JSP. My code is below. The problem is that the line to get the output stream throws an exception: java.lang.IllegalStateException: getOutputStream() has already been called for this response org.apache.c

Re: some question, please help me.

2006-08-13 Thread Martin Gainty
Good Morning Michael-- If I understand your question correctly the expression needs to be enclosed in ${} as in this example from Ted Husted - - -<%-- The functionality of "logic:match" will eventually be available -through a string function in

some question, please help me.

2006-08-13 Thread Michael Cheung
Hi, everyone; I am new to struts. Need someone help me. Version:Struts 1.2.9, jsp 2.4, tomcat,5.0.28 Question about: struts-el, c.tld in c.tld, not c-rt.tld 1.Document said, difference between el and standard is rtexpression. ${xxx} is supportted in EL tags, but in standard tags, ${xxx} give me