This one if only for front end techs.
标签属性和样式表属性冲突,以样式表为主 why the <body class="tundra spring" background="getImage/backgroud"> desen't work on bigbang project?dose it work to only for area inside body?------------No,no,no, it's just because when we use both style and background 属性 于同一个网页元素时,如果里面的内容重复(比如backgroundimage) 那么以Style里的为主。 | |
| |
这种写法导致使用现有的URL,仅仅替换其参数部分, 如:http://abc.com/public?path=abc 的页面中,点后指向http://abc.com/public?myparam=2 <spring:url var="myurl" value=""> <spring:param name="myparam" value="2" /> </spring:url> <a href="${url_theme2}">link</a> | |
| |
Sitemesh的工作机制 1 加入SiteMesh.jar到工作路径 2 add a filter into web.xml 3 addd src/main/webapp into source path 4 under the folder src/main/webapp/WEB-INF, add a file with the name: decorators.xml. 5 in decorators.xml, there are patterns like: <decorator name="player" page="player.jsp"> <pattern>/player/*</pattern> </decorator> 6 in controller, after access will return a string indicating the jsp file name. !! while, this files name will be matched in decorators.xml first, then select a file in decorator folder to decorate it. eg. PlayerController return a string: "player/index" decorators.xml match this patter and find the page player.jsp from folder decorators. sitemash.jar will decorated the player/index.jsp with player.jsp, then return the final html to explorer. | |
为何传入到jsp页面的参数,都要转存到变量中才能使用? 我看到: <spring:url value="${path}" var="form_url"/> <form:form action="${form_url}" 是好的。但是如果直接写 <form:form action="${path}" 就报错说找不到对应的Controller了! | |
BootStrape
| |
SpringRoo
| |
how to open the super cool firefox debugger? (not firebug) ctrl+shift+k | |
Java scripts:
| |
don't uses:
| |