Re: Struts 1.1 migration

2003-07-25 Thread Vinit Sharma
Hello Siva
We can use  as a nested element to . This was working fine 
with Struts 1.0.2. The problem arised while I'm migrating to Struts 1.1
What I dont know is that whether we can use such a nested element with Struts 1.1 ?? 
You have any such info.
Vinit

Siva <[EMAIL PROTECTED]> wrote:
Dear Vinit,

I feel the set-property should be used with DynaActionForm. and the set property will 
be meaningless with your own action form. please make sure why you are using this 
set-property here.

Siva

Vinit Sharma wrote:

> Hello
> I'm using the DTD version as provided by Struts site for Struts 1.1. It is as 
> follows:
> > "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
> "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>
> Is there anything wrong with that??
> Vinit
>
> Siva wrote:
> Dea rVinit,
>
> Please use the propert dtd version corresponds to 1.1 (you can specify the dtd 
> available in SUN site.) I feel the peoblem is because of improper dtd reference..
>
> Siva
>
> Vinit Sharma wrote:
>
> > Hello
> > I'm migrating from Struts 1.0 to Struts 1.1. My old struts-config.xml file does 
> > not work properly here. I've defined a form bean as follows:
> >
> > > type="com.temp.user" >
> >
> >
> >
> > I got following error while I start my Weblogic server:
> >
> > javax.servlet.UnavailableException: Parsing error processing resource path
> > at 
> > org.apache.struts.action.ActionServlet.handleConfigException(ActionServlet.java:1035)
> > at 
> > org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:1014)
> > at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:955)
> > at org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
> > at javax.servlet.GenericServlet.init(GenericServlet.java:258)
> > at 
> > weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:713)
> > at 
> > weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:656)
> > at 
> > weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:601)
> > at 
> > weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:2272)
> > at 
> > weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:2216)
> > at weblogic.servlet.internal.HttpServer.preloadServlets(HttpServer.java:495)
> > at weblogic.servlet.internal.WebService.preloadServlets(WebService.java:450)
> > at weblogic.t3.srvr.ServletInitRunner.run(ServletInitRunner.java:49)
> > at java.lang.Thread.run(Thread.java:479)
> >
> >
> > Line no. 1035 in ActionServlet.java is:
> > throw new UnavailableException(internal.getMessage("configParse", paths));
> > and line no. 1014 in ActionServlet.java is inside a catch block of SAXException. I 
> > thought it is due to XML parsing error. May be because my weblogic server is using 
> > older version of JAXP, but Weblogic 6.1 use the version 1.1
> > If I remove the line for set-property, it works fine.
> > Can any body help me in that??
> > Thanks and regards.
> > Vinit
> >
> > -
> > Do you Yahoo!?
> > Yahoo! SiteBuilder - Free, easy-to-use web site design software
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software


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



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

Re: Struts 1.1 migration

2003-07-24 Thread Vinit Sharma
Hello
I'm using the DTD version as provided by Struts site for Struts 1.1. It is as follows:
http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>
Is there anything wrong with that??
Vinit

Siva <[EMAIL PROTECTED]> wrote:
Dea rVinit,

Please use the propert dtd version corresponds to 1.1 (you can specify the dtd 
available in SUN site.) I feel the peoblem is because of improper dtd reference..

Siva

Vinit Sharma wrote:

> Hello
> I'm migrating from Struts 1.0 to Struts 1.1. My old struts-config.xml file does not 
> work properly here. I've defined a form bean as follows:
>
> > type="com.temp.user" >
> 
> 
>
> I got following error while I start my Weblogic server:
>
> javax.servlet.UnavailableException: Parsing error processing resource path
> at 
> org.apache.struts.action.ActionServlet.handleConfigException(ActionServlet.java:1035)
> at 
> org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:1014)
> at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:955)
> at org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
> at javax.servlet.GenericServlet.init(GenericServlet.java:258)
> at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:713)
> at 
> weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:656)
> at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:601)
> at 
> weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:2272)
> at 
> weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:2216)
> at weblogic.servlet.internal.HttpServer.preloadServlets(HttpServer.java:495)
> at weblogic.servlet.internal.WebService.preloadServlets(WebService.java:450)
> at weblogic.t3.srvr.ServletInitRunner.run(ServletInitRunner.java:49)
> at java.lang.Thread.run(Thread.java:479)
>
>
> Line no. 1035 in ActionServlet.java is:
> throw new UnavailableException(internal.getMessage("configParse", paths));
> and line no. 1014 in ActionServlet.java is inside a catch block of SAXException. I 
> thought it is due to XML parsing error. May be because my weblogic server is using 
> older version of JAXP, but Weblogic 6.1 use the version 1.1
> If I remove the line for set-property, it works fine.
> Can any body help me in that??
> Thanks and regards.
> Vinit
>
> -
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software


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



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

Re:

2003-07-24 Thread Vinit Sharma
Watch out your method
public int getID()
It should be public int getiID() instead. This should work.
Regards

Prashant Samant <[EMAIL PROTECTED]> wrote:
Hello group,
I have a problem in using logic:iterate.
I have a following class

public class DataWrapper implements Serializable {
private int iID;
private String strDescription;

public int getID() {
return iID;
} // DataWrapper : getID

public void setiID(int iID) {
this.iID = iID;
} // DataWrapper : setiID

public String getDescription() {
return strDescription;
} // DataWrapper : getDescription

public void setDescription(String strDescription) {
this.strDescription = strDescription;
} // DataWrapper : setDescription
} // DataWrapper


In my ActionForm i am creating 5 objects of the above class and settting the values 
for iID
and strDescription.
After this i am putting this objects in a vector and this vector i am putting inside 
request 
object(saying request.setAttribute("vect",vector) ).

The ActionForm than calls a jsp page in which i want to populate a drop-down box
with the values of iId variable of the above bean.
I am trying to do something like this




if i execute the above code than i get the following error
No getter method for property iId of bean myObj

Pls Help .
Prashant S

MphasiS India 
IInd Floor, Leela Business Park,
Opp. 'The Leela'
Andheri Kurla Road,
Andheri (E), Mumbai. 
INDIA. 

www.mphasis.com 
Architecting Value
SEI Level 5 ISO 9001 

Information transmitted by this e-mail is proprietary to MphasiS and/ or its Customers 
and is intended for use only by the individual or entity to which it is addressed, and 
may contain information that is privileged, confidential or exempt from disclosure 
under applicable law. If you are not the intended recipient or it appears that this 
mail has been forwarded to you without proper authority, you are notified that any use 
or dissemination of this information in any manner is strictly prohibited. In such 
cases, please notify us immediately at [EMAIL PROTECTED] and delete this mail from 
your records.



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



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

Struts 1.1 migration

2003-07-24 Thread Vinit Sharma
Hello 
I'm migrating from Struts 1.0 to Struts 1.1. My old struts-config.xml file does not 
work properly here. I've defined a form bean as follows:
 
   
  
   

I got following error while I start my Weblogic server:
 
javax.servlet.UnavailableException: Parsing error processing resource path
at 
org.apache.struts.action.ActionServlet.handleConfigException(ActionServlet.java:1035)
at 
org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:1014)
at 
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:955)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at 
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:713)
at 
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:656)
at 
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:601)
at 
weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:2272)
at 
weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:2216)
at weblogic.servlet.internal.HttpServer.preloadServlets(HttpServer.java:495)
at weblogic.servlet.internal.WebService.preloadServlets(WebService.java:450)
at weblogic.t3.srvr.ServletInitRunner.run(ServletInitRunner.java:49)
at java.lang.Thread.run(Thread.java:479)
 
 
Line no. 1035 in ActionServlet.java is:
throw new UnavailableException(internal.getMessage("configParse", paths));
and line no. 1014 in ActionServlet.java is inside a catch block of SAXException. I 
thought it is due to XML parsing error. May be because my weblogic server is using 
older version of JAXP, but Weblogic 6.1 use the version 1.1
If I remove the line for set-property, it works fine.
Can any body help me in that??
Thanks and regards.
Vinit


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software