jsf中传值到javascript中
就可以直接传的.
${pBean.url}
url地址中含中文乱码的解决:
<Connector port="8080" protocol="HTTP/1.1" URIEncoding="UTF-8"
connectionTimeout="20000"
redirectPort="8443" />
<img src="${request.contextPath}/${pBean.pic.url}"/>
jsf中详细新闻页的链接不知道,怎么加?
以前的是 ?id=25 这样子 现在也可以了
找到那个页面,找到newid,取值getContent(){修改一下}
修改工程的发布名
右键myeclipse/web web Context-root改一下名字就可以了
注意看problem
属性java compiler compiler compliance level 改成5.0
java.lang.object不识别
add library 加入 jre system library