Thanks alot, it solved my problem
Jay

Puneet Lakhina wrote:
> 
> On 10/6/06, Jay <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hi, iam using struts with tmocat 5. my struts-cofig.xml is like this one
>>
>> <action
>> path="/user"
>> type="com.ufnasoft.cms.processaction.ProcessUser"
>> name="createFolder"
>>
>> scope="request">
>> <forward name="success" path="/users/newuser.jsp"/>
>> </action>
>>
>> and form bean tag is
>> <form-bean name="createFolder" type="com.ufnasoft.cms.CreateFolderForm"/>
>>
>> Action class is as following:
>>
>> CreateFolderForm folders = (CreateFolderForm) form;
>> File dir = new File("../users");
>> ArrayList dirList=new java.util.ArrayList();
>> String[] subdir = dir.list();
>> if (subdir == null) {
>> // Either dir does not exist or is not a directory
>> System.out.println("Either dir does not exist or is not a directory");
>> } else {
>> System.out.println("Gotcha!!");
>> for(int i=0; i<subdir.length; i++)
>> {
>> folders.setFolder(subdir);
>> dirList.add(subdir);
>> }
>> }
>>
>> request.setAttribute("dirList", dirList);
>> return mapping.findForward("success");
>>
>> and ActionForm is
>>
>> String folder;
>> String newFolder;
>> /**
>> * @return Returns the newFolder.
>> */
>> public String getNewFolder() {
>> return newFolder;
>> }
>> /**
>> * @param newFolder The newFolder to set.
>> */
>> public void setNewFolder(String newFolder) {
>> this.newFolder = newFolder;
>> }
>> /**
>> * @return Returns the folder.
>> */
>> public String getFolder() {
>> return folder;
>> }
>> /**
>> * @param folder The folder to set.
>> */
>> public void setFolder(String folder) {
>> this.folder = folder;
>> }
>>
>> from here problem starts, in my jsp file i try to get the values in
>> select
>> tag as
>> <html:select property="folder">
> 
> 
> The above line is what is causing the problem. Its not able to find a
> getter
> method for this folder property. Check whether you have the proper action
> in
> your <html:form> tag.
> 
> <html:options name="dirList"/>
>> </html:select>
>>
>> but i get the error, as following
>> 2006-10-06 15:42:49 StandardWrapperValve[action]: Servlet.service() for
>> servlet action threw exception
>> javax.servlet.jsp.JspException: No getter method available for property
>> folder for bean under name org.apache.struts.taglib.html.BEAN
>> at
>> org.apache.struts.taglib.html.SelectTag.calculateMatchValues(
>> SelectTag.java:285)
>> at org.apache.struts.taglib.html.SelectTag.doStartTag(SelectTag.java:202)
>> at
>> org.apache.jsp.users.newuser_jsp._jspx_meth_html_select_0
>> (newuser_jsp.java:177)
>> at
>> org.apache.jsp.users.newuser_jsp._jspx_meth_html_form_0
>> (newuser_jsp.java:144)
>> at
>> org.apache.jsp.users.newuser_jsp._jspx_meth_html_html_0
>> (newuser_jsp.java:109)
>> at org.apache.jsp.users.newuser_jsp._jspService(newuser_jsp.java:74)
>> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>> at
>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java
>> :324)
>> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java
>> :292)
>> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
>> ApplicationFilterChain.java:237)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(
>> ApplicationFilterChain.java:157)
>> at
>> org.apache.catalina.core.ApplicationDispatcher.invoke(
>> ApplicationDispatcher.java:704)
>> at
>> org.apache.catalina.core.ApplicationDispatcher.processRequest(
>> ApplicationDispatcher.java:474)
>> at
>> org.apache.catalina.core.ApplicationDispatcher.doForward(
>> ApplicationDispatcher.java:409)
>> at
>> org.apache.catalina.core.ApplicationDispatcher.forward(
>> ApplicationDispatcher.java:312)
>> at
>> org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java
>> :1056)
>> at
>> org.apache.struts.tiles.TilesRequestProcessor.doForward(
>> TilesRequestProcessor.java:261)
>> at
>> org.apache.struts.action.RequestProcessor.processForwardConfig(
>> RequestProcessor.java:388)
>> at
>> org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(
>> TilesRequestProcessor.java:316)
>> at
>> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java
>> :231)
>> at
>> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
>> at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>>
>> plz help me to get out of this
>> --
>> View this message in context:
>> http://www.nabble.com/problem-in-%3Chtml%3Aoptions%3E-tf2394751.html#a6677038
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> Puneet
> 
> 

-- 
View this message in context: 
http://www.nabble.com/problem-in-%3Chtml%3Aoptions%3E-tf2394751.html#a6679971
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to