File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

In case there is no need for Struts...

 
Ningfeng Xu
Greenhorn
Posts: 18
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sometimes there is no need for struts, like, when processing a request with no forms(so no user input data), what would be the best choice for handling such requests? At lease, I sopouse using sevlet to prepare the java beans and then pass the request to corresponding jsp is the bottom line. But, any other idea? Thanks a lot.
 
Brent Sterling
Ranch Hand
Posts: 948
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I still think is makes sense to use Struts and Action classes instead of writing servlets. You can configure your action to not use an ActionForm and if no real processing logic needs to be performed then you can use one of the build in Action classes (such as ForwardAction).

- Brent
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree with Brent. I frequently create JSPs in my applications that don't have any Struts tags in them. However, I still havigate to these pages via a Struts Action. My feeling is that if you're going to write a Struts application, it's best to use Struts for all navigation in the site.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic