aspose file tools*
The moose likes JSP and the fly likes Unknown Error in JSTL I guess. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Unknown Error in JSTL I guess." Watch "Unknown Error in JSTL I guess." New topic
Author

Unknown Error in JSTL I guess.

Philip Zac
Ranch Hand

Joined: Apr 27, 2008
Posts: 66
I got this error. I was trying to save email. but the Database shows Null..
What does this error means???


ERROR [btpool0-1] ParametersInterceptor.setParameters(204) | ParametersInterceptor - [setParameters]: Unexpected Exception caught setting 'webAgent.email_id' on 'class com.trailsindia.webreservation.webapp.action.WebAgentAction: Error setting expression 'webAgent.email_id' with value '[Ljava.lang.String;@101bb2c'

Thanks
Philip
sudhir nim
Ranch Hand

Joined: Aug 29, 2007
Posts: 212

Do you have corresponding getter and setter in class ?


[Servlet tutorial] [Servlet 3.0 Cook Book]
Philip Zac
Ranch Hand

Joined: Apr 27, 2008
Posts: 66
I have the getter and setter in the model class.

Even if I put the getter and setter in the Action class.

the result will be the same.

Thanks
philip
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

on 'class com.trailsindia.webreservation.webapp.action.WebAgentAction:


This doesn't look like a JSTL error to me.
Look at the WebAgentAction class to see what it's expecting.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Philip Zac
Ranch Hand

Joined: Apr 27, 2008
Posts: 66
Hello all,
this is the WebAgentAction class. i dont see any error with it. There is a getter and setter for email in the WebAgent class. So I do not know what is wrong with it. Even if I tried to save the email address using the JSTL save button. there is a Null in the database for email. So it's pretty confusing...



public class WebAgentAction extends BaseAction {

private GenericManager<WebAgent, Long> webAgentManager;
private List webAgents;
private WebAgent webAgent;
private Long id;




public void setWebAgentManager(GenericManager<WebAgent, Long> webAgentManager) {
this.webAgentManager = webAgentManager;
}

public List getWebAgents() {
return webAgents;
}

public String list() {
webAgents = webAgentManager.getAll();
return SUCCESS;
}


public void setId(Long id) {
this.id = id;
}


public WebAgent getWebAgent() {
return webAgent;
}

public void setWebAgent(WebAgent webAgent) {
this.webAgent = webAgent;
}





public String delete() {
webAgentManager.remove(webAgent.getId());
saveMessage(getText("webAgent.deleted"));

return SUCCESS;
}

public String edit() {
if (id != null) {
webAgent = webAgentManager.get(id);
} else {
webAgent = new WebAgent();
}

return SUCCESS;
}

public String save() throws Exception {
if (cancel != null) {
return "cancel";
}

if (delete != null) {
return delete();
}

boolean isNew = (webAgent.getId() == null);

webAgent = webAgentManager.save(webAgent);
log.debug("1111111111111111111111111111" + webAgent);

String key = (isNew) ? "webAgent.added" : "webAgent.updated";
saveMessage(getText(key));

if (!isNew) {
return INPUT;
} else {
return SUCCESS;
}
}


}


anyway, Thanks.
Philip
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61434
    
  67

Please be sure to use UBB code tags when posting code to the forums. Unformatted code is extermely hard to read and many people that might be able to help you will just move along. Please read this for more information.

You can go back and change your post to add code tags by clicking the .


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unknown Error in JSTL I guess.