Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Visual Studio Developer learning Eclipse(Need help on basic JSP test project)
Visual Studio Developer learning Eclipse [message #762905] Thu, 08 December 2011 19:48 Go to next message
roundel1900 is currently offline roundel1900Friend
Messages: 5
Registered: December 2011
Junior Member
I am a long time Visual Studio Developer I have added a JSP page to my test project but have been enable to get it running from within Eclipse. I am expecting it to work similar to how I would run and ASP.NET page in VS. Can someone assist with this?
Re: Visual Studio Developer learning Eclipse [message #762925 is a reply to message #762905] Thu, 08 December 2011 20:20 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 08-Dec-11 12:48, roundel1900 wrote:
> I am a long time Visual Studio Developer I have added a JSP page to my
> test project but have been enable to get it running from within Eclipse.
> I am expecting it to work similar to how I would run and ASP.NET page in
> VS. Can someone assist with this?

As I've almost never used VS, I can't help you in terms of comparing it
with what you do there. However, I do have a very detailed article in
which you'll likely discover what's going wrong for you.

http://www.javahotchocolate.com/wtp-tutorials/wtp-tutorial.html
Re: Visual Studio Developer learning Eclipse [message #763256 is a reply to message #762925] Fri, 09 December 2011 12:47 Go to previous messageGo to next message
roundel1900 is currently offline roundel1900Friend
Messages: 5
Registered: December 2011
Junior Member
Thanks that helped a lot! When I start my app how do I get it to start in my browser automatically instead of Eclipse as opposed to cutting and pasting the URL link in a browser?

Also, I wanted to get up to speed on calling a class library from JSP, how would I set this up?
Re: Visual Studio Developer learning Eclipse [message #763336 is a reply to message #763256] Fri, 09 December 2011 15:35 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 09-Dec-11 05:47, roundel1900 wrote:
> Thanks that helped a lot! When I start my app how do I get it to start
> in my browser automatically instead of Eclipse as opposed to cutting and
> pasting the URL link in a browser?
>
> Also, I wanted to get up to speed on calling a class library from JSP,
> how would I set this up?

Eclipse has an internal browser; it's the one you get, for instance,
when you right-click an HTML file in your project and choose Open
with... -> Web Browser.

Just how this is launched on your JSP depends a little on how things are
set up in your project, in web.xml, etc. Typically, right-clicking on
the JSP and choosing Run As -> On Server (or Debug As) will do the
trick. I say "typically" because sometimes the URI the browser gets will
end up with a missing element in its path.

Oh, and yeah, you should already have launched Tomcat (or whatever
container you're running). In the Server view (tab), right-click and
choose Start (or Debug). I think the link I gave you explains how to
associate your web application project with Tomcat.

Work habits...

When I tire of running something in Eclipse's browser (I'd rather see
source code or debugging content in the center pane), I add a bookmark
to my (real) browser so that I can open a new tab and go there. I leave
it there during any bug fixing I do, restart Tomcat (from the Server
view), then reload that tab.

You'll soon get the hang of it.

Incidentally, for web application development in Eclipse, the major
forum is Eclipse web tools (rather than this newcomers' forum). NNTP is
eclipse.webtools.

Best of luck,

Russ
Re: Visual Studio Developer learning Eclipse [message #763451 is a reply to message #762905] Fri, 09 December 2011 19:59 Go to previous messageGo to next message
roundel1900 is currently offline roundel1900Friend
Messages: 5
Registered: December 2011
Junior Member
One more thing. I am beginning to download some sample projects some are web some are just J2E sample apps. How do i open these in Eclipse? I do not see anything anaolgous to a project or solution file that bundles everyting together.

I have placed the sample application in my default workspace but as of yet I cannot figure out how to open them. thanks.
Re: Visual Studio Developer learning Eclipse [message #763480 is a reply to message #763451] Fri, 09 December 2011 21:00 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 09-Dec-11 12:59, roundel1900 wrote:
> One more thing. I am beginning to download some sample projects some are
> web some are just J2E sample apps. How do i open these in Eclipse? I do
> not see anything anaolgous to a project or solution file that bundles
> everyting together.
>
> I have placed the sample application in my default workspace but as of
> yet I cannot figure out how to open them. thanks.

In order to be an importable Eclipse project, you must see .project,
..classpath and .settings files at the root.

However, it's possible to create an Eclipse project from an existing,
non-Eclipse project assuming the directory structure isn't too far off
the mark. The article below discusses doing that for projects from the
book, Core JavaServer Faces.

http://www.javahotchocolate.com/tutorials/corejsf.html
Re: Visual Studio Developer learning Eclipse [message #763482 is a reply to message #763480] Fri, 09 December 2011 21:02 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 09-Dec-11 14:00, Russell Bateman wrote:
> On 09-Dec-11 12:59, roundel1900 wrote:
>> One more thing. I am beginning to download some sample projects some are
>> web some are just J2E sample apps. How do i open these in Eclipse? I do
>> not see anything anaolgous to a project or solution file that bundles
>> everyting together.
>>
>> I have placed the sample application in my default workspace but as of
>> yet I cannot figure out how to open them. thanks.
>
> In order to be an importable Eclipse project, you must see .project,
> .classpath and .settings files at the root.
>
> However, it's possible to create an Eclipse project from an existing,
> non-Eclipse project assuming the directory structure isn't too far off
> the mark. The article below discusses doing that for projects from the
> book, Core JavaServer Faces.
>
> http://www.javahotchocolate.com/tutorials/corejsf.html

And, by the way, you should rather ask a new question than piggyback off
an existing one.

Cheers,

Russ
Previous Topic:hello world tutorial failed at last step - Run your Java application
Next Topic:Exit code = 13 - Again, sorry I cant solve this
Goto Forum:
  


Current Time: Tue Apr 16 10:51:08 GMT 2024

Powered by FUDForum. Page generated in 0.66690 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top