Re: Jquery autocomplete with struts2.

2010-04-22 Thread Rahul Mohan
Hope this helps: --- Action class //the options to be returned private String[] options; public void setOptions(String[] options) { this.options = options; }

Re: Jquery autocomplete with struts2.

2010-04-22 Thread Zoran Avtarovski
I hate to be the one to say it, but I don¹t think the issue here is jQuery but your understanding of Struts2. I think you first need to get your head around using S2 and then migrating that simple php example will be easy. You fill find the only difference between the PHP example and using a json

Re: Jquery autocomplete with struts2.

2010-04-22 Thread sharath karnati
Hi All,     Say I have java "arraylist" in action and how to set this in resonse object     ServletActionContext.setResponse()     How to do this in struts2??   Thanks, Sharath. --- On Thu, 4/22/10, sharath karnati wrote: From: sharath karnati Subject: Re: Jquery autocomplete with struts2. To:

Re: Jquery autocomplete with struts2.

2010-04-22 Thread sharath karnati
Please find below example   http://makhaer.blogspot.com/2008/12/jquery-autocomplete.html   in this example, he is just using jquery with textfield for doing autocomplete with PHP. I'd like to do samething with struts2 action.   Can anyone please let me know, how to send data from action to .jsp to

Re: Jquery autocomplete with struts2.

2010-04-22 Thread Johannes Geppert
Hello, since version 2.0.0 the Struts2 jQuery Plugin have a autocompleter tag. This is an easy way to implement an Autocompleter. See: http://code.google.com/p/struts2-jquery/wiki/AutocompleterTag Best Regards Johannes Geppert sharath wrote: > > Hi All, >   >    I'm trying to use Jquery aut

Re: Jquery autocomplete with struts2.

2010-04-22 Thread sharath karnati
Hi Craig,      I'm not looking for printing 'property' value here...      say user types 'm' in text field then it should send request to action, action returns list of values starts with 'm', this list will be displayed in the same textfield where user entered character 'm'.      I'd like to kno

Re: how to get runtime configuration

2010-04-22 Thread Chris Pratt
I think this is the preferred method of obtaining the Configuration object: /** * Struts: Inject the Struts Configuration for looking up the proper Action * * @param configuration The Struts Configuration */ @Inject public void setConfiguration (Configuration configuration) {

Re: Jquery autocomplete with struts2.

2010-04-22 Thread Craig Ricciuto
Could you not do exactly what he is doing but instead of calling the .php file you call your action. As for the action itself, you would make it like any other action and just store what you want to show the user into a variable with the proper getter/setter function so in the jsp you can go: <%@

Jquery autocomplete with struts2.

2010-04-22 Thread sharath karnati
Hi All,      I'm trying to use Jquery autocomplete with struts2. The example for using Jquery autocomplete is given below(link)      http://makhaer.blogspot.com/2008/12/jquery-autocomplete.html      In this example, author is returning data with .php similarly I'd like to return data from str

Re: how to get runtime configuration

2010-04-22 Thread Bhaarat Sharma
nevermind...got it: Dispatcher.getInstance().getConfigurationManager().getConfiguration().getRuntimeConfiguration(); On Thu, Apr 22, 2010 at 9:41 AM, Bhaarat Sharma wrote: > I was going through the API's and came across this > method

how to get runtime configuration

2010-04-22 Thread Bhaarat Sharma
I was going through the API's and came across this method It is getRuntimeConfiguration() in class Defau

RE: Struts2 on Websphere portal 6.1.0.0

2010-04-22 Thread Struts Two
Set the the following properties in custom properties of your Websphere application server com.ibm.ws.webcontainer.assumefiltersuccessonsecurityerror = true com.ibm.ws.webcontainer.invokefilterscompatibility = true --- On Thu, 4/22/10, Prabahar wrote: > From: Prabahar > Subject: RE: Struts2

Re: Action result to go nowhere

2010-04-22 Thread Upasana Sharma
thanks a lot for your responses. I used ajax calls to make the HTTPRequest and the issue is solved. On Thu, Apr 22, 2010 at 5:43 PM, Martin Gainty wrote: > if you want speculative guesses from the people who have responded then > continue on without providing any substantive detail.. > BTW the

RE: Action result to go nowhere

2010-04-22 Thread Miles, Chris
It makes more sense to open the popup and have the URL of the popup as your action, do any business logic / processing, and then forward to a JSP to render the display. This is the purpose of a model-controller-view design. Chris -Original Message- From: Upasana Sharma [mailto:sha

Re: Action result to go nowhere

2010-04-22 Thread Upasana Sharma
Hi I have a link which when clicked invokes some action and opens up a pop up. The result to be displayed in the pop up needs to be returned as object in the action method called onclick. that is why i do not my calling page to navigate to some other jsp. If u cud help me out how to handle such

RE: Action result to go nowhere

2010-04-22 Thread Miles, Chris
Explain what exactly you are trying to achieve and why and it would help someone give you a solution. Chris -Original Message- From: Upasana Sharma [mailto:sharma...@gmail.com] Sent: 22 April 2010 10:52 To: Struts Users Mailing List Subject: Re: Action result to go nowhere In that

RE: Action result to go nowhere

2010-04-22 Thread Miles, Chris
It seems to me that he is trying to do something which Struts was not designed for which kind of takes away the point of it. If you tell us what you are wanting to do and why there might be something else out there rather than hacking a solution. Chris -Original Message- From: Gu

Re: Action result to go nowhere

2010-04-22 Thread Rahul Mohan
So you want to stay in the same page after the action. Best way is to do a an ajax call. If you don't want to get into ajax just for this, a quick and dirty fix would be to change your target to a hidden frame ; Click From: Upasana Sharma To: Struts Users Mailing List Date: 22-04-2010 15:17

RE: Action result to go nowhere

2010-04-22 Thread Gustavo Felisberto
Hello. If you just follow a link mailto:sharma...@gmail.com] Enviada: quinta-feira, 22 de Abril de 2010 10:47 Para: Struts Users Mailing List Assunto: Re: Action result to go nowhere *I do not want to go to some result page * *On return INPUT** * *No result defined for action com.upasana.action.

Re: Action result to go nowhere

2010-04-22 Thread Upasana Sharma
In that case how can I invoke the action without changing the url. please help me out. -- Thanks and Regards Upasana Sharma On Thu, Apr 22, 2010 at 3:18 PM, Miles, Chris < chris.mi...@spsa.pnn.police.uk> wrote: > > > > > That is what I would expect to happen. You are clicking a link which > chang

RE: Action result to go nowhere

2010-04-22 Thread Miles, Chris
That is what I would expect to happen. You are clicking a link which changes the URL to the URL of the Action. This is the normal process of the web itself. Chris -Original Message- From: Upasana Sharma [mailto:sharma...@gmail.com] Sent: 22 April 2010 10:37 To: Struts Users Mailin

Re: Action result to go nowhere

2010-04-22 Thread Upasana Sharma
*I do not want to go to some result page * *On return INPUT** * *No result defined for action com.upasana.action.ComAction and result input* :) On Thu, Apr 22, 2010 at 3:13 PM, Rahul Mohan wrote: > Try 'return INPUT'. > - rahul > > > > From: > Upasana Sharma > To: > Struts Users Mailing List

Re: Action result to go nowhere

2010-04-22 Thread Rahul Mohan
Try 'return INPUT'. - rahul From: Upasana Sharma To: Struts Users Mailing List Date: 22-04-2010 15:08 Subject: Re: Action result to go nowhere hi thanks for your response.I tried that But my browser goes to some blank page with that respective action name as the url. It does not stick to t

Re: Action result to go nowhere

2010-04-22 Thread Upasana Sharma
hi thanks for your response.I tried that But my browser goes to some blank page with that respective action name as the url. It does not stick to the calling page -- Thanks and Regards Upasana Sharma On Thu, Apr 22, 2010 at 2:53 PM, Miles, Chris < chris.mi...@spsa.pnn.police.uk> wrote: > NOT P

RE: Action result to go nowhere

2010-04-22 Thread Miles, Chris
NOT PROTECTIVELY MARKED Hi Do not put any result in the XML and in the Action just return Action.NONE Chris -Original Message- From: Upasana Sharma [mailto:sharma...@gmail.com] Sent: 22 April 2010 10:10 To: Struts Users Mailing List Subject: Action result to go nowhere Hi I have a l

Action result to go nowhere

2010-04-22 Thread Upasana Sharma
Hi I have a link which when clicked invokes some action. I do not want the page to redirect or forward to some other jsp or action. what should i write in struts.xml of that action? -- Thanks and Regards Upasana Sharma

RE: Struts2 on Websphere portal 6.1.0.0

2010-04-22 Thread Prabahar
Please find the attached error log... http://old.nabble.com/file/p28325070/DisplayTag.txt DisplayTag.txt -- View this message in context: http://old.nabble.com/Struts2-on-Websphere-portal-6.1.0.0-tp18761735p28325070.html Sent from the Struts - User mailing list archive at Nabble.com.