 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
phimalaya Guest
|
Posted: Tue May 09, 2006 8:15 pm Post subject: adding pdfs to WAR file |
|
|
hello, i am using jbuilder 2006 and tomcat.
i want to add a folder (say "instructions") underneath my web appln doc root
(say "mywebapp").
this folder contains a pdf file (say "mywebapphelp.pdf").
now, when i try to add this thru web app properties and add file,
"instructions" is created as a "classes" subfolder. what should i do to
accomplish it?
here is the pictorial part of my expectations...
mywebapp
|------ instructions
|----------mywebapphelp.pdf
|------ WEB-INF
|---------- classes
thanks. |
|
| Back to top |
|
 |
Kevin Dean [TeamB] Guest
|
Posted: Tue May 09, 2006 9:15 pm Post subject: Re: adding pdfs to WAR file |
|
|
phimalaya wrote:
| Quote: | hello, i am using jbuilder 2006 and tomcat.
i want to add a folder (say "instructions") underneath my web appln doc
root (say "mywebapp").
this folder contains a pdf file (say "mywebapphelp.pdf").
now, when i try to add this thru web app properties and add file,
"instructions" is created as a "classes" subfolder. what should i do to
accomplish it?
|
Files added explicitly in the manner you suggest end up under
WEB-INF/classes. To include arbitrary content in a web application,
simply put the files into the web directory you require (e.g.
ProjectDir/mywebapp/instructions).
To get the WAR builder to recognize PDF files:
1. Tools | Preferences | Browser | Files Types
2. Locate "Web Binary Content" and add "pdf" to the list.
--
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
http://www.datadevelopment.com/
NEW WHITEPAPERS
Team Development with JBuilder and Borland Enterprise Server
Securing Borland Enterprise Server
http://www.datadevelopment.com/papers/index.html
Please see Borland's newsgroup guidelines at
http://info.borland.com/newsgroups/guide.html |
|
| Back to top |
|
 |
phimalaya Guest
|
Posted: Wed May 10, 2006 1:15 pm Post subject: Re: adding pdfs to WAR file |
|
|
thanks jim.
i came across the following in jbuilder doc.
============================================================
Adding unrecognized file types as generic resource files If you have file
types that aren't recognized by JBuilder, you can associate them with the
generic resource file type. Then JBuilder will recognize them and include
them in the automatic source discovery process. You'll also be able to
bundle them into archives. For example, JBuilder doesn't recognize Flash
files, but you might want to access them in your project and deploy them to
an archive with the rest of your project.
============================================================
then my qn is --- what is the diff between your suggn and associating with
the generic resource file type?
"Kevin Dean [TeamB]" <NkOdSePaAnM (AT) datadevelopment (DOT) com> wrote in message
news:xn0em10hygxh35000-kdean (AT) www (DOT) teamb.com...
| Quote: | phimalaya wrote:
hello, i am using jbuilder 2006 and tomcat.
i want to add a folder (say "instructions") underneath my web appln doc
root (say "mywebapp").
this folder contains a pdf file (say "mywebapphelp.pdf").
now, when i try to add this thru web app properties and add file,
"instructions" is created as a "classes" subfolder. what should i do to
accomplish it?
Files added explicitly in the manner you suggest end up under
WEB-INF/classes. To include arbitrary content in a web application,
simply put the files into the web directory you require (e.g.
ProjectDir/mywebapp/instructions).
To get the WAR builder to recognize PDF files:
1. Tools | Preferences | Browser | Files Types
2. Locate "Web Binary Content" and add "pdf" to the list.
--
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
http://www.datadevelopment.com/
NEW WHITEPAPERS
Team Development with JBuilder and Borland Enterprise Server
Securing Borland Enterprise Server
http://www.datadevelopment.com/papers/index.html
Please see Borland's newsgroup guidelines at
http://info.borland.com/newsgroups/guide.html |
|
|
| Back to top |
|
 |
Kevin Dean [TeamB] Guest
|
Posted: Wed May 10, 2006 9:15 pm Post subject: Re: adding pdfs to WAR file |
|
|
phimalaya wrote:
| Quote: | then my qn is --- what is the diff between your suggn and associating with
the generic resource file type?
|
None, except to categorize them a little better. "Web Binary Content" is
just a name, but it better describes the PDF.
--
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
http://www.datadevelopment.com/
NEW WHITEPAPERS
Team Development with JBuilder and Borland Enterprise Server
Securing Borland Enterprise Server
http://www.datadevelopment.com/papers/index.html
Please see Borland's newsgroup guidelines at
http://info.borland.com/newsgroups/guide.html |
|
| Back to top |
|
 |
Powered by phpBB © 2001, 2006 phpBB Group .
|