• Post Reply Bookmark Topic Watch Topic
  • New Topic

Invalid property in <set>:  RSS feed

 
raji toor
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi i am using netbeans 5.5.1. I am getting this error
Invalid property in <set>:
don't know why. In my JSP the code is

<form action="Saved.jsp" method="POST">
<jsp:useBean id="pmap" scope="request" class="com.test.util.SaveData" />
<c:set target="${pmap}" property="setIP" value="${param.subnet1}"/>

and the code of my SaveData class is this

package com.test.util;
import java.io.*;
import java.util.*;

public class SaveData implements Serializable{
TreeMap dataMap = new TreeMap();
int ip1;
/** Creates a new instance of SaveData */
public SaveData() {
}
public void setIP(int ip1){
this.ip1=ip1;
}
public int getIP(){
return ip1;
}
public void setData(Map m){

}
}

I have even tried changing int to String. please help
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The property must follow JavaBeans naming rules.

So your setter should be: setIp() and the property name will be ip.
 
raji toor
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks a lot i had spent 2 hours but wasn't able to figure what couls have been the problem
 
raji toor
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
may be related to this. i get this error on opening my jsp in browser
i am using this code for viewing this jspand the following class im usigcan you tell me whats going wrong
[ June 19, 2007: Message edited by: raji toor ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!