jsp-tags

Unable to pass none string parameters to TAG files

Hi I'm using JBOSS 4.0.2 with JSP 2.0. I have created a TAG file with the following directives: <%@ attribute name="id" required="true" %> <%@ attribute name="upgradeAccount" type="com.upc.domain.UpgradeAccountData" %> However, when I try to pass an object of type UpgradeAccountData to the tag as a parameter it is always resolved as...

What is a jsp tag?

I'm coming from a .net background and trying to learn java. I keep seeing references to Tags and Tag Handlers, etc. Is there an equivalent .NET Construct? ...

jsp:param no longer sets parameters when original request is wrapped with a HttpServletRequestWrapper

I have a filter that takes an incoming request, and then wraps it with an HttpServletRequestWrapper, which in turn has a setParameter() method on it. However, this will no longer work now in any filtered servlets: <jsp:include page="testing-include.jsp"> <jsp:param name="testing" value="testing" /> </jsp:include> The include page ...

Spring application root variable

I access my Spring application right now as follows: http://localhost:8080/my-app In my JSPs I'd like to have access to my application root instead of hardcoding hyperlinks to the homepage as <a href="/my-app">. Is there some sort of variable that I can access in my jsps to point to the application root? Thanks ...

CSS in JSPX format.

Hi, I have some strange issue with CSS file.(I think) I have written CSS definition inside .jspx with custom tags, and they are working fine when the pages are being tested on Tomcat localhost. However, when I uploaded pages to my web hosting company, all the web page format gets screwed up. I am not sure why this is happening and wh...

How can I call a JSP 2.0 *.tag file from a traditional JSP custom tag?

I have written a JSP custom tag, implemented in a class that extends TagSupport, and I'd like to invoke another custom tag that was written as a *.tag file. Is this possible? If so, how can it be done? ...

How to get EL (Expression Language) content assist (autocomplete) in JSP / JSP Tags in Eclipse?

Is there a way, via configuration, upgrade or a plugin to get content assist in JSP EL expressions? e.g. ${CTRL+SPACE ... or ${pageContext.CTRL+SPACE ... etc... ...

How to create a Macro/Snippet/HTML Fragment/Named section in JSP without using tags/includes/JSPFragments?

This might be a very newbie question, but I didn't find anything satisfying I want to do somethign like this in JSP (out of the box preferably): e.g. in a file called products.jsp an imaginary implementation that explains what I want <x:named-segment name="product"> Product: <strong>${product.name}</strong> <br/> price: ${pr...

How to set predefined values in jsp tags

Hi, I have creating a jsp tag to parse date(java.util.Date) in a predefined format. I want this tag to return either date or time value form input java.util.Date object. To achieve this I have created a jsp attribute that will have two predefine values. When someone using this tag he/she will have option to choose output type form a sup...

Recommended JSP table taglib?

Can you recommend a declarative table-generation taglib for JSP (with EL) that is still being maintained? I found a few, such as the Jakarata taglib and Display tag but nothing seems to have been updated in the past year or so. Any recommendations would be appreciated. ...

Unable to read TLD "META-INF/tld/tiles-jsp.tld"

I maked jsp file using with tiles and springframework, but I hvae Unable to read TLD "META-INF/tld/tiles-jsp.tld". What is a problem? ...

passing valus to one jsp page to another jsp page

I'm retrieving values from database to table in jsp.(to a column) I want to insert that value into another table in database. To do that i'm using another jsp table to insert that value in db and i call that jsp page in my previous jsp's page form action tab. I use request.getParameter() method to get the values in my first jsp page to...

Conditional if in struts2 tags

I have the following code. <s:push value="#session['person']"> <s:if test="%{admin=='y'}"> <a class="add" href="/projit1/project/addProject.jsp">Create a Project</a> </s:if> </s:push> I am trying push an object person from session map to valuestack and check one of its properties admin's value. If...

how to prevent jsp tags from being reused after being classloaded

I have a problem where certain attributes in tag files stick around for the next time the tag is used. I think this is because the Tag class is being classloaded, and then that same instance is reused for every invocation. So attributes that i do not set in later invocations are not null like i would expect them to be, and contain stale...

FatWire ContentServer and Web Services

Greetings, I am working with a FatWire CS, and need to incorporate Web services. FatWire has tags for this, but the previous devs on this system chose to build a homegrown solution rather than use what FatWire offered. The big problem now is that the homegrown solutions don't get updated (and typically stop working) when we upgrade FatW...

Custom JSP tag - How do I get the body of the tag?

I have a custom jsp tag like this: <a:customtag> The body of the custom tag... More lines of the body... </a:customtag> In the custom tag, how can I get the text of what the body is? ...

Checking attribute exists in JSP

Hello, I have some classes which extends a superclass, and in the JSP I want to show some attributes of these classes. I only want to make one JSP, but I don't know in advance if the object has an attribute or not. So I need a JSTL expression or a tag which checks that the object I pass has this attribute (similar to in operator in java...

extending spring form tag library attributes

I'm using Spring's form tag library in a Spring MVC application that I am developing. The company I am working for has implemented some company-wide policies based on the definition of custom attributes for certain tags. For instance, by default (though the inclusion of a standard javascript file) all tags have their values automaticall...

Is there any good reason to use <rtexprvalue>false</rtexprvalue> in JSP tags?

Is there any good reason to disallow scriptlet or EL expression to be inserted as attribute value? Let's say we have tag: <tag> <name>mytag</name> <tag-class>org.apache.beehive.netui.tags.tree.Tree</tag-class> <attribute> <name>attr</name> <required>false</required> <rtexprvalue>false</rtexprvalue> ...

Custom Tag implementation issue

I have customs tags as follows. repeat and heading tag have doAfterBody method implemented.Both of them extends BodyTagSupport class <csajsp:repeat reps="5"> <LI> <csajsp:heading bgColor="BLACK"> White on Black Heading </csajsp:heading> ...