2006/04/27 11:21 Developer
struts에서 token을 이용한 중복등록 체크
isTokenValid()메써드가 false를 반환하는 경우( at API)
- No session associated with this request
- No transaction token saved in the session
- No transaction token included as a request parameter
- The included transaction token value does not match the transaction token in the user's session
JSP페이지에 token이 생성되지 않는 경우 아래와 같은 토큰을 생성을 해준다.
<input type="hidden" name="org.apache.struts.taglib.html.TOKEN" value="<%=session.getAttribute(org.apache.struts.Globals.TRANSACTION_TOKEN_KEY)%>">