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.

[627 byte] By [phongsuongkhach] at [2007-9-26 2:43:15]
# 1
You should go for Servlets --> DatabaseAnd use JRUN because if you want to configure IIS with servlets u need JRUN and JRUN is absolutely stable than JWS.Avdhut.
avdhut2000 at 2007-6-29 10:21:40 > top of Java-index,Archived Forums,Java Programming...
# 2

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.

cheehwa at 2007-6-29 10:21:40 > top of Java-index,Archived Forums,Java Programming...
# 3

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

moinanjum at 2007-6-29 10:21:40 > top of Java-index,Archived Forums,Java Programming...
# 4
Hi,As per the J2EE spec u need write ur server side programing like thisJSP-->SERVLET-->EJB-->DB. This actually spec says.If u dont really like this u can directly call ur bean direct but nt adv.ramesh
ramesh_vojjala at 2007-6-29 10:21:40 > top of Java-index,Archived Forums,Java Programming...
# 5

> 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.

jpearlm at 2007-6-29 10:21:40 > top of Java-index,Archived Forums,Java Programming...
# 6
what happened?
jpearlm at 2007-6-29 10:21:41 > top of Java-index,Archived Forums,Java Programming...
# 7

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.

mlam329 at 2007-6-29 10:21:41 > top of Java-index,Archived Forums,Java Programming...
# 8
I think the best solution isJSp->Servlet->Beans-DatabaseSever - BEA WeblogicDatabase - Oracle(Oracle claims that it works fastest with Java )This architecture is secure and flexible
deepakzone at 2007-6-29 10:21:41 > top of Java-index,Archived Forums,Java Programming...