taglib

When I mix JSTL 1.0 and JSTL 1.1 taglib declarations, it causes a ParseException on some of my servers, but not all of them. Why?

When I mix JSTL 1.0 and JSTL 1.1 taglib declarations, it causes a ParseException on some of my servers, but not all of them. Here is the block of code that's giving me trouble: <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%&gt; <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%&gt; <c:set var="TEXTVARIABL...

GoogleMaps JSP taglib; maps not showing

I have followed the instructions on the googlemaps website but I'm unable to get any maps to show (attempting example 1 and 2) I did the following Added jar to web-inf/lib, included it in my jsp using the taglib declaration (This should be correct since my IDE netbeans now recognises the tag and makes it bold when used) I then added t...

custom tag 'cannot be resolved to a type'

I have a custom tag, packaged into a library jar that is included in my web apps war file. I get the following error: An error occurred at line: 66 in the jsp file: /WEB-INF/jsp/portlet/portfolio/operations/operationsInfo.jsp org.apache.jsp.tag.meta.form.WidgetFactory_tag cannot be resolved to a type 63: <c:forEach var="fldCfg" i...

Custom Facelets components and attributes defined in taglib

Defining custom components in Facelets is easy and quick but there's one thing I can't figure out. Is it possible with Facelets to define what attributes my custom component has? I.e: I've created a component which is used in such a way: <blue:modalWindow id="editFeesWizard" width="500" height="440" title="Wizard"> and is defined i...

Creating render urls to link between pages in a community in Liferay

I've set up a Liferay community, along with a number of pages each defining there own set of portlets, themes and layouts. I want to be able to create links between these pages. For example given that I am at the top level page (lets call this 'home'), I want to link to another page (for example 'blog') from within one of my portlets. I...

how to iterate a arraylist of object

Dear all, i m using dao design pattern in which i m returning a arraylist object ,inside object i can fetch by typecasting object into class and acees the getters like object.getName(),i want to itearate using a jstl tags.how can i do that. ...

Grails: No tag library for namespace. Cannot use any plugins with custom taglibs.

I can't seem to use any of the grails ui plugins such as richui or grails-ui. I used grails install-plugin to install them, and grails list-plugins shows that they are correctly installed. However, whenever I use their provided taglibs in my views, I get this exception: Tag [tabview] does not exist. No tag library found for namespace:...

JSP taglib with tags-appender

Using tiles, spring web mvc and a lot of jsp files. I need some tags with following logic: <tl:append tag="script"> ... javascript code ... </tl:append> This jsp tag would append javascript code to bottom of in the . Just wanna have javascript in one place. Also, I wanna use such taglib for css styles and so on. Are there any a...

Using two struts2 taglibs in each other

Hi I want to use two struts taglib in each other, something like this: < s:property value="url-< s:property value="number"/>"/> or < s:property value="url-${number}"/> but I got the following error in the second one: According to TLD or attribute directive in tag file, attribute values does not accept any expressions. Anybody h...

Is there a way to do gsp partials rather than tag libraries?

One of the things I liked about freemarker is that you can quickly create new macros that encapsulate complex html to make the pages smaller and more concise. Do I have to make tag libraries to do the same thing in grails, or is there a really light-weight syntax for achieving the same thing? ...

Grails: Getting current View name from within a Taglib.

Is there any way too find out the current view (or gsp file) that is being executed? RequestURI doesn't work due to URL Mappings and forwards. I'm trying to retrieve resources dynamically based on the currently executing GSP file. For example, if product/view.gsp is being executed, I want to include product/view.css and product/view.js...

Struts is not using my default CSS for rendering <select> items seems to ignore my CSS

Struts seems to completely ignore the styleclass option for rendering the and associated options. I have spent a good deal of time getting the CSS right for this website to shar on all the pages, but cannot get struts to play ball? ...

How To Set A Param In A Taglib

I have this code in a custom taglib that calls the GrailsUI Autocomplete tag: def renderAutoComplete(uicName,isDisabled,theValue) { params.tableId = 3 // THIS ISN'T AVAILABLE TO AUTO COMPLETE ACTION out << gui.autoComplete(id:uicName,resultName:"lookUpData",controller:"lookupTable",action:"autoCompleteJSON") {} } Here's my ...

A framework header cannot find its own header files in Xcode?

Hi In Xcode, suppose that there is a framework named Foo. Inside the Foo.framework/Headers folder there are files File1.h and File2.h. The header file File1.h includes File2.h via the following directive: #include <File2.h> The Foo framework is a re-package of a C++ library not specifically targeted for the Mac. Now suppose I have...

adding a document to a Lucene index causes crash

i'm trying to index an mp3 file with only one ID3 frame. using CLucene and TagLib. the following code works fine: ... TagLib::MPEG::File file("/home/user/Depeche Mode - Personal Jesus.mp3"); if (file.ID3v2Tag()) { TagLib::ID3v2::FrameList frameList = file.ID3v2Tag()->frameList(); lucene::document::Document *document = new lucene...

Reading ID3 tags from the web with C#

I've seen the TagLib Sharp example of how they read from a Gnome VFS, but does anyone know how or have sample code on how I can read an MP3 file from a website and get the ID3 info? So say i have some MP3's and the link is like this: "http://myserver.com/indie/band1.mp3" I'm trying to user TagLib Sharp to do this: http://developer.nove...

custom taglibs cause "PWC6033: Unable to compile class for JSP"

When I try to use custom taglibs in my webapp it doesn't work on OS X (or Windows), using Eclipse, and Run Jetty Run. When I WAR up the files and run them on my linux server running apache-tomcat-6.0.20, there is no problem. I'm using 3rd party custom taglibs without problems in both environments. org.apache.jasper.JasperException: PWC6...

Validation errors are not being rendered by <form:errors> tag in my Spring 3.0.3 web MVC app

I'm developing an image rendering service that takes a bunch of query string parameters as arguments to render an image using Spring 3.0.3. I'm trying to validate the query string parameters and display errors if any exist. Validation seems to be working just fine as the conditional statement on the BindingResult result parameter will ...

JSP in OSGi: How to load TLD from bundles?

Hi! We're building a JSP web application, which runs inside the Apache Felix OSGi container (the web app itself is a OSGi Bundle). Now, we're facing the following problem: According to the JSP 2.0 Spec, TLD (taglib descriptors) no longer need to reside inside the web apps WEB-INF folder, but are loaded directly from the taglib's jar ME...

how can i replace struts1 <logic:match>tag in struts2?

hi all in struts1, this is <logic:match> tag to use [Regular Expression]. how can i use the function in struts2 tag ? for example, i want to check a string begin with 'AA', <s:if test=""> The string begin with 'AA' </s:if> Thank you ...