el « Tag « JSP-Servlet Q&A





1. Creating a List in EL    stackoverflow.com

Suppose I have a custom tag that takes a List of Strings:

<%@ attribute name="thelist" type="java.util.List&lt;java.lang.String&gt;"
    required="true" %>
How can I create this attribute in the jsp that calls the ...

2. using groovyxmlslurper from EL in JSP    stackoverflow.com

I've been tasked with creating a JSP tag that will allow developers to pass a URI to an xml document, and have an object returned that can be navigated using EL. I ...

3. EL Messages on JSP page    stackoverflow.com

Hi i have some server side validations and am displaying validation messages in JSP using EL like ${requestScope.validatemessage} where validatemessage is the message i set in Java file its working fine But the problem ...

4. EL evaluation in tags    stackoverflow.com

In the below code snippet, the intention is to take value for name from a variable, however no value gets output when it is tried with EL, while direct assignment works ...

5. Using varargs in a Tag Library Descriptor    stackoverflow.com

Is it possible to have a TLD map to the following function:

public static <T> T[] toArray(T... stuff) {
    return stuff;
}
So that I can do:
<c:forEach items="${my:toArray('a', 'b', 'c')}"...
I tried ...

6. JSP: accessing enum inside JSP EL tags    stackoverflow.com

My java enum looks like this:

public enum EmailType { HOME, WORK, MOBILE, CUSTOMER_SERVICE, OTHER }
In JSP, I am trying to do sth like below, which is not working.
<c:choose>
    ...

7. Still getting NullPointerException in JSP, custom tag    stackoverflow.com

I'm still having problems with a custom tag and JSP. I've implemented a suggestion from a previous post, and Google searches don't seem to be helpful. I'm getting a ...

8. How to make JSP Tag File use attribute without EL?    coderanch.com

Hi - I'm trying to build a (previously believed to be) simple custom tag around the struts html:link tag. Basically the purpose of this tag I'm building will be to pop up a confirmation javascript message box when the link is clicked. If the user clicks 'cancel' in the message box then we don't go to the link. My problem is ...





10. Not rendering EL in my custom tag    coderanch.com

11. EL + Custom Tag troubles    coderanch.com

14. EL works for tags but not in JSP    coderanch.com

15. EL not evaluating in td tag    coderanch.com

16. EL and custom tag    coderanch.com

The code need to be generic. The controller doesn't know whether the return value is a list or anything else. The JSP needs to check if it is a list, a table will be displayed with the result, otherwise the object value will be displayed. I believe it should be handled by the view not the controller.





17. help regarding EL tags    coderanch.com

20. el attribute inside a custom tag body is accessible out side the scope of the custom tag?    coderanch.com

I am unable to make sense of this code I have a custom tag handler SimpleTagTest3 the code looks like package foo; import java.io.IOException; import javax.servlet.jsp.JspException; import javax.servlet.jsp.tagext.SimpleTagSupport; public class SimpleTagTest3 extends SimpleTagSupport{ @Override public void doTag() throws JspException, IOException { // TODO Auto-generated method stub getJspContext().setAttribute("message", "This message is set within the tag"); getJspBody().invoke(null); } } The tld file is ...

21. EL in a .tag file    coderanch.com

22. EL in a .tag file    coderanch.com