You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Slattery, Tim - BLS" <Sl...@bls.gov> on 2007/09/04 20:50:06 UTC

Problems with Struts 1.3.8

I'm trying to use Struts 1.3.8 with one of my applications. I copy the
1.3.8 libraries into the /WEB-INF/lib directory. When I try to run the
app, I get this:


Parsing of JSP File '/index.jsp' failed: 

/index.jsp(3): Error in using tag library
uri='http://struts.apache.org/tags-html-el' prefix='html-el': type
mismatch for property 'filter', for Tag class
'org.apache.strutsel.taglib.html.ELOptionTag': tld says boolean,
implementation type is java.lang.String
probably occurred due to an error in /index.jsp line 3:
<%@ taglib uri="http://struts.apache.org/tags-html-el" prefix="html-el"
%> 


So it seems to be quitting as soon as it hits the taglib statement
defining the html-el library. What's going on??

--
Tim Slattery
Slattery_T@bls.gov


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: YUI plug in display issue

Posted by "Jiang, Jane (NIH/NCI) [C]" <ji...@mail.nih.gov>.
Hi Musachy,

I just found out why my calendar is that wide.  In the style sheet for my application, I have the following lines
table {
border:1px solid #666666;
font-size:10px;
margin:2px 0pt !important;
width:98%;
}

The calendar picked up the table width from there.  I can not change the default css.  It is given to us to be shared by all teams.  Is there a way to overwrite it with tag parameter or in calendar.css?

Thanks a lot for your help,

Jane

-----Original Message-----
From: Musachy Barroso [mailto:musachy@gmail.com]
Sent: Tue 9/4/2007 4:45 PM
To: Struts Users Mailing List
Subject: Re: YUI plug in display issue
 
Are you applying any styles to it?

musachy

On 9/4/07, Jiang, Jane (NIH/NCI) [C] <ji...@mail.nih.gov> wrote:
> Hi,
>
> I am trying to use YUI calendar plug in.  It works fine except that the
> pop up calendar is as wide as the screen.  It opened at the right
> position, but extended past the visible area of the screen.
>
> Is there anything I can do to make it look right?
>
> Thanks,
>
> Jane
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org



Re: YUI plug in display issue

Posted by Musachy Barroso <mu...@gmail.com>.
Are you applying any styles to it?

musachy

On 9/4/07, Jiang, Jane (NIH/NCI) [C] <ji...@mail.nih.gov> wrote:
> Hi,
>
> I am trying to use YUI calendar plug in.  It works fine except that the
> pop up calendar is as wide as the screen.  It opened at the right
> position, but extended past the visible area of the screen.
>
> Is there anything I can do to make it look right?
>
> Thanks,
>
> Jane
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: XHTML compliance

Posted by "Slattery, Tim - BLS" <Sl...@bls.gov>.
> Please check the ticket list for Struts 1.4. If you find this 
> very issue there (I think it is) and you need it in 1.3, I 
> can back port it for 1.3.10

I don't know how to do that. I see no link on the Struts page to a
ticket list or to Struts 1.4.

--
Tim Slattery
Slattery_T@bls.gov


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: XHTML compliance

Posted by Paul Benedict <pb...@apache.org>.
Please check the ticket list for Struts 1.4. If you find this very issue
there (I think it is) and you need it in 1.3, I can back port it for 1.3.10

Paul

XHTML compliance

Posted by "Slattery, Tim - BLS" <Sl...@bls.gov>.
OK, I removed the <type> attribute in the struts-html-el.tld in Struts
1.3.8, and it runs.

Now....I'm trying to use xhtml. I use this:

<html-el:html xhtml="true" lang="false">

And it generates this:

<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US"
xml:lang="en-US">

The lang="en-US" is in there whether I specify lang="true", lang="false"
or omit the lang attribute entirely from the html-el:html statement. The
markup validation service at http://validator.w3.org/ says that there is
no "lang" attribute in the html tag in xhtml.

Is it possible to get Struts to create 100% compliant xhtml?


--
Tim Slattery
Slattery_T@bls.gov


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Problems with Struts 1.3.8

Posted by Paul Benedict <pb...@apache.org>.
The only reason why 1.3.9 is beta was because of a file upload issue using
Dyna forms. Otherwise, I think it's okay to use. 1.3.10 should hopefully be
GA :)

Paul

On 9/5/07, Antonio Petrelli <an...@gmail.com> wrote:
>
> 2007/9/4, Dave Newton <ne...@yahoo.com>:
> >
> > --- "Slattery, Tim - BLS" wrote:
> > > But isn't 1.3.9 still beta?
> >
> > Looks that way.
>
>
>
> Anyway that problem is fixed.
> Tim, you may have two options: use 1.3.9 or wait untile 1.3.10 (or 1.4?)
> is
> released.
> Or don't use the "filter" attribute :-)
>
> Antonio
>

RE: Problems with Struts 1.3.8

Posted by "Slattery, Tim - BLS" <Sl...@bls.gov>.
 
> > I'm *not* using the filter attribute! The message is issued and 
> > processing is halted as soon as the taglib statement is 
> > encountered,  regardless of what's being used from it. You cannot 
> > use the html-el  tags in 1.3.8 at all.
 
> Now I know how useful is the tag library validation report 
> :-) 
>
http://struts.apache.org/1.3.8/struts-el/taglibvalidation.html#struts-ht
ml-el.tld

Interesting, thanks for the pointer. That report does show the error in
the "filter" attribute of the "option" tag. It doesn't say that the
error makes the entire library unusable, but it does.

--
Tim Slattery
Slattery_T@bls.gov


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Problems with Struts 1.3.8

Posted by Antonio Petrelli <an...@gmail.com>.
2007/9/5, Slattery, Tim - BLS <Sl...@bls.gov>:
>
>
> > Anyway that problem is fixed.
> > Tim, you may have two options: use 1.3.9 or wait until
> > 1.3.10 (or 1.4?) is released.
> > Or don't use the "filter" attribute :-)
>
> I'm *not* using the filter attribute! The message is issued and
> processing is halted as soon as the taglib statement is encountered,
> regardless of what's being used from it. You cannot use the html-el tags
> in 1.3.8 at all.



Now I know how useful is the tag library validation report :-)
http://struts.apache.org/1.3.8/struts-el/taglibvalidation.html#struts-html-el.tld

Antonio

RE: Problems with Struts 1.3.8

Posted by "Slattery, Tim - BLS" <Sl...@bls.gov>.
 
> Anyway that problem is fixed.
> Tim, you may have two options: use 1.3.9 or wait until 
> 1.3.10 (or 1.4?) is released.
> Or don't use the "filter" attribute :-)

I'm *not* using the filter attribute! The message is issued and
processing is halted as soon as the taglib statement is encountered,
regardless of what's being used from it. You cannot use the html-el tags
in 1.3.8 at all.

I'll try removing the <type> attribute from the filter attribute in the
TLD in struts-el-1.3.8.jar. There's only one <type> attribute in the
entire TLD, and it kills the entire taglib.


--
Tim Slattery
Slattery_T@bls.gov


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Problems with Struts 1.3.8

Posted by Antonio Petrelli <an...@gmail.com>.
2007/9/4, Dave Newton <ne...@yahoo.com>:
>
> --- "Slattery, Tim - BLS" wrote:
> > But isn't 1.3.9 still beta?
>
> Looks that way.



Anyway that problem is fixed.
Tim, you may have two options: use 1.3.9 or wait untile 1.3.10 (or 1.4?) is
released.
Or don't use the "filter" attribute :-)

Antonio

RE: Problems with Struts 1.3.8

Posted by Dave Newton <ne...@yahoo.com>.
--- "Slattery, Tim - BLS" wrote:
> But isn't 1.3.9 still beta?

Looks that way.

d.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


YUI plug in display issue

Posted by "Jiang, Jane (NIH/NCI) [C]" <ji...@mail.nih.gov>.
Hi,

I am trying to use YUI calendar plug in.  It works fine except that the
pop up calendar is as wide as the screen.  It opened at the right
position, but extended past the visible area of the screen.  

Is there anything I can do to make it look right?

Thanks,

Jane

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: Problems with Struts 1.3.8

Posted by "Slattery, Tim - BLS" <Sl...@bls.gov>.
> 2007/9/4, Slattery, Tim - BLS <Sl...@bls.gov>:
> > /index.jsp(3): Error in using tag library 
> > uri='http://struts.apache.org/tags-html-el' prefix='html-el': type 
> > mismatch for property 'filter', for Tag class
> > 'org.apache.strutsel.taglib.html.ELOptionTag': tld says boolean, 
> > implementation type is java.lang.String
> 
> You are right, but it seems to be fixed in 1.3.9:
> http://struts.apache.org/1.3.9/struts-el/tlddoc/html/option.html
> The issue is:
> https://issues.apache.org/struts/browse/STR-3028

But isn't 1.3.9 still beta?


--
Tim Slattery
Slattery_T@bls.gov


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Problems with Struts 1.3.8

Posted by Antonio Petrelli <an...@gmail.com>.
2007/9/4, Slattery, Tim - BLS <Sl...@bls.gov>:
> /index.jsp(3): Error in using tag library
> uri='http://struts.apache.org/tags-html-el' prefix='html-el': type
> mismatch for property 'filter', for Tag class
> 'org.apache.strutsel.taglib.html.ELOptionTag': tld says boolean,
> implementation type is java.lang.String

You are right, but it seems to be fixed in 1.3.9:
http://struts.apache.org/1.3.9/struts-el/tlddoc/html/option.html
The issue is:
https://issues.apache.org/struts/browse/STR-3028

Antonio

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org