Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
  • 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 ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin


Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
First I apologize if this is in the wrong forum.

I have a web application that utilizes, Struts, Tiles and ExtJS & JQuery. I am confused on how the Store object url configuration works. I see many php examples but no servlet examples. What I would like to do is when a menu item is clicked, I want to open a tabbed panel that has a grid on it. The grid data needs to come from a backend database.

I am assuming that when user clicks on menu item, it has href to 'backend servlet'.action which will just forward to the jsp page that contains my grid.
Currently my grid is coded for an xml file that I am manually creating and dropping in the directory, but what I want is for the data to be loaded from the 'backend servlet'.action and that should either create XML or JSON??? And I'm confused because I am assuming that the url is going to read 'backend servlet.action' but then how does it know the name of the xml or json file???

One more thing When I code the servlet and create the JSON/XML do I need to change the struts.xml result type? Right now it's tiles, but if it needs to change to json or whatever, will my tiles still work??

Any help would be greatly appreciated.

Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This seems like an ExtJS issue, no?

On the S2 side of things you can create XML or JSON in a variety of ways; when I've used ExtJS I've just returned the appropriate content type. ExtJS takes care of marshalling it into its UI widgets. The S2 result of the action that creates the data should be configured appropriately for how you're creating the data.
Make yourself as serene as a flower, as a tree. And on wednesdays, as serene as this tiny ad:
a bit of art, as a gift, that will fit in a stocking
    Bookmark Topic Watch Topic
  • New Topic