<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    
    <title>Daniel E. Markle's Blog - Programming</title>
    <link>http://ashtech.net/~dmarkle/blog/</link>
    <description>Blatherings on Technology and Life</description>
    <dc:language>en</dc:language>
    <admin:errorReportsTo rdf:resource="mailto:" />
    <generator>Serendipity 1.5.5 - http://www.s9y.org/</generator>
    <managingEditor>syntax@ashtech.net (Daniel E. Markle)</managingEditor>
<webMaster>syntax@ashtech.net (Daniel E. Markle)</webMaster>

    <image>
        <url>http://ashtech.net/~syntax/blog/uploads/128blackcat.png</url>
        <title>RSS: Daniel E. Markle's Blog - Programming - Blatherings on Technology and Life</title>
        <link>http://ashtech.net/~dmarkle/blog/</link>
        <width>128</width>
        <height>128</height>
    </image>

<item>
    <title>Spring @RequestMapping Only on Classes Fails</title>
    <link>http://ashtech.net/~dmarkle/blog/archives/324-Spring-RequestMapping-Only-on-Classes-Fails.html</link>
            <category>Programming</category>
    
    <comments>http://ashtech.net/~dmarkle/blog/archives/324-Spring-RequestMapping-Only-on-Classes-Fails.html#comments</comments>
    <wfw:comment>http://ashtech.net/~dmarkle/blog/wfwcomment.php?cid=324</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://ashtech.net/~dmarkle/blog/rss.php?version=2.0&amp;type=comments&amp;cid=324</wfw:commentRss>
    

    <author>dmarkle@ashtech.net (Daniel E. Markle)</author>
    <content:encoded>
    When using &lt;a href=&quot;http://springframework.org&quot;&gt;Spring&lt;/a&gt; annotation based controllers, &lt;code&gt;@RequestMapping&lt;/code&gt; must be applied to a method as well as the class or it will not work. For example:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
@Controller&lt;br /&gt;
@RequestMapping(&quot;/blah.html&quot;)&lt;br /&gt;
public MyController {&lt;br /&gt;
&amp;#160;@ModelAttribute(&quot;session&quot;)&lt;br /&gt;
&amp;#160;public InventorySession getSession() {&lt;br /&gt;
&amp;#160;&amp;#160;return session;&lt;br /&gt;
&amp;#160;}&lt;br /&gt;
}&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
Will result in &lt;code&gt;No mapping found for HTTP request with URI [/[contextpath]/blah.html]&lt;/code&gt; errors. Request methods (or sub-pages) must be mapped to controller methods, i.e.:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
. . .&lt;br /&gt;
&amp;#160;@RequestMapping(method={RequestMethod.GET})&lt;br /&gt;
&amp;#160;public String getForm() {&lt;br /&gt;
&amp;#160;&amp;#160;return &quot;formView.jsp&quot;;&lt;br /&gt;
&amp;#160;}&lt;br /&gt;
. . .&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
This mistake is particularly easy to make when migrating older code to the newer annotation based model, where mappings on legacy code may make it (erroneously) appear such linking is done in the xml file already. 
    </content:encoded>

    <pubDate>Tue, 22 Mar 2011 19:17:24 -0400</pubDate>
    <guid isPermaLink="false">http://ashtech.net/~dmarkle/blog/archives/324-guid.html</guid>
    
</item>
<item>
    <title>Spring Session Bind to JSP</title>
    <link>http://ashtech.net/~dmarkle/blog/archives/323-Spring-Session-Bind-to-JSP.html</link>
            <category>Programming</category>
    
    <comments>http://ashtech.net/~dmarkle/blog/archives/323-Spring-Session-Bind-to-JSP.html#comments</comments>
    <wfw:comment>http://ashtech.net/~dmarkle/blog/wfwcomment.php?cid=323</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://ashtech.net/~dmarkle/blog/rss.php?version=2.0&amp;type=comments&amp;cid=323</wfw:commentRss>
    

    <author>dmarkle@ashtech.net (Daniel E. Markle)</author>
    <content:encoded>
    &lt;a href=&quot;http://springsource.org/&quot;&gt;Spring&lt;/a&gt;, my favorite Java application framework, doesn&#039;t provide an easy way to bind Spring-managed session beans to JSP pages. I have had success doing this by binding the bean to the request at creation time. When doing it this way, be sure to call the session bean somewhere in your dispatch servlet configuration or it will never be initialized when individual requests are created.&lt;br /&gt;
&lt;br /&gt;
Note that for most applications, session beans are better left as plain objects managed independently of Spring for less overhead and to keep them as simple as possible. Each of these is going to take up space for each user. However, I have found some cases where accessing Spring objects from within a session bean is desirable; if you have as well or curiosity prevails, details are below. &lt;br /&gt;&lt;a href=&quot;http://ashtech.net/~dmarkle/blog/archives/323-Spring-Session-Bind-to-JSP.html#extended&quot;&gt;Continue reading &quot;Spring Session Bind to JSP&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Fri, 04 Mar 2011 17:59:25 -0500</pubDate>
    <guid isPermaLink="false">http://ashtech.net/~dmarkle/blog/archives/323-guid.html</guid>
    
</item>
<item>
    <title>Perl Custom Date Parsing</title>
    <link>http://ashtech.net/~dmarkle/blog/archives/315-Perl-Custom-Date-Parsing.html</link>
            <category>Programming</category>
    
    <comments>http://ashtech.net/~dmarkle/blog/archives/315-Perl-Custom-Date-Parsing.html#comments</comments>
    <wfw:comment>http://ashtech.net/~dmarkle/blog/wfwcomment.php?cid=315</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://ashtech.net/~dmarkle/blog/rss.php?version=2.0&amp;type=comments&amp;cid=315</wfw:commentRss>
    

    <author>dmarkle@ashtech.net (Daniel E. Markle)</author>
    <content:encoded>
    I was recently asked how to do custom date parsing in &lt;a href=&quot;http://perl.org/&quot;&gt;Perl&lt;/a&gt;, specifically for a date in the format mmddyyyy. I work with dates frequently in Java, so I am familiar with &lt;a href=&quot;http://ashtech.net/~dmarkle/blog/archives/54-Java-Date-Manipulation-Annoyances.html#extended&quot;&gt;using SimpleDateFormat objects to parse dates&lt;/a&gt; in this manner. The Perl equivalent is Date::Manip::Date. &lt;br /&gt;&lt;a href=&quot;http://ashtech.net/~dmarkle/blog/archives/315-Perl-Custom-Date-Parsing.html#extended&quot;&gt;Continue reading &quot;Perl Custom Date Parsing&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Mon, 25 Oct 2010 17:37:22 -0400</pubDate>
    <guid isPermaLink="false">http://ashtech.net/~dmarkle/blog/archives/315-guid.html</guid>
    
</item>

</channel>
</rss>
