EL Taglib implementation/other remaining classes from old Struts library #18
Replies: 4 comments 2 replies
-
|
Hi Luka, the tags themselves should be complete (like Struts 1.3.10). With commit 5917b85 I removed the BeanInfo.java-files. As I remember correctly, I removed them because I thought they were not necessary. Greetings |
Beta Was this translation helpful? Give feedback.
-
|
Hallo Luka and Tim, I have now I taken the time to revisit my changes. The changes was necessary because the upgrade from JSP 2.0 to 2.1. With JSP 2.1, it is much easier to use JSP-EL than before. JSP 2.0 and before:
JSP 2.1+:
Therefore, the EL-Tag-class no longer has any content and the I think this is also the reason why the libraries Maybe I can help you to update your codebase using the example of a tag. Greetings |
Beta Was this translation helpful? Give feedback.
-
|
Hello Stefan-
I appreciate your help in looking into this - that explanation helps me understand things better.
I will have a discussion with Luka in light of what you have explained, and we can try refactoring things accordingly. Indeed, if we run into issues, we will take you up on your offer.
Regards,
Tim
…________________________________
From: Stefan Graff ***@***.***>
Sent: Saturday, November 11, 2023 6:15 AM
To: weblegacy/struts1 ***@***.***>
Cc: Cincotta, Tim ***@***.***>; Mention ***@***.***>
Subject: Re: [weblegacy/struts1] EL Taglib implementation/other remaining classes from old Struts library (Discussion #18)
@lukamalovic<https://github.com/lukamalovic>, @TimCincotta<https://github.com/TimCincotta>
Hallo Luka and Tim,
I have now I taken the time to revisit my changes. The changes was necessary because the upgrade from JSP 2.0 to 2.1. With JSP 2.1, it is much easier to use JSP-EL than before.
JSP 2.0 and before:
EL-Tag-class extends Tag-class:
* With BeanInfo the tag-attributes are stored 1:1 to EL-Attributes.
* The EL-Attributes are evaluated with the EvalHelper-class.
* The evaluated attributes are stored to the Attributes of the Tag-class.
* The Tag-class can render the HTML-code.
JSP 2.1+:
The EL-Tag-class only extends the Tag-class to differentiate between the two classes in the tld-file:
* JSP-Library takes the attributes, evaluates them and then stores them in the Attributes of the Tag-class.
* The Tag-class can render the HTML-code.
Therefore, the EL-Tag-class no longer has any content and the BeanInfo is no longer necessary.
I think this is also the reason why the libraries el and faces were marked as dormant by Apache.
Maybe I can help you to update your codebase using the example of a tag.
Greetings
Stefan
—
Reply to this email directly, view it on GitHub<#18 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAXDQVRO3257O3X3PWNUNUTYD5T4LAVCNFSM6AAAAAA6WBE4WGVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TKNBQGE4DQ>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you. Message Encrypted via TLS connection
|
Beta Was this translation helpful? Give feedback.
-
|
Hello Luka and Tim, how are things going with you? Do you need any help? Are there any changes needed in Regards |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
@ste-gr
Hi Stefan/all those concerned,
I wanted to ask whether there were any plans on implementing the remaining several classes from the previous Struts library: namely, providing full implementations for the strutsel.taglib.* classes as well as adding their corresponding BeanInfo.java files.
Thanks,
Luka Malovic
Beta Was this translation helpful? Give feedback.
All reactions