Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2006

Tip: Looking for answers? Try searching our database.

Beginner - Netbeans code behind class

Thread view: 
Mehdi - 18 Jan 2006 14:27 GMT
Hi,

I am asp.net (C#) developer and I have decided to try jsp and MySQL.  Does
anyone know how I could add a class and use it in my jsp page (similar to
code behind class in asp.net/C#), so I could step through the class code and
debug?

Thanks for your time.

Mehdi
impaler - 18 Jan 2006 14:37 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
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.
David Segall - 20 Jan 2006 13:11 GMT
>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>.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.