Re: how to get productID from the url into action class.

2009-05-28 Thread Stuart Ellidge
In the forum entry user David Newton told you to "Remove line 28." Did you do as he suggested? You didn't respond to his suggestion. What he was trying to explain is that Struts should call setProductId() for you so that you have no need to mess about with Request parameters, etc. If you are de

Re: how to get productID from the url into action class.

2009-05-28 Thread Stuart Ellidge
Hi Prashant, I have to confess that you have cheered up my morning :) That is quite an amusing code snippet. Not sure what you are actually trying to do, but what you are doing is opening a URL connection to the Showprodsuppliers from within its execute method. So, naturally, you have created

Re: Struts2+ReST-plugin prolems need help!!!

2009-05-28 Thread Stuart Ellidge
Hi, I’m not an expert with the internals of the REST plugin, but am using it fairly extensively. By and large we use annotations in our classes to determine results (see org.apache.struts2.convention.annotation.Results) but it is certainly possible to define some globals and it is definitely po

Re: Accessing protected resources via a login page

2009-05-20 Thread Stuart Ellidge
This worked fine as the parameters interceptor automatically decodes parameters. Cheers, Steve -Original Message- From: Stuart Ellidge [mailto:stuart.elli...@adaptris.com] Sent: 19 May 2009 16:56 To: Struts Users Mailing List Subject: Re: Accessing protected resources via a login page Hi Ste

Re: Accessing protected resources via a login page

2009-05-19 Thread Stuart Ellidge
Hi Steve, What you are asking is relatively simple really - we implemented an interceptor to capture the current request URL and store it in the current value stack. We can subsequently reference it in our JSPs and use it in forms in several places to enable us to redirect to the original page

Re: Using PUT with REST Plugin

2009-05-13 Thread Stuart Ellidge
Hi David, Here is how we construct a URL in our JSP: So the key differences are: * ID is part of the main body of the URL - not a parameter * we use PUT as opposed to "put" (not sure it makes any difference, but haven't tested lowercase) * _method is a URL parameter - not a form obje

Re: REST Plugin and PreResultListeners

2009-05-05 Thread Stuart Ellidge
r or both fail? The REST plugin needs a steward(stuart). Don (original author) has been too busy to work on it and I think most of the current committers are happy with the current REST function or are working on other things. Maybe you are the one!? Stuart Ellidge wrote: > > Hi all,

REST Plugin and PreResultListeners

2009-05-01 Thread Stuart Ellidge
Hi all, In our application an interceptor registers a PreResultListener to perform some common calculation prior to rendering the page. The reason this is handled in a PreResultListener is that the action may well modify the basis for the calculation and we need to include the most recent resul