Execute And Wait AJAX

2011-01-28 Thread Emil Dombagolla
Dear all ,

I have used Execute and Wait interceptor for my data search.   wait page is
show the data found currently. but the problem is the page is refreshed
since i used http meta tag to update the current state.

i want to make the wait page AJAX. then without refreshing the page i can
use the progress bar increment.

is it possible to do so and please help me to overcome from it.

Thanks In advance
Emil


Re: OGNL map key reading

2010-11-19 Thread Emil Dombagolla
Thanks for the soultion, it s true, i can handle that way

Emil

On Wed, Nov 17, 2010 at 9:25 PM, Steven Yang kenshin...@gmail.com wrote:

 so currentPageHotelList[#stat.index] gives a Map?

 if ur using an iterator u can just do
 s:iterator value=list var=map -- of course u can use top as well
 but l like giving it a name
 s:property value=map[#roomindex]/
 /s:iterator

 On Wed, Nov 17, 2010 at 4:13 PM, Emil Dombagolla dombago...@gmail.com
 wrote:

  Dear all,
 
 
 
 
 -
 
  s:property value=currentPageHotelList[#stat.index].room0/ //this
 works
  ,
  i want room0 make dynamic  ( like room0 to room4)
 
 
  s:iterator begin=0 end=5 
 
   s:set var=roomindex value='room'+top/s:set //this gives room0
  ,room1 ,room2 etc...
 
 s:property value=currentPageHotelList[#stat.index].%{#roomindex}/
 //
  this %{#roomindex} doesnt work
 
 
 
 
 -
 
 
 
  please help me to get the roomindex variable executed there to read my
 map
 
  If possible thank you so much,
  Emil
 



Re: OGNL map key reading

2010-11-19 Thread Emil Dombagolla
Thanks you very much for this solution , you saved me. first option works
for me very well,

thanks In advance.

Emil

On Thu, Nov 18, 2010 at 5:32 PM, Li Ying liying.cn.2...@gmail.com wrote:

 try:

 invoke the [get] method on map:
 s:property value=currentPageHotelList[#stat.index].get(#roomindex)/

 or
 reference property on map:
 s:property value=currentPageHotelList[#stat.index].(#roomindex)/


 or
 iterator on values of map:
 s:iterator value=currentPageHotelList[#stat.index].values var=item
s:property value=#item/
 /s:iterator

 or
 iterator on keys of map:
 s:iterator value=currentPageHotelList[#stat.index].keys var=itemKey
s:property value=currentPageHotelList[#stat.index].get(#itemKey)/
 /s:iterator

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




Re: Label problem in struts2

2010-11-17 Thread Emil Dombagolla
Try with,

$getText('Label.Name')

Emil

On Tue, Nov 16, 2010 at 8:45 PM, stanl...@gmail.com wrote:

 Can we see the rest of your JSP?  My hunch is, you are also using a
 textfield that is bringing the label in as well.


 On Tue, Nov 16, 2010 at 6:32 AM, Prabhubalaji Ragavan 
 prabhubalaji.raga...@gmail.com wrote:

  Hi
  I am using the below code to label, which is using a resource bundle.
 When
  the application starts up, the label appears twice.
 
  JSP code
  ---
  s:label key=Label.Name /
 
 
  Resource bundle
  -
  Label.Name = Legal Name
 
  Output
  ---
 
  Legal Name Legal Name
 
 
  Please help
 
  Thanks
  Prabhu Ragavan
 



OGNL map key reading

2010-11-17 Thread Emil Dombagolla
Dear all,


-

s:property value=currentPageHotelList[#stat.index].room0/ //this works ,
i want room0 make dynamic  ( like room0 to room4)


s:iterator begin=0 end=5 

  s:set var=roomindex value='room'+top/s:set //this gives room0
,room1 ,room2 etc...

s:property value=currentPageHotelList[#stat.index].%{#roomindex}/ //
this %{#roomindex} doesnt work


-



please help me to get the roomindex variable executed there to read my map

If possible thank you so much,
Emil


Re: s:iterator get value to specific key

2010-11-03 Thread Emil Dombagolla
Hi all,

Thanks a lot  for the solutions.

Emil


On Wed, Nov 3, 2010 at 9:30 AM, Dale Newfield d...@newfield.org wrote:

 in Java you have two tools to get what you're asking for:

 Map has an entrySet() method returns a SetMap.Entry, each one of which
 has a getKey() and a getValue() method.
 The original map also has a get() method.

 So translating to ognl, you can iterate over map.entrySet(), and use
 top.key, top.value (or just key, value)...or wherever you have a key, you
 can always say map.get(key).

 -Dale


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




s:iterator get value to specific key

2010-11-02 Thread Emil Dombagolla
Dear all ,

Please please help me on this,

I have a map with iterator tag, i need to get a value for a specific key,
can i do this

s:iterator value=MAP

I want to say  s:property value=MAP['KEY'] /   ,  i expect VALUE for
the relevant key

 /s:iterator

Thanks Lot.
emil