Re: Basic Question
Re: Basic Question
- Subject: Re: Basic Question
- From: Jeffrey Pearson <email@hidden>
- Date: Tue, 21 Mar 2006 15:36:20 -0800
OK. I SO didn't even understand ANY of that. Can you translate to a
lower beginner level? I am coming from using IntelliJ and the JSP/
Servlet world. I simply dropped the folder of images into my
resources folder which contained all of my jsp files and it was
deployed with the rest of the jsp files.
Trying to duplicate this, I first copied my images folder into the
project root folder in the finder.
In XCode, in the Groups and Files pane, I right click on the 'Web
Components' folder and selected 'Add Existing Files', and selected
the folder that I just copied over. I now see my images folder and I
can drill down and see my individual images in the folder under the
Web Components folder in the Groups and Files pane.
I'm not understanding.......
Jeff
On Mar 21, 2006, at 3:07 PM, Paul Lynch wrote:
On 21 Mar 2006, at 21:12, Jeffrey Pearson wrote:
My question is a stupid one, but I don't seem to be able to find
anything about it. I have an image I want to include on my page.
In my old app, I have an images folder in my root folder that
contain all of my images. I copied that folder into the root
project folder of my webobject app. I used "file->add file" and
selected the folder and added it to my web components folder. I
then use a WOImage and converted it to a static object and
selected the image file I wanted. In layout, it comes up fine, but
when I build the project, it shows up as a broken link in the
browser window.
So where am I going wrong?
WebServer Resources need to be installed in the doc root of your
web server; I assume that by the above you meant that you added the
images to the WebServer target? This is a separate build product.
Your app will build to two parts: one containing the code, to be
installed on your application server, and the other with the web
server resource, to be installed in the doc root of your web server.
Other basic question:
I have a common header/footer across all pages using the include
tag. Can I continue to use it or do I need to do something else?
If it is a server based include, then yes, you can continue to use
it. Probably.
I would generally create a partial page component from the include
(ie, a wo), and place that in all pages that needed it. Or almost.
What I would really do is create a page wrapper component (one that
contains the html/head/body parts), with a WOComponentContent where
the page content would go, and use that on every page in my app.
This approach can cut out a lot of repetitive layout html.
Paul
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden