Re: HELP:I've got a new problem when I tried to use struts-menu in my Tiles using display-tag.

2006-05-21 Thread M.Liang Liu

*Greg Ludington* ,thanks for your particular advice.
I continue to discuss this topic because the deadline of my little project
is coming to hand in to  my  tutor.
You way seems to be awesome .However,the display-tag uses css file
(*.css) and I should import those four css files into my page for

And these css files would apply to the whole site which is NOT I would
like. I include the struts menu page namelly menu.jsp and the
usingdisplaytag.jsp to my Tiles page definition.

I write a post in display-tag userlist to find no replay for two days.

If i change the css files,the displaytag table's style would be
changed.Andit would be the same as the struts menu as the css file I
import in the
usingdisplaytag.jsp  page would apply to the whole site,no only that page!
The problem is that I can NOT override it as I tried to name a different
style for my struts menu.

Strange,isn't it?

Thanks for reading,sir.


On 5/22/06, Greg Ludington <[EMAIL PROTECTED]> wrote:


You are not going to adjust the scope of a css file, but you will have
to change your HTML to give the browser some means of telling your two
tables apart, and then adjust your css accordingly.  Most often, this
is done by putting a class on the html, e.g. .
Then, your css could be:

   td.menuClass {this style would only be applied to the menu td}
   td.displayTagClass {this style would only be applied to the display tag
td}

I have not used either Struts-Menu or DisplayTag, so I do not know if
you can specify css classes to use in the HTML they generate.  I am
guessing that you can, but, even if you cannot, you can still apply
css to precise areas by containing them in other elements, and writing
your css accordingly.  Here is a quick example:




   table { font-family:arial,helvetica}
   #foo table { color:red}
   #bar table { color:green}



   
   
   I am red arial
   
   
   
   
   I am green arial
   
   



In this page, all tables are arial,hevetica, but only tables inside
the "foo" element are red, and only tables inside the "bar" element
are green.  You have to alter your HTML to give css knoweldge of where
to apply rules, and then change your css in ways like these so that
they only apply to the areas of the page that you need.  There are
other methods, as well, but a full discussion of css inheritance is
beyond the scope of this list, and probably my abilities as well :)

Here is a good link as a starting point:
http://www.simplebits.com/notebook/2003/04/15/css_inheritance.html

hth,
Greg


On 5/21/06, M.Liang Liu <[EMAIL PROTECTED]> wrote:
> Greg Ludington,you've got the point.
> I tested many times to find it is the CSS file that made the strange
rim.The
> CSS files apply to  all the  pages  using  display-tag.I  do  NOT   know
> how to limit the scope  of the CSS files' application areas.
>
> I am trying  eXtremeComponents following *David G. Friedman's *advice*.
>
> *And,David G. Friedman,I've got another question for you:
>
> How can you limit the scope of the CSS files ?Any table(including the
table
> which is not the display-tag table) will be applied to the same  CSS if
I
> use display-tag's CSS file as following:
>
> ..
>
> > 
> >  
> >  
> >  
> > 
> > 
> > **...
>
>
> Thanks a lot.
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
 http://blog.csdn.net/patriotlml
   Drink   Drank Drunk
http://my.donews.com/patriotlml/


Re: HELP:I've got a new problem when I tried to use struts-menu in my Tiles using display-tag.

2006-05-21 Thread Greg Ludington

You are not going to adjust the scope of a css file, but you will have
to change your HTML to give the browser some means of telling your two
tables apart, and then adjust your css accordingly.  Most often, this
is done by putting a class on the html, e.g. .
Then, your css could be:

   td.menuClass {this style would only be applied to the menu td}
   td.displayTagClass {this style would only be applied to the display tag td}

I have not used either Struts-Menu or DisplayTag, so I do not know if
you can specify css classes to use in the HTML they generate.  I am
guessing that you can, but, even if you cannot, you can still apply
css to precise areas by containing them in other elements, and writing
your css accordingly.  Here is a quick example:




table { font-family:arial,helvetica}
#foo table { color:red}
#bar table { color:green}



   
   
   I am red arial
   
   
   
   
   I am green arial
   
   



In this page, all tables are arial,hevetica, but only tables inside
the "foo" element are red, and only tables inside the "bar" element
are green.  You have to alter your HTML to give css knoweldge of where
to apply rules, and then change your css in ways like these so that
they only apply to the areas of the page that you need.  There are
other methods, as well, but a full discussion of css inheritance is
beyond the scope of this list, and probably my abilities as well :)

Here is a good link as a starting point:
http://www.simplebits.com/notebook/2003/04/15/css_inheritance.html

hth,
Greg


On 5/21/06, M.Liang Liu <[EMAIL PROTECTED]> wrote:

Greg Ludington,you've got the point.
I tested many times to find it is the CSS file that made the strange rim.The
CSS files apply to  all the  pages  using  display-tag.I  do  NOT   know
how to limit the scope  of the CSS files' application areas.

I am trying  eXtremeComponents following *David G. Friedman's *advice*.

*And,David G. Friedman,I've got another question for you:

How can you limit the scope of the CSS files ?Any table(including the table
which is not the display-tag table) will be applied to the same  CSS if I
use display-tag's CSS file as following:

..

> 
>  
>  
>  
> 
> 
> **...


Thanks a lot.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: HELP:I've got a new problem when I tried to use struts-menu in my Tiles using display-tag.

2006-05-21 Thread M.Liang Liu

Greg Ludington,you've got the point.
I tested many times to find it is the CSS file that made the strange rim.The
CSS files apply to  all the  pages  using  display-tag.I  do  NOT   know
how to limit the scope  of the CSS files' application areas.

I am trying  eXtremeComponents following *David G. Friedman's *advice*.

*And,David G. Friedman,I've got another question for you:

How can you limit the scope of the CSS files ?Any table(including the table
which is not the display-tag table) will be applied to the same  CSS if I
use display-tag's CSS file as following:

..



 
 
 


**...



Thanks a lot.


Re: HELP:I've got a new problem when I tried to use struts-menu in my Tiles using display-tag.

2006-05-20 Thread Greg Ludington

I do not use either Struts-Menu or DisplayTag, but, looking at your
screen shot, it looks like  both your table and your menu elements may
have the same type of outline.  Check your css -- it may be that your
css applies the same styles (most likely some manner of border style)
to elements in both areas.  If that is the case, you just need to make
your css rules more specific, so that they apply to the table, but not
the menus.

hth,
Greg

On 5/20/06, M.Liang Liu <[EMAIL PROTECTED]> wrote:

Pity to notice you that I give up struts-menu to ensure the display-tag can
display properly.

On 5/20/06, David G. Friedman <[EMAIL PROTECTED]> wrote:
>
> Have you asked this question on the struts-menu forum/mailing list at
> Sourceforge?  That list might have more specific
> experience merging these packages.  See:
> http://sourceforge.net/forum/forum.php?forum_id=160189
>
> Regards,
> David
>
> -Original Message-
> From: M.Liang Liu [mailto:[EMAIL PROTECTED]
> Sent: Friday, May 19, 2006 11:26 PM
> To: Struts Users Mailing List
> Subject: Re: HELP:I've got a new problem when I tried to use struts-menu
> in my Tiles using display-tag.
>
>
> In the Tomcat 5.5.x  logs  file ,there's no more info.
>
> As following:
>
> > log4j:WARN No appenders could be found for logger (
> > org.apache.catalina.startup.TldConfig).
> > log4j:WARN Please initialize the log4j system properly.
> > log4j:WARN No appenders could be found for logger (
> > org.apache.catalina.session.ManagerBase).
> > log4j:WARN Please initialize the log4j system properly.
> > log4j:WARN No appenders could be found for logger (
> > org.apache.catalina.session.ManagerBase).
> > log4j:WARN Please initialize the log4j system properly.
> > log4j:WARN No appenders could be found for logger (
> > org.apache.catalina.startup.TldConfig).
> > log4j:WARN Please initialize the log4j system properly.
> > log4j:WARN No appenders could be found for logger (
> > org.apache.catalina.session.ManagerBase).
> > log4j:WARN Please initialize the log4j system properly.
> > log4j:WARN No appenders could be found for logger (
> > org.apache.catalina.session.ManagerBase).
> > log4j:WARN Please initialize the log4j system properly.
> >
>
> On 5/20/06, M.Liang Liu <[EMAIL PROTECTED]> wrote:
> >
> > Hi everybody!
> >
> >I've got a new problem when I tried to use struts-menu in my Tiles
> > using display-tag.
> >
> > I put the struts-menu in my Tiles alone and find it works well.
> > However,the problem occurred when I put one page using display-tag in
> the
> > same Tiles page including struts-menu:The struts-menu can NOT display
> > properly.The image can display  but  the menu  has  a rim.I do NOT want
> > the rim because every menu has one-there are so many that the menu
> was
> > dissipated .
> > I can NOT stand it.
> >
> >
> > I can not enclosed the strange screen picture of the  page  as
> > attachments;so I put it  in my   flickr here<
> http://static.flickr.com/53/149590641_0cbeeb81b6_o.jpg>
> > .
> >
> > Anyone who's familiar with display-tag can help me?
> >
> > Please.
> >
>
>
>
> --
>   http://blog.csdn.net/patriotlml
> Drink   Drank Drunk
> http://my.donews.com/patriotlml/
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
  http://blog.csdn.net/patriotlml
Drink   Drank Drunk
http://my.donews.com/patriotlml/




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: HELP:I've got a new problem when I tried to use struts-menu in my Tiles using display-tag.

2006-05-20 Thread David G. Friedman
Why not try another "table" library instead of DisplayTag?
Have you tried struts-menu with any of these:

1) The ValueList taglib: (updated last month)
http://valuelist.sourceforge.net

2) eXtremeComponents paging taglib: (updated last week)
http://extremecomponents.org/extremesite/index.jsp

3) Jakarta Tabligs "DataGrid" (old)
http://jakarta.apache.org/taglibs 

4) The pagination taglib JavaWorld article example: (old)
http://www.javaworld.com/javaworld/jw-07-2004/jw-0726-pagination.html

5) DisplayTag (my favorite and it seems like your favorite also)
http://www.displaytag.org

Perhaps one of these other taglibs will work better for
you in Struts-Menu since you like Struts-Menu so much.
I'm going to put these taglibs into the Wiki so programmers
can find them more easily (in one spot).

Regards,
David


-Original Message-
From: M.Liang Liu [mailto:[EMAIL PROTECTED]
Sent: Saturday, May 20, 2006 6:16 AM
To: Struts Users Mailing List
Subject: Re: HELP:I've got a new problem when I tried to use struts-menu
in my Tiles using display-tag.


Pity to notice you that I give up struts-menu to ensure the display-tag can
display properly.

On 5/20/06, David G. Friedman <[EMAIL PROTECTED]> wrote:
>
> Have you asked this question on the struts-menu forum/mailing list at
> Sourceforge?  That list might have more specific
> experience merging these packages.  See:
> http://sourceforge.net/forum/forum.php?forum_id=160189
>
> Regards,
> David
>
> -Original Message-
> From: M.Liang Liu [mailto:[EMAIL PROTECTED]
> Sent: Friday, May 19, 2006 11:26 PM
> To: Struts Users Mailing List
> Subject: Re: HELP:I've got a new problem when I tried to use struts-menu
> in my Tiles using display-tag.
>
>
> In the Tomcat 5.5.x  logs  file ,there's no more info.
>
> As following:
>
> > log4j:WARN No appenders could be found for logger (
> > org.apache.catalina.startup.TldConfig).
> > log4j:WARN Please initialize the log4j system properly.
> > log4j:WARN No appenders could be found for logger (
> > org.apache.catalina.session.ManagerBase).
> > log4j:WARN Please initialize the log4j system properly.
> > log4j:WARN No appenders could be found for logger (
> > org.apache.catalina.session.ManagerBase).
> > log4j:WARN Please initialize the log4j system properly.
> > log4j:WARN No appenders could be found for logger (
> > org.apache.catalina.startup.TldConfig).
> > log4j:WARN Please initialize the log4j system properly.
> > log4j:WARN No appenders could be found for logger (
> > org.apache.catalina.session.ManagerBase).
> > log4j:WARN Please initialize the log4j system properly.
> > log4j:WARN No appenders could be found for logger (
> > org.apache.catalina.session.ManagerBase).
> > log4j:WARN Please initialize the log4j system properly.
> >
>
> On 5/20/06, M.Liang Liu <[EMAIL PROTECTED]> wrote:
> >
> > Hi everybody!
> >
> >I've got a new problem when I tried to use struts-menu in my Tiles
> > using display-tag.
> >
> > I put the struts-menu in my Tiles alone and find it works well.
> > However,the problem occurred when I put one page using display-tag in
> the
> > same Tiles page including struts-menu:The struts-menu can NOT display
> > properly.The image can display  but  the menu  has  a rim.I do NOT want
> > the rim because every menu has one-there are so many that the menu
> was
> > dissipated .
> > I can NOT stand it.
> >
> >
> > I can not enclosed the strange screen picture of the  page  as
> > attachments;so I put it  in my   flickr here<
> http://static.flickr.com/53/149590641_0cbeeb81b6_o.jpg>
> > .
> >
> > Anyone who's familiar with display-tag can help me?
> >
> > Please.
> >
>
>
>
> --
>   http://blog.csdn.net/patriotlml
> Drink   Drank Drunk
> http://my.donews.com/patriotlml/
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
  http://blog.csdn.net/patriotlml
Drink   Drank Drunk
http://my.donews.com/patriotlml/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: HELP:I've got a new problem when I tried to use struts-menu in my Tiles using display-tag.

2006-05-20 Thread M.Liang Liu

Pity to notice you that I give up struts-menu to ensure the display-tag can
display properly.

On 5/20/06, David G. Friedman <[EMAIL PROTECTED]> wrote:


Have you asked this question on the struts-menu forum/mailing list at
Sourceforge?  That list might have more specific
experience merging these packages.  See:
http://sourceforge.net/forum/forum.php?forum_id=160189

Regards,
David

-Original Message-
From: M.Liang Liu [mailto:[EMAIL PROTECTED]
Sent: Friday, May 19, 2006 11:26 PM
To: Struts Users Mailing List
Subject: Re: HELP:I've got a new problem when I tried to use struts-menu
in my Tiles using display-tag.


In the Tomcat 5.5.x  logs  file ,there's no more info.

As following:

> log4j:WARN No appenders could be found for logger (
> org.apache.catalina.startup.TldConfig).
> log4j:WARN Please initialize the log4j system properly.
> log4j:WARN No appenders could be found for logger (
> org.apache.catalina.session.ManagerBase).
> log4j:WARN Please initialize the log4j system properly.
> log4j:WARN No appenders could be found for logger (
> org.apache.catalina.session.ManagerBase).
> log4j:WARN Please initialize the log4j system properly.
> log4j:WARN No appenders could be found for logger (
> org.apache.catalina.startup.TldConfig).
> log4j:WARN Please initialize the log4j system properly.
> log4j:WARN No appenders could be found for logger (
> org.apache.catalina.session.ManagerBase).
> log4j:WARN Please initialize the log4j system properly.
> log4j:WARN No appenders could be found for logger (
> org.apache.catalina.session.ManagerBase).
> log4j:WARN Please initialize the log4j system properly.
>

On 5/20/06, M.Liang Liu <[EMAIL PROTECTED]> wrote:
>
> Hi everybody!
>
>I've got a new problem when I tried to use struts-menu in my Tiles
> using display-tag.
>
> I put the struts-menu in my Tiles alone and find it works well.
> However,the problem occurred when I put one page using display-tag in
the
> same Tiles page including struts-menu:The struts-menu can NOT display
> properly.The image can display  but  the menu  has  a rim.I do NOT want
> the rim because every menu has one-there are so many that the menu
was
> dissipated .
> I can NOT stand it.
>
>
> I can not enclosed the strange screen picture of the  page  as
> attachments;so I put it  in my   flickr here<
http://static.flickr.com/53/149590641_0cbeeb81b6_o.jpg>
> .
>
> Anyone who's familiar with display-tag can help me?
>
> Please.
>



--
  http://blog.csdn.net/patriotlml
Drink   Drank Drunk
http://my.donews.com/patriotlml/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
 http://blog.csdn.net/patriotlml
   Drink   Drank Drunk
http://my.donews.com/patriotlml/


RE: HELP:I've got a new problem when I tried to use struts-menu in my Tiles using display-tag.

2006-05-19 Thread David G. Friedman
Have you asked this question on the struts-menu forum/mailing list at 
Sourceforge?  That list might have more specific
experience merging these packages.  See: 
http://sourceforge.net/forum/forum.php?forum_id=160189

Regards,
David

-Original Message-
From: M.Liang Liu [mailto:[EMAIL PROTECTED]
Sent: Friday, May 19, 2006 11:26 PM
To: Struts Users Mailing List
Subject: Re: HELP:I've got a new problem when I tried to use struts-menu
in my Tiles using display-tag.


In the Tomcat 5.5.x  logs  file ,there's no more info.

As following:

> log4j:WARN No appenders could be found for logger (
> org.apache.catalina.startup.TldConfig).
> log4j:WARN Please initialize the log4j system properly.
> log4j:WARN No appenders could be found for logger (
> org.apache.catalina.session.ManagerBase).
> log4j:WARN Please initialize the log4j system properly.
> log4j:WARN No appenders could be found for logger (
> org.apache.catalina.session.ManagerBase).
> log4j:WARN Please initialize the log4j system properly.
> log4j:WARN No appenders could be found for logger (
> org.apache.catalina.startup.TldConfig).
> log4j:WARN Please initialize the log4j system properly.
> log4j:WARN No appenders could be found for logger (
> org.apache.catalina.session.ManagerBase).
> log4j:WARN Please initialize the log4j system properly.
> log4j:WARN No appenders could be found for logger (
> org.apache.catalina.session.ManagerBase).
> log4j:WARN Please initialize the log4j system properly.
>

On 5/20/06, M.Liang Liu <[EMAIL PROTECTED]> wrote:
>
> Hi everybody!
>
>I've got a new problem when I tried to use struts-menu in my Tiles
> using display-tag.
>
> I put the struts-menu in my Tiles alone and find it works well.
> However,the problem occurred when I put one page using display-tag in the
> same Tiles page including struts-menu:The struts-menu can NOT display
> properly.The image can display  but  the menu  has  a rim.I do NOT want
> the rim because every menu has one-there are so many that the menu was
> dissipated .
> I can NOT stand it.
>
>
> I can not enclosed the strange screen picture of the  page  as
> attachments;so I put it  in my   flickr 
> here<http://static.flickr.com/53/149590641_0cbeeb81b6_o.jpg>
> .
>
> Anyone who's familiar with display-tag can help me?
>
> Please.
>



--
  http://blog.csdn.net/patriotlml
Drink   Drank Drunk
http://my.donews.com/patriotlml/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: HELP:I've got a new problem when I tried to use struts-menu in my Tiles using display-tag.

2006-05-19 Thread M.Liang Liu

In the Tomcat 5.5.x  logs  file ,there's no more info.

As following:


log4j:WARN No appenders could be found for logger (
org.apache.catalina.startup.TldConfig).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN No appenders could be found for logger (
org.apache.catalina.session.ManagerBase).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN No appenders could be found for logger (
org.apache.catalina.session.ManagerBase).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN No appenders could be found for logger (
org.apache.catalina.startup.TldConfig).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN No appenders could be found for logger (
org.apache.catalina.session.ManagerBase).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN No appenders could be found for logger (
org.apache.catalina.session.ManagerBase).
log4j:WARN Please initialize the log4j system properly.



On 5/20/06, M.Liang Liu <[EMAIL PROTECTED]> wrote:


Hi everybody!

   I've got a new problem when I tried to use struts-menu in my Tiles
using display-tag.

I put the struts-menu in my Tiles alone and find it works well.
However,the problem occurred when I put one page using display-tag in the
same Tiles page including struts-menu:The struts-menu can NOT display
properly.The image can display  but  the menu  has  a rim.I do NOT want
the rim because every menu has one-there are so many that the menu was
dissipated .
I can NOT stand it.


I can not enclosed the strange screen picture of the  page  as
attachments;so I put it  in my   flickr 
here
.

Anyone who's familiar with display-tag can help me?

Please.





--
 http://blog.csdn.net/patriotlml
   Drink   Drank Drunk
http://my.donews.com/patriotlml/


HELP:I've got a new problem when I tried to use struts-menu in my Tiles using display-tag.

2006-05-19 Thread M.Liang Liu

Hi everybody!

  I've got a new problem when I tried to use struts-menu in my Tiles using
display-tag.

I put the struts-menu in my Tiles alone and find it works well.
However,the problem occurred when I put one page using display-tag in the
same Tiles page including struts-menu:The struts-menu can NOT display
properly.The image can display  but  the menu  has  a rim.I do NOT want the
rim because every menu has one-there are so many that the menu was
dissipated .
I can NOT stand it.


I can not enclosed the strange screen picture of the  page  as
attachments;so I put it  in my   flickr
here
.

Anyone who's familiar with display-tag can help me?

Please.