Hello Everyone,

I encounter a problem with the <s:submit type="image" src=""> taglib in my 
forms.
So I downloaded the struts2 samples 2.2.1 and modified the form submit tag in 
struts2-showcase-2.2.1/conversion/enterPersonsInfo.jsp to be a submit of type 
image.

and it generates the same error message:

Rendering template /template/simple/submit
 16:56:40,862 BUG kerTemplateEngine Rendering template 
/template/simple/submit.ftl
 16:56:40,862 BUG pPropertyAccessor Entering getProperty 
(ognl.ognlcont...@1c8ed8be,{templateDir=template, theme=simple, 
dynamicAttributes={}, label=Continuer, onclick=$('textChatFormModalBox').action 
='desactivateTextChat.do';,  title=Continuer, nameValue=Submit, id=proceed, 
type=image, 
 align=right, src=ihm/images/fr/btn_proceed_fr.gif},body)

 16:56:40,862 BUG ectTypeDeterminer Error while retrieving generic property 
class for property=parameters 

 java.lang.NullPointerException
        at 
com.opensymphony.xwork2.conversion.impl.DefaultObjectTypeDeterminer.getClass(DefaultObjectTypeDeterminer.java:314)
        at 
com.opensymphony.xwork2.conversion.impl.DefaultObjectTypeDeterminer.getKeyClass(DefaultObjectTypeDeterminer.java:93)
        at 
com.opensymphony.xwork2.ognl.accessor.XWorkMapPropertyAccessor.getProperty(XWorkMapPropertyAccessor.java:93)
        at ognl.OgnlRuntime.getProperty(OgnlRuntime.java:2230)
        at ognl.ASTProperty.getValueBody(ASTProperty.java:114)
        at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)
        at ognl.SimpleNode.getValue(SimpleNode.java:258)
        at ognl.ASTChain.getValueBody(ASTChain.java:141)
        at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)
        at ognl.SimpleNode.getValue(SimpleNode.java:258)
        at ognl.Ognl.getValue(Ognl.java:494)
        at com.opensymphony.xwork2.ognl.OgnlUtil.getValue(OgnlUtil.java:217)
        at 
com.opensymphony.xwork2.ognl.OgnlValueStack.getValue(OgnlValueStack.java:342)
        at 
com.opensymphony.xwork2.ognl.OgnlValueStack.tryFindValue(OgnlValueStack.java:331)
        at 
com.opensymphony.xwork2.ognl.OgnlValueStack.tryFindValueWhenExpressionIsNotNull(OgnlValueStack.java:307)
        at 
com.opensymphony.xwork2.ognl.OgnlValueStack.findValue(OgnlValueStack.java:293)
        at org.apache.struts2.components.Property.start(Property.java:162)
        at 
org.apache.struts2.views.freemarker.tags.CallbackWriter.onStart(CallbackWriter.java:73)
        at freemarker.core.Environment.visit(Environment.java:296)
        at freemarker.core.UnifiedCall.accept(UnifiedCall.java:130)
        at freemarker.core.Environment.visit(Environment.java:210)
        at freemarker.core.MixedContent.accept(MixedContent.java:92)
        at freemarker.core.Environment.visit(Environment.java:210)
 ...

Could you tell me if it's reproducable on your side with the struts2-showcase 
sample?
Tested with struts2.2.1 on Jonas4.10.3 

 Thanks,

 Olivier Sagit
 osagit....@orange-ftgroup.com

*********************************
This message and any attachments (the "message") are confidential and intended 
solely for the addressees. 
Any unauthorised use or dissemination is prohibited.
Messages are susceptible to alteration. 
France Telecom Group shall not be liable for the message if altered, changed or 
falsified.
If you are not the intended addressee of this message, please cancel it 
immediately and inform the sender.
********************************


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to