菜鸟求助,为什么不执行action中的方法
主要程序片段
action中:
public String showSong()
{
SongDAO songDao = new SongDAO();
this.song = songDao.findById(songId);
System.out.println("--------------showsong----------");
return SUCCESS;
}
<action name="getSong"
class="com.meetcomet.mySong.action.getSong" method="showSong">
<result name="success">/showSong.jsp</result>
</action>
<s:url id="getS" action="getSong">
<s:param name='songId'>
<s:property value='songId'/>
</s:param>
</s:url>
<s:a cssClass="maroon" href="%{getS}">
<s:property value='songName'/>
</s:a>