Java, JSP, Servlet....!!!!?Can you help me?
Hi all,
Now I want to use Java (JSP, Bean, Servlet and EJB) for programming (application/web/internet/database). Which architects I should use?
JSP --> Database.
JSP --> Beans --> Database.
Servlet --> Database.
JSP & Servlet --> Database
JSP & EJB --> Database...
Can I use COM/DCOM such as ASP pages?
And which databases (SQL Server, Oracle, Access, DB...) I should use? Which web servers (Jrun, JWS, Apache, JWS, Orion...)?
Are there some stuff on Internet relate to this topic (some samples)?
Thanks so much.
I suggest you use JSP & EJB->Database architect as they provide you with security features. Also, they are scalable and reusable when you use EJB(Session/Entity).
As for web server, I suggest you use IBM Websphere. You can download from IBM website for trial version of 60 days.
As for database, I suggest you use Cloudscape RDBMS as this database caters for java web programming. You can go to Cloudscape website to check out and download from the website.
I would suggest as follows
JSP --> Beans --> Servlet --> Database.
You can use Custom tags to populate the bean or servlet to populate bean and it is very easy to them in JSP. Always use Servlet to connect to DB it will very help even in Connection pooling
HTH
Regards
Moin
> Hi all,
> Now I want to use Java (JSP, Bean, Servlet and EJB)
> for programming (application/web/internet/database).
> Which architects I should use?
you can use the Model-View-Controller or MVC model.
Model = JavaBeans--> for your business logic/process
View = JSP --> for your presentation like HTML
Controller = Servlet --> as your router or dispatcher of the JSPs.
> And which databases (SQL Server, Oracle, Access,
> DB...) I should use?
for large business applications that would require security, optimization, etc., i suggest that you go for a good dbase and i'm referring to Oracle, SQL Server, Sybase, Informix, and the likes. But, if you're going to do simple application, MS Access can do the job. Since it comes with MS Office installation, you'll not find it any harder to configure your dbase.
>Which web servers (Jrun, JWS, Apache, JWS, Orion...)?
you can use the following apache, IIS, Websphere, etc...
don't forget that you also need an application server. say, tomcat application server and apache web server.
It all depends on what your application is suppose to do. Different application benefits from different architecture. If you are unsure, the best is to go get apache, tomcat and mysql. with those three you get to experiment except for EJBs. If you really think EJB should be used then you can get something like JBoss or any trial software from the big companies in the application space.
Definitely, try to use the MVC method, it will help you with reuse among other things.