Hi,
I have corrected my jsp page, (not sure whether this is correct ) , and have
attached it below . But I have already initialized listbean in the action
class , whose code snippet im pasting below.
-----
private DomainBean listbean;
-------
public String addupDomain(){
String result= SUCCESS;
System.out.println("Inside AddDomain");
if(listbean!=null){
try {
if(DomainDAO.addupDomain(listbean)){
result= SUCCESS;
System.out.println("Adding a tuple");
}
else {
result=ERROR;
}
}
catch (Exception e) {
result= null;
listbean=null;
System.out.println("Adddomain isnt working.");
// TODO Auto-generated catch block
e.printStackTrace();
}
}
else{
result=INPUT;
}
//listDomain(dt_oid);
return result;
}
-------
public DomainBean getListbean() {
return listbean;
}
public void setListbean(DomainBean listbean) {
this.listbean = listbean;
}
The newjsp is attached .Please have a look.
http://old.nabble.com/file/p31113210/newjsp.txt newjsp.txt
Johannes Geppert wrote:
>
> I can't see any reference to the listbean property in your JSP.
> And also in the Action I can't see any initialization of listbean.
>
> Johannes
>
--
View this message in context:
http://old.nabble.com/Struts-2-Error%3ASEVERE%3A-Could-not-find-action-or-result-tp31112825p31113210.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]