English 中文(简体)
Problem with Stripes submit
原标题:

I m currently experiencing a problem with submit button in Stripes. It completely ignores event, that it should call. Actionbean is working on links with no problems... Im stuck on that for like 3 hours.

event in actionbean

@HandlesEvent("addc")
public Resolution addc() {
    log.debug("addc() contract={}", contract);
    contractFacade.create(contract);
    return new RedirectResolution(this.getClass(), "all");
}

jsp:

<s:form beanclass="actionbean.ContractsActionBean">
    <%@include file="forms/formContractDetails.jsp"%>

    <ul>
    <li><s:submit name="addc" class="submit" title="">Add C</s:submit></li>
    <li><s:link href="/all">Cancel</s:link></li>
    </ul>
</s:form>
最佳回答

Actionbean was @UrlBind-ed on {$event}, changed it to /ab/{$event} and it works now. Probably some interference with index.jsp or something. This is the kind of stuff that will kill me some day. Whole day lost over 4 chars. Hope it will help someone else at least.

问题回答

暂无回答




相关问题
Force clear EJB3 cache in Glassfish

I have application written in Java that is using EJB3 + Toplink. I m using Glassfish as my app. server. Sometimes the data that has been cached is old and I need to clear my cache manually. I know ...

Which Maven GlassFish plugin to use?

I ve been trying to integrate deploying java .war s in GlassFish V3 through Maven. While I have found a few plugins, none of them look to be very active: Maven Glassfish Plugin Eskato s Wordpress ...

is it good to catch error in DAO?

public boolean checkInd() { int dis_ind = 2; HashMap parmMap = new HashMap(); //line below can generate errors getSqlMapClientTemplate().queryForList("authentication.checkInd", parmMap)...

Turn off TRACE in GlassFish v2

I need to turn off TRACE to help close XST security vulnerabilities. I ve been looking, nothing obvious so far. Any help?

Glassfish in a production environment?

Do you use Glassfish 2 or v3 in a production environment? Do you find it robust? Have you ever been able to find a complete set of documentation? What do you do when you find that Glassfish ignores ...

热门标签