Re: Forward to exception page instead of result in case of ognl runtime exception ?

2014-06-11 Thread Lukasz Lenart
Define validation for this field, then you will get validation error and Struts will forward to input result 2014-06-12 7:48 GMT+02:00 Mohit Gupta : > I have below action class where customerId is integer. If i pass customerId > as string from UI(I know it should not be allowed but there are > way

Re: Forward to another page on Submit

2009-06-23 Thread Sam Wun
sorry for the typo, I meant it "DOESN't" go to the Help page when I click the submit button on the Input page. On Wed, Jun 24, 2009 at 12:10 AM, Sam Wun wrote: > Dear all, > > I have a problem when I click a submit button of a page, it doesn't go > straight to the next desired page. > Here is my l

Re: Forward with redirect="true" failing mysteriously

2008-01-09 Thread Laurie Harper
Tough to diagnose remotely without more information :-( Usually an IllegalStateException on a redirect is the result of the response having been committed, but you say the response isn't being touched by your action. My guess would be that it's being touched by something else... If you can't f

RE: Re: forward to a particular id in a page from

2007-11-14 Thread Richard . Ferri
It sounds like you want to use mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper Sent: Wednesday, November 14, 2007 6:47 PM To: [email protected] Subject: Re: forward to a particular id in a page from Hi, > > i have an html id in a jsp page . > > i have, > in my st

Re: forward to a particular id in a page from

2007-11-14 Thread Laurie Harper
shakeel_code wrote: Hi, i have an html id in a jsp page . i have, in my struts config.xml but i want to go directly to that id in the jsp page when the forward happens. i also tried, but it was of no help can anyone help me? I'm not sure if I understand what you want... Do you

Re: Forward to different JSPs

2007-08-15 Thread Laurie Harper
Jasper Floor wrote: On 8/15/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi, So here it is only possible to return to the given input JSP "dataChecks.jsp". How can I return to the calling JSP without defining one action tag for every single JSP? If you don't close your actionmappin

Re: Forward to different JSPs

2007-08-15 Thread Jasper Floor
On 8/15/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi, > >path="/secure/dataChecks" > name="emptyForm" > type="org.springframework.web.struts.DelegatingActionProxy" > input="/secure/dataChecks.jsp" /> > > So here it is only possible to return to the given input

Re: Forward to remote URL in struts

2007-06-15 Thread Laurie Harper
SURESH GUDIVADA wrote: Hi, I have tried using request.getRequestDispatcher.forward() and returning the actionforward to null I used the below code String customURL = getcustomURL(); RequestDispatcher req = request.getRequestDispatcher(customURL); req.forward(request, response); But it is not

Re: Forward a action from one action programmatically in STruts 2.0

2007-03-20 Thread arunkumar S
Hi Rene, It works.Thanks Regards, Arun. Maybe this is the option you are searching for: struts.xml: --- ${targetUrl} in your acme.Action1 class: --- String targetUrl; public String getTargetUrl() { return this.targetUrl; } public String execute() { if (...

Re: Forward a action from one action programmatically in STruts 2.0

2007-03-20 Thread Rene Gielen
Maybe this is the option you are searching for: struts.xml: --- ${targetUrl} in your acme.Action1 class: --- String targetUrl; public String getTargetUrl() { return this.targetUrl; } public String execute() { if (...) { this,ta

Re: Forward a action from one action programmatically in STruts 2.0

2007-03-20 Thread Rene Gielen
Maybe this is the option you are searching for: struts.xml: --- ${targetUrl} in your acme.Action1 class: --- String targetUrl; public String getTargetUrl() { return this.targetUrl; } public String execute() { if (...) { this,ta

Re: Forward a action from one action programmatically in STruts 2.0

2007-03-16 Thread arunkumar S
Hi, Thanks for the inputs. my req. will not satisfy your suggestion. My req. is I have to load different Jsps depending on the user profile. eg . for user with profile = "abc", i will have JSps like 1_abc.jsp,2_abc.jsp,3_abc.jsp for user with profile = def , i will have

Re: Forward a action from one action programmatically in STruts 2.0

2007-03-16 Thread Harring Figueiredo
The way I solve this is by returning the value you want and setting up the action chain on struts.xml file: Example: class MyAction 1 .. { public String execute(){ if(foo) return "foo"; else return "bar"; } Then on the Strutus XML file:

Re: forward request to struts action on other server

2006-12-15 Thread Laurie Harper
bramsomers wrote: Hi all, I have two servers, each running the sun appliction server (9.0). I've build a webapplication, and know I want to forward requests from the first to the second application server. You can't forward a request between two separate applications, whether they be deployed

Re: Forward Action to Action

2006-10-23 Thread Ed Griebel
The easiest is to put your data as attributes in the request scope with request.setAttribute( name, value), and then extract them in the second action with 'MyClass value = (MyClass) request.getAttribute(name)'. You can also put the attributes in the session scope, but you need to remember to remo

Re: Forward Action to Action

2006-10-23 Thread Lixin Chu
how abt using the same formbean for both actions ?

RE : Forward Action to Action

2006-10-23 Thread Jean-Marie Pitre
-Message d'origine- De : Jean-Marie Pitre [mailto:[EMAIL PROTECTED] Envoyé : samedi 21 octobre 2006 16:27 À : Struts Users Mailing List Objet : Forward Action to Action Hi, I would like to forward an Action to another one. My problem is : I want to pass a data from my first first acti

Re: Forward Action to Action

2006-10-23 Thread WongTseng王曾
Maybe it's impossible. Cos the data populated into the formbean is read from url parameters, and you can't create parameter in request by any Java API. So 'tis difficult. But you can hardcode the paramters in the path of the forward which points to your second action. 2006/10/21, Jean-Marie Pitr

Re: Forward Action to Action

2006-10-23 Thread ShiBing Chen
Action chain can do that. On 10/21/06, Jean-Marie Pitre <[EMAIL PROTECTED]> wrote: Hi, I would like to forward an Action to another one. My problem is : I want to pass a data from my first first action to my second formbean (second action). I tried to do a setattribute in my first action befo

RE: Forward Action to Action

2006-10-23 Thread zhang xiao
From: "Jean-Marie Pitre" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: "Struts Users Mailing List" Subject: Forward Action to Action Date: Sat, 21 Oct 2006 16:27:13 +0200 Hi, I would like to forward an Action to another one. My problem is : I want to pass a data from my fi

Re: Forward Action to Action

2006-10-23 Thread João Vieira da Luz
I think you are little bit confused. FormBeans are the request abstractions of requests. Thus, in order to populate the 2nd bean you have to use request PARAMETERS instead of request ATTRIBUTTES. Hope this helps you On 10/21/06, Jean-Marie Pitre <[EMAIL PROTECTED]> wrote: Hi, I would like to

Re: Forward to action without jsp

2006-09-29 Thread Albert L. Sapp
hoice is: Edit My Profile (for example), which invokes the action from #1 public ActionForward execute( ) throws ... { String userId = request.getParameter("userId"); UserProfile up = service.getProfile( userId ); BeanUtils.copyProperties( form, up ); return &quo

Re: Forward to action without jsp

2006-09-29 Thread Andy.de
Frank W. Zammetti wrote: > > Just do: > > Frank > Hi Frank, that was the hint i needed, thx Regards, Andy -- View this message in context: http://www.nabble.com/Forward-to-action-without-jsp-tf2350751.html#a6562710 Sent from the Struts - User mailing list archive at Nabble.com. -

Re: Forward to action without jsp

2006-09-28 Thread Venkata Phani Kumar
- Original Message - From: "Andy.de" <[EMAIL PROTECTED]> To: Sent: Thursday, September 28, 2006 6:25 PM Subject: Forward to action without jsp > > Hi all, > how can i forward to an action without input (jsp) ? > The path attribute of action tag in struts-config must point to jsp's. To

RE: Forward to action without jsp

2006-09-28 Thread Andy.de
uccess"; > } > > 3. The user ends up on the profileEdit.jsp page with the data filled into > the form bean. > > -Original Message- > From: Andy.de [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 28, 2006 10:07 AM > To: [email protected] > Subje

Re: Forward to action without jsp

2006-09-28 Thread Frank W. Zammetti
On Thu, September 28, 2006 10:07 am, Andy.de wrote: > Hi Wendy, > i have an action 'load object from database', on execute() the form bean > is filled with values from database. On success i want to forward to the > jsp > to > display the object. The user can change the values and submit the jsp,

RE: Forward to action without jsp

2006-09-28 Thread Givler, Eric
oops! return mapping.findForward("success"); -Original Message- From: Givler, Eric [mailto:[EMAIL PROTECTED] Sent: Thursday, September 28, 2006 10:23 AM To: Struts Users Mailing List Subject: RE: Forward to action without jsp I'm not sure I understand what's wron

RE: Forward to action without jsp

2006-09-28 Thread Givler, Eric
m: Andy.de [mailto:[EMAIL PROTECTED] Sent: Thursday, September 28, 2006 10:07 AM To: [email protected] Subject: Re: Forward to action without jsp Wendy Smoak-3 wrote: > > On 9/28/06, Andy.de <[EMAIL PROTECTED]> wrote: > >> how can i forward to an action without input (j

Re: Forward to action without jsp

2006-09-28 Thread Andy.de
Wendy Smoak-3 wrote: > > On 9/28/06, Andy.de <[EMAIL PROTECTED]> wrote: > >> how can i forward to an action without input (jsp) ? > > I'm not sure what you're asking. What do you want the user to be able to > do? > > In general, any URL that maps to an Action will execute the action, > whet

Re: Forward to action without jsp

2006-09-28 Thread Wendy Smoak
On 9/28/06, Andy.de <[EMAIL PROTECTED]> wrote: how can i forward to an action without input (jsp) ? I'm not sure what you're asking. What do you want the user to be able to do? In general, any URL that maps to an Action will execute the action, whether or not there is any 'input' (request pa

[OT] Re: Forward to the same page

2006-09-08 Thread Antonio Petrelli
Manfred Wolff ha scritto: hi antonio, It wasn't me that asked the question, thank you anyway :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Forward to the same page

2006-09-08 Thread Manfred Wolff
ge (such as when dealing with > login). > > Also you have to be sure, that your lang=.. parameter is in the end of > parameters line (that is true until you're not trying to add lang=.. > somewhere outside). And there will be problem if your application dealing > with parameters n

RE: Forward to the same page

2006-09-08 Thread leo mj
example, 'XXXlang'. All imperfections mentioned can be removed by some little changes in script. > -Original Message- > From: Antonio Petrelli [mailto:[EMAIL PROTECTED] > Sent: Friday, August 25, 2006 12:09 PM > To: Struts Users Mailing List > Subject: Re: Forwar

RE: Forward to the same page

2006-09-08 Thread Artem Zhmurov
x27;XXXlang'. All imperfections mentioned can be removed by some little changes in script. > -Original Message- > From: Antonio Petrelli [mailto:[EMAIL PROTECTED] > Sent: Friday, August 25, 2006 12:09 PM > To: Struts Users Mailing List > Subject: Re: Forward to the sam

Re: Forward to the same page

2006-08-25 Thread Antonio Petrelli
Thomas Hamacher ha scritto: How do I forward to the same page I was coming from? The typical example for this is the "change-language-problem". Someone is on one page and simply wants to change the language and expects to see the same page in a different language. Just an idea, tag has th

Re: Forward to different Form/JSP from one action

2006-07-18 Thread Michael Jouravlev
On 7/18/06, billintx <[EMAIL PROTECTED]> wrote: I'd like to do something like this: Each template would require a different ActionForm? Depends on your design. Generally, no. Should I create and put the ActionForm in the request manually? As you like. Should I chain this w

Re: Forward After response.getOutputStream

2006-01-19 Thread Mike Darretta
I think your answer suffices for this time, but my original objective was to: (1) Execute a download of an output stream for a file built on the fly (2) Forward to another page indicating the download succeded. Mike P.S. Thanks for the posting advice...I thought I was posting to the entire li

Re: Forward After response.getOutputStream

2006-01-19 Thread Laurie Harper
Mike Darretta wrote: I posted a similar question yesterday...thought I'd try again. Perhaps you posted that one in the middle of another thread as well? Make sure you post new threads as fresh messages, not replies to unrelated messages, to make sure they get seen by as many people as possib

Re: forward www.myserver.net to an action

2005-12-14 Thread Dave Newton
Michael Jouravlev wrote: On 12/14/05, Lesaint Sébastien <[EMAIL PROTECTED]> wrote: I have a Struts (1.2.4) webApp running on my server www.myserver.net. The servlet mapping is "*.do". I want the user to be forward to the action "index.do" when she requests "www.myserver.net". At the momen

RE: forward www.myserver.net to an action

2005-12-14 Thread Lesaint Sébastien
could. - I'm curious :) -Message d'origine- De : Michael Jouravlev [mailto:[EMAIL PROTECTED] Envoyé : mercredi 14 décembre 2005 19:11 À : Struts Users Mailing List Objet : Re: forward www.myserver.net to an action On 12/14/05, Lesaint Sébastien <[EMAIL PROTECTED]> wrot

Re: forward www.myserver.net to an action

2005-12-14 Thread Michael Jouravlev
On 12/14/05, Lesaint Sébastien <[EMAIL PROTECTED]> wrote: > Hello, > > I have a Struts (1.2.4) webApp running on my server www.myserver.net. The > servlet mapping is "*.do". I want the user to be forward to the action > "index.do" when she requests "www.myserver.net". > > At the moment, I'm using

Re: forward to an extental URL

2005-11-15 Thread Ming Li
Hi Laurie, thank you for the reply. The 404 must come from my struts action forward. Since if I post the form directly to the external URL, not from the action, everything is fine. Laurie Harper <[EMAIL PROTECTED]> wrote: Ming Li wrote: > I saw there was a similar post in this forum, but the

Re: forward to an extental URL

2005-11-14 Thread Laurie Harper
Ming Li wrote: I saw there was a similar post in this forum, but the solutions don't work for me. What I want to do is getting a form posted to an action, after some processing then forward to an external URL (for payment process). I tried the solutions suggested in this forum (http://www.m

RE: forward to a new window

2005-08-01 Thread Raj Tilak
you got to specify the target in the href or form action or whatever method you are using it From: "Rivka Shisman" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: "Struts Users Mailing List" Subject: forward to a new window Date: Mon, 1 Aug 2005 16:11:04 +0200 Hi friends

RE: forward to a new window

2005-08-01 Thread Mark Benussi
child and make calls in a similar way: var childWindow = document.open('etc'); chldWindow.style.left = '0px'; etc etc -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vic Sent: 01 August 2005 14:38 To: Struts Users Mailing List Subj

RE: forward to a new window

2005-08-01 Thread Vic
You would have to use javascript to do something like: link Vic > Rivka > > -Original Message- > From: Mark Benussi [mailto:[EMAIL PROTECTED] > Sent: Monday, August 01, 2005 3:12 PM > To: [email protected] > Subject: RE: forward to a new window > > when

Re: forward to a new window

2005-08-01 Thread Emmanouil Batsis
Sorry, i only read the first paragraph :-/ Manos Emmanouil Batsis wrote: The only way is to include JS code in your response, to open a new windows for that resource. Questions like this one usually come from designs that can be improoved though. hth, Manos Rivka Shisman wrote: Hi frie

Re: forward to a new window

2005-08-01 Thread Emmanouil Batsis
The only way is to include JS code in your response, to open a new windows for that resource. Questions like this one usually come from designs that can be improoved though. hth, Manos Rivka Shisman wrote: Hi friends I would like to know if there is a way of forwarding a request to a n

RE: forward to a new window

2005-08-01 Thread Leon Rosenberg
share the same session attributes? > > 2. How do you define a child window in JSP - can you please attach an > example? > > Rivka > > -Original Message- > From: Mark Benussi [mailto:[EMAIL PROTECTED] > Sent: Monday, August 01, 2005 3:12 PM > To: user@str

RE: forward to a new window

2005-08-01 Thread Rivka Shisman
PROTECTED] Sent: Monday, August 01, 2005 3:12 PM To: [email protected] Subject: RE: forward to a new window when writing a link the target attribute can be set with _new or _blank or even the name of a child window. When youclick on the link it will open in said new window

RE: forward to a new window

2005-08-01 Thread Mark Benussi
when writing a link the target attribute can be set with _new or _blank or even the name of a child window. When youclick on the link it will open in said new window. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: forward to a new window

2005-08-01 Thread Vic
Hi Rivka, Try the following: link This will open your action in a new window. Vic > Hi friends > > > > I would like to know if there is a way of forwarding a request to a new > explorer window. > > For example, in the current window I have a list of books and a link to > a book details page fo

Re: Forward to current page

2005-07-21 Thread erikweber
Ah OK, well then as you suggested, I suppose he'll have to track it himself. Erik -Original Message- From: Laurie Harper <[EMAIL PROTECTED]> Sent: Jul 21, 2005 6:21 PM To: [email protected] Subject: Re: Forward to current page But the 'current request' wo

Re: Forward to current page

2005-07-21 Thread Michael Jouravlev
On 7/21/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > > Struts Dialogs are stateful, thus if you reload the same action, you > get the same page ;-) > Oops, meant to say that if you reload the same action, you get a page corresponding to current action state. Which could have changed becaus

Re: Forward to current page

2005-07-21 Thread Michael Jouravlev
On 7/21/05, Daniel Łaś <[EMAIL PROTECTED]> wrote: > Hi > > How can I forward to current page in Action ? I created locale change > action and want to execute it form every page of site and always get > back to the curent page. Generally, action does not know about "current" page, because Action i

Re: Forward to current page

2005-07-21 Thread Laurie Harper
But the 'current request' would be the one to the locale change action, which wouldn't help figuring out where to go after it's complete. You need to know what the /previous/ request was for that. L. [EMAIL PROTECTED] wrote: ActionMapping.getPath might help. If not, there are various attribut

Re: Forward to current page

2005-07-21 Thread erikweber
ActionMapping.getPath might help. If not, there are various attributes that Struts sets that give you path/mapping information about the current request. Erik -Original Message- From: Daniel ?a? <[EMAIL PROTECTED]> Sent: Jul 21, 2005 2:27 PM To: Struts Users Mailing List Subject: Forw

Re: Forward to current page

2005-07-21 Thread Laurie Harper
Daniel Łaś wrote: How can I forward to current page in Action ? I created locale change action and want to execute it form every page of site and always get back to the curent page. Two possibilities off the top of my head: have your action redirect/forward based on the Referrer header (OK if

Re: Forward path entry in Struts-config

2005-07-14 Thread Laurie Harper
rajiv verma wrote: Hi, I want to place my JSPs under the WEB-INF directory[login directory]. How ths struts-config entries should look in this case. If I try to add the following forward--entry: But, this by default looks everything under the context[root]. Any solution to this? I know there

Re: Forward path entry in Struts-config

2005-07-14 Thread Michael Jouravlev
1. Files under WEB-INF cannot be accessed directly from outside, that is, from browser 2. Redirect generates a new browser request to the server So, the answer is "not possible" in your current configuration. JSP generally should not be accessed from outside, they should be forwarded to from an a

Re: Forward to tile definition when using modules-modules

2005-04-04 Thread brenmcguire
Check out the element of your struts-config.xml. It must be: Otherwise you won't be able to forward to a tile definition. Ciao Antonio Petrelli haim wrote: > The project is growing and we need few developers to work on it. > I am trying to deploy the application using the struts modules. > We a

Re: forward

2005-03-16 Thread Hubert Rabago
Right. The version in SVN is specifically for 1.3, which restores ResponseUtils and puts TagUtils into a separate jar file. That is why it is written up that way. Since you're using an earlier version, you can apply the changes you mentioned to your local copy of it, then discard the whole clas

Re: forward

2005-03-16 Thread sudip shrestha
The ActionRedirect Class works great..Except one minor modification has to be made under function public void addParameter(String fieldName, Object valueObj): instead of value = ResponseUtils.encodeURL(value); use the following: value = TagUtils.getInstance().encodeURL(value); First of all Response

Re: forward

2005-03-15 Thread Hubert Rabago
You can create a new ActionForward object, copy the data from the original forward, and modify the path of the new object. A quick way would be to add the ActionRedirect class to your code and use that: http://svn.apache.org/viewcvs.cgi/struts/core/trunk/src/share/org/apache/struts/action/ActionRed

RE: forward to a remote server

2004-10-27 Thread David G. Friedman
Ryan, I posted a code snippet on how to send an HTTP request behind the scenes in an Action some time ago. This might help if you change the paypal specific stuff to be your type of transaction: http://marc.theaimsgroup.com/?l=struts-user&m=109529231331622&w=2 I have no idea what a "XmlStringNot

RE: Forward to a file on hard drive

2004-09-23 Thread bmf5
<[EMAIL PROTECTED]> cc 09/22/2004 04:17 PMSubject RE:

RE: Forward to a file on hard drive

2004-09-22 Thread Durham David R Jr Contr 805 CSPTS/SCE
> clugee (sp) http://dictionary.reference.com/search?r=2&q=kludgy I'm good for something. - Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Forward to a file on hard drive

2004-09-22 Thread Frank W. Zammetti (MLists)
>> >> >> >> The redirect worked. Of course, this was just a test which I did with a >> logic tag. >> >> Praveen >> >> >> -Original Message- >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >> Sent: Wednesday, September 22,

RE: Forward to a file on hard drive

2004-09-22 Thread bmf5
raveen > > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 22, 2004 1:50 PM > To: Struts Users Mailing List > Subject: Re: Forward to a file on hard drive > > > > > > > I'm sorry to report it d

RE: Forward to a file on hard drive

2004-09-22 Thread Arumbakkam, Praveen \(Contractor\)
Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 22, 2004 1:50 PM To: Struts Users Mailing List Subject: Re: Forward to a file on hard drive I'm sorry to report it doesn't work. As best I can tell It wants to find the file in the application c

Re: Forward to a file on hard drive

2004-09-22 Thread Jeff_Caswell
List" <[EMAIL PROTECTED]> cc: 09/22/2004 01:50 Subject: Re: Forward to a file on hard drive

Re: Forward to a file on hard drive

2004-09-22 Thread bmf5
I'm sorry to report it doesn't work. As best I can tell It wants to find the file in the application context. I base that on the 404 and the location being the RouterAction with parm... http://localhost:9080/AIM/router.do?destination=handHeld from a forward of forward name="handHeld" path

Re: Forward to a file on hard drive

2004-09-22 Thread Hubert Rabago
By the way, bmf5, if it IS on the user's hard drive, you don't need to hardcode the path to the file like in my example. You can create an ActionForward in your action to specify the path at runtime, and have the action return that instead. On Wed, 22 Sep 2004 14:12:00 -0400 (EDT), Frank W. Zamm

Re: Forward to a file on hard drive

2004-09-22 Thread Frank W. Zammetti (MLists)
Ok, seems like my brain is asleep earlier than usual today... I agree, if that is indeed the case, the redirect should in all probability work as Hubert says. I would expect it to until I saw otherwise anyway. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http:/

Re: Forward to a file on hard drive

2004-09-22 Thread Hubert Rabago
Hmm... and my understanding was that the file is installed on the user's machine. "and then render the html page from the local hard drive." If I misunderstood, then the code sample I posted wouldn't work. Hubert On Wed, 22 Sep 2004 14:05:43 -0400 (EDT), Frank W. Zammetti (MLists) <[EMAIL PROTE

Re: Forward to a file on hard drive

2004-09-22 Thread Frank W. Zammetti (MLists)
That presumes that the app server is on the same box as the client (which is, I think, the only way the file:// path would work). IF that's the case, then yes, Hubert's suggestion would probably work just fine. I had assumed, from the description given, that this wasn't the case. -- Frank W. Za

Re: Forward to a file on hard drive

2004-09-22 Thread Frank W. Zammetti (MLists)
Interesting... It sounds, based on your description of what your doing, that you really aren't forwading to the page, you just need to return it out of your Action. If that's the case, my suggestion of getting a stream on it (treat it like an ordinary file, attach no special meaning to the fact t

Re: Forward to a file on hard drive

2004-09-22 Thread Hubert Rabago
In that case, try something like On Wed, 22 Sep 2004 14:00:23 -0400, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > "Frank W. Zammetti (MLists)" <[EMAIL PROTECTED]> wrote on 09/22/2004 > 01:34:07 PM: > > > Are you actually trying to FORWARD to the file or is your intention to > > initiat

Re: Forward to a file on hard drive

2004-09-22 Thread bmf5
"Frank W. Zammetti (MLists)" <[EMAIL PROTECTED]> wrote on 09/22/2004 01:34:07 PM: > Are you actually trying to FORWARD to the file or is your intention to > initiate download of the file? FORWARD > > Your specifying an HTML file though, so I assume you want the user to see > that page.

Re: Forward to a file on hard drive

2004-09-22 Thread Hubert Rabago
What is it you're trying to do? Are you trying to give the client access to a document store on the server? If so, you should place the document in a location accessible to the web application, and provide that url as the forward path. How you do this and what its eventual URL is would depend on

Re: Forward to a file on hard drive

2004-09-22 Thread Frank W. Zammetti (MLists)
Are you actually trying to FORWARD to the file or is your intention to initiate download of the file? If the later, you'll need to do the usual download code, and just point it at the file. Your specifying an HTML file though, so I assume you want the user to see that page... So, the question is,

Re: Forward to a file on hard drive

2004-09-22 Thread bmf5
This doesn't work either. I get a 404 for a local resource or an outside url. I don't want to hardcode the document.location but I don't know what other choices there are. Hubert Rabago <[EMAIL PROTECTED]> wrote on 09/22/2004 12:00:00 PM: > If you need to forward to a resource outside the

Re: Forward to a file on hard drive

2004-09-22 Thread Hubert Rabago
If you need to forward to a resource outside the current web context, you can try using a redirect. http://gmail.google.com"; redirect="true"/> Now, whether it'll work when you point it to a local resource... I think what you'll get is the user's browser will try to look for that file on the use

Re: forward and set url parameter

2004-08-24 Thread Stefan Groschupf
tuation, so with the redirect stuff you'll be done. Saludos. Guillermo. -Mensaje original- De: Erik Weber [mailto:[EMAIL PROTECTED] Enviado el: Martes, 24 de Agosto de 2004 05:57 p.m. Para: Struts Users Mailing List Asunto: Re: forward and set url parameter public ActionForward exe

RE: forward and set url parameter

2004-08-24 Thread Guillermo Meyer
one. Saludos. Guillermo. -Mensaje original- De: Erik Weber [mailto:[EMAIL PROTECTED] Enviado el: Martes, 24 de Agosto de 2004 05:57 p.m. Para: Struts Users Mailing List Asunto: Re: forward and set url parameter public ActionForward executeActionMapping mapping, ActionForm form, H

Re: forward and set url parameter

2004-08-24 Thread Erik Weber
public ActionForward executeActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { ActionForward forward = mapping.findForward("success"); String path = forward.getPath(); path += "?foo=bar"; return new ActionForward(path); } But in th

Re: Forward from tile

2004-06-12 Thread Niall Pemberton
Store the href to the previous page in the users session for every request - either customise the RequestProcessor to do this or have a "BaseAction" which all your actions inherit from which does it. Niall - Original Message - From: "Pavlikus" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>

RE: forward request parameter

2004-05-13 Thread Geeta Ramani
Samuel: > -Original Message- > From: Samuel Rochas [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 13, 2004 4:20 PM > To: Struts Users Mailing List > Subject: Re: forward request parameter > > > Hello Geeta, > > Thanks. > > It means I'll have

Re: forward request parameter

2004-05-13 Thread Samuel Rochas
Hello Geeta, Thanks. Geeta Ramani wrote: You will have to put the data again in the request > scope in your second action.. It means I'll have to process it again, and put again in the request? So a session variable may be more apropriate? Samuel ---

RE: forward request parameter

2004-05-13 Thread Geeta Ramani
Sameul: You will have to put the data again in the request scope in your second action.. Geeta > -Original Message- > From: Samuel Rochas [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 13, 2004 11:43 AM > To: Struts Users Mailing List > Subject: forward request parameter > > > Hello,

RE: Forward after returning content?

2004-05-11 Thread Robert Taylor
John Moore [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 11, 2004 1:57 PM > To: Struts Users Mailing List > Subject: Re: Forward after returning content? > > > John Moore wrote: > > > Neat! Yes, this is the way. Thanks Niall and Robert too. > > > I just recalled o

Re: Forward after returning content?

2004-05-11 Thread John Moore
John Moore wrote: Neat! Yes, this is the way. Thanks Niall and Robert too. I just recalled one of the reasons why I wanted to do it the way I did. In my original version, where I actually handle the file download, I record in a database what has been downloaded by whom and when, which I can do

Re: Forward after returning content?

2004-05-11 Thread John Moore
Niall Pemberton wrote: I don't believe you can (although I would be interested if there was a way). How about doing it the other way round, forward to your page with the instructions on and use the meta refresh tag to redirect to your download action. Something like this: Download Page

Re: Forward after returning content?

2004-05-11 Thread Niall Pemberton
I don't believe you can (although I would be interested if there was a way). How about doing it the other way round, forward to your page with the instructions on and use the meta refresh tag to redirect to your download action. Something like this: Download Page If do

RE: Forward after returning content?

2004-05-11 Thread Robert Taylor
John, we have a similar process where by we allow a customer to download a file. Instead of the Struts handling the actual downloading, we direct the user to the informational page for the file. That page contains either javascript or a meta-refresh tag which redirects the request to the file to be

Re: Forward to original page

2004-05-10 Thread Christian Grobmeier
Hello, there is a form, which is included in all three templates. It sets the sort-order for my results. The Problem is, when i change this order i would like to be forwarded to the page where the form has been submitted. You could pass the name of the forwarding as a hidden field into the form. T

Re: Forward to original page

2004-05-05 Thread Christian Grobmeier
Hello Rüdiger You could pass the name of the forwarding as a hidden field into the form. The value of the field is defined in the tile definition of the actual page template. You might put into the page templates to have access to that page attribute (not sure about this). Does this work? This so

Re: Forward to original page

2004-05-05 Thread Rüdiger Schulz
Hello Christian Grobmeier, on 05.05.2004 at 11:52 you wrote: > I have this pages (Tiles): > frontend.overview > frontend.details > frontend.results > there is a form, which is included in all three templates. It sets the > sort-order for my results. The Problem is, when i change this order i > w

RE: Forward to original page

2004-05-05 Thread Ashutosh Satyam
What I could infer you want to come back to the original page from whereever you posted the request. In your struts configuration file you need to provide action-mapping to appropriate tiles definition. For instance, snippet of struts config file tiles definition file