是否可以通过单击 <spring:message> 来提交隐藏的输入?

It is possible to submit a hidden input by clicking on <spring:message>?

我想是这样的,但我不想使用按钮提交,我会通过单击 spring 消息来提交。这有可能吗?

  <spring:url value="/admin/messages" var="messagesUrl" htmlEscape="true"/> 
    <form action="${messagesUrl}" method="POST" class="new-message">
        <input type="hidden" name="messageFromDashboard" value="true">
        <spring:message code="${newMessage}">
        <input type="submit" value="submit"></spring:message>
    </form> 

也许this will be helpful. Why you don't want to use submit button? If you just wanted to look it like a label/link just use css similar to http://jsfiddle.net/adardesign/5vHGc/

Html:

<button> your button that looks like a link</button>

Css:

button {
    background:none!important;
     border:none; 
     padding:0!important;

    /*optional*/
    font-family:arial,sans-serif; /*input has OS specific font-family*/
     color:#069;
     text-decoration:underline;
     cursor:pointer;
}