解决方案 »
- 求 经验流,站内消息 数据库处理
- eclipse中启动tomcat 404 错误 添加个项目到tomcat中 可以访问
- java web 实现在线录音
- 请教java bean 与class 对象的区别
- 能否或如何让iframe里的页面不随其他页面滚动???
- 龙门镖局物流管理系统
- 很简单的一个问题,希望高手纵横捭阖给予详解,先行谢过
- 原来是问题,没解决。
- 怎么取得表里字段得类型!
- 请问在IIS下如何安装和配置tomcat?
- 求一个用推技术pushlet实现的在线网页交流的能运行的列子
- tomcat出现Error reading tld listeners java.io.EOFException错误
<bean id="attributeRepository" class="org.jasig.services.persondir.support.jdbc.SingleRowJdbcPersonAttributeDao">
<constructor-arg index="0" ref="mydataSource"/>
<constructor-arg index="1">
<list>
<!--<value>userid</value>-->
<value>username</value>
</list>
</constructor-arg>
<constructor-arg index="2" value="select userid,fullname,groupid from User where userid = ?"/>
<property name="columnsToAttributes">
<map>
<entry key="UserID" value="userid"/>
<entry key="FullName" value="FullName"/>
<entry key="GroupID" value="GroupID"/>
</map>
</property>
</bean>
为什么需要在参数里设置username而不是userid呢?楼主有探究过吗?
首先将要传递的信息都保存在session中
其次在casServiceValidation.jsp中添加相应的标签:
比如我想获得用户guid
<cas:guid><%out.write(session.getAttribute("guid").toString())</cas:guid>
出现 org.xml.sax.SAXParseException: The element type "cas:username" must be terminated by the matching end-tag "</cas:username>". 错误,是哪配置问题?请帮帮忙 谢谢了