Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How can add a company emblem in many pages?

 
sanjeev katthi
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64827
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Amit M Tank
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64827
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
simply create one html file and include this file on all the page with include directive.
 
Edisandro Bessa
Ranch Hand
Posts: 584
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think a more elegant way would be include the <include-prelude> statement on you web.xml file

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64827
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
struts tiles ? (again)
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64827
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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
Posts: 1367
18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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
Pie
Posts: 64827
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, please check your private messages as well.
 
Giovanni Orso
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear & Katrina, I should be ok now
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic