0
A
回答
0
添加到您的jsp:
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
然後添加以下您的輸入標籤
<form:input type="text" path="member_variable_name"/>
希望這回答了你的查詢.. 見this
0
編輯你的MVC控制器方法使用@ModelAttribute
(我希望你使用註釋)
@RequestMapping("/somepath/foo/do")
public String someHandlerMethod(
@ModelAttribute("commandObject") CommandObject commandObject,
Model model,
BindingResult result) {
commandObject.setSomeValue("sample"); //Set value in command object
...processing...
return("some.jsp");
}
+0
嘿,我沒有範圍從控制器返回它,它必須在JSP本身處理。 – Rajasekhar 2013-03-08 12:37:12
+1
你不能僅僅使用JSP來處理它,因爲
相關問題
- 1. 與JSP/JSTL一起使用Dreamweaver(Scriptlet vs JSTL)
- 2. 使用jstl或scriptlet更改html內容
- 3. 如何在scriptlet中使用JSTL變量?
- 4. 獲取var值在JSTL - Scriptlet中
- 5. Scriptlet中的JSP
- 6. 在JSP中使Scriptlet無效
- 7. 需要JSTL(或JSP)中的`location.href`值
- 8. 在沒有JSTL的JSP中使用ResultSet對象
- 9. 如何使用jstl在jsp中的日曆設置方法中設置日期?
- 10. javax.el.PropertyNotFoundException:在JSP中使用JSTL
- 11. jstl問題:從我的jsp中刪除的最後一個scriptlet
- 12. 在JSP中唯一正確使用scriptlet
- 13. 在jsp中調用java類的功能而不使用scriptlet
- 14. 在jsp中使用jstl比較日期對象
- 15. JSTL和scriptlet代碼
- 16. jsp的Struts2設置對象
- 17. 將Portlet中的SearchContainer設置爲在使用EL和JSTL的JSP中使用它
- 18. 使用JSTL在JSP之間傳遞值
- 19. 在對象集合的命令中重用對象的命令
- 20. JSP/JSTL解析ArrayList的傳遞對象
- 21. JSP標籤+ scriptlet。如何啓用scriptlet?
- 22. 將Java類對象值設置爲JSP頁面
- 23. 在VB中,設置命令對象的參數似乎無法
- 24. TinyMCE命令或對象API?
- 25. 如何在verilog中使用環境變量或命令行設置宏的值?
- 26. 錯誤 - 沒有爲命令對象設置命令文本
- 27. 沒有爲命令對象設置命令文本
- 28. 在對象方法中返回值或在對象方法中設置值? PHP
- 29. 如何在jsp scriptlet中調用$ {SPRING_SECURITY_LAST_EXCEPTION.message}?
- 30. 如何將jsp scriptlet完全轉換爲jstl
老兄我使用的是spring:form的輸入標籤。不是正常的輸入標籤。值不是form:input標籤的有效屬性。 – Rajasekhar 2013-03-08 11:53:26
哦,我的壞..看編輯 – Anubhab 2013-03-08 11:59:35
你現在明白了。但我想動態地在JSP中設置路徑值。 – Rajasekhar 2013-03-08 12:36:37