我从 struts2 编程开始,我想知道如何做以下事情。我有这个格式的struts代码:
<s:textfield name="aName"/>
在使用 struts2 之前我有这个 html 代码:
<input id="aLogin" type="text" class="form-control" name="username" value="" placeholder="something" required autofocus>
我怎样才能“合并”这两行来执行相同的 html 代码但使用我的 struts2 代码?