You have to use a MVC framework for this.
Try Struts but there are lots of others too.
http://struts.apache.org/index.html
Mehdi - 19 Jan 2006 00:29 GMT
Thanks for the info. I'll try it.
> You have to use a MVC framework for this.
> Try Struts but there are lots of others too.
> http://struts.apache.org/index.html
David Segall - 20 Jan 2006 12:57 GMT
>You have to use a MVC framework for this.
>Try Struts but there are lots of others too.
>http://struts.apache.org/index.html
Struts is definitely not for beginners and you do not need it. To
quote from "Core Servlets and Java Server Pages" - "For simple and
moderately complex applications, implementing MVC from scratch with
"RequestDispatcher" is straightforward and flexible".
I would not even worry about MVC at this stage. It is a way of
improving the reliability and maintainability of your code and, if my
first steps at web based applications are a guide, they will need
rewriting anyway.
>Hi,
>
[quoted text clipped - 6 lines]
>
>Mehdi
You need a servlet. NetBeans, in particular NetBeans 5.0, can be used
to debug the servlet code.
You may find it easier to learn by using Java Studio Creator to write
a simple application. You will find writing the application a fairly
trivial task but, by the time you understand what Studio Creator did
for you, transfer the application to another server and change the
database to MySQL you will have covered most the knowledge you need.
Studio Creator is a free download from
<http://developers.sun.com/prodtech/javatools/jscreator/ea/jsc2/>. It
is based on NetBeans so you will find the interface familiar.
Mehdi - 21 Jan 2006 13:43 GMT
David,
Thanks for the advice. It seems very intresting, specially other Enterprise
IDEs offered free by Sun. I will download and give it a go.
Thanks
Mehdi
> You need a servlet. NetBeans, in particular NetBeans 5.0, can be used
> to debug the servlet code.
[quoted text clipped - 7 lines]
> <http://developers.sun.com/prodtech/javatools/jscreator/ea/jsc2/>. It
> is based on NetBeans so you will find the interface familiar.
David Segall - 21 Jan 2006 15:21 GMT
>David,
>
>Thanks for the advice. It seems very intresting, specially other Enterprise
>IDEs offered free by Sun.
None of the Sun IDE's are based on NetBeans 5.0. They sensibly wait
until there is a stable NetBeans product before updating the ones they
support commercially. Unfortunately, that means that the latest
features are missing and I would miss Matisse and the improved server
application support in NetBeans 5.0. Java Studio Creator uses the
NetBeans platform (user interface) but it is a completely different
product and is aimed at the same market as Microsoft's Visual Web
Developer Express Edition.
If you are looking for alternative IDE's that are comparable to
NetBeans I have a list here <http://ide.profectus.com.au>.
Mehdi - 22 Jan 2006 02:07 GMT
Thanks again,
I installed the Sun Studio Creator and it seems the closest match to VS.NET
IDE as I wanted it (with code behind stuff). I noticed that the IDE is more
CPU and memory hungry comparing to VS.NET.
I am going to get use to the java syntax which is a bit similar to C# (sorry
I meant C# is similar to Java!)
Mehdi
>>David,
>>
[quoted text clipped - 12 lines]
> If you are looking for alternative IDE's that are comparable to
> NetBeans I have a list here <http://ide.profectus.com.au>.