aspose file tools*
The moose likes JSP and the fly likes How can add a company emblem in many pages? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "How can add a company emblem in many pages?" Watch "How can add a company emblem in many pages?" New topic
Author

How can add a company emblem in many pages?

sanjeev katthi
Greenhorn

Joined: Jun 11, 2007
Posts: 19
How can display or add a company emblem in about 100 jsp pages??
[ July 05, 2007: Message edited by: Bear Bibeault ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61198
    
  66

I assume you mean besides by simply adding them to each page. You'll need to be a little clearer about what you are trying to accomplish.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Amit M Tank
Ranch Hand

Joined: Mar 28, 2004
Posts: 257
Use html Frames to deisgn your web application. The Frame with the company logo will remain so but the other frame which has dynamic content should change.


Amit Tank
Linked In
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61198
    
  66

Originally posted by Amit M Tank:
Use html Frames to deisgn your web application.


I would not consider frames a good way to accomplish this. Frames are now considered very old-fashioned at this point and come with a lot of problems and baggage. It's not worth the hassle for something as simple as a logo.

I'm still waiting to hear from the original poster regarding what he's really trying to do. Looking for any easy way to include the image on a bunch of existing JSP pages? Looking for a way to share some complicated markup across many pages? Something else?

One sentence posts such as this one lead to more questions than answers.
[ July 05, 2007: Message edited by: Bear Bibeault ]
Jay Bash
Greenhorn

Joined: Jun 29, 2007
Posts: 5
simply create one html file and include this file on all the page with include directive.
Edisandro Bessa
Ranch Hand

Joined: Jan 19, 2006
Posts: 584
I think a more elegant way would be include the <include-prelude> statement on you web.xml file



"If someone asks you to do something you don't know how to, don't tell I don't know, tell I can learn instead." - Myself
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61198
    
  66

Using a prelude isn't really a good option because it will prepend the prelude file to the entire JSP page. This means that all the HTML markup up until the logo image (or whatever) would need to be in the prelude. I think it is highly unlikely that the same <head> section will work for every page in the web app.

Preludes are most useful for including common directives for the JSP pages; for example, tag library declarations for tags that will be used on all (or most) pages.

They're not all that useful for including HTML markup for the reason stated above. Rather, custom actions or tag files would allow the generated HTML markup to be placed at appropriate places in the page.
[ July 05, 2007: Message edited by: Bear Bibeault ]
Giovanni Orso
Greenhorn

Joined: Jul 06, 2007
Posts: 4
struts tiles ? (again)
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61198
    
  66

"Baloo Bear",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
JavaRanch Sheriff
Katrina Owen
Sheriff

Joined: Nov 03, 2006
Posts: 1362
    
  17
"Orsetto Peloso",

Please check your email for a message from the JavaRanch Staff.

Kind regards,
Katrina Owen,
JavaRanch Saloon Bartender
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61198
    
  66

Yes, please check your private messages as well.
Giovanni Orso
Greenhorn

Joined: Jul 06, 2007
Posts: 4
Bear & Katrina, I should be ok now
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How can add a company emblem in many pages?