You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Rakesh K nair <ra...@gmail.com> on 2010/04/06 09:47:22 UTC

struts 2 global result problem

hi

I am using struts2.1.6 in my application.i want to use global results tags
in
my struts.xml.but when i write below code application doesn't start
<package name="default" extends="struts-default">
<action........
..............
</action>

<global-results>
<result name="Name">page.jsp</result>
</global-results>

</package

i am using struts default package
with out global result tag application works fine
please help me to overcome this

Expecting your kind interaction
thanks in advance
Rakesh
-- 
View this message in context: http://old.nabble.com/struts-2-global-result-problem-tp28148438p28148438.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Live search with Dojo (Ajax) and Struts 2

Posted by sandeep kotha <sa...@gmail.com>.
step1. google.com
step2 search with autocomplete + dojo

On 7 April 2010 01:15, Celinio Fernandes <ce...@yahoo.com> wrote:

> Hi,
> I am using Struts 2.1.8 and the Dojo plugin.
> What i am trying to realize is the following :
> the user has to fill a field that corresponds to a REFERENCEID. I want to
> help that user to type in the REFERENCEID
> by suggesting 20 REFERENCEID as soon as he types in a digit.
> For instance, if he types in 1, i want to make a SQL request in the
> database and bring the 20 first REFERENCEID that start with 1.
> Then if the user types 13, i do another SQL request and bring the  20 first
> REFERENCEID that start with 13.
> And so on.
>
> Has anyone done that ? I would be interested in sample code.
>
> Is there a component in Dojo that already does that ?
>
> I am looking for something a bit like this demo with Ext JS :
> http://www.extjs.com/deploy/dev/examples/form/forum-search.html
>
> Also, does that field have to be a combobox ? can it be a text input
> (<input type="text" >)?
> If it is a text input tag, where do i display the result (20 suggestions) ?
> In a DIV ?
>
>
> I am using Struts 2 which, as you know, comes with a nice plugin for Dojo.
> So I have <sx:div> and <sx:bind> tags at my disposal.
>
> Thanks for helping with sample code or any suggestion that might help.
>
>
>

Live search with Dojo (Ajax) and Struts 2

Posted by Celinio Fernandes <ce...@yahoo.com>.
Hi,
I am using Struts 2.1.8 and the Dojo plugin.
What i am trying to realize is the following :
the user has to fill a field that corresponds to a REFERENCEID. I want to help that user to type in the REFERENCEID
by suggesting 20 REFERENCEID as soon as he types in a digit.
For instance, if he types in 1, i want to make a SQL request in the database and bring the 20 first REFERENCEID that start with 1.
Then if the user types 13, i do another SQL request and bring the  20 first REFERENCEID that start with 13.
And so on.

Has anyone done that ? I would be interested in sample code.

Is there a component in Dojo that already does that ?

I am looking for something a bit like this demo with Ext JS : http://www.extjs.com/deploy/dev/examples/form/forum-search.html

Also, does that field have to be a combobox ? can it be a text input  (<input type="text" >)?
If it is a text input tag, where do i display the result (20 suggestions) ? In a DIV ?


I am using Struts 2 which, as you know, comes with a nice plugin for Dojo. 
So I have <sx:div> and <sx:bind> tags at my disposal. 

Thanks for helping with sample code or any suggestion that might help.


      

Re: struts 2 global result problem

Posted by Rakesh K nair <ra...@gmail.com>.



hi 

thank you for your help,it's working now

rakesh



Rakesh K nair wrote:
> 
> hi
> 
> I am using struts2.1.6 in my application.i want to use global results tags
> in
> my struts.xml.but when i write below code application doesn't start
> <package name="default" extends="struts-default">
> <action........
> ..............
> </action>
> 
> <global-results>
> <result name="Name">page.jsp</result>
> </global-results>
> 
> </package
> 
> i am using struts default package
> with out global result tag application works fine
> please help me to overcome this
> 
> Expecting your kind interaction
> thanks in advance
> Rakesh
> 

-- 
View this message in context: http://old.nabble.com/struts-2-global-result-problem-tp28148438p28149061.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: struts 2 global result problem

Posted by adam pinder <ap...@hotmail.co.uk>.
 
put them before action definitions.
 
adam


----------------------------------------
> Date: Tue, 6 Apr 2010 00:47:22 -0700
> From: rakeshknair84@gmail.com
> To: user@struts.apache.org
> Subject: struts 2 global result problem
>
>
> hi
>
> I am using struts2.1.6 in my application.i want to use global results tags
> in
> my struts.xml.but when i write below code application doesn't start
> 
>> ..............
> 
>
> 
> page.jsp
> 
>
>>
> i am using struts default package
> with out global result tag application works fine
> please help me to overcome this
>
> Expecting your kind interaction
> thanks in advance
> Rakesh
> --
> View this message in context: http://old.nabble.com/struts-2-global-result-problem-tp28148438p28148438.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 		 	   		  
_________________________________________________________________
http://clk.atdmt.com/UKM/go/197222280/direct/01/
Do you have a story that started on Hotmail? Tell us now
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org