Quantcast
Channel: Adobe Community : Popular Discussions - CQ5 (read only)
Viewing all articles
Browse latest Browse all 12476

Syntax for a form posting to a post handler

$
0
0

So I have a component with a component JSP that contains :

 

<form id="flagMessage" name="flagMessage" method="POST" action="/post.POST.html">

   <input type="textarea" name="reason" rows="4" cols="50"/><br>

   <input type="submit" value="Submit"/>

   <input type="button" value="Cancel" onclick="$CQ('#<%=id%>-flag-form').toggle()"/>

</form>

 

then I have a post handler in the component at /actions/post.POST.jsp

 

I end up getting a 500 where it complains about the property reason, referring to my textarea. A log statement in my handler never gets written to the log. I haven't had to do something like this in a long time and I know its something small that I am missing, but I couldn't put my finger on it.


Viewing all articles
Browse latest Browse all 12476

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>