• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

[Struts2][Jqueryplugin] problem to populate grid .

 
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi greenhorn people
i can not understand a lot of thing about the tuto Jquery grid
i try to populate my grid but its blanked .
i put my code action before my jsp page.
code action

my jsp :


on my JsonTable



struts



well i put println() in method execute on my JsonTable and no display something
i miss something
 
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
what is happens when you call your JsonTable action directly?
Do You get an valid JSON Result?

Johannes
 
khekhone yvan
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi tx to answer me johannes
Are you JqueryTeam ?because the package has your name in the queryshowcase.war


well
when i call directly jsontable a window is open and displayed ( download file ,inconnu file do you want seach a application who can read or save on the disk or ignore.)
i think i miss something
 
khekhone yvan
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

application cannot entry on the jsontable.
 
Johannes Geppert
Ranch Hand
Posts: 67
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I guesss the problem is the name of your gridmodel. You have named it in your action listfriend but in your grid tag you named it gridModel.


Johannes
 
khekhone yvan
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
no i think its not that because app d'ont entry to the method execute ..i changed to test if friendlist can display it.
i put my code
totoAction:

totoaction redirect to the toto/toto.jsp

my jsontable


on my default package i have
totoaction
on showcase package
i have
jsontable


on my struts
<package>
<action name="totoAction" class="totoAction">

<result name="success">/toto/toto.jsp</result>
</action>

</package>
<package name="showcase" namespace="/" extends="struts-default,json-default">
<action name="jsontable" >
<result type="json"/> </action>


</package>




 
khekhone yvan
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
my struts
 
khekhone yvan
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i instance my listfriend and populate it on the method and its work thank you
 
khekhone yvan
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
why i have to instance all my field?
i have getter and setter ?
shoud i put on my value stack ?
its very strange
sombody can help me ?
i think i use jsonno effeciently because i have to instanciate alll my field on the classe its is normal ?
i think not because on action on the ewample it not instanciate session map.
 
Ranch Hand
Posts: 188
Hibernate Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi khekhone,

use "excludeProperties" followed by the service names, put these in your code

otherwise you will all the instance of your setter-getters...

hope this would help.
 
khekhone yvan
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
its good to know
but i want have all rhe property and i dont understand why i cannot link with value stack
i think i understand json at all
reply
    Bookmark Topic Watch Topic
  • New Topic