ken bonzo

Greenhorn
+ Follow
since Oct 11, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by ken bonzo

Hi

I am getting this error message when using struts validation framework : No form found under 'testbean' in locale 'en_US'. A form must be defined in the Commons Validator configuration when dynamicJavascript="true" is set.

I wonder what causes this error?

Thanks
16 years ago
Thanks

I am using struts 1.3.8 as you suggested

When I run the following form.jsp :

<%@ page language="java"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<html:html>
<head>
<title>Struts Example</title>
</head>
<body bgcolor="pink">
<h1>Struts tutorial</h1>
<hr>
<html:form action="WebClient.jsp">
<p>Enter Text value
<html:text property="firstname"/>
<html:submit property="method" value="Submit"/>
</p>
</html:form>
</body>
</html:html>

I am getting the following error :


org.apache.jasper.JasperException: java.lang.NullPointerException: Module 'null' not found.
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:521)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:415)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

root cause

java.lang.NullPointerException: Module 'null' not found.
org.apache.struts.taglib.TagUtils.getModuleConfig(TagUtils.java:755)
org.apache.struts.taglib.TagUtils.getModuleConfig(TagUtils.java:735)
org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:796)
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:467)
org.apache.jsp.form_jsp._jspx_meth_html_005fform_005f0(form_jsp.java:130)
org.apache.jsp.form_jsp._jspx_meth_html_005fhtml_005f0(form_jsp.java:103)
org.apache.jsp.form_jsp._jspService(form_jsp.java:70)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

note The full stack trace of the root cause is available in the JBossWeb/2.0.1.GA logs.
JBossWeb/2.0.1.GA

Any idea on how to fix this issue
Thanks!
16 years ago
Do you mean that the tld files are included in the jar files within the lib directory?

If in a jsp file I refer to a tld file this way : "<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>" :
- Should not I put the struts-logic.tld file under the WEB-INF directory?
- If the tld files are included within the jar files (under the lib directory), How Should I refer them from the jsp file ?

Thanks
16 years ago
Thanks!

I am following a tutorial which asked to put the *.tld files in the WEB-INF directory. in this case which jar file should I put in the WEB-INF directory

Thanks!
16 years ago
Hi

I am looking for struts tld files.
I could not find the files with the explicit extension "tld"
Could you please let me know about the site where I can get them from.

Thanks
16 years ago
Hi

do we have to recover the InterruptedException?
I do not call the interrupt method at all

Regards
Hi

do I have to recover the InterruptedException? I do not call the interrupt method at all

Regards
Congratulations Robert

How did you recover the InterruptedException?
do we have to? I do not call the Interrupt method at all

Regards
17 years ago
Congratulations Alles

How did you recover the InterruptedException, do we have to?

Regards
17 years ago
Hi Cindi,



I am close to submit, I want to review the way I implemented the booking method:

I do have these requirements :

-"They take bookings only within 48 hours of the start of room occupancy"

-The field owner (customer) is described as follows "If this field is all blanks, the record is available for sale"

- date field has the following description : "Date available : The single night to which this record relates, format is yyyy/mm/dd."

1- which parameters do you provide when booking the room?

I povide the booking date and the duration (which the number of nights the room is booked for) - the date field will be the booking date increased by the duration. I wonder if I am providing more parameters than required?

2- I am getting confused about the role of the owner and date fields, In my implementation the booking request is accepted If (date is today and owner is empty) or (date is tomorrow and owner is empty) or (date is after tomorrow and owner is empty). am I wrong?

3- If available date is yesterday and owner is not empty, do we allow the room to be booked? (it is available but owner is not empty!)

5- If date is after today +48 hours and the owner is empty, do we allow the room to be booked. (it is beyond the scope of 48 hours but not affected to any one!)

Regards
Hi

I am close to submit, I want to review the way I implemented the booking method:

I do have these requirements :

-"They take bookings only within 48 hours of the start of room occupancy"

-The field owner (customer) is described as follows "If this field is all blanks, the record is available for sale"

- date field has the following description : "Date available : The single night to which this record relates, format is yyyy/mm/dd."

1- which parameters do you provide when booking the room?

I povide the booking date and the duration (which the number of nights the room is booked for) - the date field will be the booking date increased by the duration. I wonder if I am providing more parameters than required?

2- I am getting confused about the role of the owner and date fields, In my implementation the booking request is accepted If (date is today and owner is empty) or (date is tomorrow and owner is empty) or (date is after tomorrow and owner is empty). am I wrong?

3- If available date is yesterday and owner is not empty, do we allow the room to be booked? (it is available but owner is not empty!)

5- If date is after today +48 hours and the owner is empty, do we allow the room to be booked. (it is beyond the scope of 48 hours but not affected to any one!)

Please help

Best Regards