|
|
|
Re: Visual Studio Developer learning Eclipse [message #763336 is a reply to message #763256] |
Fri, 09 December 2011 15:35 |
|
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 #763480 is a reply to message #763451] |
Fri, 09 December 2011 21:00 |
|
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 |
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.08390 seconds