스트럿츠 커스텀태그 도움 부탁드립니다.
연와인
하는 스트럿츠 커스텀태그로 되어있습니다. 자바지기에서 다운 받은 소스입니다.
그리고 커스텀태그를 그냥으로 바꿀려고 하는데
제가 아마도 name이나 그런것을 잘못썼는지 null 포인트 익셉셥이 자꾸뜨네요.
name=boardform property=boardvalue.password
이것이 아마도 boardform이라는 form action이고 property는
그안에 있는 밸류값에 있는 password인데 이거 선언을 어떻게
바꿔야 하는지 모르겠네요
도움 부탁드립니다.-- 커스텀 태그
html:form action=/board.do method=post enctype=multipart/form-data
html:hidden property=method value=create/
table border=0 cellpadding=0 cellspacing=1 width=590 bgcolor=bbbbbb
tr
td width=100 align=center bgcolor=e6ecde height=22
bean:message key=board.writer/
/td
td width=490 bgcolor=ffffff style=padding-left:10
html:text style=width:150 name=boardform property=boardvalue.name/
/td
/tr
tr
td width=100 align=center bgcolor=e6ecde height=22
bean:message key=board.password/
/td
td width=490 bgcolor=ffffff style=padding-left:10
html:password style=width:150 name=boardform property=boardvalue.password/
/td
/tr
tr
td width=100 align=center bgcolor=e6ecde height=22
bean:message key=board.email/
/td
td width=490 bgcolor=ffffff style=padding-left:10
html:text style=width:150 name=boardform property=boardvalue.email/
/td
/tr
tr
td width=100 align=center bgcolor=e6ecde height=22
bean:message key=board.title/
/td
td width=490 bgcolor=ffffff style=padding-left:10
html:text style=width:300 name=boardform property=boardvalue.title/
/td
/tr
tr
td width=100 align=center bgcolor=e6ecde height=22
bean:message key=board.content/
/td
td width=490 bgcolor=ffffff style=padding-left:10
html:textarea rows=15 cols=60 name=boardform property=boardvalue.content/
/td
/tr
tr
td width=100 align=center bgcolor=e6ecde height=22
bean:message key=board.file/ 1/td
td width=490 bgcolor=ffffff style=padding-left:10
html:file style=width:400 name=boardform property=filelist[0]/
/td
/tr
tr
td width=100 align=center bgcolor=e6ecde height=22
bean:message key=board.file/ 2
/td
td width=490 bgcolor=ffffff style=padding-left:10
html:file style=width:400 name=boardform property=filelist[1]/
/td
/tr
tr
td width=100 align=center bgcolor=e6ecde height=22
bean:message key=board.file/ 3
/td
td width=490 bgcolor=ffffff style=padding-left:10
html:file style=width:400 name=boardform property=filelist[2]/
/td
/tr
/table
br
table width=590 border=0 cellpadding=0 cellspacing=0
tr
td align=center
html:submit property=create
bean:message key=button.create/
/html:submit
html:button property=list onclick=boardlist()
bean:message key=button.list/
/html:button
/tr
/table
/html:form
/td
/tr
/table ---그냥------
form name=boardaction method=post enctype=multipart/form-data
input type=hidden name=method value=create/
table border=0 cellpadding=0 cellspacing=1 width=590 bgcolor=bbbbbb
tr
tp; td width=100 align=center bgcolor=e6ecde height=22name/td
td width=490 bgcolor=ffffff style=padding-left:10
input type=text style=width:150 name=name /
/td
/tr
tr
td width=100 align=center bgcolor=e6ecde height=22password/td
td width=490 bgcolor=ffffff style=padding-left:10
input type=password style=width:150 name=password/
/tr
tr
td width=100 align=center bgcolor=e6ecde height=22email/td
td width=490 bgcolor=ffffff style=padding-left:10
input type=text style=width:150 name=email/
/td
/tr
tr
td width=100 align=center bgcolor=e6ecde height=22title/td
td width=490 bgcolor=ffffff style=padding-left:10
input type=text style=width:300 name=title
/td
/tr
tr
td width=100 align=center bgcolor=e6ecde height=22content/td
td width=490 bgcolor=ffffff style=padding-left:10
input type=textarea rows=15 cols=60 name=content/
/td
/tr
tr
td width=100 align=center bgcolor=e6ecde height=22file 1/td
td width=490 bgcolor=ffffff style=padding-left:10
input type=file style=width:400 name=filelist[0]/
/td
/tr
tr
td width=100 align=center bgcolor=e6ecde height=22file 2/td
td width=490 bgcolor=ffffff style=padding-left:10
input type=file style=width:400 name=filelist[1]/
/tr
tr
td width=100 align=center bgcolor=e6ecde height=22file 2/td
td td width=490 bgcolor=ffffff style=padding-left:10
input type=file style=width:400 name=filelist[2]/
/td
/tr
/table
br
table width=590 border=0 cellpadding=0 cellspacing=0
tr
td align=center
input type=button value=create onclick=boardcreate()
input type=button value=list onclick=boardlist()
/td
/tr
/table
-
날애
bean:define 태그를 이용해서 boardValue를 꺼내서 사용하세요.
bean:define id=\boardValue\ name=\boardForm\ property=\boardValue\ /
html:text style=\width:150\ name=\boardValue\ property=\name\/