Hi
CAn anyone of you tell me the reason for the following
error.
javax.servlet.ServletException: Cannot find bean
org.apache.struts.taglib.html.BEAN in any scope
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:867)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:800)
org.apache.jsp.jsp.index_jsp._jspService(index_jsp.java:84)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
On 7 Jun 2004 07:40:36 -, [EMAIL PROTECTED]
wrote:
Yahoo! Groups Sponsor
~--
Make a clean sweep of pop-up ads. Yahoo! Companion
Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/5cFolB/TM
~-
There are 14 messages in this issue.
Topics in this digest:
1. Re: Struts dyanmic master detail form
From: nikhil walvekar
[EMAIL PROTECTED]
2. Front Controller?
From: Chaikin, Yaakov Y (US SSA)
[EMAIL PROTECTED]
3. Re: Taglib: how do you call a method like
java.util.List.size() from the property of a tag?
From: Joe Germuska [EMAIL PROTECTED]
4. Re: Taglib: how do you call a method like
java.util.List.size() from the property of a tag?
From: Riyad Kalla [EMAIL PROTECTED]
5. Re: [Raw newbie] Struts/JSTL - A cople of
urgent question (Message resources)
From: Riyad Kalla [EMAIL PROTECTED]
6. Re: Front Controller?
From: Riyad Kalla [EMAIL PROTECTED]
7. Re: [Raw newbie] Struts/JSTL - A cople of
urgent question (Message resources)
From: Joe Germuska [EMAIL PROTECTED]
8. RE: [OT] EJB/Struts Design Question
From: Robert Taylor
[EMAIL PROTECTED]
9. html:link to anchor in same fil (gettin
action
name in .jsp)
From: [EMAIL PROTECTED]
10. file upload problem(illegal argument)
From: swarna [EMAIL PROTECTED]
11. Re: file upload problem(illegal argument)
From: atta-ur rehman
[EMAIL PROTECTED]
12. Re: the difference between struts with JSTL
tags and struts-el tags
From: [EMAIL PROTECTED]
13. RE: Reload Ressources on the fly
From: Sanoj, Antony (IE10)
[EMAIL PROTECTED]
14. RE: Multiple Databases.
From: Thiharie Rajesh
[EMAIL PROTECTED]
Message: 1
Date: Sun, 6 Jun 2004 11:06:03 +0100 (BST)
From: nikhil walvekar [EMAIL PROTECTED]
Subject: Re: Struts dyanmic master detail form
Hi Shoaib,
We have done such thing,
for client side u need to have addNew row javascript.
mapping those fields to form
what you can do is you can have arrays declared in
form
bean,
in your jsp
when you write
logic:iterate id=someId name=formBean
property=yourArray type=classOfObjectInArray
html:text name=someId
property=objectProperty/
instead of this now here you specifiy indexed=true
html:text indexed=true name=someId
property=objectProperty/
/logic:iterate
it will generate html code like (suppose you have got
two objects in array)
input type=text name=someId[0].objectProperty
input type=text name=someId[1].objectProperty
Now when you submit this form these fields are mapped
to respective objects in array.
This will solve your problem, now main code that you
have to write is javascript for adding row.
Now is this javascript you should increment index for
field like this, if you add one row to above list
(from
javascript) it should look like
input type=text name=someId[0].objectProperty
input type=text name=someId[1].objectProperty
input type=text name=someId[2].objectProperty
That javascript should be able to increment this id.
Instead of arrays you can also use arrayList but there
are some other things that you have to do , you can
try
this.
If you need some more help you can contact me.
[EMAIL PROTECTED] wrote:
Dear All,
we are trying to create a master detail form, where in
rows can be added
dynamically on the client side can any body please
tell
me how to do it.
We cant use arrays of objects of line items beacus its
size has to be
fixed.If we use Map we are not able to do the
validations.Please guide .
Regards
Shoaib