• 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

Forwarding with something other than Action

 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have actions that are strickly view. No form submissions go to these actions. If the page were static I'd use org.apache.struts.actions.ForwardAction to access the page. However, I do need to get data from the database and place this in the request.

Currently, I am extending org.apache.struts.action.Action, creating my execute method and am returning an ActionForward that is defined in the struts-config.

I am using struts 1.2.9 and I am wondering if there is a different class I can extend and avoid needing to place the <forward> tag in my config and just use the input parameter of the action declaration.

Thanks.
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Creating an action mapping with a forward and writing a class that extends Action is still the best way to do this.
 
Henry Lowell
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Merrill Higginson:
Creating an action mapping with a forward and writing a class that extends Action is still the best way to do this.



Thank you.
 
reply
    Bookmark Topic Watch Topic
  • New Topic