<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to call a servlet from a jsp form in Windchill Customization</title>
    <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-call-a-servlet-from-a-jsp-form/m-p/824193#M2750</link>
    <description>&lt;P&gt;Hello &lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/241117"&gt;@HelesicPetr&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;thank you for your reply.&lt;/P&gt;&lt;P&gt;It is actually working now, with&amp;nbsp; &amp;lt;input type="submit" /&amp;gt; but also with &amp;lt;button type="submit" /&amp;gt;&lt;/P&gt;&lt;P&gt;Looks like there was something else wrong.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 08:37:35 GMT</pubDate>
    <dc:creator>TG_10272716</dc:creator>
    <dc:date>2022-09-16T08:37:35Z</dc:date>
    <item>
      <title>How to call a servlet from a jsp form</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-call-a-servlet-from-a-jsp-form/m-p/824148#M2748</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know there is already a similar topic but it seems like this does not work in newer versions anymore. I am trying to call a Servlet from a custom jsp in Windchill 12.0.2.1.&lt;/P&gt;&lt;P&gt;The serlets url is &amp;lt;server&amp;gt;/Windchill/servlet/MyExportServlet. The servlet works fine when I paste this url in the browser.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am generating the url in the jsp like you can see blow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;        &amp;lt;%
            String cb = WTProperties.getLocalProperties().getProperty("wt.server.codebase");

            String action = cb + "/servlet/MyExportServlet";
        %&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then there is a form in the jsp that is supposed to call the servlet&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;form action="&amp;lt;%=action%&amp;gt;"&amp;gt;

....inputs

&amp;lt;button type="submit"&amp;gt;Submit&amp;lt;/button&amp;gt;

&amp;lt;/form&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However when pressing submit the page seems to be reloading and the servlet is not called. There is no error or anything else.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know how to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 14:07:32 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-call-a-servlet-from-a-jsp-form/m-p/824148#M2748</guid>
      <dc:creator>TG_10272716</dc:creator>
      <dc:date>2024-03-15T14:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a servlet from a jsp form</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-call-a-servlet-from-a-jsp-form/m-p/824160#M2749</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/557258"&gt;@TG_10272716&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I guess that it should works.&lt;/P&gt;
&lt;P&gt;try to use but it is same &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;&amp;lt;input &lt;/SPAN&gt;&lt;SPAN&gt;type&lt;/SPAN&gt;&lt;SPAN&gt;="submit" &lt;/SPAN&gt;&lt;SPAN&gt;value&lt;/SPAN&gt;&lt;SPAN&gt;=" Submit "&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;PetrH&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 06:49:21 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-call-a-servlet-from-a-jsp-form/m-p/824160#M2749</guid>
      <dc:creator>HelesicPetr</dc:creator>
      <dc:date>2022-09-16T06:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a servlet from a jsp form</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-call-a-servlet-from-a-jsp-form/m-p/824193#M2750</link>
      <description>&lt;P&gt;Hello &lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/241117"&gt;@HelesicPetr&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;thank you for your reply.&lt;/P&gt;&lt;P&gt;It is actually working now, with&amp;nbsp; &amp;lt;input type="submit" /&amp;gt; but also with &amp;lt;button type="submit" /&amp;gt;&lt;/P&gt;&lt;P&gt;Looks like there was something else wrong.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 08:37:35 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-call-a-servlet-from-a-jsp-form/m-p/824193#M2750</guid>
      <dc:creator>TG_10272716</dc:creator>
      <dc:date>2022-09-16T08:37:35Z</dc:date>
    </item>
  </channel>
</rss>

