the other day a frnd of mine has asked me:
"Could you comment on Why MVC Architecture like Struts,
Spring are better than simple JSP-Servlet applications? Since
JSP-Servlet is bit easy, faster, user friendly etc."
though we've been know'g the answer since ages but still I felt that there is more to it:
why to opt for MVC than plain jsp-servlet based is what I felt the question should be framed to (plz don't consider struts/ spring i'll come to that later **)
--> centralised control or gateway(Servlet Centric vs Page Centric)
--> layered architecture, hence no dependcencies(eg: in a team where
they've specialised web designers/ develoopers java developers are
still independent to code the controlers & write the business logic)
--> for bigger n complex application archtecture, maintenance is a
now coming back to struts / spring...
ther are not MVC but implementing MVC architecture, which aint
u might even use incorporate jsp/ servlet into MVC arch to create ur
own customised arch along with javabeans/ TO/ VO or diff design
but then why do frmwrks alike struts n spring do survive...
--> easy to configure(xml based single point entry)
--> easily wired with dao/ business tier
--> integration to hibernate, toplink, ejb, or differnt components are
--> spring has got internal components for entire N tier arch.. :)
I’ve just happened to find ZOHO: http://www.zoho.com/
i agree compete’g with google wd b too early to say…..
but this one provides n number of gadgets n tool to deal with personal & professional data
Zoho Show : Zoho Show Online presentation tool
Zoho Invoice : Zoho Invoice Online Invoicing. Quick and Easy
Zoho Writer : Zoho Writer Online word processor
Zoho Reports : Zoho Reports Online Database & Reporting
Zoho CRM : Zoho CRM On-demand Customer Relationship Management solution
Zoho Creator : Zoho Creator Online web applications creator
Zoho Planner : Zoho Planner Online organizing tool
Zoho Docs : Zoho Docs Online Document Management
Zoho Sheet : Zoho Sheet Online spreadsheet service
Zoho Meeting : Zoho Meeting Web Conferencing
Zoho Share : Zoho Share Centralized Public Repository
Zoho Notebook : Zoho Notebook Online Note Taker
Zoho Projects : Zoho Projects Project Management
Zoho Wiki : Zoho Wiki Online Wiki with public, private & group permissions
Zoho Chat : Zoho Chat Instant messaging and group chat tool
Google Wave is a new online communication and collaboration tool.
As per my understanding Wave wd be a common networking platform along with better UI & sophisticated gadgets, that u may even get by configuring ur gmail settings. There are so many gadgets available through Labs(google) also some uri based online gadgets can be configured. Even u may ur facebook & myspace!
Wave is more of a fun material for students! as almost all google stuffs available all together. But no doubt about the developing team, HATS OFF to them for what they’ve achieved.
Luved te Real-time concept(Wave/ Wavelet & Blips)
Google Wave: http://wave.google.com/help/wave/about.html
Apart from the basic file upload coding two more jar files are reqd:
i hope version is something not to worry much but better to have latest jar files.
Runtime exceptions occurs in the absence: - HTTP Status 500 -
1] BOTH jars are unavailable: Unable to load bean org.apache.struts2.dispatcher.multipart.MultiPartRequest (jakarta) - [unknown location]
2] commons-fileupload-1.2.1.jar unavailable: Unable to load bean org.apache.struts2.dispatcher.multipart.MultiPartRequest (jakarta) - [unknown location]
3] commons-io-1.3.2.jar unavailable: java.lang.NoClassDefFoundError: org/apache/commons/io/output/DeferredFileOutputStream
Apart from these jar files another important key is Interceptor:
Absence of <interceptor-ref name="fileUpload"/> [used in struts.xml]
By default file-upload functionality works for 2mb now the interceptor plays a vital role while uploading any doc size > 2mb!
SEVERE: org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (3539791) exceeds the configured maximum (2097152)
Jun 10, 2009 2:40:18 PM org.apache.struts2.interceptor.FileUploadInterceptor intercept
SEVERE: the request was rejected because its size (3539791) exceeds the configured maximum (2097152)
Jun 10, 2009 2:40:18 PM org.apache.struts2.dispatcher.Dispatcher serviceAction
Struts Problem Report
Struts has detected an unhandled exception:
# Messages: No result defined for action ui.FileUploadAction and result input
Line number: 27
Column number: 73
<action name="FileUpload" class="ui.FileUploadAction" method="upload">
No result defined for action ui.FileUploadAction and result input - action - file:/D:/nb/cms/build/web/WEB-INF/classes/struts.xml:27:73
Struts 2.0 is one of the great revolutions!
the ppt attached discusses:
- how to configure the plugins for struts2 in netbeans IDE.
- basic features of struts2.0.
- basic flow of struts2.0.
- architecture of struts2.0.
- some basic components in brief.
plugins for netbeans:
- Starting Struts2 by Ian Roughley [free ebook]
- Struts 2 Design and Programming: A Tutorial by Budi Kurniawan
|File Size: ||134 kb|
|File Type: || nbm|
|File Size: ||3411 kb|
|File Type: || nbm|
Change the properties of the gtalk.
An additional parameter "/nomutex" will do the job for U!