re: 這大半年的沉寂 jezz 2008-07-03 21:25
是的啊,我的Struts2就是在這里起航的!希望有時(shí)間可以繼續(xù)寫!
那個(gè)mail.jar在哪找???我的JDK1.5不帶??!
其實(shí)也不能怪老師,中國大學(xué)就這樣!
還是靠自己!
我也遇到了,我做的批量上傳,好象只能設(shè)置它總共上傳的大小,不能設(shè)置每個(gè)上傳的大?。《液艽笠膊粓?bào)錯(cuò),只在控制臺報(bào)錯(cuò)!
re: Struts2使用示例源碼[未登錄] jezz 2007-10-18 13:54
lijie250@gmail.com
我需要謝謝!
呵呵不錯(cuò)啊值得學(xué)習(xí)!
lijie250@gmail.com
@yang
你的問題好像是缺少那個(gè)struts2-spring-plugin-2.0.6.jar包
你下載那個(gè)struts2的框架時(shí)候里面帶的example!
就有這個(gè)包你自己找找!
在第一個(gè)例子有點(diǎn)小問題
validation.loc = 區(qū)域必須為中國或美國
這個(gè)我顯示出錯(cuò),沒有顯示出錯(cuò)信息,直接把validate.loc顯示出來了!
后來我把
validate.loc = 區(qū)域必須為中國或美國
就可以顯示了!
我直接在關(guān)注你的文章!
已經(jīng)加了你的gtalk很少看到你!
我現(xiàn)在成功了!
但是TOMCAT的控制臺有很多錯(cuò)誤信息!
不知道那設(shè)置錯(cuò)了!
[2007-05-30 21:40:35,843] [http-8080-1] DEBUG com.opensymphony.xwork2.util.Insta
ntiatingNullHandler - Entering nullPropertyValue [target=[com.opensymphony.xwork
2.ActionSupport@16877f8, com.opensymphony.xwork2.DefaultTextProvider@1d95da8], p
roperty=templateDir]
[2007-05-30 21:40:35,843] [http-8080-1] DEBUG com.opensymphony.xwork2.util.Insta
ntiatingNullHandler - Entering nullPropertyValue [target=org.apache.struts2.util
.AttributeMap@5a2eaa, property=templateDir]
[2007-05-30 21:40:35,843] [http-8080-1] DEBUG com.opensymphony.xwork2.util.XWork
MapPropertyAccessor - Entering getProperty (ognl.OgnlContext@3a55c38f,org.apache
.struts2.util.AttributeMap@5a2eaa,templateDir)
[2007-05-30 21:40:35,843] [http-8080-1] DEBUG com.opensymphony.xwork2.util.Insta
ntiatingNullHandler - Entering nullPropertyValue [target=[com.opensymphony.xwork
2.ActionSupport@16877f8, com.opensymphony.xwork2.DefaultTextProvider@1d95da8], p
roperty=templateDir]
[2007-05-30 21:40:35,843] [http-8080-1] DEBUG com.opensymphony.xwork2.util.Insta
ntiatingNullHandler - Entering nullPropertyValue [target=[com.opensymphony.xwork
2.ActionSupport@16877f8, com.opensymphony.xwork2.DefaultTextProvider@1d95da8], p
roperty=templateDir]
[2007-05-30 21:40:35,843] [http-8080-1] DEBUG com.opensymphony.xwork2.util.Insta
ntiatingNullHandler - Entering nullPropertyValue [target=org.apache.struts2.util
.AttributeMap@5a2eaa, property=templateDir]
[2007-05-30 21:40:35,843] [http-8080-1] DEBUG org.apache.struts2.components.UIBe
an - Rendering template /template/simple/select
[2007-05-30 21:40:35,843] [http-8080-1] DEBUG freemarker.cache - template/simple
/select.ftl[zh_CN,UTF-8,parsed] cached copy not yet stale; using cached.
[2007-05-30 21:40:35,843] [http-8080-1] DEBUG org.apache.struts2.components.temp
late.FreemarkerTemplateEngine - Rendering template /template/simple/select.ftl
[2007-05-30 21:40:35,859] [http-8080-1] DEBUG freemarker.cache - template/simple
/scripting-events.ftl[zh_CN,UTF-8,parsed] cached copy not yet stale; using cache
d.
[2007-05-30 21:40:35,859] [http-8080-1] DEBUG freemarker.cache - template/simple
/common-attributes.ftl[zh_CN,UTF-8,parsed] cached copy not yet stale; using cach
ed.
[2007-05-30 21:40:35,859] [http-8080-1] DEBUG com.opensymphony.xwork2.config.Con
figurationManager - Checking ConfigurationProviders for reload.
我也測試了你的第一個(gè)例子
控制臺報(bào)錯(cuò)我沒用IDE就是手工寫的
錯(cuò)誤信息如下:
[2007-05-29 21:23:38,290] [http-8080-1] DEBUG com.opensymphony.xwork2.config.Con
figurationManager - Checking ConfigurationProviders for reload.
[2007-05-29 21:23:38,321] [http-8080-1] DEBUG com.opensymphony.xwork2.util.Insta
ntiatingNullHandler - Entering nullPropertyValue [target=[com.opensymphony.xwork
2.DefaultTextProvider@1142196], property=org]
[2007-05-29 21:23:38,493] [http-8080-1] DEBUG com.opensymphony.xwork2.util.Insta
ntiatingNullHandler - Entering nullPropertyValue [target=[com.opensymphony.xwork
2.DefaultTextProvider@1142196], property=struts]
哪個(gè)struts.properties文件和其他的文件不知道放在那?
如果方便的話就把源文件發(fā)給我!謝謝!
我的email:lijie250#gmail.com
我在測試哪個(gè)token的時(shí)候tomcat控制臺報(bào)錯(cuò):
嚴(yán)重: ParametersInterceptor - [setParameters]: Unexpected Exception catched: Err
or setting expression 'struts.token' with value '[Ljava.lang.String;@13576a2'
2007-5-22 21:36:17 com.opensymphony.xwork2.interceptor.ParametersInterceptor set
Parameters
嚴(yán)重: ParametersInterceptor - [setParameters]: Unexpected Exception catched: Err
or setting expression 'struts.token.name' with value '[Ljava.lang.String;@ff8c74
'
2007-5-22 21:36:17 com.opensymphony.xwork2.validator.ActionValidatorManagerFacto
ry <clinit>
信息: Detected AnnotationActionValidatorManager, initializing it...
Executing action, your message is 23566
2007-5-22 21:36:25 com.opensymphony.xwork2.interceptor.ParametersInterceptor set
Parameters
嚴(yán)重: ParametersInterceptor - [setParameters]: Unexpected Exception catched: Err
or setting expression 'struts.token' with value '[Ljava.lang.String;@c68a98'
2007-5-22 21:36:25 com.opensymphony.xwork2.interceptor.ParametersInterceptor set
Parameters
嚴(yán)重: ParametersInterceptor - [setParameters]: Unexpected Exception catched: Err
or setting expression 'struts.token.name' with value '[Ljava.lang.String;@354749
'
2007-5-22 21:36:25 org.apache.struts2.util.TokenHelper validToken
警告: Form token LNTDZ5OTANEM6E0Y0ZDGJSPA7WOXLI4 does not match the session toke
n GA8LF6M6WO4PY7YZ0PBXQLTVP3R6ZQS5.
請MAX幫我看下!以后我會經(jīng)常來的!我也在學(xué)struts2