All 9 entries tagged Web

View all 68 entries tagged Web on Warwick Blogs | View entries tagged Web at Technorati | There are no images tagged Web on this blog

October 25, 2006

JSTL Loop

<c:forEach begin="0" end="${numbers}"   var="status">
 ${status}
<c:if test="${status %2 == 0}">hi</c:if>
</c:forEach>

The value of varStatus represents the name of a scoped variable that you can use to obstain information about the status of the iteration performed by action.

The following code

<c:forEach begin="0" end="${pageNumbers}"   var="i" varStatus="status">
var: ${i} and status: ${status.count} <br/>
</c:forEach>

generates the following output:

var: 0 and status: 1
var: 1 and status: 2
var: 2 and status: 3
var: 3 and status: 4 
<c:if test='$( param.cardType =="Visa"}'></c:if>
<c:if test='$( not empty param.cardType}'></c:if>
<c:if test='$( isRight}'></c:if>
<c:choose>
 <c:when test='${isRight}'>
  </c:when>
 <c:otherwise>
 </c:otherwise>
</c:choose>

July 19, 2006

disable and readonly

Writing about web page http://www.w3.org/TR/html4/interact/forms.html#h-17.12

disabled element cannot receive user input nor will its value be submitted with the form.

Only textarea and textfield


February 07, 2006

Tags : jsp component

Create tag file:

Can use other tag libraries:

[%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %]
[%@ attribute name="label" type="java.lang.String" required="true" %]
[%@ attribute name="compulsory" type="java.lang.Boolean" required="true" %]

Snippet

[c:choose]

[c:when test="${compulsory}">${label}[span class="required_true"]*[/span][/c:when]

[c:otherwise]${label}[/c:otherwise]

[/c:choose]

Import tag libraries:

<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>

Use tag files:

[tags:inputTextField bindPath="component.name" label="List label" compulsory="${true}"/]


CSS

Writing about web page http://www.w3schools.com/css/css_syntax.asp

This is the only CSS acknowledge I need to know :)

  • Selectors: Any HTML element is a possible CSS1 selector
  • Contextual Selectors: P EM { }
  • Class selector : selectors.class i.e., p.right. the classes can be combined e.g class="classA, classB"
  • ID selector : element.id i.e., p#right
  • Without the prefix selector, it will allow to any element
  • Contextual ID/Class : #form_properties table ??
  • Inherentence:
  • span.highlight {background–color–yellow} will only applied to span tags with a declard class attribute of hightlight.

February 24, 2005

Table Element Display

In first column, you have a checkbox. In second column, you input some text. Then the text will align to left and close to checkbox.
If you have a text or textarea field and use colspan="2". It will force checkbox column become very big and consequently the text become very far to checkbox.

I fix this by use a text style. td width: 20


August 13, 2004

Study Note of Eric Meyer On CSS

table element:
vertical-align replace valign
cellspacing is not well supported

P9:
use ID is only used for one element
background: transparent url(a.gif) left top:

P10 It use a fix width for td#advert, not percent

P13 Margin value: clockwise start from top;
  • margin: 1em 2em /* top & bottom = 1em, right & left = 2em */
  • margin: 1em 2em 3em /* top=1em, right=2em, bottom=3em, left=2em */

tr td#crumbs a:link{color:white}

P18 Good idean to have h1 has border-bottom to create a underline thick link

P25: Apply background color to td instead of tr


August 05, 2004

A greate feature of Yahoo! Tools

Yahoo! provide a tools IntelliSync. It can be used to synchrnonize Yahoo! address, notepad, calendar with outlook address, note, and calendar.

It is really usefull for me to sync my address books.
Great !!!!...........


August 03, 2004

Get rid of border when use image as a link


use border="0" to get rid of border, which is used to surround image

find out color value in photoshop

Click on eyedrop tools, click on the picture where you want to grab color ,
click on foregroud/backgroud color , it will pop up a panel

Search this blog

Search Warwick Blogs

 

Tags

Most recent comments

  • Oracle 11g is the clear leader in this area. Oracle has invested heavily into self–tuning capabiliti… by shaane on this entry
  • All the features are very nice.I like Repair Advisors the most.Oracle 10G introduced some of the dat… by lucy on this entry
  • "logical standby failed to re–start, I am also getting the same error. I have search on internet and… by anemia on this entry
  • Thanks for the nice information because from last three days i am stuck on this problem…. by robot vacuum on this entry
  • So what happen City speed dating when you tried this coding once in your PC.. Please tell me so i am… by John Bergeron on this entry
RSS2.0 Atom
Not signed in
Sign in

Powered by BlogBuilder
© MMXXII