You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Niall Pemberton (JIRA)" <ve...@apache.org> on 2005/10/21 12:11:10 UTC

[jira] Commented: (VELTOOLS-53) velstruts - problem with an example JSP/struts tags

    [ http://issues.apache.org/jira/browse/VELTOOLS-53?page=comments#action_12332694 ] 

Niall Pemberton commented on VELTOOLS-53:
-----------------------------------------

Nathan, One minor point - I notice you didn't include the <jsp:useBean> statement I put in the patch for edit-address.jsp. 

The first time in to "app1" if you first select the "Velocity Version" from the examples page and then select "Edit Address (JSP)" then a ServletException (Cannot find bean address in any scope) is thrown. Having the <jsp:useBean> ensures the AddressBean is created in session scope if it doesn't exist. 

Navigating via  the "JSP Version" works OK, because that JSP already has  a  <jsp:useBean> statement.

Niall

> velstruts - problem with an example JSP/struts tags
> ---------------------------------------------------
>
>          Key: VELTOOLS-53
>          URL: http://issues.apache.org/jira/browse/VELTOOLS-53
>      Project: VelocityTools
>         Type: Bug
>   Components: VelocityStruts
>     Reporter: Niall Pemberton
>     Assignee: Nathan Bubna
>     Priority: Minor
>      Fix For: 1.2
>  Attachments: VelocityToolsStrutsApp1.patch, VelocityToolsStrutsApp1v2.patch
>
> See: http://www.mail-archive.com/velocity-dev%40jakarta.apache.org/msg13343.html
> The Struts <html:form> tag has had a number of attributes removed in version 1.2.x. The form name, type and scope can no longer be specified on this tag - these are now looked up in the struts-config.xml.
> I'm attaching a patch which resolves the above issue. Also I noticed that the JSP example was missing the "languages" field that is on the equivalent velocity page. The patch also includes this field on the JSP pages so that the JSP/velocity pages are directly comparable.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org