tags

In Django, is there an easy way to render a text field as a template, in a template ?

Can you think of an easy way to evaluate a text field as a template during the template rendering. I know how to do it in a view but I'm looking for a template Filter or a Tag ? Something like: {{ object.textfield|evaluate}} or {% evaluate object.textfield %} with object.textfield containing something like: a text with a {% Template...

What does it mean by putting dots into a struts forward tag?

As the example below, I came across this one when reading the source code of JAVA D.I.Y Forum. <forward name="feedback" path=".page.index.feedback"/> <forward name="group" path=".page.index.group"/> ...

Extract all the links between specified html tags from an html file with sed

Hi everybody. Well I must find a way to extract all the links between <div id="links"> and </table> tags. And if there is more than one link, it should add '\n' character between the urls: "$URL1\n$URL2". <div id="links"> <table> <td><a href="URL">url</a></td> <td><a href="URL">url</a></td> </table> <table> .. </table> </div> The ones...

JSP tricks to make templating easier?

At work I've been tasked with turning a bunch of HTML files into a simple JSP project. It's really all static, no serverside logic to program. I should mention I'm completely new to Java. JSP files seem to make it easy to work with common includes and variables, much like PHP, but I'd like to know a simple way to get something like templ...

How to map a class to a jsp tag ?

I see some program, in its jsp code, it has following : And it will be mapped into a class. When you put some database object into this tag, it will automatically loop to load the data from database. I want to know, In Jsp, how to map the JSP tag to a class? Then when there is a such tag, system will know it should load a class to pro...

Multi-Tenant Tag Schema's for Distributed Content Types

There's quite a bit of discussion out there, regarding tag schema's, but I've noticed that most of it focuses on a single content type, such as bookmarks or photos. I'm interested in using tags across multiple features of a multi-tenant business app; one where tags could be related to form fields, documents, photos, configuration sett...

JSF tag not found

Hi, I use JSF-facelets.jar 1.1.14 (I downloaded it here) and tomcat 6.0 Manifest-Version: 1.0 Ant-Version: Apache Ant 1.7.0 Created-By: 1.5.0_12-b04 (Sun Microsystems Inc.) Implementation-Version: 1.1.14 If I understand well, JSF-facelets.jar = JSF + JSTL + Facelets (???) My problem is when I use "fmt" fonction. This code... <h...

Need to parse a string, having a mask (something like this "%yr-%mh-%dy"), so i get the int values.

For example i have to find time in format mentioned in the title(but %-tags order can be different) in a string "The date is 2009-August-25." How can i make the program interprete the tags and what construction is better to use for storing them among with information about how to act with certain pieces of date string? ...

ASP.NET AJAX’s Combobox - Use HTML Tags in list entries

I'm using the new Microsoft ASP.NET Ajax Combobox control. But I want to use HTML-Tags for formatting in the DropDownlist. It renders to <ul> and <li> and not to <select> and <option>, so it should be possible. My Control looks like this: <act:ComboBox ID="cbxCompany" runat="server" Width="180" AutoCompleteMode="Append" CssClass="Co...

Intellij 7.0.3 jsp tag namespace

I am declaring a namespace and binding it in a jsp file. i then include this JSP file in other files. however, the JSP file that contains this include complains that the namespace is not bound. Is there a way I can get intellij to intelligently understand that there is a file that is included and the namespace is bound in that file? ...

How to model tags in the database?

I have an existing webapp and want to add a tag feature so that users can tag existing objects. The question is should I add a tag column to each object? or should I normalize it and use a tag table where each object will have a collection of tags? I am leaning towards the latter because it feels cleaner, easier to report on and easier t...

my website doesnt look the same in all browsers? it looks right in safari but not IE or firefox

anyone have the code to ger websites to look right in IE and firefox? ...

Display Twitter tag cloud in Wordpress

Is there a way to display a tag cloud of terms from a single Twitter account within Wordpress i.e. on a page or in the sidebar? I know there's a Delicious Wordpress sidebar tag-cloud - so figured there might be. ...

jsp tag without java code

hi all i just want to create a simple jsp tag such as : abc.tag <div> <table> .... </table> body content goes here </div> so when in the other pages i can use my tag like this <tag:abc> acutally body content </tag:abc> how can i do it without java code??? coz the functionality for my tag is siimple, i d...

Will the <b> and <i> tags ever become deprecated?

(This is more of a curiousity question than any pending disaster :D ) So the <b> and <i> tags have been around since near the beginning of the web (I assume). But now we have CSS and many people apposing "stylistic html tags." They are stylistic tags, but they're really not so bad, as they save us from having to make a <span class="bold...

Tag Interface for Singletons

The 'singleton-ness' of a class is an important aspect of how a class should be used. However, it usually doesn't have any explicit status in the exposed API of a class. Yes, conventional method names such as getInstance() are often used, but that's not exactly what I'm referring to here. A 'tag interface' is an interface which contains...

how to insert space in jsf page

hi can any one please tell me how to insert a space character in the jsf field like how we does it html by using &nbsp;? is there any tag in jsf? thanks Suresh ...

hi how can i insert a currency symbol in the jsf page with precision of 2 digits

hi how can i insert a currency symbol in the jsf page with precision of 2 digits i am using the following libs <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%> <%@ taglib uri="http://www.ibm.com/jsf/html_extended" prefix="hx"%> <%@ taglib uri="http://java.sun.com/jstl...

MySQL Full text boolean search with tags

I've never done searching from MYSQL before, but I need to implement a search. I have three tables, 'articles', 'articles_tags', and 'tags'. 'articles' holds the first thing I would like to search on, the 'title' field. 'articles_tags' is a pivot table which relates 'articles' and 'tags' together. 'articles_tags' has two fields: 'arti...

Using Curry to Define Grails Tags

I have a grails tag library TpTagLib and in it I want to define 4 new tags that differ only in one constant value, so I tried to use curry. But there is an exception: groovy.lang.MissingPropertyException: No such property: attr for class: TpTagLib Does anyone have any idea why this exception occurs? Here is the code: def ifPermsTag = ...