Re: Access Denied error with Struts 2.1.8
Musachy Barroso wrote: > > did you try asking in the GAE forums? This is more of a GAE problem, > so you have a better chance to find an answer there. > I posted a question in the GAE group (http://groups.google.com/group/google-appengine-java/topics), but it has not made it through moderation yet. Apparently, this is not an issue with 2.1.6, so it seems as though something about 2.1.8 is causing the issue, perhaps? -- View this message in context: http://old.nabble.com/Access-Denied-error-with-Struts-2.1.8-tp25707316p26287339.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: [struts] OgnlValueStack.logLookupFailure
DNewfield wrote: > > Eric Martin wrote: >> So, it looks like struts converts it to a Char if it's a single-character >> and a string if it's multi-character? > > Yes, but it's OGNL that does that, not Struts. > > http://www.ognl.org/2.6.9/Documentation/html/LanguageGuide/basicExpressions.html#constants > > -Dale > Ahhh...thanks for the clarification and link! -- View this message in context: http://www.nabble.com/OgnlValueStack.logLookupFailure-tp15721571p15723729.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OgnlValueStack.logLookupFailure
Thanks Dave, that seemed to do the trick. I have other places where I use the same notation, but not with a single-character. So, it looks like struts converts it to a Char if it's a single-character and a string if it's multi-character? newton.dave wrote: > > IIRC a single-character in single quotes will evaluate to a character, not > a > string. Not entirely sure I get the exception without looking at the > source. > >> > > should work, though (switched punctuation). > > Dave > > --- Eric Martin <[EMAIL PROTECTED]> wrote: > >> >> I'm stuck with this error and have no idea what the problem is... >> >> In my action class, I'm returning a String property called ruleType. I've >> verified that it has a value of "A". >> >> In my jsp, I have: >> >><[EMAIL PROTECTED] file="arithmeticDetail.jsp" %> >> >> >> For some reason, that s:if test statement is throwing: >> WARN - OgnlValueStack.logLookupFailure(269) | Caught an exception while >> evaluating expression 'ruleType == 'A'' against value stack >> java.lang.NumberFormatException: For input string: "A" >> at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source) >> at java.lang.Double.parseDouble(Unknown Source) >> at ognl.OgnlOps.doubleValue(OgnlOps.java:214) >> at ognl.OgnlOps.compareWithConversion(OgnlOps.java:99) >> at ognl.OgnlOps.isEqual(OgnlOps.java:142) >> at ognl.OgnlOps.equal(OgnlOps.java:533) >> at ognl.ASTEq.getValueBody(ASTEq.java:51) >> at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) >> at ognl.SimpleNode.getValue(SimpleNode.java:210) >> at ognl.Ognl.getValue(Ognl.java:333) >> at com.opensymphony.xwork2.util.OgnlUtil.getValue(OgnlUtil.java:194) >> at >> > com.opensymphony.xwork2.util.OgnlValueStack.findValue(OgnlValueStack.java:238) >> at org.apache.struts2.components.Component.findValue(Component.java:322) >> at org.apache.struts2.components.If.start(If.java:85) >> at >> > org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:54) >> at >> > org.apache.jsp.WEB_002dINF.jsp.transformRule.saveRule_jsp._jspx_meth_s_005fif_005f1(saveRule_jsp.java:561) >> at >> > org.apache.jsp.WEB_002dINF.jsp.transformRule.saveRule_jsp._jspService(saveRule_jsp.java:158) >> ... >> >> Any ideas? >> -- >> View this message in context: >> > http://www.nabble.com/OgnlValueStack.logLookupFailure-tp15721571p15721571.html >> Sent from the Struts - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/OgnlValueStack.logLookupFailure-tp15721571p15722468.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
OgnlValueStack.logLookupFailure
I'm stuck with this error and have no idea what the problem is... In my action class, I'm returning a String property called ruleType. I've verified that it has a value of "A". In my jsp, I have: <[EMAIL PROTECTED] file="arithmeticDetail.jsp" %> For some reason, that s:if test statement is throwing: WARN - OgnlValueStack.logLookupFailure(269) | Caught an exception while evaluating expression 'ruleType == 'A'' against value stack java.lang.NumberFormatException: For input string: "A" at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source) at java.lang.Double.parseDouble(Unknown Source) at ognl.OgnlOps.doubleValue(OgnlOps.java:214) at ognl.OgnlOps.compareWithConversion(OgnlOps.java:99) at ognl.OgnlOps.isEqual(OgnlOps.java:142) at ognl.OgnlOps.equal(OgnlOps.java:533) at ognl.ASTEq.getValueBody(ASTEq.java:51) at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) at ognl.SimpleNode.getValue(SimpleNode.java:210) at ognl.Ognl.getValue(Ognl.java:333) at com.opensymphony.xwork2.util.OgnlUtil.getValue(OgnlUtil.java:194) at com.opensymphony.xwork2.util.OgnlValueStack.findValue(OgnlValueStack.java:238) at org.apache.struts2.components.Component.findValue(Component.java:322) at org.apache.struts2.components.If.start(If.java:85) at org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:54) at org.apache.jsp.WEB_002dINF.jsp.transformRule.saveRule_jsp._jspx_meth_s_005fif_005f1(saveRule_jsp.java:561) at org.apache.jsp.WEB_002dINF.jsp.transformRule.saveRule_jsp._jspService(saveRule_jsp.java:158) ... Any ideas? -- View this message in context: http://www.nabble.com/OgnlValueStack.logLookupFailure-tp15721571p15721571.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WW-167 not working
Martin, Yes, there is a problem with the output. The SubmitTextName should be inside the button tag, but in your example and others posted, the value gets placed outside the button tag (seems to get displayed before the rendering of the button. I would expect the output to be: SubmitTextName In HTML, what is used for the value attribute, is what will be sent to the server on submit. Whereas, the "value" that is nested in the button tag, is only the "label" of the button and is not sent on submit. So, as far as Struts is concerned, I would expect the following: - User nests a "value" inside the s:submit tag, but does not include a value attribute SubmitTextName == - User does not nest a "value", but does include the value attribute SubmitTextName == - User does not nest or include a value with the s:submit tag. A default value will be used for both. Submit == - User adds both a nested "value" and a value attribute: SomeOtherSubmitTextName == Hopefully that makes sense ;) Thanks for looking into this... -Eric mgainty wrote: > > Eric- > > I just tossed this into a test.jsp page > > > > > ..and this was the rendered html output.. > >SubmitTextName > Submit > > anything wrong with the output??? > Martin-- > - Original Message - > From: "Eric Martin" <[EMAIL PROTECTED]> > To: > Sent: Wednesday, November 28, 2007 8:27 PM > Subject: Re: WW-167 not working > > >> >> https://issues.apache.org/struts/browse/WW-1677 >> >> >> mgainty wrote: >> > >> > Alberto- >> > >> > which button component are you speaking of? >> > >> > Martin-- >> > - Original Message - >> > From: "Alberto A. Flores" <[EMAIL PROTECTED]> >> > To: >> > Sent: Wednesday, November 28, 2007 3:05 PM >> > Subject: WW-167 not working >> > >> > >> >> Has anyone been able to confirm that this issue is working? I don't > seem >> >> to get it to work yet JIRA says it is. This is about having a >> >> tag with an image and text inside the button. >> >> >> >> Thanks, >> >> >> >> Alberto >> >> >> >> > -- View this message in context: http://www.nabble.com/WW-167-not-working-tf4892993.html#a14019260 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WW-167 not working
https://issues.apache.org/struts/browse/WW-1677 mgainty wrote: > > Alberto- > > which button component are you speaking of? > > Martin-- > - Original Message - > From: "Alberto A. Flores" <[EMAIL PROTECTED]> > To: > Sent: Wednesday, November 28, 2007 3:05 PM > Subject: WW-167 not working > > >> Has anyone been able to confirm that this issue is working? I don't seem >> to get it to work yet JIRA says it is. This is about having a >> tag with an image and text inside the button. >> >> Thanks, >> >> Alberto >> >> > > > > > > >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/WW-167-not-working-tf4892993.html#a14017529 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] Complex submit button issue
Looks like this is a previously reported issue that was "fixed": https://issues.apache.org/struts/browse/WW-1677 However, I'm using 2.0.11 and it is still not working. Thanks, Eric Eric Martin wrote: > > I'm using the css_xhtml theme and trying to create a submit button that > outputs something like: > > > ${ctx}/images/tick.png Save > > > I would expect something like this to work: >cssClass="button positive save" > value=""> > ${ctx}/images/tick.png Save > > > But it outputs (formatted): > <img src="/core/images/tick.png" alt="Save"/> Save > > > > > I thought that maybe whatever was inside the s:submit tag would be used as > the value, but no such luck. Is that value held somewhere? If it is, I > could just edit the template to display it... > > Is there a struts way to do this, or should I just use standard HTML? > > Thanks, > Eric > > > -- View this message in context: http://www.nabble.com/-S2--Complex-submit-button-issue-tf4889527.html#a14008592 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[S2] Complex submit button issue
I'm using the css_xhtml theme and trying to create a submit button that outputs something like: ${ctx}/images/tick.png Save I would expect something like this to work: ${ctx}/images/tick.png Save But it outputs (formatted): Save I thought that maybe whatever was inside the s:submit tag would be used as the value, but no such luck. Is that value held somewhere? If it is, I could just edit the template to display it... Is there a struts way to do this, or should I just use standard HTML? Thanks, Eric -- View this message in context: http://www.nabble.com/-S2--Complex-submit-button-issue-tf4889527.html#a13995708 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: css_xhtml theme -
Agreed...the is irritating ;) Just to expand on what Dave said... 1) extract the template/simple/inputtransferselect.ftl file from the struts jar. 2) put the file in your classpath, we have it in WEB-INF/classes/template/simple 3) edit the file and remove the . For example: change: ${parameters.leftTitle} to: ${parameters.leftTitle} HTH -Eric newton.dave wrote: > > You can customize the templates by extracting them > from the jar and putting them in your classpath. The > thing is irritating. > > d. > > --- Angel Gruev <[EMAIL PROTECTED]> wrote: > >> Hello, >> >> I want to use the css_xhtml theme of struts 2. The >> problem is that by >> default, the results in HTML of >> Label and input field that >> have between them. >> This makes it hard to align the lable and the input >> field on the same line >> using css. >> Why is this tag there?! An how can be removed >> easily? >> >> Thanks! >> Angel Gruev >> Dreamix Ltd >> > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/css_xhtml-theme---%3Cbr%3E-tf4889135.html#a13995673 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[s2] workflow/process question regarding menus and preferences
I'm building a S2 application and want to add the following: 1) Menus and sub-menus, based on the user's rights (session) 2) UI preferences (application) I want the menu items to be determined after login / before rendering of the page, and placed in the session. And for UI preferences, they are more application specific and could be created at startup. So, my question...what is the best way to add these? Do I create interceptors, filters, etc. We're using Acegi security also, so I'm not sure if I should add it on top of that flow, or the struts flow. I'm still trying to pick up the flow of things and would appreciate any insight. -- View this message in context: http://www.nabble.com/-s2--workflow-process-question-regarding-menus-and-preferences-tf4877642.html#a13957671 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]