File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Does making a plain old servlet violate the use of struts? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Does making a plain old servlet violate the use of struts?" Watch "Does making a plain old servlet violate the use of struts?" New topic
Author

Does making a plain old servlet violate the use of struts?

Timothy Sam
Ranch Hand

Joined: Sep 18, 2005
Posts: 746
Technically, of course this is possible... I only need to populate a drop-down menu. But as I was suggested... Do the query in the controller , avoid the use of jstl sql tags.... In short... I'm trying to follow the mvc model 2(or is that jsp model). I need to serve a page that would enable the user to create another user(adduser.jsp)... This actually means that he would be coming from another jsp page (let's say main.jsp). In adduser.jsp I need to populate a select tag, so my solution was... Create an extension of HttpSevlet, populate a bean(an ordinary javabean), then use that bean to populate the select tag in the adduser.jsp... I didn't see the the use of ActionSevlets here so I'm not planning on using them... I know there isn't actually any rule like this but... Am I violating the use of struts? Hope you understand my point... Thanks!


SCJP 1.5
http://devpinoy.org/blogs/lamia/ - http://everypesocounts.com/
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 31054
    
232

Timothy,
It's using MVC, but not Struts. To do that using Struts you would populate the bean in an Action class.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Does making a plain old servlet violate the use of struts?