Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ExtJs - server side?

we've got a request from the customer to build web application based on ExtJS framework. I looked over the internet and find out that ExtJs is just a client javascript controls but I assume that web application must have serverside as well - at least for DataBase storage...

Am I right? or on the server could be just a DB and with ExtJs I can make direct requests to the server DB? even if so - what about security... If not - what is better to take as server part? - Tomcat and JSP?

(before that i'got experience only with ASP.Net so java in web is completely new for me...)

thx

like image 976
Leonid Avatar asked Mar 14 '26 15:03

Leonid


2 Answers

Ext JS is a client side library.

While it would be possible to run it server side (you can run javascript server side) doing this makes absolutely no sense whatsoever (it won't translate into the client side functionality your client is looking for).

If the client requires you to use Ext JS, they mean they want it on the client side.

You should ask the client if they have any server side requirements. If not, use whatever you like. If you have experience with ASP.NET I would recommend ASP.NET MVC (what StackOverflow is built with)

like image 159
DanSingerman Avatar answered Mar 16 '26 04:03

DanSingerman


Since your GUI will be composed of HTML pages containing rich ExtJS components offering a JavaScript API, I would opt for an MVC framework (not a component-based one) which easily allows to

  • generate HTML pages
  • read and generate JSON in order to communicate between the JavaScript components and the server-side.
  • talk to a database

Most of the Java MVC frameworks qualify (Stripes, Spring MVC, Struts, etc.).

But remember : do not put Java code in your JSPs. Use Java actions of your framework for that. JSP should be used only for the HTML generation part.

like image 43
JB Nizet Avatar answered Mar 16 '26 05:03

JB Nizet



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!