Re: In struts 2 can we stop form submiting twice when submit button is pressd more than once

2007-06-15 Thread sudeepj2ee

Hi

Thanks for replying can you send a small sample or a link that would be
helpful for me

sudeep

Strut_developer wrote:
 
 
 Please use TokenInterceptor; you need to configure it in you action
 configuration.
 
 
 
 sudeepj2ee wrote:
 
 Hi
 
 Is there a way out in struts 2 as in struts1.2 for not submitting the
 form twice even is the submit button
 is pressed  more than once.
 
 Your reply will be welcomed
 
 sudeep srivastava
 [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/In-struts-2-can-we-stop-form-submiting-twice-when-submit-button-is-pressd-more-than-once-tf3925760.html#a11133962
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



In struts 2 can we stop form submiting twice when submit button is pressd more than once

2007-06-14 Thread sudeepj2ee

Hi

Is there a way out in struts 2 as in struts1.2 for not submitting the form
twice even is the submit button
is pressed  more than once.

Your reply will be welcomed

sudeep srivastava
[EMAIL PROTECTED]
-- 
View this message in context: 
http://www.nabble.com/In-struts-2-can-we-stop-form-submiting-twice-when-submit-button-is-pressd-more-than-once-tf3925760.html#a11133176
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: SSL Interceptor

2007-06-06 Thread sudeepj2ee

Hi 

Your ssl interceptor really helped me a lot in my project,where we are using
ssl,
I wanted to know whether we can goto a more granular level with this
interceptor based on the method call, current its based on per class call,I
was trying to use exclude method with the interceptor but could not
succede.Any idea regardingthis??/

Thanks 
sudeep

Shahak Nagiel wrote:
 
 Following up on my thread from yesterday, I've finished work on the SSL
 Interceptor, which can be added to the default stack and works as follows:
 
 - If the associated action class is marked with the (custom) @SSLProtected
 annotation and it's an HTTP (non-SSL) GET request, then the interceptor
 will redirect to the https 
 (SSL) version of the page.
 - Likewise, if it's an HTTPS (SSL) GET request and the action class does
 not have the annotation, then it 
 will redirect to the http (non-SSL) version of the page.
 
 I've tested it with both browsers, with and without cookies, and it seems
 to work well, so I'll offer it to those interested.  I'm not a regular
 contributor to the source code base, but if someone wants to submit this
 into the repository, feel free.
 
 
 /**
  * @name SSLProtected
  * @description Simple marker annotation indicating access to an action
 class should be protected 
  *  under SSL (Secure Sockets Layer) HTTP tunneling. 
  * @version $Revision:  $
  * @author  mailto:[EMAIL PROTECTED] Shahak Nagiel 
  * $Id:  $
  */
 @Retention(RetentionPolicy.RUNTIME)
 public @interface SSLProtected { }
 
 
 /**
  * @name SSLInterceptor
  * @description pThis interceptor performs two functions:
  * ulliIf the associated action class is marked with the @SSLProtected
 annotation 
  * and it's an HTTP (non-SSL) GET request, then the interceptor will
 redirect to the https 
 (SSL) version of the page./li
  * liLikewise, if it's an HTTPS (SSL) GET request and the action
 class does not have the annotation, then it 
 
  *will redirect to the http (non-SSL) version of the page./li/ul
  * @version $Revision: $
  * @author  mailto:[EMAIL PROTECTED] Shahak Nagiel 
  * $Id: $
  */
 public class SSLInterceptor extends AbstractInterceptor {
 
 /** Creates a new instance of SSLInterceptor */
 public SSLInterceptor() {
 super();
 }
 
 /**
  * Defaults for HTTP and HTTPS ports.  Can be overridden in web.xml
 with context parameters of the same name.
  */
 final static int HTTP_PORT = 8080;
 final static int HTTPS_PORT = 8443;
 
 final static String HTTP_PORT_PARAM = HTTP_PORT;
 final static String HTTPS_PORT_PARAM = HTTPS_PORT;
 final static String HTTP_GET = GET;
 final static String SCHEME_HTTP = http;
 final static String SCHEME_HTTPS = https;
 
 /**
  * Redirect to SSL or non-SSL version of page as indicated by the
 presence (or absence) of the
  *  @SSLProtected annotation on the action class.
  */
 public String intercept(ActionInvocation invocation) throws Exception
 {
 
 // initialize request and response
 final ActionContext context = invocation.getInvocationContext ();
 final HttpServletRequest request = 
 (HttpServletRequest) context.get(StrutsStatics.HTTP_REQUEST);
 final HttpServletResponse response = 
 (HttpServletResponse)
 context.get(StrutsStatics.HTTP_RESPONSE);
 
 // check scheme
 String scheme = request.getScheme().toLowerCase();
 
 // check method
 String method = request.getMethod().toUpperCase();
 
 // If the action class uses the SSLProtected marker annotation,
 then see if we need to 
 //  redirect to the SSL protected version of this page
 if
 (invocation.getAction().getClass().isAnnotationPresent(SSLProtected.class)){
 
 if (HTTP_GET.equals(method)  SCHEME_HTTP.equals(scheme)){
 
 // initialize https port
 String httpsPortParam = 

 request.getSession().getServletContext().getInitParameter(HTTP_PORT_PARAM);
 int httpsPort = httpsPortParam == null? HTTPS_PORT :
 Integer.parseInt(httpsPortParam);
 
 URI uri = new URI(SCHEME_HTTPS, null,
 request.getServerName(), 
 httpsPort,
 response.encodeRedirectURL(request.getRequestURI()), 
 request.getQueryString(), null);
 
 log.debug(Going to SSL mode, redirecting to  +
 uri.toString());
 
 response.sendRedirect(uri.toString());
 return null;
 }
 }
 // Otherwise, check to see if we need to redirect to the non-SSL
 version of this page
 else{
 
 if (HTTP_GET.equals(method)  SCHEME_HTTPS.equals(scheme)){
 
 // initialize http port
 String httpPortParam = 

 

RE: custom interceptor in default stack

2007-06-06 Thread sudeepj2ee

Thanks for replying,

The reason for bot using
transport-guaranteeCONFIDENTIAL/transport-guarantee is that we don't
want the https for the entire application we only require it at the places
were some confidential data is informed viz- registration or payment related
pages.For this we have made an interceptor which switches from http to https
based on a annotation. 

Al Sutton-3 wrote:
 
 Any reason you're not using
 transport-guaranteeCONFIDENTIAL/transport-guarantee?
 
 Before you ask, here's a reference with an example that has a clickable
 link
 to the definition http://wiki.metawerx.net/Wiki.jsp?page=Web.xml
 
 -Original Message-
 From: sudeepj2ee [mailto:[EMAIL PROTECTED] 
 Sent: 05 June 2007 14:00
 To: user@struts.apache.org
 Subject: Re: custom interceptor in default stack
 
 
 I am going for a https and for switching between http and https for that i
 have made a interceptor, and there are arount 35 struts- xml files which
 are
 included in struts.xml,what i was thinking is that instead of inserting
 interceptor in each strut-xml i can have a global interceptor kind of
 thing
 that could reflect changes if mentioned at one place that could be achived
 only if i put that interceptor in default-xml which all my xml's are
 extending. 
 
 Dave Newton-4 wrote:
 
 --- sudeepj2ee [EMAIL PROTECTED] wrote:
 can we put our custom interceptor in
 struts-default.xml,if yes than what configurations
 are
 required.
 
 You *could*, but why wouldn't you just put it in your struts.xml and 
 not worry about your customizations being lost when you upgrade your 
 S2?
 
 d.
 
 
 

 __
 __ Take the Internet to Go: Yahoo!Go puts the Internet in 
 your pocket: mail, news, photos  more.
 http://mobile.yahoo.com/go?refer=1GNXIC
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 --
 View this message in context:
 http://www.nabble.com/custom-interceptor-in-default-stack-tf3871308.html#a10
 968910
 Sent from the Struts - User mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/custom-interceptor-in-default-stack-tf3871308.html#a11002142
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



custom interceptor in default stack

2007-06-05 Thread sudeepj2ee

can we put our custom interceptor in struts-default.xml,if yes than what
configurations are required.
-- 
View this message in context: 
http://www.nabble.com/custom-interceptor-in-default-stack-tf3871308.html#a10968002
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: custom interceptor in default stack

2007-06-05 Thread sudeepj2ee

I am going for a https and for switching between http and https for that i
have made a interceptor,
and there are arount 35 struts- xml files which are included in
struts.xml,what i was thinking is that instead of inserting interceptor in
each strut-xml i can have a global interceptor kind of thing that could
reflect changes if mentioned at one place that could be achived only if i
put that interceptor in default-xml which all my xml's are extending. 

Dave Newton-4 wrote:
 
 --- sudeepj2ee [EMAIL PROTECTED] wrote:
 can we put our custom interceptor in
 struts-default.xml,if yes than what configurations
 are 
 required.
 
 You *could*, but why wouldn't you just put it in your
 struts.xml and not worry about your customizations
 being lost when you upgrade your S2?
 
 d.
 
 
 

 
 Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail,
 news, photos  more. 
 http://mobile.yahoo.com/go?refer=1GNXIC
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/custom-interceptor-in-default-stack-tf3871308.html#a10968910
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: showcase file download in jetty server

2007-05-24 Thread sudeepj2ee

Hi just refer show case example in that see whether the file download is
working if its not jus conver back slashes to forward slashes.

Pedro Herrera wrote:
 
 I have the same problem using jboss, how is your action writed ?
 
 
 Herrera
 
 
 
 
 sudeepj2ee wrote:
 
 HI
 
 I am using jetty server and the zip file download part of showcase is not
 working in the jetty its giving the following error-:
 
 java.lang.IllegalArgumentException: Can not find a java.io.InputStream
 with the name [inputStream] in the invocation stack. Check the  tag
 specified for this action.
  at
 org.apache.struts2.dispatcher.StreamResult.doExecute(StreamResult.java:189)
  at
 org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:178)
  at
 com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:343)
  at
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
  at
 com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:213)
  at
 com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)
  at
 com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:219)
  at
 com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:218)
  at
 com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
  at
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:216)
  at
 com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:150)
  at
 org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:48)
  at
 com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)
  at
 com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:219)
  at
 com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:218)
  at
 com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
  at
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:216)
  at
 com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:123)
  at
 com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:219)
  at
 com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:218)
  at
 com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
  at
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:216)
  at
 com.opensymphony.xwork2.interceptor.ParametersInterceptor.intercept(ParametersInterceptor.java:161)
  at
 com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:219)
  at
 com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:218)
  at
 com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
  at
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:216)
  at
 com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:105)
  at
 com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:219)
  at
 com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:218)
  at
 com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
  at
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:216)
  at
 org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:83)
  at
 com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:219)
  at
 com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:218)
  at
 com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
  at
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:216)
  at
 org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:207)
  at
 com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:219)
  at
 com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:218)
  at
 com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
  at
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:216

interceptor call

2007-05-24 Thread sudeepj2ee

Hi

How to call an interceptor from action class in struts 2

CAn any one send a sample code for that.


thanks in advance 

sudeep srivastava

[EMAIL PROTECTED]
-- 
View this message in context: 
http://www.nabble.com/interceptor-call-tf3808204.html#a10778032
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



calling particular method in the interceptor

2007-05-24 Thread sudeepj2ee

can we call a particular method in interceptor class as we do for action
class like
action name=abc!* method={1}
class=abc

can we do the same for interceptors using '!' can i call a particular method
with my own name in interceptor.
If yes than how can we do that.

Thanks in advance
sudeep srivastava

[EMAIL PROTECTED]

-- 
View this message in context: 
http://www.nabble.com/calling-particular-method-in-the-interceptor-tf3808341.html#a10778391
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



%{x}

2007-05-24 Thread sudeepj2ee

How does '%{x}' works exactly in struts 2 and what is the difference between
'%{x}' and '#x'
is there any other keys apart from % and # in struts 2.


thanks
sudeep srivastava
[EMAIL PROTECTED]

-- 
View this message in context: 
http://www.nabble.com/-%7Bx%7D-tf3808345.html#a10778399
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: calling particular method in the interceptor

2007-05-24 Thread sudeepj2ee



Thanks Jeromy it really worked

Jeromy Evans - Blue Sky Minds wrote:
 
 public String intercept(ActionInvocation actionInvocation) throws 
 Exception {
 
 I wouldn't do it, but actionInvocation provides information about the 
 action and method being invoked.  Your interceptor could change its 
 behaviour based on the action name/class or method.
 
 The preferred approach (I believe) is to add an interface to your action 
 and have your interceptor check whether the action implements the 
 interface. Then act accordingly, irrespective of the action name.
 
 sudeepj2ee wrote:
 can we call a particular method in interceptor class as we do for action
 class like
 action name=abc!* method={1}
 class=abc

 can we do the same for interceptors using '!' can i call a particular
 method
 with my own name in interceptor.
 If yes than how can we do that.

 Thanks in advance
 sudeep srivastava

 [EMAIL PROTECTED]

   
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/calling-particular-method-in-the-interceptor-tf3808341.html#a10780795
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: RE interceptor call

2007-05-24 Thread sudeepj2ee

HI

I could not understand the language pls can u communicate in english,

I have seen the link posted by you but the functionality what i want is
calling the interceptor from the action something like calling the
interceptor when certain exception occurs.

thanks  for replying
regards 
sudeep



meissa.sakho-2 wrote:
 
 Depuis le 21 décembre 2006, Natexis Investor Servicing s'appelle Natixis
 Investor Servicing. Les adresses mails des collaborateurs ayant changé,
 veillez à la mise à jour de votre carnet d'adresses.
 
 
 try this,
 http://struts.apache.org/2.x/docs/writing-interceptors.html
 
 L'integrite de ce message n'etant pas assuree sur internet, Natixis ne
 peut etre tenu responsable de son contenu. Toute utilisation ou diffusion
 non autorisee est interdite. Si vous n'etes pas destinataire de ce
 message, merci de le detruire et d'avertir l'expediteur.
 Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails
 que si necessaire
 
 The integrity of this message cannot be guaranteed on the Internet.
 Natixis can not therefore be considered responsible for the contents. Any
 unauthorized use or dissemination is prohibited. If you are not the
 intended recipient of this message, then please delete it and notify the
 sender.
 
 
 

-- 
View this message in context: 
http://www.nabble.com/interceptor-call-tf3808204.html#a10781553
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: showcase file download in jetty server

2007-05-21 Thread sudeepj2ee

HI I have got the solution posted on the forum. just change the'\' slashes to
'/'slashes.:)

sudeepj2ee wrote:
 
 HI
 
 I am using jetty server and the zip file download part of showcase is not
 working in the jetty its giving the following error-:
 
 java.lang.IllegalArgumentException: Can not find a java.io.InputStream
 with the name [inputStream] in the invocation stack. Check the  tag
 specified for this action.
   at
 org.apache.struts2.dispatcher.StreamResult.doExecute(StreamResult.java:189)
   at
 org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:178)
   at
 com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:343)
   at
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
   at
 com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:213)
   at
 com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)
   at
 com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:219)
   at
 com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:218)
   at
 com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
   at
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:216)
   at
 com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:150)
   at
 org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:48)
   at
 com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)
   at
 com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:219)
   at
 com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:218)
   at
 com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
   at
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:216)
   at
 com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:123)
   at
 com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:219)
   at
 com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:218)
   at
 com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
   at
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:216)
   at
 com.opensymphony.xwork2.interceptor.ParametersInterceptor.intercept(ParametersInterceptor.java:161)
   at
 com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:219)
   at
 com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:218)
   at
 com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
   at
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:216)
   at
 com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:105)
   at
 com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:219)
   at
 com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:218)
   at
 com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
   at
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:216)
   at
 org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:83)
   at
 com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:219)
   at
 com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:218)
   at
 com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
   at
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:216)
   at
 org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:207)
   at
 com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:219)
   at
 com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:218)
   at
 com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
   at
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:216)
   at
 com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:74

showcase file download in jetty server

2007-05-15 Thread sudeepj2ee

HI

I am using jetty server and the zip file download part is not working in the
jetty its giving the following error-:

java.lang.IllegalArgumentException: Can not find a java.io.InputStream with
the name [inputStream] in the invocation stack. Check the  tag specified for
this action.
at
org.apache.struts2.dispatcher.StreamResult.doExecute(StreamResult.java:189)
at
org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:178)
at
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:343)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
at
com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:213)
at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:219)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:218)
at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:216)
at
com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:150)
at
org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:48)
at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:219)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:218)
at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:216)
at
com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:123)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:219)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:218)
at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:216)
at
com.opensymphony.xwork2.interceptor.ParametersInterceptor.intercept(ParametersInterceptor.java:161)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:219)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:218)
at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:216)
at
com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:105)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:219)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:218)
at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:216)
at
org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:83)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:219)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:218)
at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:216)
at
org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:207)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:219)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:218)
at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:216)
at
com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:74)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:219)
at

resetting form when refreshed

2007-04-29 Thread sudeepj2ee

Hi could you send me a way out to reset a form when refresh button is clicked
without using java script.
-- 
View this message in context: 
http://www.nabble.com/resetting--form-when-refreshed-tf3667969.html#a10248718
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]