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
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
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
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.
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
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
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?
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
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
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
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
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
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
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
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
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
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
>
[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
[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
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
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
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
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
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]
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
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
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
>
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
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
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
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
31 matches
Mail list logo