Not able to run Spring MVC Web application after deploying on OpenShift Tomcat?

后端 未结 1 1144
小鲜肉
小鲜肉 2021-01-28 08:16

I like to know how to configure my spring mvc configuration xml file to get connected to openshift postgresql 9.2 database. I

相关标签:
1条回答
  • 2021-01-28 08:49

    Check your JSP file for missing or wrong attributes values inside the html tags.

    Spring MVC checks for well-formed html tags. If you missed fill any attributes or those attributes have wrong values, it won't run and will give you an error message related to JasperException.

    I recommend using the spring tag namespace when using forms:

    <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
    
    <form:input type="text" class="form-control" placeholder="Login" maxlength="10" size="10" path="" name="login"/>
    

    Eclipse in this case is very helpful because if something is wrong it will tell you.

    0 讨论(0)
提交回复
热议问题