Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » jsp Hello World
jsp Hello World [message #184695] Thu, 14 December 2006 08:09 Go to next message
Eclipse User
Originally posted by: nospam.nowhere.nowhere

Hi,

I am asp.net developer and as my third attempt I am trying to give java/jsp
another go. In the past I tried Netbeans and Sun Java Studio creator, but to
my experience they were to slow to compile and run (50+ seconds to
recompile/run a jsp page!)

I have downloded and installed the followings:

Eclipse 3.2
Tomcat 5.5.20
Sysdeo plugin
Sun JDK
j2re1.4.2_03

all running on Win Xp Pro

I can create a Dynamic Web Project and run it under Tomcat server from
Eclipse IDE, however what I am after is to have similar "Code Behind"
methodology available in ASP.NET (C#) to write java codes for my jsp web
form controls (ie. Buttons, textboxes etc).


Can someone put me in the right direction. Does Eclipse have this kind of
functionality?


My other question is that why the main Tomcat service running on XP Pro must
be stopped to run the Tomcat server inside Eclipse IDE?


Thanks

Med
Re: jsp Hello World [message #184796 is a reply to message #184695] Thu, 14 December 2006 11:10 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1287
Registered: July 2009
Senior Member
Med wrote:
> Hi,
>
> I am asp.net developer and as my third attempt I am trying to give java/jsp
> another go. In the past I tried Netbeans and Sun Java Studio creator, but to
> my experience they were to slow to compile and run (50+ seconds to
> recompile/run a jsp page!)
>
> I have downloded and installed the followings:
>
> Eclipse 3.2
> Tomcat 5.5.20
> Sysdeo plugin
> Sun JDK
> j2re1.4.2_03
>
> all running on Win Xp Pro
>
> I can create a Dynamic Web Project and run it under Tomcat server from
> Eclipse IDE, however what I am after is to have similar "Code Behind"
> methodology available in ASP.NET (C#) to write java codes for my jsp web
> form controls (ie. Buttons, textboxes etc).
>
>
> Can someone put me in the right direction. Does Eclipse have this kind of
> functionality?
>
>
> My other question is that why the main Tomcat service running on XP Pro must
> be stopped to run the Tomcat server inside Eclipse IDE?

I don't know enough about ASP.NET to answer your first question, but
there is no problem with running the Tomcat server inside of Eclipse at
the same time as the service provided the "Run modules directly from the
workspace..." is checked in the server editor (double-click the server
in the Servers view to open) and the servers are configured so they
don't try to use any of the same ports. You can use the server editor
to modify the ports used by the Tomcat server in Eclipse.

Cheers,
Larry

>
>
> Thanks
>
> Med
>
>
>
Re: jsp Hello World [message #184879 is a reply to message #184796] Thu, 14 December 2006 17:10 Go to previous messageGo to next message
Andy Pahne is currently offline Andy Pahne
Messages: 17
Registered: July 2009
Junior Member
Hi,

the paradigm is a bit different when it comes to Java web development.

An approach that would be very similar to what you are asking for would
be to use a servlet. In that servlet you do the "behind" work like
building the models for your drop downs etc. Then, in the servlet, you
pass control over to a JSP for rendering. But I would not recommend this
approach because it will become a little awkward if yo have lots of
servlets and JSPs.

Instead I would recommend you consider the many Java web frameworks out
there. Struts would be a conservative choice, Tapestry is nice in my
oppinion, Wicket is bleading edge at the moment (at least it was last
week, but that kind of information get's outdated very quickly when it
comes to Java web frameworks :)

Andy




> Med wrote:
>> Hi,
>>
>> I am asp.net developer and as my third attempt I am trying to give
>> java/jsp
>> another go. In the past I tried Netbeans and Sun Java Studio creator,
>> but to
>> my experience they were to slow to compile and run (50+ seconds to
>> recompile/run a jsp page!)
>>
>> I have downloded and installed the followings:
>>
>> Eclipse 3.2
>> Tomcat 5.5.20
>> Sysdeo plugin
>> Sun JDK
>> j2re1.4.2_03
>>
>> all running on Win Xp Pro
>>
>> I can create a Dynamic Web Project and run it under Tomcat server from
>> Eclipse IDE, however what I am after is to have similar "Code Behind"
>> methodology available in ASP.NET (C#) to write java codes for my jsp web
>> form controls (ie. Buttons, textboxes etc).
>>
>>
>> Can someone put me in the right direction. Does Eclipse have this
>> kind of
>> functionality?
>>
>>
>> My other question is that why the main Tomcat service running on XP
>> Pro must
>> be stopped to run the Tomcat server inside Eclipse IDE?
>
> I don't know enough about ASP.NET to answer your first question, but
> there is no problem with running the Tomcat server inside of Eclipse at
> the same time as the service provided the "Run modules directly from the
> workspace..." is checked in the server editor (double-click the server
> in the Servers view to open) and the servers are configured so they
> don't try to use any of the same ports. You can use the server editor
> to modify the ports used by the Tomcat server in Eclipse.
>
> Cheers,
> Larry
>
>>
>>
>> Thanks
>>
>> Med
>>
>>
>>
Re: jsp Hello World [message #184903 is a reply to message #184879] Thu, 14 December 2006 18:40 Go to previous message
Eclipse User
Originally posted by: nospam.nowhere.nowhere

Hi Larry and Andy
Thank you both for the suggestions. Regarding the tomcat, I think you are
right about the port conflict.

> week, but that kind of information get's outdated very quickly when it
> comes to Java web frameworks :)

I have noticed it too and I couldn't agree more. As I suggested in my
original post, this is my 3rd attempt to get involved more in Java, but the
biggest disadvantage of this technology (to my knowledge which is probably
incorrect!) there are too many obselete documentations and
providers(specially plugins) regarding using tools to develop java apps
which results in configuration nightmare and inconsistancy in development
environment (not the java technology itself). On the other hand when I look
back at Visual Studio.NET (which has its own disadvantages, I must admit) it
makes it highly addective IDE!


Kind regards


Med


"Andy Pahne" <ap@der-die-das.org> wrote in message
news:elsi4l$us7$1@utils.eclipse.org...
>
> Hi,
>
> the paradigm is a bit different when it comes to Java web development.
>
> An approach that would be very similar to what you are asking for would be
> to use a servlet. In that servlet you do the "behind" work like building
> the models for your drop downs etc. Then, in the servlet, you pass control
> over to a JSP for rendering. But I would not recommend this approach
> because it will become a little awkward if yo have lots of servlets and
> JSPs.
>
> Instead I would recommend you consider the many Java web frameworks out
> there. Struts would be a conservative choice, Tapestry is nice in my
> oppinion, Wicket is bleading edge at the moment (at least it was last
> week, but that kind of information get's outdated very quickly when it
> comes to Java web frameworks :)
>
> Andy
>
>
>
>
>> Med wrote:
>>> Hi,
>>>
>>> I am asp.net developer and as my third attempt I am trying to give
>>> java/jsp
>>> another go. In the past I tried Netbeans and Sun Java Studio creator,
>>> but to
>>> my experience they were to slow to compile and run (50+ seconds to
>>> recompile/run a jsp page!)
>>>
>>> I have downloded and installed the followings:
>>>
>>> Eclipse 3.2
>>> Tomcat 5.5.20
>>> Sysdeo plugin
>>> Sun JDK
>>> j2re1.4.2_03
>>>
>>> all running on Win Xp Pro
>>>
>>> I can create a Dynamic Web Project and run it under Tomcat server from
>>> Eclipse IDE, however what I am after is to have similar "Code Behind"
>>> methodology available in ASP.NET (C#) to write java codes for my jsp web
>>> form controls (ie. Buttons, textboxes etc).
>>>
>>>
>>> Can someone put me in the right direction. Does Eclipse have this kind
>>> of
>>> functionality?
>>>
>>>
>>> My other question is that why the main Tomcat service running on XP Pro
>>> must
>>> be stopped to run the Tomcat server inside Eclipse IDE?
>>
>> I don't know enough about ASP.NET to answer your first question, but
>> there is no problem with running the Tomcat server inside of Eclipse at
>> the same time as the service provided the "Run modules directly from the
>> workspace..." is checked in the server editor (double-click the server in
>> the Servers view to open) and the servers are configured so they don't
>> try to use any of the same ports. You can use the server editor to
>> modify the ports used by the Tomcat server in Eclipse.
>>
>> Cheers,
>> Larry
>>
>>>
>>>
>>> Thanks
>>>
>>> Med
>>>
>>>
>>>
Previous Topic:Problem finding method while debugging
Next Topic:How to properly include external projects/jars in Dynamic Web Project
Goto Forum:
  


Current Time: Sun Apr 20 23:11:48 EDT 2014

Powered by FUDForum. Page generated in 0.02601 seconds