html引入taglib,jsp - html taglib struts - Stack Overflow

博主在尝试使用一个标签库来展示只读的输入文本,并将数据存放在请求范围内。他们发现当从请求范围内获取属性时,页面无法正常工作。问题在于标签库是否能直接访问请求范围的属性,而非指定的actionForm bean。文档中并未明确说明如何处理不同作用域。博主寻求解答,是否可以继续使用该标签库,或者需要寻找其他解决方案。
摘要由CSDN通过智能技术生成

Good afternoon in my timezone.

I have a few little doubts regarding the use of this tag library and the actionForm.

I want to put a inputText in my page , but this input text will be read only.So i did not put any thing in the actionForm object because this is a readOnly text(just to display data).

I put the information in the request scope (request.setAttribute("readOnly","data")).

In my jsp i have

This is not working(if i remove the last field everything works fine), so i put the following questions ?

Is it possible using to access attributes in any scope,regardless the actionForm bean ?The documentation provide us with two properties to define the bean from where we want to retrieve the values (name=name of the bean and property=name of the property inside the bean).But it does not say anything about scopes(requst,scope).

So can i use this taglibrary or i have to go by another way ?

Thanks in advance

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值