Re: Action url

2017-12-28 Thread Yasser Zamani
seems you have to have a table (siteId, action, url) for mapping. Then will have to override action mapper like rest-plugin but is very simpler. Then will have to override Struts tags whom generate url e.g. url and action tags and use your customized tags in all jsps instead. Generally you will

Re: Action url

2017-12-28 Thread Tamás Barta
Your suggestions are ok for processing requests but are not to write urls (how to determine correct url) in jsps or other presentation layer output. To handle both sides a more sophisticated solution is needed. 2017. dec. 28. 10:19 ezt írta ("Yasser Zamani" ): > > > On 12/28/2017 12:21 AM, Tamás

Re: Action url

2017-12-28 Thread Yasser Zamani
On 12/28/2017 12:21 AM, Tamás Barta wrote: > For example there is a web application which has a LoginAction action. On > one site it is needed to access it via /login, on the other site /user/log. > > It is just an example. The urls shouldn't be hard-coded in action > annotations as I don't want

Re: Action url

2017-12-27 Thread Yasser Zamani
On 12/28/2017 12:21 AM, Tamás Barta wrote: > For example there is a web application which has a LoginAction action. On > one site it is needed to access it via /login, on the other site /user/log. I'm just curious why you have to do such support. I think if I knew, I could have better advice.

Re: Action url

2017-12-27 Thread Dave Weis
I'm doing something similar and extended ActionSupport to put helpers to access the user session and the site they went to in the first place. On Dec 27, 2017 2:51 PM, "Tamás Barta" wrote: > For example there is a web application which has a LoginAction action. On > one site it is needed to acc

Re: Action url

2017-12-27 Thread Tamás Barta
For example there is a web application which has a LoginAction action. On one site it is needed to access it via /login, on the other site /user/log. It is just an example. The urls shouldn't be hard-coded in action annotations as I don't want to clone the web application just to change urls. 201

Re: Action url

2017-12-27 Thread Yasser Zamani
On 12/27/2017 9:28 PM, Tamás Barta wrote: > I would like to use the same web app code > with different URLs (for different sites). Could you elaborate with an example, please?

Action url

2017-12-27 Thread Tamás Barta
Hi, Is there any built-in method to assign URL pattern to an action (method) out of the action code itself? I would like to use the same web app code with different URLs (for different sites). My idea is to create a custom URL mapper which reads url data from database or configuration files for ex

Re: How to render an action URL

2015-07-15 Thread Mats Nyberg
Thanks for your reply Lukasz, I will look into @Injecting an UrlRenderer into my DispatchListener, but I believe this requires an UI Component. Since I only need simple URLs (no parameters) I might build them myself. Only issue with that miht be the ”web context”; if the app resides under an app

Re: How to render an action URL

2015-07-13 Thread Lukasz Lenart
You can try to use Struts' @Inject to inject what is needed 2015-07-12 18:51 GMT+02:00 Mats Nyberg : > I must appologise for my last mail. I must have been exhausted or worse > writing it. > > What I have done so far, not mentioned previously is: > > - An @ActionMenu(”path/to/menuitem”) > > - A

Re: How to render an action URL

2015-07-12 Thread Mats Nyberg
I must appologise for my last mail. I must have been exhausted or worse writing it. What I have done so far, not mentioned previously is: - An @ActionMenu(”path/to/menuitem”) - A DispatcherListener, added in an ServletContextListener After the DispatcherListener have run through all declared

How to render an action URL

2015-07-10 Thread Mats Nyberg
Hi all I’m implementing an annotation based menu composing feature in a large Struts integrating web application. I would like to use Struts’ internal components (UrlRenderer, UrlProvider, ActionMapping…) for this. I’d like to do this programatically in Java code. This part of the feature tak

[S2] getting other action URL from within an action

2008-07-27 Thread Pierre Thibaudeau
Quick question for which, I can't for the life of me find an answer in the documentation. >From within an Action that extends ActionSupport, how can I get access to another action's URL from knowing the name of that other action. With Struts1, I would have done something like: (new ActionRe

Re: Struts 2.1.2 action url fails (possible bug)

2008-05-08 Thread Struts Two
I did one more test to verify the problem [I also changed the context root - just to get crazy] and the problem is there [you will find the server partial dump beflow]:  I first typed: https://localhost:9445/ccol/index.html  The url got redirected to the following url [after I was prompted to bas

Re: Struts 2.1.2 action url fails (possible bug)

2008-05-07 Thread Laurie Harper
Struts Two wrote: I have deployed the two blank war files for struts 2.0.11 and struts 2.1.2. While struts 2.0.11 works perfectly fine, I have the following problem with struts 2.1.2. Whenever I type a url as follows: https://localhost:9445/struts2.1.2/example/HelloWorld.action I get "page not

Struts 2.1.2 action url fails (possible bug)

2008-05-07 Thread Struts Two
I have deployed the two blank war files for struts 2.0.11 and struts 2.1.2. While struts 2.0.11 works perfectly fine, I have the following problem with struts 2.1.2. Whenever I type a url as follows: https://localhost:9445/struts2.1.2/example/HelloWorld.action I get "page not found" error. Howeve

how action url mapping has been controlled

2007-09-13 Thread Yahzz Yan
Hello, Look at existing Struts 2 package, after using the blank app war file, I cannot figure out how the actions url has been controlled. >From web.xml, the url-pattern specify as following, and it seems that any url >patten /* will work, but the framework doesn't behave that way. Why only >

RE: Tags rewrite wrong action url

2005-01-16 Thread Yufan Shi
[mailto:[EMAIL PROTECTED] Sent: Sunday, January 16, 2005 2:06 PM To: Struts Users Mailing List Subject: RE: Tags rewrite wrong action url Then perhaps the issue is the context rewriting in the mod_jk/mod_jk2 mapping? Regards, David -Original Message- From: Yufan Shi [mailto:[EMAIL PROTECTED

RE: Tags rewrite wrong action url

2005-01-16 Thread Yufan Shi
[mailto:[EMAIL PROTECTED] Sent: Sunday, January 16, 2005 2:06 PM To: Struts Users Mailing List Subject: RE: Tags rewrite wrong action url Then perhaps the issue is the context rewriting in the mod_jk/mod_jk2 mapping? Regards, David -Original Message- From: Yufan Shi [mailto:[EMAIL PROTECTED

RE: Tags rewrite wrong action url

2005-01-15 Thread David G. Friedman
Then perhaps the issue is the context rewriting in the mod_jk/mod_jk2 mapping? Regards, David -Original Message- From: Yufan Shi [mailto:[EMAIL PROTECTED] Sent: Saturday, January 15, 2005 9:54 PM To: 'Struts Users Mailing List' Subject: RE: Tags rewrite wrong action url Hi

RE: Tags rewrite wrong action url

2005-01-15 Thread Yufan Shi
http://www.ivanshi.com/blog/ -Original Message- From: David G. Friedman [mailto:[EMAIL PROTECTED] Sent: Sunday, January 16, 2005 3:04 AM To: Struts Users Mailing List Subject: RE: Tags rewrite wrong action url Yufan, This is a known problem with Struts IF Struts is used as a ROOT webapp

RE: Tags rewrite wrong action url

2005-01-15 Thread Yufan Shi
http://www.ivanshi.com/blog/ -Original Message- From: David G. Friedman [mailto:[EMAIL PROTECTED] Sent: Sunday, January 16, 2005 3:04 AM To: Struts Users Mailing List Subject: RE: Tags rewrite wrong action url Yufan, This is a known problem with Struts IF Struts is used as a ROOT webapp

RE: Tags rewrite wrong action url

2005-01-15 Thread David G. Friedman
om: Yufan Shi [mailto:[EMAIL PROTECTED] Sent: Saturday, January 15, 2005 1:02 PM To: 'Struts Users Mailing List' Subject: Tags rewrite wrong action url Hi all, It's a strange problem. I have a struts-based web application installed under the ROOT context of one vhost of Tomc

Re: Tags rewrite wrong action url

2005-01-15 Thread sales
Kindly send all your messages to [EMAIL PROTECTED] This mail account is not functioning anymore. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Tags rewrite wrong action url

2005-01-15 Thread Yufan Shi
Hi all, It's a strange problem. I have a struts-based web application installed under the ROOT context of one vhost of Tomcat 5. In the jsp files, if I use or Struts rendered //someaction.do or to the browser, while "/someaction.do" or " " was expected. I am sure the problem is not caused by Str

Tags rewrite wrong action url

2005-01-15 Thread Yufan Shi
Hi all, It's a strange problem. I have a struts-based web application installed under the ROOT context of one vhost of Tomcat 5. In the jsp files, if I use or Struts rendered //someaction.do or to the browser, while "/someaction.do" or " " was expected. I am sure the problem is not caused by Str

Re: Override form action URL

2004-06-09 Thread Niall Pemberton
al Message - From: "Eric Jain" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, June 03, 2004 3:20 PM Subject: Re: Override form action URL > > If so you can define a dummy action to which your form points. In the >

Re: Override form action URL

2004-06-09 Thread Niall Pemberton
Assuming you could do this, how then does struts know when you submit to "/test/a/" what action to run and for what reason "would like to avoid exposing the action URL"? Niall - Original Message - From: "Eric Jain" <[EMAIL PROTECTED]> To: <[EM

Re: Override form action URL

2004-06-03 Thread Eric Jain
If so you can define a dummy action to which your form points. In the dummy just forward to your actual action. In the rendered jsp/html page you will see the dummy action. Thanks, unfortunately the example I gave was somewhat simplified. I'd rather avoid having to configure dozens of dummy acti

Re: Override form action URL

2004-06-03 Thread brati . sankarghosh
Ghosh Tata Consultancy Services Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Eric Jain <[EMAIL PROTECTED]> 06/03/2004 03:55 PM Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]> To [EMAIL PROTECTED] cc Subject Override form act

Override form action URL

2004-06-03 Thread Eric Jain
I have: which generates: This works, but I would like to avoid exposing the action URL and return this instead: There is a servlet filter that will internally forward '/test/a/' to '/test/search?dataset=a'. An obvious solution would be: Unfortunately t