Hi all,
can an interceptor call an arbitraty action different from the action
requested by the client?
Suppose i've the interceptor "interceptor-router" placed in the stack and
the client call MyAction.action, when the interceptor intercept the call is
possible to 'redirect' the call to MyDiffere
Martin Gainty wrote:
did ibm provide any solution to these problems with their AppServer?
http://www.networkworld.com/news/2009/032609-ibm-layoffs.html
Huh?
steven.mitch...@umb.com wrote:
> I have a Struts 2 application that runs fine under Tomcat 5.5
> that will not run on a fully patched ver
Qunhuan Mei wrote:
Sorry for my ignorance but could some one tell me how to access java
variable within jsp from struts tag blocks. See the sample code below (say,
from test.jsp)
...
<%
boolean goAhead = true;
int counter = 0;
%>
...
tutul wrote:
Does anyone knows how I can submit a list back to the action??
What happens when you run the code? Is it a typo that the setter is
missing the opening paren for the parameters? Just glancing at it it
seems like it should work.
Oh, wait. Did you check the rendered HTML to see if
To answer your question, the application is using form based authentication.
FORM
Security Profile
/[my path]/[my login].jsp
/[my path]/[my login error].jsp
-Original Message-
From: Struts Two [mailto:struts...@yahoo.ca]
Hi all,
I have page1.jsp . The action of this is per my struts-config is as follows
The success page "proctor_passw.jsp" has a java script which opens page2.jsp
if(<%=request.getParameter("page")%> == null){
var targeturl="privacypolicy.do"
if (document.all){
newwin=window.open(tar
This ain't going to well, I am sorry for taking your time! However, I
must be close to the solution since I found an example on Internet
which I managed to get to work, more or less like I want it to work.
But when going back to my own code, it still doesn't work, even though
I tried to do exactly
Do you have Basic or Form based authentication enabled in your web.xml?
--- On Tue, 5/26/09, Mitchell, Steven wrote:
> From: Mitchell, Steven
> Subject: RE: Struts 2 dispatcher does not see namespace and action in URL
> To: "Struts Users Mailing List"
> Received: Tuesday, May 26, 2009, 3:33 P
We ran into an issue that will be fixed in 2.1.7:
https://issues.apache.org/struts/browse/WW-3140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46241
#action_46241
We worked around it by not using s:select but coding a using
s:iterator (the suggesti
I would look into the tag. It should do the trick.
(*Chris*)
On Tue, May 26, 2009 at 9:47 AM, Qunhuan Mei wrote:
> Hi,
> Sorry for my ignorance but could some one tell me how to access java
> variable within jsp from struts tag blocks. See the sample code below (say,
> from test.jsp)
>
> ...
MG>closest example i could find is located at
https://svn.apache.org/repos/asf/struts/struts2/branches/STRUTS_2_0_X/apps/showcase/src/main/webapp/conversion/enterAddressInfo.jsp
MG>check these comments
Martin
__
Verzicht und Vertraulichkeitanmerkung/
Use a s:textarea tag insted of an html input
On Tue, May 26, 2009 at 11:01 AM, tutul wrote:
>
> Hi,
>
> Does anyone knows how I can submit a list back to the action??
> I have a List that I am displaying in the jsp. DemandRequest
> has Id, status, comments. Some of the fields in it are pre-pop
Hi,
Sorry for my ignorance but could some one tell me how to access java
variable within jsp from struts tag blocks. See the sample code below (say,
from test.jsp)
...
<%
boolean goAhead = true;
int counter = 0;
%>
...
Hi,
Does anyone knows how I can submit a list back to the action??
I have a List that I am displaying in the jsp. DemandRequest
has Id, status, comments. Some of the fields in it are pre-populated (id)
but some of them will be added by the user (comment, status). I have it send
it back to the ac
2009/5/26 Jim Collings :
> I could write an interceptor but this seems like re-inventing the
> wheel as it seems like there should be something out there that will
> do this already.
Your own Interceptor is the best solution and the second best option
is to use Acegi or something similar
Regards
Server side. Thing is that we have container based security and I just
need to check and make sure the userid is set. If it isn't, force the
user to the page where that happens.
I could write an interceptor but this seems like re-inventing the
wheel as it seems like there should be something out t
How can I force the user to go to a specific page, if a specific
property is set?
Jim C.
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
2009/5/26 Jim Collings :
> How can I force the user to go to a specific page, if a specific
> property is set?
With JavaScript? Or if you mean server side solution, in execute()
method return different result namr base on that property which is
defined as a redirect to page you want.
Regards
--
I found a post about setting
com.ibm.ws.webcontainer.invokefilterscompatibility = true, but it made
no difference. The namespace and action name are still getting dropped
before reaching Struts.
Since it works find on Tomcat 5.5, I suspect
com.ibm.ws.webcontainer.filter.FilterInstanceWrapper,
c
Hi,
I'm using Struts 1.3.10 GA build.
I Know that we have feature called 'extends' attribute in ,
and also in tag of validation.xml file.
I'm able to use extends attribute of in validation.xml file .But now
the problem is i'm bit confused how to use the same attribute in
and tag.
Here is
Hi Bas,
is your edited activity.location.address.country equal to 4122?
If so it will be selected, if not than it won't be.
Best greetings,
Paweł Wielgus.
2009/5/26 Bas Schulte :
> Hi,
>
> I'm pretty much stumped about this one. I have a list of countries
> (List) that I return from my action to
Hi,
I'm pretty much stumped about this one. I have a list of countries
(List) that I return from my action to the view .jsp.
I can render the select list just fine, this is the outputted html:
Nederland
United Kingdom
Deutschland
However, for the life of it I can't figure out
Is it possible to specify all action properties in session param tag
using regex or wildcards?
On Mon, May 25, 2009 at 8:39 AM, Nils-Helge Garli Hegvik
wrote:
> Yes, the ScopeInterceptor should be able to handle this case.
>
> Nils-H
>
> On Mon, May 25, 2009 at 1:02 PM, Richard Sayre wrote:
>
did ibm provide any solution to these problems with their AppServer?
http://www.networkworld.com/news/2009/032609-ibm-layoffs.html
in the meanwhile just to get a working AppSever can you port over to Glassfish?
easy to port..very simple to administer and a very knowledgeable and helpful
staff!
h
I vaguely remember something about WebSphere and Apache commons
logging ... will try to dig it up.
On May 26, 2009, at 9:22 AM, Mitchell, Steven wrote:
I have a Struts 2 application that runs fine under Tomcat 5.5 that
will
not run on a fully patched version of WebSphere 6.1. The applicati
I have a Struts 2 application that runs fine under Tomcat 5.5 that will
not run on a fully patched version of WebSphere 6.1. The application
index.jsp page redirects to a mapped namespace and action, yet the
Struts 2 dispatcher does not see the namespace or action. It issues the
message "There is
Hi Dave,
one of my action classes are executing perfectly which I am appending below. I
am also including the output for you.
package net.astralpharma;
import com.opensymphony.xwork2.ActionSupport;
import java.sql.*;
import java.util.*;
public class Productdisplay extends ActionSupport
{
Lis
Niklas Johansson wrote:
Regarding the ParameterAware, I found the information here and it's
specified as the preferred solution:
http://struts.apache.org/2.1.6/docs/how-can-we-access-request-parameters-passed-into-an-action.html
It's the preferred solution for accessing the parameters *directly
Don't worry, we all made this kind of mistake before.
and this would not be the last time.
bless you...
On Tue, May 26, 2009 at 4:47 PM, Steven Yang wrote:
> OMG
> I can't believe myself.
> how can i make such a stupid mistake
>
> Sorry guys for wasting your time.
>
> Its all my fault my method
OMG
I can't believe myself.
how can i make such a stupid mistake
Sorry guys for wasting your time.
Its all my fault my method name was getTextkey()
but I kept on using getTextKey() or textKey
(capital K)
thats why it never worked
its solved.
Hello Dave,
Thanks for all answers.
Regarding the ParameterAware, I found the information here and it's
specified as the preferred solution:
http://struts.apache.org/2.1.6/docs/how-can-we-access-request-parameters-passed-into-an-action.html
I have enough information below to do some test for the
Just want to add some more information
if I do
I get what is expected.
I guess all native Enum methods are fine.
Hi First of all if this question has been ask, I apologize for the double
post. and please refer me to the reference. thanks
I am using 2.1.6.
I have a Enum class Gender
and it has a method getTextKey() which simply returns a key for me to use in
getText() in Action
If in my Action I have
privat
33 matches
Mail list logo