JSP related Technology basic knowledge __jsp

Source: Internet
Author: User
1 Overview

This document is about JSP development guidance documentation. Includes: basic concepts, layout tags, code examples, FAQs, and so on.

This document is suitable for all Java developers. 2 basic knowledge 2.1 <iframe> Introduction

<iframe> should also be a form of a framework, unlike <frame>, where an IFRAME can be embedded in any part of a Web page. We give the first example, the specific code such as: <iframe width=420 height=330 frameborder=0 scrolling=auto src=url></iframe> The URL here can be a relative path, or it can be an absolute path, and the effect is as follows:

<iframe width= "650" height= "frameborder=" "0" scrolling= "Auto" src= "http://134.96.71.241:8080/zj114boss/" Npportalzj114/bms/datcustomerserviceaction.do?reqcode=gotoadd "> </iframe> 2.2 html in TA The use of Rget

For example: <a href= ". /khfw.html "target=" _blank ">

Target is defined by multiple

_blank: means to open a link to a new window

_self: means to open a link in the current window or frame (default)

_parent: means to open a link in a parent window or frame

_top: Means to open a new link in the top-level frame

You can also assign the frame name directly to target, which means that the link is open in a frame, as csdn clicks on the left tree, and the new link opens on the right. The difference between 2.3 SPAN and DIV

. The meaning of <div> tags in html

<DIV> is called a partition mark. Role: Set the position of words, pictures, tables, etc. When you put text, images, or other in a div, it can be called "div block", or "div element" or "css-layer", or simply "layer". And the Chinese we call it "level". So when you see these nouns later, you know that they refer to a section of HTML in the DIV. <DIV> applied to style Sheet (model table) will be more powerful, its ultimate goal is to give designers another kind of organizational ability, have Class; Style; title; ID, and so on, will be detailed in the "Style Sheet" section, which describes only one property setting. Take <div align= "center" > For example: align= "center" optional Value: center; Left; Right. Determine words, drawings, tables, etc. centered, left or right. <div align= The role of "center" > and Center Tag <CENTER>, the former is a standard which is started by the HTML3.0, the latter is the universal long time marking method.

The difference between SPAN and Div is that Div (division) is a block-level element that can contain paragraphs, headings, tables, and even chapters, summaries, and notes. span is an inline element, the span is not wrapped around, it has no structural meaning, is purely applied style, when other inline elements are not appropriate, you can use span.

For example: <span class= "required" >*</span> is defined in MESSAGE.CSS:

span.required {

color:red;

font-size:9pt;

padding:4px;

}

3 Instance code 3.1 in Layout, display the label of the time

<layout:collectionitem width= "15%" title= "Commit Time" property= "Commitdate" sortable= "true" type= "date"/> /c10> 3.2 id attribute using 3.2.1 Method One: The way of using a checkbox 3.2.2 Method two: Using radio Way

updatecfgquotarule.jsp

<tr class= "FORM" >

<TD Class= "FORM" > whether or not to recalculate: </td>

<TD Class= "FORM" colspan= "3" >

<HTML: Radio styleid= "Noreexpenseid" property= "reexpense" value= "0" > not re-accrued </HTML: Radio >

<HTML: Radio styleid= "Reexpenseid" property= "Reexpense" value= "1" > <span id= " Textreexpenseiddisplay "> re-</span></HTML:radio>

<span class= "required" >*</span>

Re-accounting is a time-consuming process, only in case of a change in the conditions of the fee limit, you need to do this operation.

<TD>

</TR>

function onaddclicked (form) {

Form.reqCode.value = "Gotoadd";

Form.quotaRuleId.value = ' <bean:write name= ' cfgquotaruleform ' property= ' Quotaruleid '/> ';

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.