RE: struts-config.xml-Is there a tool to find errors in it?

2001-12-19 Thread Jeff Martin

What kind of error do you mean? Does it parse and validate against the provided DTD?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 2:14 AM
To: Struts Users Mailing List
Subject: struts-config.xml-Is there a tool to find errors in it?


Hi

I have an error with my struts-config.xml file and I cannot find where 
the error is.  Is there a tool which will help me track down where the 
error is, the messages in the tomcat log files are not very helpful in 
tracking down the error.

Cheers

Tony



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Help with bean:write\bean:define whn property requires an argumen t

2001-12-19 Thread Andras Balogh

Hi,

I don't know if what you are trying to do can de done without a scriptet
code.
If you don't care about using scriptlet you could write something like:


<%=customerResults.banks(bankCode)%>

Best wishes,

Andras.


> -Original Message-
> From: Strichartz, Beth [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 18, 2001 3:41 PM
> To: [EMAIL PROTECTED]
> Subject: Help with bean:write\bean:define whn property requires an
> argumen t
> 
> 
> Hi,
> 
> I need to call a method in my Formbean that returns an object but, requires
> a string as an argument
> 
> For example:
> 
>   
> 
>filter="true"/>
> 
> 
> How can I pass arguments ?? or cant I?
> 
> Thanks...please help



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Two Struts Research Questions...

2001-12-19 Thread ejf

let me take your second question first:
i used I18N tags on tomcat 1.3 they worked well and as i changed my 
languages preferances on my browese to test them, all worked well.
i then tried the same on orion - i spent about 6 hours trying to figure 
out why the page would appear without error but appeared blank - i had 
to seperate the I18N tags at least one space away from any other tag or 
figure!! wild little time waster...

as for your first question - one servlet can handle say a 'load' AND 
'save' function and direct the response back to whatever type of page 
you want visible and it can do it pretty well. use a command pattern to 
organize the presentation and you got it.
i don't know how it'd compare with struts though. (i have a meager 
example of such a command pattern around here some where - otherwise i'd 
sent it to you)

hope that helps

john f





[EMAIL PROTECTED] wrote:

>
>I have asked several questions in preparation for a Struts demo this week, so
>here is another two.
>
>Question one:
>Our current app uses "non visual' JSP files to act as our actions.   As with
>struts actions, we only access the pages through these files.  Each page will
>have a 'load' and upon submit will pass through a 'save' and then onto the
>actual desired action.  This structure has proven difficult to work with and
>maintain but has kept the control logic away from the HTML(thus my desire for
>struts).
>Most of these files do not do too much other call an EJB to load or save.I
>will be making the case that because these files are servlets and that Struts
>keeps the Action Class instances  cached, the required resources be less with
>struts.
>
>Can anyone provide me with a Resource/Performance contrast between a struts
>action class and a servlet (doing the same work). It seems logical that
>forwarding between several servlets will be slower that chaining action classes,
>but I would like something to tell the group.
>
>Question Two:
> One of my main selling points is internationalization.  So there will be
>alot of tags in the pages.  I have seen what seems to be differing opinions in
>the archive regarding the tags.
>I understand that the tag classes themselves may be cached (by the container) as
>well to improve performance. I also understand that a page built with a bunch of
>tags as opposed to a static text page will load a bit slower.  I have seen posts
>of people claiming that they have taken a huge hit from alot of message tags.
>
>So my question is..Should I be concerned about the number of tags in my I18N
>app?
>
>We are using WLS 5.1 and probably end with 6.x in the new year( if this means
>anything).
>
>Thanks everyone.
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: struts-config.xml-Is there a tool to find errors in it?

2001-12-19 Thread antony

Here is the part of the debug log which shows the error

---start tomcat log--
[snip]
resolveEntity('-//Apache Software Foundation//DTD Struts Configuration 
1.0//EN', 'http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd')
  Resolving to alternate DTD 
'jar:file:/var/tomcat4/webapps/sturdy/WEB-INF/lib/struts.jar!/org/apache/struts/resources/struts-config_1_0.dtd'
New org.apache.struts.action.ActionFormBean
Set org.apache.struts.action.ActionFormBean properties
Begin event threw exception
java.lang.IllegalArgumentException: object is not an instance of 
declaring class
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28)
at java.lang.reflect.Method.invoke(Method.java:327)
at 
org.apache.struts.util.PropertyUtils.setSimpleProperty(PropertyUtils.java:988)
at 
org.apache.struts.util.PropertyUtils.setNestedProperty(PropertyUtils.java:904)
at org.apache.struts.util.PropertyUtils.setProperty(PropertyUtils.java:932)
at org.apache.struts.util.BeanUtils.populate(BeanUtils.java:509)
at 
org.apache.struts.digester.SetPropertiesRule.begin(SetPropertiesRule.java:120)
at org.apache.struts.digester.Digester.startElement(Digester.java:528)
at 
org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.java:329)
at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
at 
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1214)
at 
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1806)
at 
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1182)
at 
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:316)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:91)
at org.apache.struts.digester.Digester.parse(Digester.java:755)
at 
org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1331)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:465)
at javax.servlet.GenericServlet.init(GenericServlet.java)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java)
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java)
at org.apache.catalina.core.StandardContext.start(StandardContext.java)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java)
at org.apache.catalina.core.StandardHost.install(StandardHost.java)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java)
at org.apache.catalina.core.StandardHost.start(StandardHost.java)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java)
at org.apache.catalina.core.StandardService.start(StandardService.java)
at org.apache.catalina.core.StandardServer.start(StandardServer.java)
at org.apache.catalina.startup.Catalina.start(Catalina.java)
at org.apache.catalina.startup.Catalina.execute(Catalina.java)
at org.apache.catalina.startup.Catalina.process(Catalina.java)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28)
at java.lang.reflect.Method.invoke(Method.java:327)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java)
Starting service Tomcat-Apache
Apache Tomcat/4.0.1
-end tomcat log--




Jeff Martin wrote:

> What kind of error do you mean? Does it parse and validate against the provided DTD?
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, December 19, 2001 2:14 AM
> To: Struts Users Mailing List
> Subject: struts-config.xml-Is there a tool to find errors in it?
> 
> 
> Hi
> 
> I have an error with my strut

Re: struts-config.xml-Is there a tool to find errors in it?

2001-12-19 Thread ejf

try this link. it might help.

Struts Console version 1.2 is now available.

http://www.jamesholmes.com/struts/
http://www.jamesholmes.com/struts/struts-console-1.2.zip





[EMAIL PROTECTED] wrote:

> Hi
>
> I have an error with my struts-config.xml file and I cannot find where 
> the error is.  Is there a tool which will help me track down where the 
> error is, the messages in the tomcat log files are not very helpful in 
> tracking down the error.
>
> Cheers
>
> Tony
>
>
>
> -- 
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
>
>
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Help - new struts user questions

2001-12-19 Thread Tony Ziolkowski

I am planning to use struts in a Jetty environment and am just starting to
play with jetty. There's some things I don't understand. The installation
documentation refers to my 'web application'. Is that the jetty application?
If it is, the installation guide refers to copying files into the web
application WEB-INF/lib directory. The jetty installation doesn't have such
a directory.

I have just copied the .war files into a struts directory and modified the
demo.xml files as documented. How do I access the struts stuff contained in
those .war files?


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: struts-config.xml-Is there a tool to find errors in it?

2001-12-19 Thread Tuomo Syvänperä

Hi Antony,
Are you using Sun's JDK 1.4 beta.. I got the same 'object is not an 
instance of declaring class' - error when I used JDK 1.4.
Try switching to 1.3

/tuomo

[EMAIL PROTECTED] wrote:

> Here is the part of the debug log which shows the error
> 
> ---start tomcat log--
> [snip]
> resolveEntity('-//Apache Software Foundation//DTD Struts Configuration 
> 1.0//EN', 'http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd')
>  Resolving to alternate DTD 
> 
>'jar:file:/var/tomcat4/webapps/sturdy/WEB-INF/lib/struts.jar!/org/apache/struts/resources/struts-config_1_0.dtd'
> 
> 
> New org.apache.struts.action.ActionFormBean
> Set org.apache.struts.action.ActionFormBean properties
> Begin event threw exception
> java.lang.IllegalArgumentException: object is not an instance of 
> declaring class
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42) 
> 
> at 
> 
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28) 
> 
> at java.lang.reflect.Method.invoke(Method.java:327)
> at 
> org.apache.struts.util.PropertyUtils.setSimpleProperty(PropertyUtils.java:988) 
> 
> at 
> org.apache.struts.util.PropertyUtils.setNestedProperty(PropertyUtils.java:904) 
> 
> at 
> org.apache.struts.util.PropertyUtils.setProperty(PropertyUtils.java:932)
> at org.apache.struts.util.BeanUtils.populate(BeanUtils.java:509)
> at 
> org.apache.struts.digester.SetPropertiesRule.begin(SetPropertiesRule.java:120) 
> 
> at org.apache.struts.digester.Digester.startElement(Digester.java:528)
> at 
> org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.java:329) 
> 
> at 
> org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
> at 
> 
>org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1214)
> 
> 
> at 
> 
>org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1806)
> 
> 
> at 
> 
>org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1182)
> 
> 
> at 
> 
>org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381) 
> 
> at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
> at 
> org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
> at javax.xml.parsers.SAXParser.parse(SAXParser.java:316)
> at javax.xml.parsers.SAXParser.parse(SAXParser.java:91)
> at org.apache.struts.digester.Digester.parse(Digester.java:755)
> at 
> org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1331)
> at org.apache.struts.action.ActionServlet.init(ActionServlet.java:465)
> at javax.servlet.GenericServlet.init(GenericServlet.java)
> at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java)
> at 
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java) 
> 
> at org.apache.catalina.core.StandardContext.start(StandardContext.java)
> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java)
> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java)
> at org.apache.catalina.core.StandardHost.install(StandardHost.java)
> at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java)
> at org.apache.catalina.startup.HostConfig.start(HostConfig.java)
> at 
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java)
> at 
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java) 
> 
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java)
> at org.apache.catalina.core.StandardHost.start(StandardHost.java)
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java)
> at org.apache.catalina.core.StandardEngine.start(StandardEngine.java)
> at org.apache.catalina.core.StandardService.start(StandardService.java)
> at org.apache.catalina.core.StandardServer.start(StandardServer.java)
> at org.apache.catalina.startup.Catalina.start(Catalina.java)
> at org.apache.catalina.startup.Catalina.execute(Catalina.java)
> at org.apache.catalina.startup.Catalina.process(Catalina.java)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42) 
> 
> at 
> 
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28) 
> 
> at java.lang.reflect.Method.invoke(Method.java:327)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java)
> Starting service Tomcat-Apache
> Apache Tomcat/4.0.1
> -end tomcat log--
> 
> 
> 
> 
> Jeff Martin wrote:
> 
>> What kind of error do you mean? Does it parse and validate against the 
>> provided DTD?
>>
>

Re: struts-config.xml-Is there a tool to find errors in it?

2001-12-19 Thread antony

Can I use this without using an IDE?

ejf wrote:

> try this link. it might help.
> 
> Struts Console version 1.2 is now available.
> 
> http://www.jamesholmes.com/struts/
> http://www.jamesholmes.com/struts/struts-console-1.2.zip
> 
> 
> 
> 
> 
> [EMAIL PROTECTED] wrote:
> 
>> Hi
>>
>> I have an error with my struts-config.xml file and I cannot find where 
>> the error is.  Is there a tool which will help me track down where the 
>> error is, the messages in the tomcat log files are not very helpful in 
>> tracking down the error.
>>




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: struts-config.xml-Is there a tool to find errors in it?

2001-12-19 Thread antony

Yes I am using 1.4beta.  But an almost identical webapp works with 
1.4beta.  Strange I say.



Tuomo Syvänperä wrote:

> Hi Antony,
> Are you using Sun's JDK 1.4 beta.. I got the same 'object is not an 
> instance of declaring class' - error when I used JDK 1.4.
> Try switching to 1.3
> 
> /tuomo
> 
> [EMAIL PROTECTED] wrote:
> 
>> Here is the part of the debug log which shows the error
>>
>> ---start tomcat log--
>> [snip]
>> resolveEntity('-//Apache Software Foundation//DTD Struts Configuration 
>> 1.0//EN', 'http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd')
>>  Resolving to alternate DTD 
>> 
>'jar:file:/var/tomcat4/webapps/sturdy/WEB-INF/lib/struts.jar!/org/apache/struts/resources/struts-config_1_0.dtd'
> 
>>
>> New org.apache.struts.action.ActionFormBean
>> Set org.apache.struts.action.ActionFormBean properties
>> Begin event threw exception
>> java.lang.IllegalArgumentException: object is not an instance of 
>> declaring class
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42) 
>>
>> at 
>> 
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28) 
>>
>> at java.lang.reflect.Method.invoke(Method.java:327)
>> at 
>> org.apache.struts.util.PropertyUtils.setSimpleProperty(PropertyUtils.java:988) 
>>
>> at 
>> org.apache.struts.util.PropertyUtils.setNestedProperty(PropertyUtils.java:904) 
>>
>> at 
>> org.apache.struts.util.PropertyUtils.setProperty(PropertyUtils.java:932)
>> at org.apache.struts.util.BeanUtils.populate(BeanUtils.java:509)
>> at 
>> org.apache.struts.digester.SetPropertiesRule.begin(SetPropertiesRule.java:120) 
>>
>> at 
>> org.apache.struts.digester.Digester.startElement(Digester.java:528)
>> at 
>> org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.java:329) 
>>
>> at 
>> org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
>> at 
>> 
>org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1214)
> 
>>
>> at 
>> 
>org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1806)
> 
>>
>> at 
>> 
>org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1182)
> 
>>
>> at 
>> 
>org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381) 
>>
>> at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
>> at 
>> org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
>> at javax.xml.parsers.SAXParser.parse(SAXParser.java:316)
>> at javax.xml.parsers.SAXParser.parse(SAXParser.java:91)
>> at org.apache.struts.digester.Digester.parse(Digester.java:755)
>> at 
>> org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1331) 
>>
>> at 
>> org.apache.struts.action.ActionServlet.init(ActionServlet.java:465)
>> at javax.servlet.GenericServlet.init(GenericServlet.java)
>> at 
>> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java)
>> at 
>> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java) 
>>
>> at 
>> org.apache.catalina.core.StandardContext.start(StandardContext.java)
>> at 
>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java)
>> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java)
>> at org.apache.catalina.core.StandardHost.install(StandardHost.java)
>> at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java)
>> at org.apache.catalina.startup.HostConfig.start(HostConfig.java)
>> at 
>> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java)
>> at 
>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java) 
>>
>> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java)
>> at org.apache.catalina.core.StandardHost.start(StandardHost.java)
>> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java)
>> at org.apache.catalina.core.StandardEngine.start(StandardEngine.java)
>> at 
>> org.apache.catalina.core.StandardService.start(StandardService.java)
>> at org.apache.catalina.core.StandardServer.start(StandardServer.java)
>> at org.apache.catalina.startup.Catalina.start(Catalina.java)
>> at org.apache.catalina.startup.Catalina.execute(Catalina.java)
>> at org.apache.catalina.startup.Catalina.process(Catalina.java)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42) 
>>
>> at 
>> 
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28) 
>>
>> at java.lang.reflect.Method.invoke(Method.java:327)
>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java)
>>

Re: struts-config.xml-Is there a tool to find errors in it?

2001-12-19 Thread Tuomo Syvänperä

The problem only came up occasionally. If I had two webapps and I 
started the servlet container and accessed one of them, it works fine. 
If after that I try to access the other one, it gives the error below.
Everything has worked fine since I switched back to 1.3 JDK.

/tuomo

[EMAIL PROTECTED] wrote:

> Yes I am using 1.4beta.  But an almost identical webapp works with 
> 1.4beta.  Strange I say.
> 
> 
> 
> Tuomo Syvänperä wrote:
> 
>> Hi Antony,
>> Are you using Sun's JDK 1.4 beta.. I got the same 'object is not an 
>> instance of declaring class' - error when I used JDK 1.4.
>> Try switching to 1.3
>>
>> /tuomo
>>
>> [EMAIL PROTECTED] wrote:
>>
>>> Here is the part of the debug log which shows the error
>>>
>>> ---start tomcat log--
>>> [snip]
>>> resolveEntity('-//Apache Software Foundation//DTD Struts 
>>> Configuration 1.0//EN', 
>>> 'http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd')
>>>  Resolving to alternate DTD 
>>> 
>'jar:file:/var/tomcat4/webapps/sturdy/WEB-INF/lib/struts.jar!/org/apache/struts/resources/struts-config_1_0.dtd'
> 
>>>
>>> New org.apache.struts.action.ActionFormBean
>>> Set org.apache.struts.action.ActionFormBean properties
>>> Begin event threw exception
>>> java.lang.IllegalArgumentException: object is not an instance of 
>>> declaring class
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at 
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42) 
>>>
>>> at 
>>> 
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28) 
>>>
>>> at java.lang.reflect.Method.invoke(Method.java:327)
>>> at 
>>> org.apache.struts.util.PropertyUtils.setSimpleProperty(PropertyUtils.java:988) 
>>>
>>> at 
>>> org.apache.struts.util.PropertyUtils.setNestedProperty(PropertyUtils.java:904) 
>>>
>>> at 
>>> org.apache.struts.util.PropertyUtils.setProperty(PropertyUtils.java:932)
>>> at org.apache.struts.util.BeanUtils.populate(BeanUtils.java:509)
>>> at 
>>> org.apache.struts.digester.SetPropertiesRule.begin(SetPropertiesRule.java:120) 
>>>
>>> at 
>>> org.apache.struts.digester.Digester.startElement(Digester.java:528)
>>> at 
>>> org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.java:329) 
>>>
>>> at 
>>> org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
>>> at 
>>> 
>org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1214)
> 
>>>
>>> at 
>>> 
>org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1806)
> 
>>>
>>> at 
>>> 
>org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1182)
> 
>>>
>>> at 
>>> 
>org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381) 
>>>
>>> at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
>>> at 
>>> org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
>>> at javax.xml.parsers.SAXParser.parse(SAXParser.java:316)
>>> at javax.xml.parsers.SAXParser.parse(SAXParser.java:91)
>>> at org.apache.struts.digester.Digester.parse(Digester.java:755)
>>> at 
>>> org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1331) 
>>>
>>> at 
>>> org.apache.struts.action.ActionServlet.init(ActionServlet.java:465)
>>> at javax.servlet.GenericServlet.init(GenericServlet.java)
>>> at 
>>> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java)
>>> at 
>>> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java) 
>>>
>>> at 
>>> org.apache.catalina.core.StandardContext.start(StandardContext.java)
>>> at 
>>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java)
>>> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java)
>>> at org.apache.catalina.core.StandardHost.install(StandardHost.java)
>>> at 
>>> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java)
>>> at org.apache.catalina.startup.HostConfig.start(HostConfig.java)
>>> at 
>>> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java)
>>> at 
>>> 
>org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java) 
>>>
>>> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java)
>>> at org.apache.catalina.core.StandardHost.start(StandardHost.java)
>>> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java)
>>> at 
>>> org.apache.catalina.core.StandardEngine.start(StandardEngine.java)
>>> at 
>>> org.apache.catalina.core.StandardService.start(StandardService.java)
>>> at 
>>> org.apache.catalina.core.StandardServer.start(StandardServer.java)
>>> at org.apache.catalina.startup.Catalina.start(Catalina.java)
>>> at org.apache.catalina.startup.Catalina.execute(Catalina.java)
>>> at org.apache.catalina.s

strutshtml select tag initial value

2001-12-19 Thread Tom Watkins

I have a jsp using the  tag with nested  tags. I
need to give the drop down list an initial value first time it is seen which
I have done using ...

However, when page validation fails I need the list to display the user
selected value but obviously it reverts to the  tag which I labelled
"selected".

I can see no obvious way of doing this (although I am sure there is one)

Can anyone help?

Tom


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: struts-config.xml-Is there a tool to find errors in it?

2001-12-19 Thread antony

I changed to have tomcat run with 1.3 and it works fine now.

Question for someone. Is the active development of struts done with Suns 
JDK1.3 or Suns JDK1.4? or  some other vendors JDK.
Cheers

Tony


Tuomo Syvänperä wrote:

> The problem only came up occasionally. If I had two webapps and I 
> started the servlet container and accessed one of them, it works fine. 
> If after that I try to access the other one, it gives the error below.
> Everything has worked fine since I switched back to 1.3 JDK.
> 
> /tuomo




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: struts-config.xml-Is there a tool to find errors in it?

2001-12-19 Thread antony

Does it pose any problems developing an application with JDK1.4 and 
running it on

Tomcat4 using JRE1.3?

Cheers

Tony


Tuomo Syvänperä wrote:

> The problem only came up occasionally. If I had two webapps and I 
> started the servlet container and accessed one of them, it works fine. 
> If after that I try to access the other one, it gives the error below.
> Everything has worked fine since I switched back to 1.3 JDK.
> 
> /tuomo
> 
> [EMAIL PROTECTED] wrote:
> 
>> Yes I am using 1.4beta.  But an almost identical webapp works with 
>> 1.4beta.  Strange I say.
>>
>>
>>
>> Tuomo Syvänperä wrote:
>>
>>> Hi Antony,
>>> Are you using Sun's JDK 1.4 beta.. I got the same 'object is not an 
>>> instance of declaring class' - error when I used JDK 1.4.
>>> Try switching to 1.3
>>>
>>> /tuomo
>>>
>>> [EMAIL PROTECTED] wrote:
>>>
 Here is the part of the debug log which shows the error

 ---start tomcat log--
 [snip]
 resolveEntity('-//Apache Software Foundation//DTD Struts 
 Configuration 1.0//EN', 
 'http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd')
  Resolving to alternate DTD 
 
>'jar:file:/var/tomcat4/webapps/sturdy/WEB-INF/lib/struts.jar!/org/apache/struts/resources/struts-config_1_0.dtd'
> 

 New org.apache.struts.action.ActionFormBean
 Set org.apache.struts.action.ActionFormBean properties
 Begin event threw exception
 java.lang.IllegalArgumentException: object is not an instance of 
 declaring class
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42) 

 at 
 
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28) 

 at java.lang.reflect.Method.invoke(Method.java:327)
 at 
 org.apache.struts.util.PropertyUtils.setSimpleProperty(PropertyUtils.java:988) 

 at 
 org.apache.struts.util.PropertyUtils.setNestedProperty(PropertyUtils.java:904) 

 at 
 org.apache.struts.util.PropertyUtils.setProperty(PropertyUtils.java:932) 

 at org.apache.struts.util.BeanUtils.populate(BeanUtils.java:509)
 at 
 org.apache.struts.digester.SetPropertiesRule.begin(SetPropertiesRule.java:120) 

 at 
 org.apache.struts.digester.Digester.startElement(Digester.java:528)
 at 
 org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.java:329) 

 at 
 org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
 at 
 
>org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1214)
> 

 at 
 
>org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1806)
> 

 at 
 
>org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1182)
> 

 at 
 
>org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381) 

 at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
 at 
 org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
 at javax.xml.parsers.SAXParser.parse(SAXParser.java:316)
 at javax.xml.parsers.SAXParser.parse(SAXParser.java:91)
 at org.apache.struts.digester.Digester.parse(Digester.java:755)
 at 
 org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1331) 

 at 
 org.apache.struts.action.ActionServlet.init(ActionServlet.java:465)
 at javax.servlet.GenericServlet.init(GenericServlet.java)
 at 
 org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java)
 at 
 org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java) 

 at 
 org.apache.catalina.core.StandardContext.start(StandardContext.java)
 at 
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java)
 at 
 org.apache.catalina.core.StandardHost.addChild(StandardHost.java)
 at org.apache.catalina.core.StandardHost.install(StandardHost.java)
 at 
 org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java)
 at 
 org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java)
 at 
 
>org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java) 

 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java)
 at 
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java)
 at 
 org.apache.catalina.core.StandardService.sta

RE: strutshtml select tag initial value

2001-12-19 Thread Tom Watkins


I have a jsp using the  tag with nested  tags. I
need to give the drop down list an initial value first time it is seen which
I have done using ...

However, when page validation fails I need the list to display the user
selected value but obviously it reverts to the  tag which I labelled
"selected".

I can see no obvious way of doing this (although I am sure there is one)

Can anyone help?

Tom


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Help - new struts user questions

2001-12-19 Thread Jon.Ridgway

Hi Tony,

Sounds like you may have to do a bit more reading. Just to get you started.
A web application is the code that you will write and deploy on jetty. I
have not used jetty so I can't give specifics. But somewhere under the jetty
install you will find a deployment directory. This is where you put the war
file.

A web application has will have a WEB-INF directory where configuration and
support files are placed. WEB-INF/lib contains any jar files used by the web
application. Try having a look at the structure of the struts-example.war.
This should clarify things a little.

Jon.

-Original Message-
From: Tony Ziolkowski [mailto:[EMAIL PROTECTED]] 
Sent: 19 December 2001 08:13
To: [EMAIL PROTECTED]
Subject: Help - new struts user questions

I am planning to use struts in a Jetty environment and am just starting to
play with jetty. There's some things I don't understand. The installation
documentation refers to my 'web application'. Is that the jetty application?
If it is, the installation guide refers to copying files into the web
application WEB-INF/lib directory. The jetty installation doesn't have such
a directory.

I have just copied the .war files into a struts directory and modified the
demo.xml files as documented. How do I access the struts stuff contained in
those .war files?


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Help with bean:write\bean:define whn property requires an arg umen t

2001-12-19 Thread Keith Bacon

I'm sure you can only pass args in scripting code 
<% String bankst = customerResults.getBanks(bankCode)
%>


I curious why you can't add a method to your action
class that makes this unnecessary in the jsp?

Keith.


--- "Strichartz, Beth" <[EMAIL PROTECTED]>
wrote:
> Please...seriously need some help with this.
> 
> -Original Message-
> From: Strichartz, Beth
> [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 18, 2001 3:41 PM
> To: [EMAIL PROTECTED]
> Subject: Help with bean:write\bean:define whn
> property requires an
> argumen t
> 
> 
> Hi,
> 
> I need to call a method in my Formbean that returns
> an object but, requires
> a string as an argument
> 
> For example:
> 
>name="customerResults" property="bankID"/>
> 
>property="banks(bankCode)"
> filter="true"/>
> 
> 
> How can I pass arguments ?? or cant I?
> 
> Thanks...please help
> 
> 
> 
> 
> This message contains information which may be
> confidential and privileged.
> Unless you are the addressee  (or authorized to
> receive for the addressee),
> you may not use, copy or disclose to anyone the
> message or any information
> contained in the message.  If you have received the
> message in error, please
> advise the sender by reply e-mail, and delete or
> destroy the message. 
> 
> Thank you.
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> 
> This message contains information which may be
> confidential and privileged.
> Unless you are the addressee  (or authorized to
> receive for the addressee),
> you may not use, copy or disclose to anyone the
> message or any information
> contained in the message.  If you have received the
> message in error, please
> advise the sender by reply e-mail, and delete or
> destroy the message. 
> 
> Thank you.
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Exception with struts

2001-12-19 Thread Jon.Ridgway

Hi Timothy,

It looks like you may have a problem with your struts-config.xml file. Try
putting it through an xml validator, like XML Spy or download the Struts
console app (search archive for URL) and validate it that way.

Jon.

-Original Message-
From: Timothy Reaves [mailto:[EMAIL PROTECTED]] 
Sent: 19 December 2001 01:09
To: Struts
Subject: Exception with struts

Hello all.  I'm trying to learn Struts.  I'm reading Profesional
JSP,
which has a chapter on Struts.  I have built their example app, and
deployed it.  The main page comes up properly ( for a CD store), but when
I do anything else, I get the following.  Any ideas?

type Exception report

message Internal Server Error

description The server encountered an internal error (Internal Server
Error) that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Parsing error processing resource path
/WEB-INF/struts-config.xml  at
org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:130
6)  at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:465)
at javax.servlet.GenericServlet.init(GenericServlet.java)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java)

...
root cause

java.lang.IllegalArgumentException: object is not an instance of declaring
class   at
org.apache.struts.digester.Digester.startElement(Digester.java:501) at
org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.java:3
29) at
org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)   at
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLVali
dator.java:1214)...

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Invalidate and container authentication in multi-app environment

2001-12-19 Thread Jon.Ridgway

Hi Michelle,

I think, but not sure, that this is one of those things not covered by the
JSP/Servlet spec. IBM I know offers bespoke single signon support. I suspect
that WebLogic will have something similar. It sounds like you may need
something like this; that's assuming that your application 'A' and 'B' are
running within the same environment.

Jon.

-Original Message-
From: Michelle Popovits [mailto:[EMAIL PROTECTED]] 
Sent: 18 December 2001 21:13
To: [EMAIL PROTECTED]
Subject: Invalidate and container authentication in multi-app environment

Hi,

I have been researching the archives trying to resolve an issue.
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg10294.html
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg14538.html

These threads describe my situation pretty closely (although not exactly) 
and the solutions provided have not worked for me.

I will describe the problem here again and hope that someone out there may 
be able to offer advice.

I am attempting to implement a Logout action which will log out the user and

forward them back to the main page of the application.  The main page action

itself is secure and should prompt for authentication before allowing the 
page to be viewed.
In the logout action:
a) invalidate the session
b) forward to the application's main page (redirect=true)

Now, normally if I just log into this application (let's call it Application

A), do stuff, and then log out, the logout is successful and the login page 
appears as expected.

Now, here's the twist.  If I log into another application (let's call it 
Application B) and just change the url (without logging out) to point to 
Application A, log in and then try to log out of Application A, then it does

not log out.  It behaves as though the user was still authenticated.  If I 
log out of Application B before changing the url to point to Application A 
then I am able to log out successfully.

Let's review the scenarios.

Scenario A
- bring up new browser window
- log into 'Application A'
- do stuff in 'Application A'
- log out
- result:  logs out properly.

Scenario B
- bring up new browser window
- log into 'Application B'
- change url, without logging out of 'Application B', to 'Application A'
- log into 'Application A'
- do stuff in 'Application A'
- log out of 'Application A'
- result:  does not log out properly, it should prompt for authentication 
before showing main page, but does not.

Scenario C
- bring up new browser window
- log into 'Application B'
- log out of 'Application B'
- change url to 'Application A'
- log into 'Application A'
- do stuff (ie. go to add page)
- log out of 'Application A'
- result:  logs out properly.


I guess if the users were properly disciplined to log out of their 
application before moving on to another application then this would never be

a problem...but... the world is not so perfect.

Any ideas?  Has anyone encountered this before.

I am running Weblogic 5.1 sp10 using Struts 1.0 release.


Thanks,
Michelle


_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: PLEASE COMMENTS! Design question on very long lists... (a little bit OT)

2001-12-19 Thread Jon.Ridgway

Hi Thomas,

Try looking at the Sun Patterns. I believe there is a pattern known as a
Page by Page iterator
(http://java.sun.com/blueprints/patterns/j2ee_patterns/page_by_page_iterator
/index.html) that may help here. 


Jon.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: 18 December 2001 11:07
To: struts users mailing list
Subject: PLEASE COMMENTS! Design question on very long lists... (a little
bit OT)

Hi to all!

I strongly appreciate struts - it a very valuable tool to work with. So I
started to build a EIS-similar application with much DB-Access, business
code and so on... (try to work with Jonas EJB Server). But there arer some
design question and I do appreciate comments on these.
I have plenty of masks with DB-Access and CRUD-Operations. You can make a
choice based on the Primary Key (or something else). E.g. Articels have a
primary key, let's say WCF1001, REI1002, VAT-Code can be choosed, Zip-Code,
Customer Name and so on. On behalf of articels: I am using html:select and
build a selection list, but there are thousands of Primary Keys and you have
to send MANY bytes through the net building the mask (think of many
selection list in one mask!!).
What is in your opinion the "best" method the keep the selection lists
short? Can I resend/request the selection list, building new ones with the
next key? Is it possible to simulate the behavior of - let's say - of the
help index of Microsoft? Or is it convenient to build short lists with
beginning letters, then "climb down" to a next short list a.s.o??
Have I to switch to applets (with all its disadvantages...)? 

I am very eager to hear the opinion of you!

Thanks
Thomas 

>:-) As sceptical as one can be! (-:<



--
Get a free, personalised email address at http://another.com
TXT ALRT! Stop wasting money now. Send FREE, personalised txt
msgs to UK mobile phones from http://another.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Moving to Struts

2001-12-19 Thread Jon.Ridgway

Hi Aneesha,

To get you started, Struts has four main elements/concepts.

- action classes (you write these and put calls to business logic in them)

- form beans (again you write these and map them to a FORM. Struts uses the
form bean, populating it with values from the submitted form, before
forwarding it to the associated action class)

- Struts provides a number of tag libraries; html, template, logic and bean,
see http://jakarta.apache.org/struts/index.html.

- struts-config.xml (this config file associates your form beans with
specific actions and more...)

As to the work required, I guess it depends upon the size/complexity of your
app; Struts does help keep custom code to a minimum however.

Jon.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: 18 December 2001 05:59
To: [EMAIL PROTECTED]
Subject: Moving to Struts

Dear all

I need to move my standard MVC application to the Struts Framework ... Can
anyone tell me the following :

What components will I need to build and what will be available to me via
the Struts library.
What is the average rough effort estimate per component
What is the effort estimate for integration

Any help will be appreciated
Thanks a ton.
Regards,
Aneesha


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Using

2001-12-19 Thread Melanie Harris

John, 

thanks for this info!

-mel h 

--- John Yu <[EMAIL PROTECTED]> wrote:
> Struts' distribution comes with an example,
> struts-upload.war.
> 
> At 01:03 pm 18-12-2001 -0800, you wrote:
> >Can someone please share some code that uses the
> >html:file element to do a file-Upload.
> >
> >enctype="multipart/form-data"> I need to provide a
> way for the user so 
> >select a file from the file system, then I need to
> take that file and save 
> >its content into an Oracle clob or blob field (not
> certain about the field 
> >type). Thanks! -mel h
> 
> -- 
> John Yu   Scioworks Technologies
> e: [EMAIL PROTECTED] w: +(65) 873 5989
> w: http://www.scioworks.com   m: +(65) 9782 9610
> 
> Scioworks Camino - "Rapid WebApp Assembly for
> Struts"
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




struts-blank.war in JBUILDER

2001-12-19 Thread Samuele Brignoli


Hi I'm really new about struts. I'm trying to run this "struts-blank.war"
exampkle in JBuilder. I' ve installed properly struts on my windows machine.
Now what do I have to do to see this project debugged and execute inside
JBuilder ?

bye, kako.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: URL Rewriting

2001-12-19 Thread Sudhir S. Shetty

Can anybody please mail me the syntax for sending multiple (3-4) parameters
through the  tag , if possible with some code if using the Map
inter face.
thanks,
Sudhir
- Original Message -
From: "Tom Klaasen (TeleRelay)" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, December 18, 2001 18:23
Subject: RE: URL Rewriting




http://jakarta.apache.org/struts/struts-html.html#link


If you prefer to specify a java.util.Map that contains all of the
request parameters to be added to the hyperlink, use one of the
following techniques:


Specify only the name attribute - The named JSP bean (optionally scoped
by the value of the scope attribute) must identify a java.util.Map
containing the parameters.
Specify both name and property attributes - The specified property
getter method will be called on the bean identified by the name (and
optional scope) attributes, in order to return the java.util.Map
containing the parameters.
As the Map is processed, the keys are assumed to be the names of query
parameters to be appended to the hyperlink. The value associated with
each key must be either a String or a String array representing the
parameter value(s), or an object whose toString() method will be called.
If a String array is specified, more than one value for the same query
parameter name will be created.



hth,
tomK



> -Original Message-
> From: Sudhir S. Shetty [mailto:[EMAIL PROTECTED]]
> Sent: dinsdag 18 december 2001 13:48
> To: Struts Users Mailing List
> Subject: URL Rewriting
>
>
> Hi Everybody,
>I've just started using struts in my
> application, I
> have a Overview Screen from which I have to pass 2 request
> parameters to the
> ActionForward bean, I dont have a Form Bean for this overview screen.
> The problem I face is using URL rewiting, when i pass these
> parametrs in the
>  tag it gives me an error, and if i use the  tag I
> bypass the servlet, Kindly suggest me a method, or the right
> syntax for
> .
> The Link I've used in my app is as follows :-
>  page="fee.do?action=Edit&ls_company_name=<%=rs.getString(2)%>&
> ls_rate_table=
> <%=rs.getString(3)%>"> <%=rs.getString(1)%>
>
>
>
>
> --
> To unsubscribe, e-mail:
>  [EMAIL PROTECTED]>
> For
> additional commands,
> e-mail: 
>
>

--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: accessing EJB components from a Struts application?

2001-12-19 Thread barry

Vic,

You should not extend the form bean for Data access as
it is part of the View of MVC. The data Access should follow on of two
Patterns DAO which allows for EJB or
JDBC or the following:


To implement a screen of the particular Use Case, the following artifacts
should be created:

1.Action class handles logic of that particular screen, errors and,
probably, validation.

2.ActionForm class stores and validates the data presented on the
screen.

3.BusinessDelegate class is responsible for finding and performing
inter-tier method call of the Stateless Session EJB façade object that
resides on the business tier. The value objects facilitate the interaction
between BusinessDelegate and UseCase Façade. See the description of Business
Delegate pattern at
http://developer.java.sun.com/developer/restricted/patterns/BusinessDelegate
.html. See the description of ValueObject pattern at
http://developer.java.sun.com/developer/restricted/patterns/ValueObject.html
.

4.Use Case Façade is Stateless Session EJB, which sits on the
business tier and implements system-wise business methods that perform the
logic of Use Case. See the Session Façade pattern at
http://developer.java.sun.com/developer/restricted/patterns/SessionFacade.ht
ml

5.JSP Page represents view in the MVC pattern. It should contain
only HTML code and all the logic should be encapsulated into the Struts JSP
Tags.

And I think the only people using SOAP at still at SilverSteam.

HTH
Barry
- Original Message -
From: "Vic Cekvenich" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, December 18, 2001 6:37 PM
Subject: Re: accessing EJB components from a Struts application?


> Why are you needing to use  EJB?
> Presumably something distributed, and you do no want to use SOAP.
>
> If you use EJB for persistence, I would implement Astral Clones Design
> Pattern like this:
> Extend FormBean, and add a property of RowSet (a JDBC interfaces
> implemented by CachedRowSet). Add geters and setters to and from RowSet,
> that then go to whatever, EJB in your case.  Add the rest of the Astral
> Clones. You can then later replace call to EJB with JDBC/RowSet update()
> method. (Why not do JDBC calls right away? EJB might make you slow if
> this is a larger app.).
> Then in Action, ask your FormBeans to connect, retrieve, CRUD, validate
> ,  and disconnect.
>
> If you need to write something more complex in Action, then use
> helper/utility classes.
>
> /* :-D J2EE development is a bit like Masonic brotherhood. There are
> perceived secrets about how it is really developed.  Ex: What are design
> guidelines and exhibits best practices for building distributed
> applications with the Java  Enterprise Edition/ aka How should I change
> my application requirements in order to use message beans. */
>
> Search google.com for Astral Clones or RowSet or whatever.
>
> Vic
>
>
> [EMAIL PROTECTED] wrote:
>
> >Hi all,
> >
> >after browsing the FAQ and searching the mailing list archive,
> >I have not yet found a 'premium way' to go for EJB business logic
> >integration into a Struts application.
> >
> >It's pretty clear that the EJB stuff should go into the action classes.
> >I also saw hints that it might be useful to add another layer between
> >the action classes and the entity/session beans in order to keep the
> >action classes small and independent from the underlying business logic
> >tier architecture.
> >
> >So the recommended architecture would be
> >
> >action class <-> ejb 'helper' class <-> EJB Session/Entity Bean
> >
> >which allows for e.g. replacing the EJB tier by direct JDBC
> >database access without having to modify the action classes.
> >
> >Is the presented view correct/recommendable, or have I probably missed
> >some important developments concerning the Struts<->EJB issue?
> >Besides selected threads of this mailing list, are there any
> >instructive resources/links regarding the topic?
> >
> >Regards,
> >
> >--
> >Thomas Corte
> ><[EMAIL PROTECTED]>
> >
> >
> >
> >
> >--
> >To unsubscribe, e-mail:

> >For additional commands, e-mail:

> >
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: URL Rewriting

2001-12-19 Thread Jesse Alexander (KABS 11)

Hi,

have you checked in the mailing-list-archives at:

http://www.mail-archive.com/struts-user@jakarta.apache.org/

Searching for "HashMap" resulted in a list containing a reference to
this message:

http://www.mail-archive.com/struts-user@jakarta.apache.org/msg19443.html

Which seems to do what you want...


hope this helps
Alexander Jesse

-Original Message-
From: Sudhir S. Shetty [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 12:27 PM
To: Struts Users Mailing List
Subject: Re: URL Rewriting


Can anybody please mail me the syntax for sending multiple (3-4) parameters
through the  tag , if possible with some code if using the Map
inter face.
thanks,
Sudhir
- Original Message -
From: "Tom Klaasen (TeleRelay)" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, December 18, 2001 18:23
Subject: RE: URL Rewriting




http://jakarta.apache.org/struts/struts-html.html#link


If you prefer to specify a java.util.Map that contains all of the
request parameters to be added to the hyperlink, use one of the
following techniques:


Specify only the name attribute - The named JSP bean (optionally scoped
by the value of the scope attribute) must identify a java.util.Map
containing the parameters.
Specify both name and property attributes - The specified property
getter method will be called on the bean identified by the name (and
optional scope) attributes, in order to return the java.util.Map
containing the parameters.
As the Map is processed, the keys are assumed to be the names of query
parameters to be appended to the hyperlink. The value associated with
each key must be either a String or a String array representing the
parameter value(s), or an object whose toString() method will be called.
If a String array is specified, more than one value for the same query
parameter name will be created.



hth,
tomK



> -Original Message-
> From: Sudhir S. Shetty [mailto:[EMAIL PROTECTED]]
> Sent: dinsdag 18 december 2001 13:48
> To: Struts Users Mailing List
> Subject: URL Rewriting
>
>
> Hi Everybody,
>I've just started using struts in my
> application, I
> have a Overview Screen from which I have to pass 2 request
> parameters to the
> ActionForward bean, I dont have a Form Bean for this overview screen.
> The problem I face is using URL rewiting, when i pass these
> parametrs in the
>  tag it gives me an error, and if i use the  tag I
> bypass the servlet, Kindly suggest me a method, or the right
> syntax for
> .
> The Link I've used in my app is as follows :-
>  page="fee.do?action=Edit&ls_company_name=<%=rs.getString(2)%>&
> ls_rate_table=
> <%=rs.getString(3)%>"> <%=rs.getString(1)%>
>
>
>
>
> --
> To unsubscribe, e-mail:
>  [EMAIL PROTECTED]>
> For
> additional commands,
> e-mail: 
>
>

--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: URL Rewriting

2001-12-19 Thread João Guilherme Del Valle

Ok, the message you said follows.
But, the "" tag doesn´t _still_ exist in struts, right? Is
there a standart way to pass more than one parameter?


>
> Thanks for all the help people, I can now successfully pass one
> variable.  How can I pass more that one variable?

Hi,

I've read this in the struts examples that come with the source code.
<%
   java.util.HashMap newValues = new java.util.HashMap();
   newValues.put("para1", "value1");
   newValues.put("para2", bean1.getAttribute1();
   pageContext.setAttribute("paras", newValues);
%>

   


You put all your parameters in a hashmap an pass it to the
 tag.

I would prefer something like this:

   
   


but this is still not in the stuts source, I guess.

Volker



Joao Guilherme Del Valle
[EMAIL PROTECTED]
Visionnaire Informática SA
http://www.visionnaire.com.br
Tel/Fax: +55 41 373-7400 r: 217


- Original Message -
From: "Jesse Alexander (KABS 11)" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, December 19, 2001 8:41 AM
Subject: RE: URL Rewriting


> Hi,
>
> have you checked in the mailing-list-archives at:
>
> http://www.mail-archive.com/struts-user@jakarta.apache.org/
>
> Searching for "HashMap" resulted in a list containing a reference to
> this message:
>
> http://www.mail-archive.com/struts-user@jakarta.apache.org/msg19443.html
>
> Which seems to do what you want...
>
>
> hope this helps
> Alexander Jesse
>
> -Original Message-
> From: Sudhir S. Shetty [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, December 19, 2001 12:27 PM
> To: Struts Users Mailing List
> Subject: Re: URL Rewriting
>
>
> Can anybody please mail me the syntax for sending multiple (3-4)
parameters
> through the  tag , if possible with some code if using the Map
> inter face.
> thanks,
> Sudhir
> - Original Message -
> From: "Tom Klaasen (TeleRelay)" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Tuesday, December 18, 2001 18:23
> Subject: RE: URL Rewriting
>
>
> 
> 
> http://jakarta.apache.org/struts/struts-html.html#link
> 
> 
> If you prefer to specify a java.util.Map that contains all of the
> request parameters to be added to the hyperlink, use one of the
> following techniques:
>
>
> Specify only the name attribute - The named JSP bean (optionally scoped
> by the value of the scope attribute) must identify a java.util.Map
> containing the parameters.
> Specify both name and property attributes - The specified property
> getter method will be called on the bean identified by the name (and
> optional scope) attributes, in order to return the java.util.Map
> containing the parameters.
> As the Map is processed, the keys are assumed to be the names of query
> parameters to be appended to the hyperlink. The value associated with
> each key must be either a String or a String array representing the
> parameter value(s), or an object whose toString() method will be called.
> If a String array is specified, more than one value for the same query
> parameter name will be created.
> 
> 
>
> hth,
> tomK
>
>
>
> > -Original Message-
> > From: Sudhir S. Shetty [mailto:[EMAIL PROTECTED]]
> > Sent: dinsdag 18 december 2001 13:48
> > To: Struts Users Mailing List
> > Subject: URL Rewriting
> >
> >
> > Hi Everybody,
> >I've just started using struts in my
> > application, I
> > have a Overview Screen from which I have to pass 2 request
> > parameters to the
> > ActionForward bean, I dont have a Form Bean for this overview screen.
> > The problem I face is using URL rewiting, when i pass these
> > parametrs in the
> >  tag it gives me an error, and if i use the  tag I
> > bypass the servlet, Kindly suggest me a method, or the right
> > syntax for
> > .
> > The Link I've used in my app is as follows :-
> >  > page="fee.do?action=Edit&ls_company_name=<%=rs.getString(2)%>&
> > ls_rate_table=
> > <%=rs.getString(3)%>"> <%=rs.getString(1)%>
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> >  [EMAIL PROTECTED]>
> > For
> > additional commands,
> > e-mail: 
> >
> >
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




AW: accessing EJB components from a Struts application?

2001-12-19 Thread Stefan Frank

Hi,

i'm not very fond of these Helper-Classes: Most of the time, they only add
an additional Layer which just proxies calls to the SessionBeans: The
benefit you get is mostly, that you can wrap all ejb-related errors inside
the Helpers. This saves you some coding, but most of the time you want to
react on a RemoteException in a different way the than on a finder
Exception.

We code the EJB-Access driectly in the Actions and try to keep the Actions
small by keeping most of the Code inside SessionBeans (which is a generally
a good idea, as you can reuse this code in context's where Struts is not
applicable, eg. with a Swing-Client). In order for this to work, it's a good
idea, to use a
SessionFacade(http://java.sun.com/blueprints/patterns/j2ee_patterns/session_
facade/index.html) to avoid having to code against numerous ejb's in your
action - in our experience, this is sufficient: A helper-class just doubles
the Methods of the Facade.

Check out, if portability from an ejb-Architecture to a pure-jdbc
Architecture is really a requirement, or if it even is possible: I'm not
really sure, wether it pays to code independently of the j2ee-architecture,
as it means to wrap most of the main-features (EntityBean, SessionBean, MDB,
jndi and so on) - with applicationspecific classes that abstract out the
functionality: I think in projects under high pressure you throw away all
the benefits of j2ee with this approach.

So, by keeping the code in the actions small, we us Actions in a
"Command"-way: which works quite nicely for us: As there is not so much code
in the action, we don't have problems with writing new ones or changing the
old ones.

hope this helps
greetings
stf

---
vierundsechzig.de
friedensallee 7-9
22765 hamburg
telefon +49 (040) 306033 -43
telefax +49 (040) 306033 -64

http://www.vierundsechzig.de
mailto:[EMAIL PROTECTED]







> -Ursprungliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Gesendet: Mittwoch, 19. Dezember 2001 01:01
> An: Struts Users Mailing List
> Betreff: accessing EJB components from a Struts application?
>
>
>
> Hi all,
>
> after browsing the FAQ and searching the mailing list archive,
> I have not yet found a 'premium way' to go for EJB business logic
> integration into a Struts application.
>
> It's pretty clear that the EJB stuff should go into the action classes.
> I also saw hints that it might be useful to add another layer between
> the action classes and the entity/session beans in order to keep the
> action classes small and independent from the underlying business logic
> tier architecture.
>
> So the recommended architecture would be
>
> action class <-> ejb 'helper' class <-> EJB Session/Entity Bean
>
> which allows for e.g. replacing the EJB tier by direct JDBC
> database access without having to modify the action classes.
>
> Is the presented view correct/recommendable, or have I probably missed
> some important developments concerning the Struts<->EJB issue?
> Besides selected threads of this mailing list, are there any
> instructive resources/links regarding the topic?
>
> Regards,
>
> --
> Thomas Corte
> <[EMAIL PROTECTED]>
>
>
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: strutshtml select tag initial value

2001-12-19 Thread Keith Bacon

If you use the struts option tag it will get the
selected value from the formbean when the page is
displayed (reverse of the way it sets the selected
value when the form is submitted).
Then you have full control!
Keith. 


--- Tom Watkins <[EMAIL PROTECTED]> wrote:
> I have a jsp using the  tag with
> nested  tags. I
> need to give the drop down list an initial value
> first time it is seen which
> I have done using ...
> 
> However, when page validation fails I need the list
> to display the user
> selected value but obviously it reverts to the
>  tag which I labelled
> "selected".
> 
> I can see no obvious way of doing this (although I
> am sure there is one)
> 
> Can anyone help?
> 
> Tom
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: URL Rewriting

2001-12-19 Thread Jesse Alexander (KABS 11)

Hi,

well the first phrase "I've read...code. <%... " gives exactly a working
code-snippet. I think using that it should be easy to get a working
version in your own code...

hope this helps
Alexander Jesse

PS: search for "HashMap link" gives you an even better hitlist, where you
can find other samples...

-Original Message-
From: João Guilherme Del Valle [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 1:55 PM
To: Struts Users Mailing List
Subject: Re: URL Rewriting


Ok, the message you said follows.
But, the "" tag doesn´t _still_ exist in struts, right? Is
there a standart way to pass more than one parameter?


>
> Thanks for all the help people, I can now successfully pass one
> variable.  How can I pass more that one variable?

Hi,

I've read this in the struts examples that come with the source code.
<%
   java.util.HashMap newValues = new java.util.HashMap();
   newValues.put("para1", "value1");
   newValues.put("para2", bean1.getAttribute1();
   pageContext.setAttribute("paras", newValues);
%>

   


You put all your parameters in a hashmap an pass it to the
 tag.

I would prefer something like this:

   
   


but this is still not in the stuts source, I guess.

Volker



Joao Guilherme Del Valle
[EMAIL PROTECTED]
Visionnaire Informática SA
http://www.visionnaire.com.br
Tel/Fax: +55 41 373-7400 r: 217


- Original Message -
From: "Jesse Alexander (KABS 11)" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, December 19, 2001 8:41 AM
Subject: RE: URL Rewriting


> Hi,
>
> have you checked in the mailing-list-archives at:
>
> http://www.mail-archive.com/struts-user@jakarta.apache.org/
>
> Searching for "HashMap" resulted in a list containing a reference to
> this message:
>
> http://www.mail-archive.com/struts-user@jakarta.apache.org/msg19443.html
>
> Which seems to do what you want...
>
>
> hope this helps
> Alexander Jesse
>
> -Original Message-
> From: Sudhir S. Shetty [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, December 19, 2001 12:27 PM
> To: Struts Users Mailing List
> Subject: Re: URL Rewriting
>
>
> Can anybody please mail me the syntax for sending multiple (3-4)
parameters
> through the  tag , if possible with some code if using the Map
> inter face.
> thanks,
> Sudhir
> - Original Message -
> From: "Tom Klaasen (TeleRelay)" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Tuesday, December 18, 2001 18:23
> Subject: RE: URL Rewriting
>
>
> 
> 
> http://jakarta.apache.org/struts/struts-html.html#link
> 
> 
> If you prefer to specify a java.util.Map that contains all of the
> request parameters to be added to the hyperlink, use one of the
> following techniques:
>
>
> Specify only the name attribute - The named JSP bean (optionally scoped
> by the value of the scope attribute) must identify a java.util.Map
> containing the parameters.
> Specify both name and property attributes - The specified property
> getter method will be called on the bean identified by the name (and
> optional scope) attributes, in order to return the java.util.Map
> containing the parameters.
> As the Map is processed, the keys are assumed to be the names of query
> parameters to be appended to the hyperlink. The value associated with
> each key must be either a String or a String array representing the
> parameter value(s), or an object whose toString() method will be called.
> If a String array is specified, more than one value for the same query
> parameter name will be created.
> 
> 
>
> hth,
> tomK
>
>
>
> > -Original Message-
> > From: Sudhir S. Shetty [mailto:[EMAIL PROTECTED]]
> > Sent: dinsdag 18 december 2001 13:48
> > To: Struts Users Mailing List
> > Subject: URL Rewriting
> >
> >
> > Hi Everybody,
> >I've just started using struts in my
> > application, I
> > have a Overview Screen from which I have to pass 2 request
> > parameters to the
> > ActionForward bean, I dont have a Form Bean for this overview screen.
> > The problem I face is using URL rewiting, when i pass these
> > parametrs in the
> >  tag it gives me an error, and if i use the  tag I
> > bypass the servlet, Kindly suggest me a method, or the right
> > syntax for
> > .
> > The Link I've used in my app is as follows :-
> >  > page="fee.do?action=Edit&ls_company_name=<%=rs.getString(2)%>&
> > ls_rate_table=
> > <%=rs.getString(3)%>"> <%=rs.getString(1)%>
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> >  [EMAIL PROTECTED]>
> > For
> > additional commands,
> > e-mail: 
> >
> >
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
> --
> To unsubscribe, e-mail:

> Fo

Re: servlet question

2001-12-19 Thread Keith Bacon

Hi William - just quick suggestions
1 - search for files called *.xml & look in them.
2 - or scan all files for "HttpServletRequest"
That ought to find them.
Just maybe the servlet spec specifies where this info
is stored?
Keith.

--- William Shulman <[EMAIL PROTECTED]> wrote:
> 
> Assume one is using a servlet container (like Tomcat
> or similar).
> Is there a way to specify to the servlet container
> which class 
> implementations to use for HttpServletRequest and
> Session ? 
> I am guessing that there may exist factories for
> producing 
> instances of these classes and I am wondering if
> there is a 
> hook, standard or specific to vendor, that will
> allow me to 
> specify my own implementations of these classes /
> interfaces.
> 
> thanks in advance
> -will
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Problem with bean:define?

2001-12-19 Thread Keith Bacon

are you saying your jsp is getting null pointer excp
in setAttribute() in the 


Keith. (not much use I suspect - try my best!).

--- "Siggelkow, Bill" <[EMAIL PROTECTED]>
wrote:
> Specifically, I am trying to use the define tag to
> define a variable based
> on a property of the FormBean as follows: (the
> getLocalDate is my own tag
> for rendering dates.
> 
>  property="postDate"
> type="java.util.Date"/>
>  style="long"/>
> 
> -Original Message-
> From: Siggelkow, Bill
> [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 18, 2001 11:33 AM
> To: '[EMAIL PROTECTED]'
> Subject: Problem with bean:define?
> 
> 
> I am using the bean:define tag to make a variable
> available ... he's the
> wierd part ... it works the "first time" I enter the
> form ... but if I
> return to the form because of a validation error ...
> it fails with a
> NullPointerException in the pageContext.setAttribute
> method ... it seems to
> me the second time around it is not finding the
> value for some reason ...
> any ideas?
> 
> Bill Siggelkow
> eBusiness Lead Developer
> 678.579.6458
> Mirant
> http://www.mirant.com
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: strutshtml select tag initial value

2001-12-19 Thread Tom Watkins

brilliant - thanks

-Original Message-
From: Keith Bacon [mailto:[EMAIL PROTECTED]]
Sent: 19 December 2001 12:02
To: Struts Users Mailing List
Subject: Re: strutshtml select tag initial value


If you use the struts option tag it will get the
selected value from the formbean when the page is
displayed (reverse of the way it sets the selected
value when the form is submitted).
Then you have full control!
Keith.


--- Tom Watkins <[EMAIL PROTECTED]> wrote:
> I have a jsp using the  tag with
> nested  tags. I
> need to give the drop down list an initial value
> first time it is seen which
> I have done using ...
>
> However, when page validation fails I need the list
> to display the user
> selected value but obviously it reverts to the
>  tag which I labelled
> "selected".
>
> I can see no obvious way of doing this (although I
> am sure there is one)
>
> Can anyone help?
>
> Tom
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>


__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Forwarding from one action to another action

2001-12-19 Thread Keith Bacon

I Hope I have this right!
The form bean is lost, struts doesn't add it to the
request before running browse.jsp is run.

So - make "browse" map to /browse.do so browseAction
will be called & can get your object.

I see you are adding that object to the formbean - I
prefer to add things like this to the request - the
jsp can get them from either place. I just think it's
more straightfoward.
hope helps
Keith.

--- Leena <[EMAIL PROTECTED]> wrote:
> Hi All,
> 
> Here is the code which i've written in my
> action class.
> 
> 
> CustomerInfo[] oCustInfo =
> searchAddressBookByCriteria
> (id);//getting the customer details
>  System.out.println("Number of Customers
> "+oCustInfo.length);
>  oForm.setCustomers(oCustInfo);//setting to
> the form object
>  ActionForward forward =
> mapping.findForward("browse");//mapping to
> browse page, which forwards to browse.jsp
>  return (forward);
> 
>Here it gets the data from the remote object. But
> when i go to the
> forwarded browse file, i am getting customerinfo
> object as null. It says it
> is not set. Can anyone help me to fix this?
> 
> Thanks and Regards
> 
> Leena
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




jsp pages under WEB-INF..

2001-12-19 Thread neil

Hi, I know this question has been answered before, but I cannot find the
answer :(

I have placed all my jsp pages under a subdirectory of WEB-INF, as
recommended by Ted Husted. I would like a default page when I go to the
application (like an index.jsp), but I don't know how to do the mapping. I
assume I need to put an action mapping or global forward in
struts-config.xml and something in web.xml?

Any help would be greatly appreciated

Thanks

/Neil



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: jsp pages under WEB-INF..

2001-12-19 Thread Park, David

If I understand the philosophy behind placing JSP pages in WEB-INF, it
is to secure them as resources... Only JSP pages that are NOT to be
directly navigated to should go there. These JSP pages can be accessed
by being included from another JSP page, or forwarded to.
 
Welcome files, such as index.jsp should continue to reside in the top
level of your application.
 
Hope this helps,
-david

-Original Message- 
From: [EMAIL PROTECTED] 
Sent: Wed 12/19/2001 1:25 PM 
To: [EMAIL PROTECTED] 
Cc: 
Subject: jsp pages under WEB-INF..



Hi, I know this question has been answered before, but I cannot
find the
answer :(

I have placed all my jsp pages under a subdirectory of WEB-INF,
as
recommended by Ted Husted. I would like a default page when I go
to the
application (like an index.jsp), but I don't know how to do the
mapping. I
assume I need to put an action mapping or global forward in
struts-config.xml and something in web.xml?

Any help would be greatly appreciated

Thanks

/Neil



--
To unsubscribe, e-mail:

For additional commands, e-mail:







RE: struts-config.xml-Is there a tool to find errors in it?

2001-12-19 Thread Bryant, Doug

I use xmllint. It is very simplistic, but works well. It comes as part of
the gnome xml library, but you can download the sources and compile with
cygwin on windows if you need to run it there.  

homepage at
http://xmlsoft.org/

Sources at 
ftp://ftp.gnome.org/pub/GNOME/stable/sources/libxml/

hope this helps.

Doug

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 2:14 AM
To: Struts Users Mailing List
Subject: struts-config.xml-Is there a tool to find errors in it?


Hi

I have an error with my struts-config.xml file and I cannot find where 
the error is.  Is there a tool which will help me track down where the 
error is, the messages in the tomcat log files are not very helpful in 
tracking down the error.

Cheers

Tony



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: struts-config.xml-Is there a tool to find errors in it?

2001-12-19 Thread Martin Farrell

Hi

Why dont you amend the example from http://www.ecerami.com/xerces/ where the
xml document is validated against a dtd.

The stack trace and warnings should be sufficient to figure out where the
problem in the xml lies?

Martin

-Original Message-
From: Bryant, Doug [mailto:[EMAIL PROTECTED]]
Sent: 19 December 2001 13:40
To: 'Struts Users Mailing List'
Subject: RE: struts-config.xml-Is there a tool to find errors in it?


I use xmllint. It is very simplistic, but works well. It comes as part of
the gnome xml library, but you can download the sources and compile with
cygwin on windows if you need to run it there.  

homepage at
http://xmlsoft.org/

Sources at 
ftp://ftp.gnome.org/pub/GNOME/stable/sources/libxml/

hope this helps.

Doug

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 2:14 AM
To: Struts Users Mailing List
Subject: struts-config.xml-Is there a tool to find errors in it?


Hi

I have an error with my struts-config.xml file and I cannot find where 
the error is.  Is there a tool which will help me track down where the 
error is, the messages in the tomcat log files are not very helpful in 
tracking down the error.

Cheers

Tony



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:



** For great Emap magazine subscription & gift offers visit 
http://www.emapmagazines.co.uk **


The information in this email is intended only for the addressee(s) named above.
Access to this email by anyone else is unauthorised.
If you are not the intended recipient of this message any disclosure, copying, 
distribution or any action taken in reliance on it is prohibited and may be unlawful. 

Emap plc and or its subsidiaries do not warrant that any attachments are free from 
viruses or other defects and accept no liability for any losses resulting from 
infected email transmissions.

Please note that any views expressed in this email may be those of the originator 
and do not necessarily reflect those of this organisation.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: jsp pages under WEB-INF..

2001-12-19 Thread Ted Husted

Use this for an index.jsp 


<%@ page language="java" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>



And then put in a foward to whatever you want to handle the welcome
action

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/struts/


[EMAIL PROTECTED] wrote:
> 
> Hi, I know this question has been answered before, but I cannot find the
> answer :(
> 
> I have placed all my jsp pages under a subdirectory of WEB-INF, as
> recommended by Ted Husted. I would like a default page when I go to the
> application (like an index.jsp), but I don't know how to do the mapping. I
> assume I need to put an action mapping or global forward in
> struts-config.xml and something in web.xml?
> 
> Any help would be greatly appreciated
> 
> Thanks
> 
> /Neil
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: jsp pages under WEB-INF..

2001-12-19 Thread Hudayioglu, Fehmi

Or you can put this into the web.xml file

  
logon.jsp
  
So this page will be loaded when you write only your context. 
example.
http://myserver/myContext/ will load hoooppp-> the page
http://myserver/myContext/logon.jsp.



-Ursprüngliche Nachricht-
Von: Ted Husted [mailto:[EMAIL PROTECTED]]
Gesendet am: Wednesday, December 19, 2001 2:55 PM
An: Struts Users Mailing List
Betreff: Re: jsp pages under WEB-INF..

Use this for an index.jsp 


<%@ page language="java" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>



And then put in a foward to whatever you want to handle the welcome
action

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/struts/


[EMAIL PROTECTED] wrote:
> 
> Hi, I know this question has been answered before, but I cannot find the
> answer :(
> 
> I have placed all my jsp pages under a subdirectory of WEB-INF, as
> recommended by Ted Husted. I would like a default page when I go to the
> application (like an index.jsp), but I don't know how to do the mapping. I
> assume I need to put an action mapping or global forward in
> struts-config.xml and something in web.xml?
> 
> Any help would be greatly appreciated
> 
> Thanks
> 
> /Neil
> 
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Personalized content using Struts. Jetspeed?

2001-12-19 Thread Ted Husted

Jetspeed is using its own application model, based on "portlets". 

These are basically web applications within web applications. 

I've looked closely at the model myself, and eventually came to the
conclusion that what is really needed is a good way to plug "modules"
into an existing web application. The portlet model allows this, but
everything ends up tied to the portlet API (which Jetspeed and Websphere
are inventing together). 

Personally, I believe given some modest personalization features, Struts
can provide the same features without resorting to creating another API,
which simply mirrors the web application API. 

Perhaps personalization should be viewed as an extension of the message
resources idea. Right now we have a (rather large) message file for each
locale. With personalization, the same concept applies, except that
there is a (small) resource file available for each user. 

Cedric has been doing some good work in Tiles regarding rendering a
portlet-like display. But for it all to come together, Struts needs to
support multiple configuration files and multiple controllers. You could
then plug one Struts application into another, the way Jetspeed lets you
plug in portlets. 

But, if you need a plug-and-play Enterprise Information Portal, and what
Jetspeed bundles meets your needs, definately go for it. 

Though, personally, I would be cautious when it came to actually
developing new portlets, since there is still a lot of unproven ground
there. 


-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/struts/



"VEDRE, RANAPRATAP REDDY" wrote:
> 
> Thanks this is exactly what i was looking for.
> 
> Struts mailing list worked again!
> 
>  do you have info about how jetspeed works with struts.
> 
>  any sites built using struts with jetspeed.
> 
> Thanks
> 
> -Original Message-
> From: Yerramreddy, Sridhar [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 18, 2001 11:29 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Personalized content using Struts. Jetspeed?
> 
> Please refer to the below for more Jetspeed User preferences section:
> 
> http://jakarta.apache.org/jetspeed/site/customizer.html
> 
> -Original Message-
> From: VEDRE, RANAPRATAP REDDY [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 18, 2001 9:55 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Personalized content using Struts. Jetspeed?
> 
> 
>  i am looking for something on the user level.
> 
>  for example we have yahoo themes where we can change the appearance of
> wesite and also ordering of the menus like content management preferences
> for users i.e., a user can choose where his menu's(tables) are displayed and
> when he logs the next time they should be in place where ho left the menus
> when last logged. this is similar to most portal sites like yahoo and msn.
> 
> Thanks.
> 
> -Original Message-
> From: Yerramreddy, Sridhar [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 18, 2001 10:44 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Personalized content using Struts. Jetspeed?
> 
> If you look at the Jetspeed implementation carefully, It does provide
> content entitlements based on role and user group. Basically, You can
> customize and personalize the content presented at user community level. If
> you are looking for deeper personalization based on Profile and event based,
> You might want to consider developing some custom tags/classes that will be
> reading the session tracking info and dynamically delivering specific
> content, etc..
> 
> -Original Message-
> From: VEDRE, RANAPRATAP REDDY [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 18, 2001 9:39 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Personolized content using Struts. Jetspeed?
> 
> I have looked the apche slide web page but it does not mention amything
> about proving customization(personalized content) for users.
> 
>  yes, jetspeed does not do much help either.
> 
>  please let me know if you have any other info about customized content
> using struts.
> 
> Thanks.
> 
> -Original Message-
> From: Kris Thompson [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 18, 2001 1:15 PM
> To: Struts Users Mailing List
> Subject: Re: Personolized content using Struts. Jetspeed?
> 
>  From what I have heard Jetspeed is tightly coupled with Turbine and no
> talk of a port to struts yet.
> 
> If it is content you want have you or anyone else checked out Slide?
> 
> Kris
> 
> VEDRE, RANAPRATAP REDDY wrote:
> 
> > I would like to know what is the best way to provide customized content to
> >the user like providing layout and color change etc., similar to portal
> >sites.
> >
> >  Is Jet Speed the solution for this?.
> >  Are there any competetors. I use Templates Tags in struts on Tomcat and
> >Apache web server.
> >
> > Saw a few sites with jetspeed on jakarta site.  I am not sure if those
> >sites were

RE: jsp pages under WEB-INF..

2001-12-19 Thread neil

Right, first of all thanks for the replies to this question...
If my login.jsp lives under WEB-INF, can I still do this? I basically want
to auto load a welcome page that itself sits beneath WEB-INF. I think I saw
somewhere recently that you must create an action class and mapping in order
to be able to access files under WEB-INF? Sorry if this going over old
issues!

/Neil

> Or you can put this into the web.xml file
>
>  
>logon.jsp
>  
> So this page will be loaded when you write only your context.
> example.
> http://myserver/myContext/ will load hoooppp-> the page
> http://myserver/myContext/logon.jsp.
>
>
>
> -Ursprüngliche Nachricht-
> Von: Ted Husted [mailto:[EMAIL PROTECTED]]
> Gesendet am: Wednesday, December 19, 2001 2:55 PM
> An: Struts Users Mailing List
> Betreff: Re: jsp pages under WEB-INF..
>
> Use this for an index.jsp
>
>
> <%@ page language="java" %>
> <%@ taglib uri="/tags/struts-logic" prefix="logic" %>
> 
>
>
> And then put in a foward to whatever you want to handle the welcome
> action
>
> -- Ted Husted, Husted dot Com, Fairport NY USA.
> -- Custom Software ~ Technical Services.
> -- Tel +1 716 737-3463
> -- http://www.husted.com/struts/
>
>
> [EMAIL PROTECTED] wrote:
>>
>> Hi, I know this question has been answered before, but I cannot find
>> the answer :(
>>
>> I have placed all my jsp pages under a subdirectory of WEB-INF, as
>> recommended by Ted Husted. I would like a default page when I go to
>> the application (like an index.jsp), but I don't know how to do the
>> mapping. I assume I need to put an action mapping or global forward in
>> struts-config.xml and something in web.xml?
>>
>> Any help would be greatly appreciated
>>
>> Thanks
>>
>> /Neil




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: jsp pages under WEB-INF..

2001-12-19 Thread Ted Husted

This will 

> > Use this for an index.jsp
> >
> >
> > <%@ page language="java" %>
> > <%@ taglib uri="/tags/struts-logic" prefix="logic" %>
> > 
> >
> >

But the other won't.

For the standard welcom page, the container sends a redirect back to the
browser, and the browser then retrieves it. The browser can't retrieve
anything under WEB-INF by itself. 

The best all-around solution is to  put your own welcome page that
forwards to a Welcome action. This is a good idea regardless, since it
puts control into the Struts application. What your "welcome" action is
really should be part of the struts-config rather than the web.xml.

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/struts/


[EMAIL PROTECTED] wrote:
> 
> Right, first of all thanks for the replies to this question...
> If my login.jsp lives under WEB-INF, can I still do this? I basically want
> to auto load a welcome page that itself sits beneath WEB-INF. I think I saw
> somewhere recently that you must create an action class and mapping in order
> to be able to access files under WEB-INF? Sorry if this going over old
> issues!
> 
> /Neil
> 
> > Or you can put this into the web.xml file
> >
> >  
> >logon.jsp
> >  
> > So this page will be loaded when you write only your context.
> > example.
> > http://myserver/myContext/ will load hoooppp-> the page
> > http://myserver/myContext/logon.jsp.
> >
> >
> >
> > -Ursprüngliche Nachricht-
> > Von: Ted Husted [mailto:[EMAIL PROTECTED]]
> > Gesendet am: Wednesday, December 19, 2001 2:55 PM
> > An: Struts Users Mailing List
> > Betreff: Re: jsp pages under WEB-INF..
> >
> > Use this for an index.jsp
> >
> >
> > <%@ page language="java" %>
> > <%@ taglib uri="/tags/struts-logic" prefix="logic" %>
> > 
> >
> >
> > And then put in a foward to whatever you want to handle the welcome
> > action
> >
> > -- Ted Husted, Husted dot Com, Fairport NY USA.
> > -- Custom Software ~ Technical Services.
> > -- Tel +1 716 737-3463
> > -- http://www.husted.com/struts/
> >
> >
> > [EMAIL PROTECTED] wrote:
> >>
> >> Hi, I know this question has been answered before, but I cannot find
> >> the answer :(
> >>
> >> I have placed all my jsp pages under a subdirectory of WEB-INF, as
> >> recommended by Ted Husted. I would like a default page when I go to
> >> the application (like an index.jsp), but I don't know how to do the
> >> mapping. I assume I need to put an action mapping or global forward in
> >> struts-config.xml and something in web.xml?
> >>
> >> Any help would be greatly appreciated
> >>
> >> Thanks
> >>
> >> /Neil
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: AW: accessing EJB components from a Struts application?

2001-12-19 Thread Chris Smith

I like MVC as per : http://www.basebeans.com/struts.jsp (and just the 
summary part)

Here is Sun's approach, which I think just sells more hardware, from 
their web site:
"The key design pattern used in the Java Pet Store demo is the 
Model-View-Controller architecture, which separates three distinct forms 
of functionality within the application. To learn more about the 
Model-View-Controller architecture in the Java Pet Store demo, read 
Building Blocks of a J2EE Application from the previous release.
[Java[tm] Pet Store Demo]
JavaTM Pet Store Demo

New in Release 1.3
The Java Pet Store represents a typical e-commerce application, 
presenting views of products and services for sale, including cats, 
dogs, fish, exotic iguanas, and reptiles. The application incorporates 
the following technologies:
 * The JavaServer PagesTM (JSPTM) framework
 * Java Servlet APIs, including filters and listeners
 * The Java Message Service (JMS)
 * Enterprise JavaBeansTM (EJBTM) components, including 
container-managed persistence (CMP), message driven beans (MDB), and the 
EJB Query Language
 * Java Foundation Classes/Swing GUI (J.F.C./Swing) components for a 
rich client user interface launched via Java Web Start software
 * Java APIs for XML
 * Extensible Style Sheets for Transformation (XSLT)
 * Reusable web application framework

The application takes and processes orders, managing credit card 
information, user logins, shipping information, and shopping cart sessions.
"
Do you see how this is to complex? This is why I think people give up 
and go to Microsoft .NET. I would say a large majority of clients are 
moving to .NET.

KISS. (Keep it simple)
To me alternative is Struts as implementation of a MVC Frame work, which 
is a sweet spot, productively applied to a business application. (There 
are others who like coding just to get fun technology). To me EJBs were 
for distributed applications. I think less then 5% of applications out 
there need to be distributed, hence I ask a question why do you need an 
EJB? (Does anyone deploy client side Java?).

Or even this: http://java.sun.com/products/ejb/index.html
What is the business case?
Is it:
"Enterprise JavaBeans servers reduce the complexity of developing 
middleware by providing automatic support for middleware services such 
as transactions, security, database connectivity, and more.
". Is this true, based on your experience with developing EJB? CMP with 
transactions, this comes in handy? Should I only use it when I need 
middleware? What is middleware? I must need it.

I think we all make our choices for our applications and what I chose 
may not be correct for your application.

/* Flame: How can I change the business requirements spec for this 
application so I could use message driven beans? (if you do not get it, 
don't worry */

I would use Action as just an application controler.
Maybe you can just do a FormBean as just a bean and do a DAO by puting a 
  on it for DAO. (And if you go Swing use the same FormBean, Swing 
knows RowSet).

Vic
the FormBean dude.

Stefan Frank wrote:

> Hi,
> 
> i'm not very fond of these Helper-Classes: Most of the time, they only add
> an additional Layer which just proxies calls to the SessionBeans: The
> benefit you get is mostly, that you can wrap all ejb-related errors inside
> the Helpers. This saves you some coding, but most of the time you want to
> react on a RemoteException in a different way the than on a finder
> Exception.
> 
> We code the EJB-Access driectly in the Actions and try to keep the Actions
> small by keeping most of the Code inside SessionBeans (which is a generally
> a good idea, as you can reuse this code in context's where Struts is not
> applicable, eg. with a Swing-Client). In order for this to work, it's a good
> idea, to use a
> SessionFacade(http://java.sun.com/blueprints/patterns/j2ee_patterns/session_
> facade/index.html) to avoid having to code against numerous ejb's in your
> action - in our experience, this is sufficient: A helper-class just doubles
> the Methods of the Facade.
> 
> Check out, if portability from an ejb-Architecture to a pure-jdbc
> Architecture is really a requirement, or if it even is possible: I'm not
> really sure, wether it pays to code independently of the j2ee-architecture,
> as it means to wrap most of the main-features (EntityBean, SessionBean, MDB,
> jndi and so on) - with applicationspecific classes that abstract out the
> functionality: I think in projects under high pressure you throw away all
> the benefits of j2ee with this approach.
> 
> So, by keeping the code in the actions small, we us Actions in a
> "Command"-way: which works quite nicely for us: As there is not so much code
> in the action, we don't have problems with writing new ones or changing the
> old ones.
> 
> hope this helps
> greetings
> stf
> 
> ---
> vierundsechzig.de
> friedensallee 7-9
> 22765 hamburg
> telefon +49 (040) 306033 -43
> telefax +49 (040) 3

RE: jsp pages under WEB-INF..

2001-12-19 Thread neil

I see what you mean, but its a bit tricky to know where to draw the line
sometimes. A typical form which takes user input, may need to be navigated
directly, but at the same time there may be some grounds for wanting it
hidden under WEB-INF.

/Neil

> If I understand the philosophy behind placing JSP pages in WEB-INF, it
> is to secure them as resources... Only JSP pages that are NOT to be
> directly navigated to should go there. These JSP pages can be accessed
> by being included from another JSP page, or forwarded to.
>
> Welcome files, such as index.jsp should continue to reside in the top
> level of your application.
>
> Hope this helps,
> -david




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: jsp pages under WEB-INF..

2001-12-19 Thread neil

Thanks Ted, I'll try this

/Neil

> This will
>
>> > Use this for an index.jsp
>> >
>> >
>> > <%@ page language="java" %>
>> > <%@ taglib uri="/tags/struts-logic" prefix="logic" %>
>> > 
>> >
>> >
>
> But the other won't.
>
> For the standard welcom page, the container sends a redirect back to
> the browser, and the browser then retrieves it. The browser can't
> retrieve anything under WEB-INF by itself.
>
> The best all-around solution is to  put your own welcome page that
> forwards to a Welcome action. This is a good idea regardless, since it
> puts control into the Struts application. What your "welcome" action is
> really should be part of the struts-config rather than the web.xml.
>




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




problem with bean:checkbox

2001-12-19 Thread blaas

Hi all,

I have a big problem with the bean:checkbox tag.

My form class (selectedForm) has two fields, one is a TravelPlan and the
other
is a Vector of  TraveAsset. Both, TravelPlan &  TraveAsset extend the
ActionForm
class as selectedForm do.
In TraveAsset I have a boolean field (selected) to manage from the jsp the
selection
of this asset.
In TravelPlan I have many boolen fields to manage the category of  TP
(family, cultural,
adventure )
The problem is when I use the selected form in my jsp, as I can't manage the
uncheck
of a category in the TravelPlan otherwise the unchecking of the selected
field in the list
of TravelAsset gets always caught by the action class.

my jsp is:




  

  

   Categories:
   


   family
   relax


   adventure
   culture


   summer
   winter

  

  
  

  


  
 Asset Name:
  
  
Selected
  

<%index ++;%>

  

  

  

   
  
   

  



could someone help me?

Tanks


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Compilation error @ struts-blank.war in JBUILDER

2001-12-19 Thread Samuele Brignoli

I' ve followed the article at
http://www1.tramsasp.com/index.php?section=dev&page=jb5Struts11.html

to make working together JBuilder 5 Enterprise and struts. It seems I' ve
configured all properly, but when I try to run the index.jsp page I obtain
the error :


E:\jbuilder5\jdk1.3\bin\javaw -classic -classpath "E:\jbuilder5\Apache
Tomcat
4.0\bin\bootstrap.jar;E:\jbuilder5\java_xml_pack-fall01\jaxp-1.1.3\crimson.j
ar;E:\jbuilder5\java_xml_pack-fall01\jaxp-1.1.3\xalan.jar;E:\jbuilder5\jakar
ta-struts-1.0\lib\jdbc2_0-stdext.jar;E:\jbuilder5\jakarta-struts-1.0\lib\str
uts.jar;E:\jbuilder5\jdk1.3\demo\jfc\Java2D\Java2Demo.jar;E:\jbuilder5\jdk1.
3\jre\lib\i18n.jar;E:\jbuilder5\jdk1.3\jre\lib\jaws.jar;E:\jbuilder5\jdk1.3\
jre\lib\rt.jar;E:\jbuilder5\jdk1.3\jre\lib\sunrsasign.jar;E:\jbuilder5\jdk1.
3\lib\dt.jar;E:\jbuilder5\jdk1.3\lib\tools.jar"  -Dcatalina.home="E:/jbuilde
r5/Apache Tomcat
4.0" -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_shmem,add
ress=javadebug,suspend=y org.apache.catalina.startup.Bootstrap start -config
"Y:\projects\java\strutsblank\conf\server8080.xml"
HttpConnector Opening server socket on all host IP addresses Starting
service Tomcat-Standalone Apache Tomcat/4.0.1 WebappLoader[/strutsblank]:
Deploying class repositories to work directory
Y:\projects\java\strutsblank\work\strutsblank WebappLoader[/strutsblank]:
Deploy JAR /WEB-INF/lib/crimson.jar to
Y:\projects\java\strutsblank\WEB-INF\lib\crimson.jar
WebappLoader[/strutsblank]: Deploy JAR /WEB-INF/lib/jdbc2_0-stdext.jar to
Y:\projects\java\strutsblank\WEB-INF\lib\jdbc2_0-stdext.jar
WebappLoader[/strutsblank]: Deploy JAR /WEB-INF/lib/struts.jar to
Y:\projects\java\strutsblank\WEB-INF\lib\struts.jar
WebappLoader[/strutsblank]: Deploy JAR /WEB-INF/lib/xalan.jar to
Y:\projects\java\strutsblank\WEB-INF\lib\xalan.jar
StandardManager[/strutsblank]: Seeding random number generator class
java.security.SecureRandom StandardManager[/strutsblank]: Seeding of random
number generator has been completed StandardWrapper[/strutsblank:default]:
Loading container servlet default StandardWrapper[/strutsblank:invoker]:
Loading container servlet invoker register('-//Apache Software
Foundation//DTD Struts Configuration 1.0//EN',
'jar:file:/Y:/projects/java/strutsblank/WEB-INF/lib/struts.jar!/org/apache/s
truts/resources/struts-config_1_0.dtd' register('-//Sun Microsystems,
Inc.//DTD Web Application 2.2//EN',
'jar:file:/Y:/projects/java/strutsblank/WEB-INF/lib/struts.jar!/org/apache/s
truts/resources/web-app_2_2.dtd' register('-//Sun Microsystems, Inc.//DTD
Web Application 2.3//EN',
'jar:file:/Y:/projects/java/strutsblank/WEB-INF/lib/struts.jar!/org/apache/s
truts/resources/web-app_2_3.dtd' resolveEntity('-//Apache Software
Foundation//DTD Struts Configuration 1.0//EN',
'http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd')  Resolving to
alternate DTD
'jar:file:/Y:/projects/java/strutsblank/WEB-INF/lib/struts.jar!/org/apache/s
truts/resources/struts-config_1_0.dtd' New
org.apache.struts.action.ActionMapping Set
org.apache.struts.action.ActionMapping properties Call
org.apache.struts.action.ActionServlet.addMapping(ActionMapping[path=/admin/
addFormBean, type=org.apache.struts.actions.AddFormBeanAction]) Pop
org.apache.struts.action.ActionMapping New
org.apache.struts.action.ActionMapping Set
org.apache.struts.action.ActionMapping properties Call
org.apache.struts.action.ActionServlet.addMapping(ActionMapping[path=/admin/
addForward, type=org.apache.struts.actions.AddForwardAction]) Pop
org.apache.struts.action.ActionMapping New
org.apache.struts.action.ActionMapping Set
org.apache.struts.action.ActionMapping properties Call
org.apache.struts.action.ActionServlet.addMapping(ActionMapping[path=/admin/
addMapping, type=org.apache.struts.actions.AddMappingAction]) Pop
org.apache.struts.action.ActionMapping New
org.apache.struts.action.ActionMapping Set
org.apache.struts.action.ActionMapping properties Call
org.apache.struts.action.ActionServlet.addMapping(ActionMapping[path=/admin/
reload, type=org.apache.struts.actions.ReloadAction]) Pop
org.apache.struts.action.ActionMapping New
org.apache.struts.action.ActionMapping Set
org.apache.struts.action.ActionMapping properties Call
org.apache.struts.action.ActionServlet.addMapping(ActionMapping[path=/admin/
removeFormBean, type=org.apache.struts.actions.RemoveFormBeanAction]) Pop
org.apache.struts.action.ActionMapping New
org.apache.struts.action.ActionMapping Set
org.apache.struts.action.ActionMapping properties Call
org.apache.struts.action.ActionServlet.addMapping(ActionMapping[path=/admin/
removeForward, type=org.apache.struts.actions.RemoveForwardAction]) Pop
org.apache.struts.action.ActionMapping New
org.apache.struts.action.ActionMapping Set
org.apache.struts.action.ActionMapping properties Call
org.apache.struts.action.ActionServlet.addMapping(ActionMapping[path=/admin/
removeMapping, type=org.apache.struts.actions.RemoveMappingAction]) Pop
org

I: Compilation error at struts-blank.war in JBUILDER

2001-12-19 Thread Samuele Brignoli



-Messaggio originale-
Da: Samuele Brignoli [mailto:[EMAIL PROTECTED]]
Inviato: mercoledi 19 dicembre 2001 15.59
A: Struts Users Mailing List
Oggetto: Compilation error @ struts-blank.war in JBUILDER


I' ve followed the article at
http://www1.tramsasp.com/index.php?section=dev&page=jb5Struts11.html

to make working together JBuilder 5 Enterprise and struts. It seems I' ve
configured all properly, but when I try to run the index.jsp page I obtain
the error :


E:\jbuilder5\jdk1.3\bin\javaw -classic -classpath "E:\jbuilder5\Apache
Tomcat
4.0\bin\bootstrap.jar;E:\jbuilder5\java_xml_pack-fall01\jaxp-1.1.3\crimson.j
ar;E:\jbuilder5\java_xml_pack-fall01\jaxp-1.1.3\xalan.jar;E:\jbuilder5\jakar
ta-struts-1.0\lib\jdbc2_0-stdext.jar;E:\jbuilder5\jakarta-struts-1.0\lib\str
uts.jar;E:\jbuilder5\jdk1.3\demo\jfc\Java2D\Java2Demo.jar;E:\jbuilder5\jdk1.
3\jre\lib\i18n.jar;E:\jbuilder5\jdk1.3\jre\lib\jaws.jar;E:\jbuilder5\jdk1.3\
jre\lib\rt.jar;E:\jbuilder5\jdk1.3\jre\lib\sunrsasign.jar;E:\jbuilder5\jdk1.
3\lib\dt.jar;E:\jbuilder5\jdk1.3\lib\tools.jar"  -Dcatalina.home="E:/jbuilde
r5/Apache Tomcat
4.0" -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_shmem,add
ress=javadebug,suspend=y org.apache.catalina.startup.Bootstrap start -config
"Y:\projects\java\strutsblank\conf\server8080.xml"
HttpConnector Opening server socket on all host IP addresses Starting
service Tomcat-Standalone Apache Tomcat/4.0.1 WebappLoader[/strutsblank]:
Deploying class repositories to work directory
Y:\projects\java\strutsblank\work\strutsblank WebappLoader[/strutsblank]:
Deploy JAR /WEB-INF/lib/crimson.jar to
Y:\projects\java\strutsblank\WEB-INF\lib\crimson.jar
WebappLoader[/strutsblank]: Deploy JAR /WEB-INF/lib/jdbc2_0-stdext.jar to
Y:\projects\java\strutsblank\WEB-INF\lib\jdbc2_0-stdext.jar
WebappLoader[/strutsblank]: Deploy JAR /WEB-INF/lib/struts.jar to
Y:\projects\java\strutsblank\WEB-INF\lib\struts.jar
WebappLoader[/strutsblank]: Deploy JAR /WEB-INF/lib/xalan.jar to
Y:\projects\java\strutsblank\WEB-INF\lib\xalan.jar
StandardManager[/strutsblank]: Seeding random number generator class
java.security.SecureRandom StandardManager[/strutsblank]: Seeding of random
number generator has been completed StandardWrapper[/strutsblank:default]:
Loading container servlet default StandardWrapper[/strutsblank:invoker]:
Loading container servlet invoker register('-//Apache Software
Foundation//DTD Struts Configuration 1.0//EN',
'jar:file:/Y:/projects/java/strutsblank/WEB-INF/lib/struts.jar!/org/apache/s
truts/resources/struts-config_1_0.dtd' register('-//Sun Microsystems,
Inc.//DTD Web Application 2.2//EN',
'jar:file:/Y:/projects/java/strutsblank/WEB-INF/lib/struts.jar!/org/apache/s
truts/resources/web-app_2_2.dtd' register('-//Sun Microsystems, Inc.//DTD
Web Application 2.3//EN',
'jar:file:/Y:/projects/java/strutsblank/WEB-INF/lib/struts.jar!/org/apache/s
truts/resources/web-app_2_3.dtd' resolveEntity('-//Apache Software
Foundation//DTD Struts Configuration 1.0//EN',
'http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd')  Resolving to
alternate DTD
'jar:file:/Y:/projects/java/strutsblank/WEB-INF/lib/struts.jar!/org/apache/s
truts/resources/struts-config_1_0.dtd' New
org.apache.struts.action.ActionMapping Set
org.apache.struts.action.ActionMapping properties Call
org.apache.struts.action.ActionServlet.addMapping(ActionMapping[path=/admin/
addFormBean, type=org.apache.struts.actions.AddFormBeanAction]) Pop
org.apache.struts.action.ActionMapping New
org.apache.struts.action.ActionMapping Set
org.apache.struts.action.ActionMapping properties Call
org.apache.struts.action.ActionServlet.addMapping(ActionMapping[path=/admin/
addForward, type=org.apache.struts.actions.AddForwardAction]) Pop
org.apache.struts.action.ActionMapping New
org.apache.struts.action.ActionMapping Set
org.apache.struts.action.ActionMapping properties Call
org.apache.struts.action.ActionServlet.addMapping(ActionMapping[path=/admin/
addMapping, type=org.apache.struts.actions.AddMappingAction]) Pop
org.apache.struts.action.ActionMapping New
org.apache.struts.action.ActionMapping Set
org.apache.struts.action.ActionMapping properties Call
org.apache.struts.action.ActionServlet.addMapping(ActionMapping[path=/admin/
reload, type=org.apache.struts.actions.ReloadAction]) Pop
org.apache.struts.action.ActionMapping New
org.apache.struts.action.ActionMapping Set
org.apache.struts.action.ActionMapping properties Call
org.apache.struts.action.ActionServlet.addMapping(ActionMapping[path=/admin/
removeFormBean, type=org.apache.struts.actions.RemoveFormBeanAction]) Pop
org.apache.struts.action.ActionMapping New
org.apache.struts.action.ActionMapping Set
org.apache.struts.action.ActionMapping properties Call
org.apache.struts.action.ActionServlet.addMapping(ActionMapping[path=/admin/
removeForward, type=org.apache.struts.actions.RemoveForwardAction]) Pop
org.apache.struts.action.ActionMapping New
org.apache.struts.action.ActionMapping 

Re: jsp pages under WEB-INF..

2001-12-19 Thread Ted Husted

Orginally, it came up in the context of enforcing MVC and preventing
JSPs from linking to each other.  Another use would be to protected
selected JSPs. Though, once you start to discriminate, an actual
security scheme might be a better option.

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/struts/


"Park, David" wrote:
> 
> If I understand the philosophy behind placing JSP pages in WEB-INF, it
> is to secure them as resources... Only JSP pages that are NOT to be
> directly navigated to should go there. These JSP pages can be accessed
> by being included from another JSP page, or forwarded to.
> 
> Welcome files, such as index.jsp should continue to reside in the top
> level of your application.
> 
> Hope this helps,
> -david
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> Sent: Wed 12/19/2001 1:25 PM
> To: [EMAIL PROTECTED]
> Cc:
> Subject: jsp pages under WEB-INF..
> 
> 
> 
> Hi, I know this question has been answered before, but I cannot
> find the
> answer :(
> 
> I have placed all my jsp pages under a subdirectory of WEB-INF,
> as
> recommended by Ted Husted. I would like a default page when I go
> to the
> application (like an index.jsp), but I don't know how to do the
> mapping. I
> assume I need to put an action mapping or global forward in
> struts-config.xml and something in web.xml?
> 
> Any help would be greatly appreciated
> 
> Thanks
> 
> /Neil
> 
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
>

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Can't build struts with jdk 1.4

2001-12-19 Thread Drozdowski, Terry

I hit a similar problem attempting to build the PostgreSQL JDBC driver with
JDK1.4.  Unfortunately, unless you want to stub out all the required methods
(not a short task), you'll need to also keep 1.3 around to build.  Runtime
with 1.4 and Struts works just fine.  Just make sure you (re)install 1.4
after you install 1.3 - keep you JAVA_HOME pointed at 1.3 when you need to
build and things should work out fine.

--
Terry Drozdowski
Staff, Technology Services
SIM Technology - Phoenix
Charles Schwab & Co.
(602)355-8843
 
"If a picture is worth a thousand words then a model is often worth 1024
lines of code when applied in the right circumstances..."  - Karl Wieger

 
Warning: All e-mail sent to this address will be received by the Charles
Schwab Corporate e-mail system and is subject to archival and review by
someone other than the recipient.


-Original Message-
From: Rick Horowitz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 5:58 PM
To: [EMAIL PROTECTED]
Subject: Can't build struts with jdk 1.4


Hi,

I'm trying to build struts 1.0.1rc1 and am getting a
build error caused by changes to java.sql.Connection
in jdk 1.4. Can the CVS version of struts work with
jdk 1.4? Or is there another way around this problem?
I really want to use jdk 1.4.

Thanks,

Rick Horowitz

init:
- jakarta-struts 1.0 -
java.class.path =
/home/rick/programs/netbeans/netbeans/lib/patches/openide-compat.jar:/home/r
ick/programs/netbeans/netbeans/lib/core.jar:/home/rick/programs/netbeans/net
beans/lib/openide.jar:/home/rick/programs/netbeans/netbeans/lib/ext/crimson.
jar:/home/rick/programs/netbeans/netbeans/lib/ext/jh.jar:/home/rick/programs
/netbeans/netbeans/lib/ext/regexp.jar:/home/rick/programs/netbeans/netbeans/
lib/ext/rmi-ext.jar:/home/rick/programs/netbeans/netbeans/lib/ext/terminalem
ulator.jar:/home/rick/programs/netbeans/netbeans/lib/ext/xerces.jar:/usr/jav
a/j2sdk1.4.0/lib/dt.jar:/usr/java/j2sdk1.4.0/lib/htmlconverter.jar:/usr/java
/j2sdk1.4.0/lib/tools.jar
java.home = /usr/java/j2sdk1.4.0/jre
user.home = /home/rick
prepare.dist:
prepare.library:
compile.library:
Compiling 14 source files to
/home/rick/programs/jakarta/jakarta-struts-1.0.1-src/target/library/classes
src/share/org/apache/struts/util/GenericConnection.java
[89] org.apache.struts.util.GenericConnection should
be declared abstract; it does not define
setHoldability(int) in
org.apache.struts.util.GenericConnection
public class GenericConnection implements Connection {
   ^
Note:
/home/rick/programs/jakarta/jakarta-struts-1.0.1-src/src/share/org/apache/st
ruts/util/PropertyUtils.javauses
or overrides a deprecated API.
Note: Recompile with -deprecation for details.
1 error
build.xml [174] Compile failed, messages should have
been provided.
BUILD FAILED
Total time: 8 seconds


__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Using Swing Components as Visual Bean with struts

2001-12-19 Thread Vimal


Hi,
I am new with struts. I started to work with struts. For certain requirement I want to 
use the swing based Forms with struts. When embedding swing components as visual bean 
with JSP, it display the contents, but calling another Visual bean from current bean 
it throws the exception. Does struts does not supports the visual bean communication 
with each other. Can any one give the solutions.
 
Regards.
Vimal

CCBS
[EMAIL PROTECTED]



RE: How to Forward from one action to another action

2001-12-19 Thread MacKellar, Kimberly

You need to add your object to the request or the session. 
Try adding 
if ("request".equals(mapping.getScope()))
 request.setAttribute(mapping.getAttribute(), oForm);
else
 session.setAttribute(mapping.getAttribute(), oForm);

Where your struts-config.xml contains something like

  


-Original Message-
From: Leena [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 12:14 AM
To: [EMAIL PROTECTED]
Subject: How to Forward from one action to another action


Hi All,

Here is the code which i've written in my action class.

 ABCustomerInfo[] oCustInfo = remote.searchAddressBookByCriteria
(iPartnerId,iBusinessId,data,true);
 System.out.println("Number of Customers "+oCustInfo.length);
 oForm.setCustomers(oCustInfo);
 ActionForward forward = mapping.findForward("browse");
 return (forward);

   Here it gets the data from the remote object. But when i go to the
forwarded browse file, i am getting customerinfo object as null. It says it
is not set. Can anyone help me to fix this?

Thanks and Regards

Leena


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Programming Style, Custom Tags - Opinions?

2001-12-19 Thread Bryan Field-Elliot

Hi all,

I wanted to collect a few opinions on programming style with respect to
Struts and JSP.

The following have been my guiding principles for the last several
Struts projects I've done:

1. When a JSP page needs to ALTER the model (e.g. data will be written),
a Struts Action should be used.

2. When a JSP page needs to RENDER the model (e.g. read data, and
transform it into HTML), a JSP custom tag should be used to "get" the
data into a local (scriptable) variable/bean.

Over time, this strategy produces a roughly 1:1 ratio of Actions to
Custom Tags. Sometimes there's even a gray area concerning where to put
the logic -- e.g. if the very act of reading data will produce a log
entry, technically that's writing to the model -- however, I tend to put
"primarily read" operations into custom tags.

One reason why I do this, is so that the Actions don't necessarily have
to know every single kind of model data the resulting JSP page may want
to draw from. I leave it up to the JSP page to decide.

A drawback is that you end up with so much code in both camps -- it
would be nice if all the code could, for example, extend the same base
classes, or something.

I'd appreciate hearing some opinions on whether or not others have found
this style workable, and if not, then what works better.

Thanks,

Bryan




R: Compilation error at struts-blank.war in JBUILDER * I' ve done but not with Catalina

2001-12-19 Thread Samuele Brignoli

I' ve executed my first struts page ( fiuuu ). I've  changed the app server
to Tomcat 3.2. Isn' t impossibile to make Jbuilder work also with Tomcat 4 ?
Maybe I have to configure all the environment ?

-- bye kako.

---
I' ve followed the article at
http://www1.tramsasp.com/index.php?section=dev&page=jb5Struts11.html

to make working together JBuilder 5 Enterprise and struts. It seems I' ve
configured all properly, but when I try to run the index.jsp page I obtain
the error :


E:\jbuilder5\jdk1.3\bin\javaw -classic -classpath "E:\jbuilder5\Apache
Tomcat
4.0\bin\bootstrap.jar;E:\jbuilder5\java_xml_pack-fall01\jaxp-1.1.3\crimson.j
ar;E:\jbuilder5\java_xml_pack-fall01\jaxp-1.1.3\xalan.jar;E:\jbuilder5\jakar
ta-struts-1.0\lib\jdbc2_0-stdext.jar;E:\jbuilder5\jakarta-struts-1.0\lib\str
uts.jar;E:\jbuilder5\jdk1.3\demo\jfc\Java2D\Java2Demo.jar;E:\jbuilder5\jdk1.
3\jre\lib\i18n.jar;E:\jbuilder5\jdk1.3\jre\lib\jaws.jar;E:\jbuilder5\jdk1.3\
jre\lib\rt.jar;E:\jbuilder5\jdk1.3\jre\lib\sunrsasign.jar;E:\jbuilder5\jdk1.
3\lib\dt.jar;E:\jbuilder5\jdk1.3\lib\tools.jar"  -Dcatalina.home="E:/jbuilde
r5/Apache Tomcat
4.0" -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_shmem,add
ress=javadebug,suspend=y org.apache.catalina.startup.Bootstrap start -config
"Y:\projects\java\strutsblank\conf\server8080.xml"
HttpConnector Opening server socket on all host IP addresses Starting
service Tomcat-Standalone Apache Tomcat/4.0.1 WebappLoader[/strutsblank]:
Deploying class repositories to work directory
Y:\projects\java\strutsblank\work\strutsblank WebappLoader[/strutsblank]:
Deploy JAR /WEB-INF/lib/crimson.jar to
Y:\projects\java\strutsblank\WEB-INF\lib\crimson.jar
WebappLoader[/strutsblank]: Deploy JAR /WEB-INF/lib/jdbc2_0-stdext.jar to
Y:\projects\java\strutsblank\WEB-INF\lib\jdbc2_0-stdext.jar
WebappLoader[/strutsblank]: Deploy JAR /WEB-INF/lib/struts.jar to
Y:\projects\java\strutsblank\WEB-INF\lib\struts.jar
WebappLoader[/strutsblank]: Deploy JAR /WEB-INF/lib/xalan.jar to
Y:\projects\java\strutsblank\WEB-INF\lib\xalan.jar
StandardManager[/strutsblank]: Seeding random number generator class
java.security.SecureRandom StandardManager[/strutsblank]: Seeding of random
number generator has been completed StandardWrapper[/strutsblank:default]:
Loading container servlet default StandardWrapper[/strutsblank:invoker]:
Loading container servlet invoker register('-//Apache Software
Foundation//DTD Struts Configuration 1.0//EN',
'jar:file:/Y:/projects/java/strutsblank/WEB-INF/lib/struts.jar!/org/apache/s
truts/resources/struts-config_1_0.dtd' register('-//Sun Microsystems,
Inc.//DTD Web Application 2.2//EN',
'jar:file:/Y:/projects/java/strutsblank/WEB-INF/lib/struts.jar!/org/apache/s
truts/resources/web-app_2_2.dtd' register('-//Sun Microsystems, Inc.//DTD
Web Application 2.3//EN',
'jar:file:/Y:/projects/java/strutsblank/WEB-INF/lib/struts.jar!/org/apache/s
truts/resources/web-app_2_3.dtd' resolveEntity('-//Apache Software
Foundation//DTD Struts Configuration 1.0//EN',
'http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd')  Resolving to
alternate DTD
'jar:file:/Y:/projects/java/strutsblank/WEB-INF/lib/struts.jar!/org/apache/s
truts/resources/struts-config_1_0.dtd' New
org.apache.struts.action.ActionMapping Set
org.apache.struts.action.ActionMapping properties Call
org.apache.struts.action.ActionServlet.addMapping(ActionMapping[path=/admin/
addFormBean, type=org.apache.struts.actions.AddFormBeanAction]) Pop
org.apache.struts.action.ActionMapping New
org.apache.struts.action.ActionMapping Set
org.apache.struts.action.ActionMapping properties Call
org.apache.struts.action.ActionServlet.addMapping(ActionMapping[path=/admin/
addForward, type=org.apache.struts.actions.AddForwardAction]) Pop
org.apache.struts.action.ActionMapping New
org.apache.struts.action.ActionMapping Set
org.apache.struts.action.ActionMapping properties Call
org.apache.struts.action.ActionServlet.addMapping(ActionMapping[path=/admin/
addMapping, type=org.apache.struts.actions.AddMappingAction]) Pop
org.apache.struts.action.ActionMapping New
org.apache.struts.action.ActionMapping Set
org.apache.struts.action.ActionMapping properties Call
org.apache.struts.action.ActionServlet.addMapping(ActionMapping[path=/admin/
reload, type=org.apache.struts.actions.ReloadAction]) Pop
org.apache.struts.action.ActionMapping New
org.apache.struts.action.ActionMapping Set
org.apache.struts.action.ActionMapping properties Call
org.apache.struts.action.ActionServlet.addMapping(ActionMapping[path=/admin/
removeFormBean, type=org.apache.struts.actions.RemoveFormBeanAction]) Pop
org.apache.struts.action.ActionMapping New
org.apache.struts.action.ActionMapping Set
org.apache.struts.action.ActionMapping properties Call
org.apache.struts.action.ActionServlet.addMapping(ActionMapping[path=/admin/
removeForward, type=org.apache.struts.actions.RemoveForwardAction]) Pop
org.apache.struts.action.ActionMapping New
org.apache

Re: trouble with DB connection pool - style question

2001-12-19 Thread Peter Kordel

I am actually looking at log4j now, but haven't implemented it yet.
Let's stay in touch on that issue?

Andy Timm wrote:
> 
> Ok, this is embarrassing.  Peter, I re-read your
> message, and realized I was already doing everything
> you were (I got everything running FIRST, now I'm
> going back and adding security, connection pooling,
> etc.).  All I had to do was delete the 'work'
> directory and poof.  I've been burned by that so many
> times in my company's app, I can't believe I missed it
> here.  How about logging - do you use log4j?
> (currently I've got a boatload of printlns).  Thanks
> again.
> --- Peter Kordel <[EMAIL PROTECTED]> wrote:
> > Andy, I use Poolman in a Struts application and did
> > it this way:
> > Downloaded poolman-2.1-b1 (you can even use CVS to
> > pull the latest
> > version from their site)
> > Configured poolman.xml to work with mysql
> > 3.23.46/mm.mysql-2.0.8 and
> > stuck it in WEB-INF/classes of my web app
> > BTW this works for both tomcat 3.2.4 and 4.0.1 -
> > with struts-1.0
> > Then I preload an initservlet on startup that grabs
> > a Poolman
> > datasource.
> > It also tears down all pools in destroy()
> > This datasource is stored in a connectionholder
> > object in the
> > servletcontext that acts as a wrapper for Poolman.
> > I used this extra layer of abstraction so I can pull
> > a generic
> > datasource from the servletcontext and call methods
> > such as
> > getConnection() and closeConnection() that in turn
> > call the correct
> > methods in Poolman. That way, I can plug-and-play
> > with alternative
> > connection pools without modifying my application
> > objects.
> >
> > // set up a connection pool with
> > //  from web.xml initparam
> > javax.sql.DataSource defaultPool =
> >   PoolMan.findDataSource(dbName);
> >
> > zConnectionHolder dsPool =
> >   new zConnectionHolder();
> >
> > dsPool.setDefaultPool(defaultPool);
> > context.setAttribute("dsPool",  dsPool);
> >
> > Then I proceed like you:
> > zConnectionHolder dsPool =
> >   (zConnectionHolder) servlet.getServletContext()
> >  .getAttribute("dsPool");
> > java.sql.Connection con =
> >   dsPool.getConnection();
> >
> > dsPool.closeConnection();
> >
> > Works like a charm. Your error makes no mention of
> > anything that looks
> > like a non-tomcat or non-struts object, so it's
> > probably a config error
> > in setting up you web app with tomcat/struts
> > I work like this: develop in a source directory,
> > then deploy to the
> > servlet container (with ant), with a "clean" target
> > if needed, and then
> > bounce tomcat (and apache, if in the loop). I have
> > even run into the
> > need to shut down tomcat, whack my web app *and*
> > tomcat/work directories
> > before deploying - primarily on Unix. And - turn on
> > as much debugging as
> > possible initially. *Logs are your friend*
> > Many pieces have to be happy for it all to work, and
> > they will be happy
> > to let you know if they don't play well with other
> > children. Also, don't
> > do what I do: fix 50 things at once, instead debug
> > incrementally by
> > changing one thing at a time.
> >
> > Be aware that mysql versions 3.23.36 and below fail
> > miserably with
> > Poolman, as Poolman tries to set transaction levels
> > and mysql barfs in
> > technicolor.
> >
> >
> > Andy Timm wrote:
> > >
> > > Hello.  I am trying to implement a DB connection
> > > manager with my Struts webapp.  I created a
> > servlet
> > > that gets called when Tomcat is initialized, that
> > > creates a DbConnectionBroker, and puts it in the
> > > ServletContext:
> > > getServletContext().setAttribute("dbPool",
> > dbPool);
> > >
> > > In a 'ActionForm', I'm validating a username
> > against
> > > the database, so I grab the dbPool object to pass
> > into
> > > my database bean:
> > > DbConnectionBroker pool =
> > >
> >
> (DbConnectionBroker)servlet.getServletContext().getAttribute("dbPool");
> > >
> > > This works fine for the first page.  When I
> > attempt to
> > > access the next page (any other following page),
> > right
> > > after the "checkLogin" tag is called, it throws
> > the
> > > exception below.  Two questions...  First, I would
> > > like to utilize Struts datasource mapping, but
> > don't
> > > know how to do so while using a different
> > connection
> > > manager.  (There was a post yesterday suggesting
> > > Poolman... ) Second, what am I doing wrong so that
> > I
> > > cannot access my next page?  The 'Action' called
> > after
> > > the working page executes normally, then it dies.
> > I'm
> > > loading two servlets (action, and my initDBPool)
> > in
> > > web.xml.  Is there some rule about which must be
> > > loaded first?  I'm new to the whole servlet thing,
> > but
> > > it seems like it's looking to my initDBPool
> > servlet
> > > for information it should find elsewhere (hence
> > the
> > > IncompatibleClassChangeError).  I would be most
> > > grateful if someone could explaine the 'proper'

Re: Using Swing Components as Visual Bean with struts

2001-12-19 Thread BONNET Francois-Xavier

Do you mean you are using applets in your pages. Please give more details.

- Original Message -
From: "Vimal" <[EMAIL PROTECTED]>
Date: Wednesday, December 19, 2001 4:08 pm
Subject: Using Swing Components as Visual Bean with struts

> 
> Hi,
> I am new with struts. I started to work with struts. For certain requirement I want 
> to use the swing based Forms with struts. When embedding swing components as visual 
> bean with JSP, it display the contents, but calling another Visual bean from current 
> bean it throws the exception. Does struts does not supports the visual bean 
> communication with each other. Can any one give the solutions.
> 
> Regards.
> Vimal
> 
> CCBS
> [EMAIL PROTECTED]
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Mail Filter

2001-12-19 Thread Christian Velez


Hi,

I recently joined the mailing list and I am trying create a rule that will
move all email messages to a STRUTS folder when they arrive in my mailbox. I
am using Microsoft Outlook. I can't seem to get a rule that works for 
all messages. Any ideas would be greatly appreciated?

Christian


-Original Message-
From: BONNET Francois-Xavier
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 12:00 PM
To: Struts Users Mailing List; Vimal
Subject: Re: Using Swing Components as Visual Bean with struts


Do you mean you are using applets in your pages. Please give more details.

- Original Message -
From: "Vimal" <[EMAIL PROTECTED]>
Date: Wednesday, December 19, 2001 4:08 pm
Subject: Using Swing Components as Visual Bean with struts

> 
> Hi,
> I am new with struts. I started to work with struts. For certain
requirement I want 
> to use the swing based Forms with struts. When embedding swing components
as visual 
> bean with JSP, it display the contents, but calling another Visual bean
from current 
> bean it throws the exception. Does struts does not supports the visual
bean 
> communication with each other. Can any one give the solutions.
> 
> Regards.
> Vimal
> 
> CCBS
> [EMAIL PROTECTED]
> 


--
To unsubscribe, e-mail:

For additional commands, e-mail:




RE: Problem with bean:define?

2001-12-19 Thread Siggelkow, Bill

Yes that is what I am saying ... I am not sure if the bean:write works ...

(Since I found the problem I was able to find a work-around as noted in a
previous post.)
-Original Message-
From: Keith Bacon [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 7:15 AM
To: Struts Users Mailing List
Subject: RE: Problem with bean:define?


are you saying your jsp is getting null pointer excp
in setAttribute() in the 


Keith. (not much use I suspect - try my best!).

--- "Siggelkow, Bill" <[EMAIL PROTECTED]>
wrote:
> Specifically, I am trying to use the define tag to
> define a variable based
> on a property of the FormBean as follows: (the
> getLocalDate is my own tag
> for rendering dates.
> 
>  property="postDate"
> type="java.util.Date"/>
>  style="long"/>
> 
> -Original Message-
> From: Siggelkow, Bill
> [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 18, 2001 11:33 AM
> To: '[EMAIL PROTECTED]'
> Subject: Problem with bean:define?
> 
> 
> I am using the bean:define tag to make a variable
> available ... he's the
> wierd part ... it works the "first time" I enter the
> form ... but if I
> return to the form because of a validation error ...
> it fails with a
> NullPointerException in the pageContext.setAttribute
> method ... it seems to
> me the second time around it is not finding the
> value for some reason ...
> any ideas?
> 
> Bill Siggelkow
> eBusiness Lead Developer
> 678.579.6458
> Mirant
> http://www.mirant.com
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Mail Filter

2001-12-19 Thread Sobkowski, Andrej

Hmm, not sure this is the place to ask this kind of questions...

Anyways, here you go. Define a rule saying that:
- when a message arrives...
- ... any messages coming from [EMAIL PROTECTED] should be
moved to a separate folder ...
- ... except the ones addresses directly to you or where you are explicitely
in the CC or TO (these may be personal Struts communications not addressed
to the list)

'works fine for me.

HTH

Andrej

> -Original Message-
> From: Christian Velez [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, December 19, 2001 12:06 PM
> To: 'Struts Users Mailing List'
> Subject: Mail Filter
> 
> 
> 
> Hi,
> 
> I recently joined the mailing list and I am trying create a 
> rule that will
> move all email messages to a STRUTS folder when they arrive 
> in my mailbox. I
> am using Microsoft Outlook. I can't seem to get a rule that works for 
> all messages. Any ideas would be greatly appreciated?
> 
> Christian
> 
> 
> -Original Message-
> From: BONNET Francois-Xavier
> [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, December 19, 2001 12:00 PM
> To: Struts Users Mailing List; Vimal
> Subject: Re: Using Swing Components as Visual Bean with struts
> 
> 
> Do you mean you are using applets in your pages. Please give 
> more details.
> 
> - Original Message -
> From: "Vimal" <[EMAIL PROTECTED]>
> Date: Wednesday, December 19, 2001 4:08 pm
> Subject: Using Swing Components as Visual Bean with struts
> 
> > 
> > Hi,
> > I am new with struts. I started to work with struts. For certain
> requirement I want 
> > to use the swing based Forms with struts. When embedding 
> swing components
> as visual 
> > bean with JSP, it display the contents, but calling another 
> Visual bean
> from current 
> > bean it throws the exception. Does struts does not supports 
> the visual
> bean 
> > communication with each other. Can any one give the solutions.
> > 
> > Regards.
> > Vimal
> > 
> > CCBS
> > [EMAIL PROTECTED]
> > 
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 



RE: Problem with bean:define? Issue with Date fields

2001-12-19 Thread Siggelkow, Bill

Well ... if you have been following this thread I thought I had a problem
with the 'define' tag ... actually my problem was not with the define tag.

The problem was I did not include a 'hidden' field to hold a date property
in my form bean.

Once I did this I was able to use the define as I originally intended.

It was a slight inconvenience to realize that I had to provide a special
'get/setDateAsString' type methods to hold the render/transform the date
value.

It would be nice if in the future, the Struts tags supported some automatic
conversion of Date objects.

-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 9:56 AM
To: 'Struts Users Mailing List'
Subject: RE: Problem with bean:define?


Yes that is what I am saying ... I am not sure if the bean:write works ...

(Since I found the problem I was able to find a work-around as noted in a
previous post.)
-Original Message-
From: Keith Bacon [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 7:15 AM
To: Struts Users Mailing List
Subject: RE: Problem with bean:define?


are you saying your jsp is getting null pointer excp
in setAttribute() in the 


Keith. (not much use I suspect - try my best!).

--- "Siggelkow, Bill" <[EMAIL PROTECTED]>
wrote:
> Specifically, I am trying to use the define tag to
> define a variable based
> on a property of the FormBean as follows: (the
> getLocalDate is my own tag
> for rendering dates.
> 
>  property="postDate"
> type="java.util.Date"/>
>  style="long"/>
> 
> -Original Message-
> From: Siggelkow, Bill
> [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 18, 2001 11:33 AM
> To: '[EMAIL PROTECTED]'
> Subject: Problem with bean:define?
> 
> 
> I am using the bean:define tag to make a variable
> available ... he's the
> wierd part ... it works the "first time" I enter the
> form ... but if I
> return to the form because of a validation error ...
> it fails with a
> NullPointerException in the pageContext.setAttribute
> method ... it seems to
> me the second time around it is not finding the
> value for some reason ...
> any ideas?
> 
> Bill Siggelkow
> eBusiness Lead Developer
> 678.579.6458
> Mirant
> http://www.mirant.com
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Mail Filter

2001-12-19 Thread Tom Lister

Hi
I use tools/inbox assistant to to create a rule to redirect mail for
[EMAIL PROTECTED]; Struts Users Mailing List; Struts User;
Struts
to a struts folder
e.g.


:-)Regards
[EMAIL PROTECTED]  
Advanced Banking Solutions Limited
+44 (0)20 7448 9146
º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤ºº¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤ºº¤ø,
¸¸,ø¤º°'°º¤ø,¸¸,
This email and any attachments are confidential. They may contain privileged

information or useless trivia and are intended for the named addressee (s)
only. 
They must not be distributed without our consent. If you are not the
intended recipient, 
please notify us immediately and do not disclose, distribute, or retain this
email or any
part of it. Unless expressly stated, opinions in this email are those of the

individual sender, and not of Advanced Banking Solutions Limited. We believe

but do not warrant that this e-mail and any attachments are virus free. You
must
therefore take full responsibility for virus checking. Advanced Banking
Solutions
Limited and its subsidiaries reserve the right to monitor all email
communications
through their networks. 
º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤ºº¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤ºº¤ø,
¸¸,ø¤º°'°º¤ø,¸¸,


-Original Message-
From:   Christian Velez [SMTP:[EMAIL PROTECTED]]
Sent:   19 December 2001 17:06
To: 'Struts Users Mailing List'
Subject:Mail Filter


Hi,

I recently joined the mailing list and I am trying create a rule
that will
move all email messages to a STRUTS folder when they arrive in my
mailbox. I
am using Microsoft Outlook. I can't seem to get a rule that works
for 
all messages. Any ideas would be greatly appreciated?

Christian


-Original Message-
From: BONNET Francois-Xavier
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 12:00 PM
To: Struts Users Mailing List; Vimal
Subject: Re: Using Swing Components as Visual Bean with struts


Do you mean you are using applets in your pages. Please give more
details.

- Original Message -
From: "Vimal" <[EMAIL PROTECTED]>
Date: Wednesday, December 19, 2001 4:08 pm
Subject: Using Swing Components as Visual Bean with struts

> 
> Hi,
> I am new with struts. I started to work with struts. For certain
requirement I want 
> to use the swing based Forms with struts. When embedding swing
components
as visual 
> bean with JSP, it display the contents, but calling another Visual
bean
from current 
> bean it throws the exception. Does struts does not supports the
visual
bean 
> communication with each other. Can any one give the solutions.
> 
> Regards.
> Vimal
> 
> CCBS
> [EMAIL PROTECTED]
> 


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Can't build struts with jdk 1.4

2001-12-19 Thread Rick Horowitz

Thanks Terry. You answered the key question...that I
can build Struts with jdk 1.3 and run with jdk 1.4.
Much appreciated.

Rick Horowitz
--- "Drozdowski, Terry" <[EMAIL PROTECTED]>
wrote:
> I hit a similar problem attempting to build the
> PostgreSQL JDBC driver with
> JDK1.4.  Unfortunately, unless you want to stub out
> all the required methods
> (not a short task), you'll need to also keep 1.3
> around to build.  Runtime
> with 1.4 and Struts works just fine.  Just make sure
> you (re)install 1.4
> after you install 1.3 - keep you JAVA_HOME pointed
> at 1.3 when you need to
> build and things should work out fine.
> 
> --
> Terry Drozdowski
> Staff, Technology Services
> SIM Technology - Phoenix
> Charles Schwab & Co.
> (602)355-8843
>  
> "If a picture is worth a thousand words then a model
> is often worth 1024
> lines of code when applied in the right
> circumstances..."  - Karl Wieger
> 
>  
> Warning: All e-mail sent to this address will be
> received by the Charles
> Schwab Corporate e-mail system and is subject to
> archival and review by
> someone other than the recipient.
> 
> 
> -Original Message-
> From: Rick Horowitz [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 18, 2001 5:58 PM
> To: [EMAIL PROTECTED]
> Subject: Can't build struts with jdk 1.4
> 
> 
> Hi,
> 
> I'm trying to build struts 1.0.1rc1 and am getting a
> build error caused by changes to java.sql.Connection
> in jdk 1.4. Can the CVS version of struts work with
> jdk 1.4? Or is there another way around this
> problem?
> I really want to use jdk 1.4.
> 
> Thanks,
> 
> Rick Horowitz
> 
> init:
> - jakarta-struts 1.0 -
> java.class.path =
>
/home/rick/programs/netbeans/netbeans/lib/patches/openide-compat.jar:/home/r
>
ick/programs/netbeans/netbeans/lib/core.jar:/home/rick/programs/netbeans/net
>
beans/lib/openide.jar:/home/rick/programs/netbeans/netbeans/lib/ext/crimson.
>
jar:/home/rick/programs/netbeans/netbeans/lib/ext/jh.jar:/home/rick/programs
>
/netbeans/netbeans/lib/ext/regexp.jar:/home/rick/programs/netbeans/netbeans/
>
lib/ext/rmi-ext.jar:/home/rick/programs/netbeans/netbeans/lib/ext/terminalem
>
ulator.jar:/home/rick/programs/netbeans/netbeans/lib/ext/xerces.jar:/usr/jav
>
a/j2sdk1.4.0/lib/dt.jar:/usr/java/j2sdk1.4.0/lib/htmlconverter.jar:/usr/java
> /j2sdk1.4.0/lib/tools.jar
> java.home = /usr/java/j2sdk1.4.0/jre
> user.home = /home/rick
> prepare.dist:
> prepare.library:
> compile.library:
> Compiling 14 source files to
>
/home/rick/programs/jakarta/jakarta-struts-1.0.1-src/target/library/classes
>
src/share/org/apache/struts/util/GenericConnection.java
> [89] org.apache.struts.util.GenericConnection should
> be declared abstract; it does not define
> setHoldability(int) in
> org.apache.struts.util.GenericConnection
> public class GenericConnection implements Connection
> {
>^
> Note:
>
/home/rick/programs/jakarta/jakarta-struts-1.0.1-src/src/share/org/apache/st
> ruts/util/PropertyUtils.javauses
> or overrides a deprecated API.
> Note: Recompile with -deprecation for details.
> 1 error
> build.xml [174] Compile failed, messages should have
> been provided.
> BUILD FAILED
> Total time: 8 seconds
> 
> 
> __
> Do You Yahoo!?
> Check out Yahoo! Shopping and Yahoo! Auctions for
> all of
> your unique holiday gifts! Buy at
> http://shopping.yahoo.com
> or bid at http://auctions.yahoo.com
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Help with understanding validation and reset

2001-12-19 Thread Siggelkow, Bill

Okay, 
I do not think I understand the contract of the ActionForm validate
method.  The problem I am having is that I appear to
lose some a data value when I return to an input page after I return
validation errors.  Specifically, I have a Date property called 'postDate'
... the value of this property is displayed on the page (but NOT in a
form-field).  The date displays the first time I enter the page (after my
action that populates the form) but this property is blank (null) when I
return to the form (set as the 'input' attribute in the struts-config) to
display validation  errors.

BTW, I have set the form in the request scope in the Action mapping ...
should I be using a different scope?

Do I need to represent this date property as a hidden field on my form?  I
think that is my problem.

Ahhh - I grok!  The action servlet creates a new form when I press Submit --
this form does not have the postDate property set.

Bill Siggelkow
eBusiness Lead Developer
678.579.6458
Mirant
http://www.mirant.com


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: AW: accessing EJB components from a Struts application?

2001-12-19 Thread Cakalic, James

If I had more time I would comment on this more fully as it seems some of
the ideas being expressed here are off-the-mark and short-sighted.

I don't mean to go on a rant here, but my job would be much easier if we
just used JSPs and JDBC. To heck with those creative types; if they can't
read our Java code then they shouldn't have a role in development. If they
want to change the look and feel of the application, let them just try to
work around my code. And why should I care about extensibility, flexibility,
maintainability, robustness, and scalability? I'm being measured on whether
I deliver the system by a specific date. Let the maintenance team figure out
that other stuff. I mean, don't they have the other 80% of the software's
life to do that? All I have is the first 20%! Model-View-Controller -- what
is up with that anyway? Aren't web applications just about displaying
something in a browser? If the user can't see it, it doesn't matter. All
that pattern garbage is just wasteful muttering. How often do application
requirements really change anyway? I think those guys at Prentice-Hall just
made it all up because they wanted to sell more books. All that stuff about
transactions and security. Isn't that why I buy a database? And why should I
let the people deploying the application make any decisions? They didn't
help me when implementing the application. Why should I care whether it is
easy to deploy and administer? Oh yeah, while I'm on the topic, this whole
open source thing is really worrisome. I mean, how can I trust that code?
And those licenses -- don't they say that I have to open up and give away
everything that I write if even one line of open source is in my
application? And why is that there seem to be multiple solutions to the same
problem? Jeez -- Jakarta even has two different regular expression
implementations. I wish one vendor would step in and give me just one way to
do everything on one hardware platform in one development environment with a
fixed set of services. Don't all good ideas come from one place anyway?
Excuse me, I've got some JSP/JDBC work to do -- or was that ASP/ODBC? See!
Now you got me all confused!

;-)

Best regards,
Jim Cakalic



> -Original Message-
> From: Chris Smith [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, December 19, 2001 8:21 AM
> To: Struts Users Mailing List
> Cc: [EMAIL PROTECTED]
> Subject: Re: AW: accessing EJB components from a Struts application?
> 
> 
> I like MVC as per : http://www.basebeans.com/struts.jsp (and just the 
> summary part)
> 
> Here is Sun's approach, which I think just sells more hardware, from 
> their web site:
> "The key design pattern used in the Java Pet Store demo is the 
> Model-View-Controller architecture, which separates three 
> distinct forms 
> of functionality within the application. To learn more about the 
> Model-View-Controller architecture in the Java Pet Store demo, read 
> Building Blocks of a J2EE Application from the previous release.
> [Java[tm] Pet Store Demo]
> JavaTM Pet Store Demo
> 
> New in Release 1.3
> The Java Pet Store represents a typical e-commerce application, 
> presenting views of products and services for sale, including cats, 
> dogs, fish, exotic iguanas, and reptiles. The application 
> incorporates 
> the following technologies:
>  * The JavaServer PagesTM (JSPTM) framework
>  * Java Servlet APIs, including filters and listeners
>  * The Java Message Service (JMS)
>  * Enterprise JavaBeansTM (EJBTM) components, including 
> container-managed persistence (CMP), message driven beans 
> (MDB), and the 
> EJB Query Language
>  * Java Foundation Classes/Swing GUI (J.F.C./Swing) 
> components for a 
> rich client user interface launched via Java Web Start software
>  * Java APIs for XML
>  * Extensible Style Sheets for Transformation (XSLT)
>  * Reusable web application framework
> 
> The application takes and processes orders, managing credit card 
> information, user logins, shipping information, and shopping 
> cart sessions.
> "
> Do you see how this is to complex? This is why I think people give up 
> and go to Microsoft .NET. I would say a large majority of clients are 
> moving to .NET.
> 
> KISS. (Keep it simple)
> To me alternative is Struts as implementation of a MVC Frame 
> work, which 
> is a sweet spot, productively applied to a business 
> application. (There 
> are others who like coding just to get fun technology). To me 
> EJBs were 
> for distributed applications. I think less then 5% of 
> applications out 
> there need to be distributed, hence I ask a question why do 
> you need an 
> EJB? (Does anyone deploy client side Java?).
> 
> Or even this: http://java.sun.com/products/ejb/index.html
> What is the business case?
> Is it:
> "Enterprise JavaBeans servers reduce the complexity of developing 
> middleware by providing automatic support for middleware 
> services such 
> as transactions, security, database connectivity, and more.

RE: Problem with bean:define?

2001-12-19 Thread Siggelkow, Bill

Well, I did a test and bean:write displays the date the first time thru, but
then displays nothing when I return to the page to display validation
errors?  Why would this value be getting cleared in my form?  I null out all
my fields in the reset method including this 'postDate' property.  Any
ideas?   

-Original Message-
From: Keith Bacon [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 7:15 AM
To: Struts Users Mailing List
Subject: RE: Problem with bean:define?


are you saying your jsp is getting null pointer excp
in setAttribute() in the 


Keith. (not much use I suspect - try my best!).

--- "Siggelkow, Bill" <[EMAIL PROTECTED]>
wrote:
> Specifically, I am trying to use the define tag to
> define a variable based
> on a property of the FormBean as follows: (the
> getLocalDate is my own tag
> for rendering dates.
> 
>  property="postDate"
> type="java.util.Date"/>
>  style="long"/>
> 
> -Original Message-
> From: Siggelkow, Bill
> [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 18, 2001 11:33 AM
> To: '[EMAIL PROTECTED]'
> Subject: Problem with bean:define?
> 
> 
> I am using the bean:define tag to make a variable
> available ... he's the
> wierd part ... it works the "first time" I enter the
> form ... but if I
> return to the form because of a validation error ...
> it fails with a
> NullPointerException in the pageContext.setAttribute
> method ... it seems to
> me the second time around it is not finding the
> value for some reason ...
> any ideas?
> 
> Bill Siggelkow
> eBusiness Lead Developer
> 678.579.6458
> Mirant
> http://www.mirant.com
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Problem with bean:define?

2001-12-19 Thread MacKellar, Kimberly

This is happening because when you click submit and go to validate(...) in
your form class a new form is created and populated with the request
parameters from the JSP page.  So if you don't have postDate as a hidden
field or put the form in session the value will be lost.  Ted posted a
message on this topic not too long ago about how to handle this situation.

Kimberly MacKellar

-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 9:16 AM
To: 'Struts Users Mailing List'
Subject: RE: Problem with bean:define?


Well, I did a test and bean:write displays the date the first time thru, but
then displays nothing when I return to the page to display validation
errors?  Why would this value be getting cleared in my form?  I null out all
my fields in the reset method including this 'postDate' property.  Any
ideas?   

-Original Message-
From: Keith Bacon [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 7:15 AM
To: Struts Users Mailing List
Subject: RE: Problem with bean:define?


are you saying your jsp is getting null pointer excp
in setAttribute() in the 


Keith. (not much use I suspect - try my best!).

--- "Siggelkow, Bill" <[EMAIL PROTECTED]>
wrote:
> Specifically, I am trying to use the define tag to
> define a variable based
> on a property of the FormBean as follows: (the
> getLocalDate is my own tag
> for rendering dates.
> 
>  property="postDate"
> type="java.util.Date"/>
>  style="long"/>
> 
> -Original Message-
> From: Siggelkow, Bill
> [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 18, 2001 11:33 AM
> To: '[EMAIL PROTECTED]'
> Subject: Problem with bean:define?
> 
> 
> I am using the bean:define tag to make a variable
> available ... he's the
> wierd part ... it works the "first time" I enter the
> form ... but if I
> return to the form because of a validation error ...
> it fails with a
> NullPointerException in the pageContext.setAttribute
> method ... it seems to
> me the second time around it is not finding the
> value for some reason ...
> any ideas?
> 
> Bill Siggelkow
> eBusiness Lead Developer
> 678.579.6458
> Mirant
> http://www.mirant.com
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Hiding Struts Action Statements From Nav?

2001-12-19 Thread Matt Koidin

Is it possible to hide the Struts action statements from my navbar?

When I start my application I go to:

http://www.myapp.com/web/

Is it possible to have it stay with that root address and not change to:

http://www.myapp.com/web/action1.do
etc.

as I move around?

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




1 ActionHandler and 2 ActionForms

2001-12-19 Thread John Ng

Is there any way to link/specify 2 actionforms to one
action handler on struts-config.xml?

Thanks!

John




__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Hiding Struts Action Statements From Nav?

2001-12-19 Thread ltorrence

You could put your page in a frameset. Then the address bar would't change
when you navigated from page to page. Might cause other complications
though.

-Original Message-
From: Matt Koidin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 2:27 PM
To: Struts Users Mailing List
Subject: Hiding Struts Action Statements From Nav?


Is it possible to hide the Struts action statements from my navbar?

When I start my application I go to:

http://www.myapp.com/web/

Is it possible to have it stay with that root address and not change to:

http://www.myapp.com/web/action1.do
etc.

as I move around?

--
To unsubscribe, e-mail:

For additional commands, e-mail:




Re: Hiding Struts Action Statements From Nav?

2001-12-19 Thread Matt Raible

This is only possible if you use frames and "hide" one of them.  Quite a pain
to hide the URL - users never look at it much anyway.  Hackers might though...


--- Matt Koidin <[EMAIL PROTECTED]> wrote:
> Is it possible to hide the Struts action statements from my navbar?
> 
> When I start my application I go to:
> 
> http://www.myapp.com/web/
> 
> Is it possible to have it stay with that root address and not change to:
> 
> http://www.myapp.com/web/action1.do
> etc.
> 
> as I move around?
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 


__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




use of on variable columns and rows?

2001-12-19 Thread Leo Li

My application need to display a table with the
variable column and row.
I have tried to use nested  but it
won't work. 




   

  
  



Could someone help me?

Thanks

__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




JADE

2001-12-19 Thread Sandeep Takhar

there is an IBM UI Framework called JADE.  We are
currently evaluating it against Struts.  Has anyone
used it and done a comparison before?  Does anyone
have any comments about this UI Framework at all?

btw: there is a newer version of Jade which is 2.5 and
it is much closer to Struts now than in the past.

I still prefer Struts, but I want to be open to
everything and judge things fairly.


thanks,

Sandeep

__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: JADE

2001-12-19 Thread Sean Gollschewsky

Sorry to not answer your question, but I have been hunting for
information about JADE, and have had no luck.  Do you have any URLs,
PDFs, anything that might give me more information?

Thanks

Sean.

-Original Message-
From: Sandeep Takhar [mailto:[EMAIL PROTECTED]] 
Sent: 19 December 2001 21:01
To: Struts Mailing List
Subject: JADE

there is an IBM UI Framework called JADE.  We are
currently evaluating it against Struts.  Has anyone
used it and done a comparison before?  Does anyone
have any comments about this UI Framework at all?

btw: there is a newer version of Jade which is 2.5 and
it is much closer to Struts now than in the past.

I still prefer Struts, but I want to be open to
everything and judge things fairly.


thanks,

Sandeep

__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: servlet question

2001-12-19 Thread William Shulman


Thanks Keith-

I looked through all of the xml files (web.xml, server.xml, etc) as
well as looking through the DTD's. I did a grep for HttpServletRequest
and found nothing special. In conf/web.xml I did find a way to define
the default servlet but that is not what I am looking for. I looked at
the spec and found nothing. 

I did all this before I sent the original email and again after you
listed your suggestions. 

If you know the right xml file, could you tell me?

thanks
-will


Keith Bacon writes:
 > Hi William - just quick suggestions
 > 1 - search for files called *.xml & look in them.
 > 2 - or scan all files for "HttpServletRequest"
 > That ought to find them.
 > Just maybe the servlet spec specifies where this info
 > is stored?
 > Keith.
 > 
 > --- William Shulman <[EMAIL PROTECTED]> wrote:
 > > 
 > > Assume one is using a servlet container (like Tomcat
 > > or similar).
 > > Is there a way to specify to the servlet container
 > > which class 
 > > implementations to use for HttpServletRequest and
 > > Session ? 
 > > I am guessing that there may exist factories for
 > > producing 
 > > instances of these classes and I am wondering if
 > > there is a 
 > > hook, standard or specific to vendor, that will
 > > allow me to 
 > > specify my own implementations of these classes /
 > > interfaces.
 > > 
 > > thanks in advance
 > > -will
 > > 
 > > --
 > > To unsubscribe, e-mail:  
 > > 
 > > For additional commands, e-mail:
 > > 
 > > 
 > 
 > 
 > __
 > Do You Yahoo!?
 > Check out Yahoo! Shopping and Yahoo! Auctions for all of
 > your unique holiday gifts! Buy at http://shopping.yahoo.com
 > or bid at http://auctions.yahoo.com
 > 
 > --
 > To unsubscribe, e-mail:   
 > For additional commands, e-mail: 
 > 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




form beans bound to session

2001-12-19 Thread Peter Wong


Hi,

If a session scope action has an associated form bean, it will be
bound to http session once the action is invoked.
If a user does not navigate to a "natural exit point" so that it can
be explicitly removed in application code, there could be unnecessary
form beans in session.
Are there any strategies to deal with this?

Thanks.

Peter


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: servlet question

2001-12-19 Thread William Shulman


Thanks Keith-

I did this before (and just did it again to be sure). None of the .xml
in files in my Tomcat dist (server.xml, web.xml, etc..) seem to
contain configuration of these elements. I do see where you can
specify 'servlet-name' in web.xml to define the Servlet class, but
this is not what I am looking for. I also looked at the dtd
definitions to see if they mention tags where I can define the 
HttpServletRequest and/or Session class -- no luck there either. 

I also did a "find . | xargs grep HttpServletRequest" and did not find
anything useful.

if you know which xml file allows for the configuration of these
classes, would you tell me?

-will


Keith Bacon writes:
 > Hi William - just quick suggestions
 > 1 - search for files called *.xml & look in them.
 > 2 - or scan all files for "HttpServletRequest"
 > That ought to find them.
 > Just maybe the servlet spec specifies where this info
 > is stored?
 > Keith.
 > 
 > --- William Shulman <[EMAIL PROTECTED]> wrote:
 > > 
 > > Assume one is using a servlet container (like Tomcat
 > > or similar).
 > > Is there a way to specify to the servlet container
 > > which class 
 > > implementations to use for HttpServletRequest and
 > > Session ? 
 > > I am guessing that there may exist factories for
 > > producing 
 > > instances of these classes and I am wondering if
 > > there is a 
 > > hook, standard or specific to vendor, that will
 > > allow me to 
 > > specify my own implementations of these classes /
 > > interfaces.
 > > 
 > > thanks in advance
 > > -will
 > > 
 > > --
 > > To unsubscribe, e-mail:  
 > > 
 > > For additional commands, e-mail:
 > > 
 > > 
 > 
 > 
 > __
 > Do You Yahoo!?
 > Check out Yahoo! Shopping and Yahoo! Auctions for all of
 > your unique holiday gifts! Buy at http://shopping.yahoo.com
 > or bid at http://auctions.yahoo.com
 > 
 > --
 > To unsubscribe, e-mail:   
 > For additional commands, e-mail: 
 > 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Request Attribut and forward ??

2001-12-19 Thread tw . richter

Hello,

and thanks TWIC for the comments on large selection lists (by the way: where is the 
pager taglib?).

For the html:select and html:option I am using beans as describes in the 
struts-example. I've got a mask and a Form Action where I build the selection list. In 
the Action class I use a session.setAttribute("selectbean",list) and forward to the 
same mask. 
So far it works fine, BUT: I have a bad feeling to use session variables (because of 
the potential junk of memory..), so I want to use request variables with 
request.setAttribute("selectbean",list). But this doesn't work - I don't understand 
the reason. Isn't it a forward method which keeps the request parameters?
What is my misunderstanding?

Best regard and thanks
Thomas

>:-) As sceptical as one can be! (-:<



--
Get a fun email address at http://another.com
COOL: Personalise a t-shirt with your name/email/slogan 
from 9.99 pounds. CLICK HERE http://another-shop.com


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


Re: 1 ActionHandler and 2 ActionForms

2001-12-19 Thread Ted Husted

Are you trying to get two ActionForm beans populated, or use a different
form with the same Action at different times?

As it stands, the ActionServlet will try and populate whatever
ActionForm was specified for the request. 

That form is then passed to perform. 

Any ActionForm subclass can be passed to an Action. It just needs to
know which one to expect. You could determine that through reflection,
or looking at the type in the mapping, or via the generic parameter
property.

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/struts/


John Ng wrote:
> 
> Is there any way to link/specify 2 actionforms to one
> action handler on struts-config.xml?
> 
> Thanks!
> 
> John
> 
> __
> Do You Yahoo!?
> Check out Yahoo! Shopping and Yahoo! Auctions for all of
> your unique holiday gifts! Buy at http://shopping.yahoo.com
> or bid at http://auctions.yahoo.com
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Country List

2001-12-19 Thread Kevin J. Turner

I am involved in converting a large Active Server Pages (ASP)
application to a JSP/Servlets solution, using the Struts framework. I am
new to Struts and I have a relatively okay grasp of JSP/Servlets/Struts.
 
A few of the pages in the current project use an ASP include file that
creates an HTML SELECT object of Country names and their corresponding
2-digit ISO codes.. The code is encapsulated in a function call, with
the country code to be selected passed in as a parameter, as follows:
 
--- snip ---
<%
Call CountryList("country", "CA")
%>
--- snip ---
 
which produces HTML similar to the following:
 
--- snip ---

  Canada
  United States
  France
  Fiji
  Finland
  ...
  etc

--- snip ---
 
I would like to duplicate this functionality using
JSP/Struts/JavaBeans.. whatever.. but I'm not sure the best way to do
it. Could some offer advice on what the most elegant approach to this
would be? The obvious goal would be to have a reusable component/module
that produces the necessary HTML based on a static list of country names
and codes, and to be able to pre-select a country.
 
Any advice is appreciated.
 
Regards,
 
Kevin J. Turner



Re: Country List

2001-12-19 Thread Chris Opacki

I believe you can get the information you need in the
Locale class. I'm pretty sure it has all of that
information in it. From there you may create a Helper
object that builds the options for the select
statement.

--- "Kevin J. Turner" <[EMAIL PROTECTED]> wrote:
> I am involved in converting a large Active Server
> Pages (ASP)
> application to a JSP/Servlets solution, using the
> Struts framework. I am
> new to Struts and I have a relatively okay grasp of
> JSP/Servlets/Struts.
>  
> A few of the pages in the current project use an ASP
> include file that
> creates an HTML SELECT object of Country names and
> their corresponding
> 2-digit ISO codes.. The code is encapsulated in a
> function call, with
> the country code to be selected passed in as a
> parameter, as follows:
>  
> --- snip ---
> <%
> Call CountryList("country", "CA")
> %>
> --- snip ---
>  
> which produces HTML similar to the following:
>  
> --- snip ---
> 
>   Canada
>   United States
>   France
>   Fiji
>   Finland
>   ...
>   etc
> 
> --- snip ---
>  
> I would like to duplicate this functionality using
> JSP/Struts/JavaBeans.. whatever.. but I'm not sure
> the best way to do
> it. Could some offer advice on what the most elegant
> approach to this
> would be? The obvious goal would be to have a
> reusable component/module
> that produces the necessary HTML based on a static
> list of country names
> and codes, and to be able to pre-select a country.
>  
> Any advice is appreciated.
>  
> Regards,
>  
> Kevin J. Turner
> 


__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Country List

2001-12-19 Thread Rob Parker

how about something like this - you could do a lot to improve this, but here
is the basic idea. Better yet, use a properties file or a database to
specify the country list. Then use the Collection returned from this method
from the  tag to create the option list for the select.

import java.util.ArrayList;
import java.util.Collection;
import .../.../LabelValueBean;

public class ListHelper{

public String[][] countryList = {{"United States", "US"},{"Canada",
"CA"}...

public Collection getCountryList(){
ArrayList list = new ArrayList();
for(int i=0;imailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 2:14 PM
To: Struts Users Mailing List
Subject: Country List


I am involved in converting a large Active Server Pages (ASP)
application to a JSP/Servlets solution, using the Struts framework. I am
new to Struts and I have a relatively okay grasp of JSP/Servlets/Struts.

A few of the pages in the current project use an ASP include file that
creates an HTML SELECT object of Country names and their corresponding
2-digit ISO codes.. The code is encapsulated in a function call, with
the country code to be selected passed in as a parameter, as follows:

--- snip ---
<%
Call CountryList("country", "CA")
%>
--- snip ---

which produces HTML similar to the following:

--- snip ---

  Canada
  United States
  France
  Fiji
  Finland
  ...
  etc

--- snip ---

I would like to duplicate this functionality using
JSP/Struts/JavaBeans.. whatever.. but I'm not sure the best way to do
it. Could some offer advice on what the most elegant approach to this
would be? The obvious goal would be to have a reusable component/module
that produces the necessary HTML based on a static list of country names
and codes, and to be able to pre-select a country.

Any advice is appreciated.

Regards,

Kevin J. Turner


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




New User Question..How to refer to my formbean in a sciplet

2001-12-19 Thread Strichartz, Beth

Hello,

IN my jsp; I want to set a variable in my form bean (which is in scope)that
requires an argument

Can I 
<%MyFormbean.setBank(code) %> 
I get the error: Non Static method cannot be referenced from a static
context

How can I refer to my Form???


This message contains information which may be confidential and privileged.
Unless you are the addressee  (or authorized to receive for the addressee),
you may not use, copy or disclose to anyone the message or any information
contained in the message.  If you have received the message in error, please
advise the sender by reply e-mail, and delete or destroy the message. 

Thank you.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Servlet error

2001-12-19 Thread Lawrence, Jane K

I am getting the following error (the output is from WebLogic Server 6.0)


  
<[WebAppServletContext(3194122,maf)] Root cause of ServletException
javax.servlet.jsp.JspException: MultipartIterator: no multipart request data
sent
at
org.apache.struts.taglib.template.InsertTag.doEndTag(InsertTag.java:149)
at jsp_servlet._view._viewdetail._jspService(_viewdetail.java:211)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:213)
at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
l.java:153)
at
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
va:1758)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1595)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:213)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:1302)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:1676)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

I am attempting to modify an application that works as follows:
1.  Bring up a form filled with data from master document.
2.  Click on button to bring up another "attachment" form.
3.  On attachment form, identify name and directory path of a
document to "attach" to the information on the main form.
4.  Click on "attach" button, process runs to link main document
with attachment and returns to main screen.

The goal is to redirect the attach button so it just returns itself to the
attachment screen so the users can attach multiple documents
at once without flipping back and forth between the master screen and the
attachment screen.  That I got going fine.  But it's the
return button that's causing this error when I try to direct it back to the
main screen.  I seem to have the key for the master document,
but I'm wondering if the complaint relates to the collection of attachment
objects.

Oh, and this is stateless. 

Has anyone seen this error before?


Jane K. Lawrence
EC Systems Consultant
Ball Corporation
303-460-5225

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




help with iterate tag

2001-12-19 Thread Fred Livingston

Hi all:

I am having a problem with iterate tags:

The following line of code returns a correct result independent of an
interate tag:



Thus I know the bean has the information I want...

But the following gives errors:



...

with these errors:

Location: /userdisplay.jsp
Internal Servlet Error:
javax.servlet.ServletException: Cannot find bean userInfoForm in scope null
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:459)

Any thoughts? I have fussed around with many of the logic:iterate
parameters...

Thanks in advance

-Fred


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Country List

2001-12-19 Thread Rob Parker

Sorry - left out the return statement

public Collection getCountryList(){
ArrayList list = new ArrayList();
for(int i=0;imailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 2:37 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: Country List


how about something like this - you could do a lot to improve this, but here
is the basic idea. Better yet, use a properties file or a database to
specify the country list. Then use the Collection returned from this method
from the  tag to create the option list for the select.

import java.util.ArrayList;
import java.util.Collection;
import .../.../LabelValueBean;

public class ListHelper{

public String[][] countryList = {{"United States", "US"},{"Canada",
"CA"}...

public Collection getCountryList(){
ArrayList list = new ArrayList();
for(int i=0;imailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 2:14 PM
To: Struts Users Mailing List
Subject: Country List


I am involved in converting a large Active Server Pages (ASP)
application to a JSP/Servlets solution, using the Struts framework. I am
new to Struts and I have a relatively okay grasp of JSP/Servlets/Struts.

A few of the pages in the current project use an ASP include file that
creates an HTML SELECT object of Country names and their corresponding
2-digit ISO codes.. The code is encapsulated in a function call, with
the country code to be selected passed in as a parameter, as follows:

--- snip ---
<%
Call CountryList("country", "CA")
%>
--- snip ---

which produces HTML similar to the following:

--- snip ---

  Canada
  United States
  France
  Fiji
  Finland
  ...
  etc

--- snip ---

I would like to duplicate this functionality using
JSP/Struts/JavaBeans.. whatever.. but I'm not sure the best way to do
it. Could some offer advice on what the most elegant approach to this
would be? The obvious goal would be to have a reusable component/module
that produces the necessary HTML based on a static list of country names
and codes, and to be able to pre-select a country.

Any advice is appreciated.

Regards,

Kevin J. Turner


--
To unsubscribe, e-mail:

For additional commands, e-mail:





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




FW: Servlet error - found answer in archives

2001-12-19 Thread Lawrence, Jane K


I hunted through the archives and found the solution to change to
redirect=true
in the struts-config file.  Did that and now I lose my key - any other
solutions?

- JKL
-Original Message-
From: Lawrence, Jane K [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 3:45 PM
To: [EMAIL PROTECTED]
Subject: Servlet error


I am getting the following error (the output is from WebLogic Server 6.0)


  
<[WebAppServletContext(3194122,maf)] Root cause of ServletException
javax.servlet.jsp.JspException: MultipartIterator: no multipart request data
sent
at
org.apache.struts.taglib.template.InsertTag.doEndTag(InsertTag.java:149)
at jsp_servlet._view._viewdetail._jspService(_viewdetail.java:211)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:213)
at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
l.java:153)
at
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
va:1758)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1595)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:213)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:1302)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:1676)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

I am attempting to modify an application that works as follows:
1.  Bring up a form filled with data from master document.
2.  Click on button to bring up another "attachment" form.
3.  On attachment form, identify name and directory path of a
document to "attach" to the information on the main form.
4.  Click on "attach" button, process runs to link main document
with attachment and returns to main screen.

The goal is to redirect the attach button so it just returns itself to the
attachment screen so the users can attach multiple documents
at once without flipping back and forth between the master screen and the
attachment screen.  That I got going fine.  But it's the
return button that's causing this error when I try to direct it back to the
main screen.  I seem to have the key for the master document,
but I'm wondering if the complaint relates to the collection of attachment
objects.

Oh, and this is stateless. 

Has anyone seen this error before?


Jane K. Lawrence
EC Systems Consultant
Ball Corporation
303-460-5225

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Exception with struts

2001-12-19 Thread Timothy Reaves

Both NetBeans & Struts-Console show the file is valid.

On Wed, 19 Dec 2001 10:21:29 -
"Jon.Ridgway" <[EMAIL PROTECTED]> wrote:

> Hi Timothy,
> 
> It looks like you may have a problem with your struts-config.xml file.
Try> putting it through an xml validator, like XML Spy or download the
Struts> console app (search archive for URL) and validate it that way.
> 
> Jon.
> 
> -Original Message-
> From: Timothy Reaves [mailto:[EMAIL PROTECTED]] 
> Sent: 19 December 2001 01:09
> To: Struts
> Subject: Exception with struts
> 
>   Hello all.  I'm trying to learn Struts.  I'm reading Profesional
> JSP,
> which has a chapter on Struts.  I have built their example app, and
> deployed it.  The main page comes up properly ( for a CD store), but
when> I do anything else, I get the following.  Any ideas?
> 
> type Exception report
> 
> message Internal Server Error
> 
> description The server encountered an internal error (Internal Server
> Error) that prevented it from fulfilling this request.
> 
> exception
> 
> javax.servlet.ServletException: Parsing error processing resource path
> /WEB-INF/struts-config.xmlat
>
org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:130>
6)  at> org.apache.struts.action.ActionServlet.init(ActionServlet.java:465)
>   at javax.servlet.GenericServlet.init(GenericServlet.java)
>   at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java)
>   at
> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java)
> 
> ...
> root cause
> 
> java.lang.IllegalArgumentException: object is not an instance of
declaring> classat
> org.apache.struts.digester.Digester.startElement(Digester.java:501)   at
>
org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.java:3>
29) at>
org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)   at>
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLVali>
dator.java:1214)...> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> --
> To unsubscribe, e-mail:  
> For additional
commands, e-mail: > 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




using html frame with struts?

2001-12-19 Thread Charles Tse

Hi All,

I am new to Struts.  What will be the best approach in using frames in a JSP file?  
How should the struts-config.xml file be modified?  Thanks in advance!

--Charles



Display Only Version

2001-12-19 Thread Scott Walter

Hi,

I have a page using Struts tags that I want to be able
to make the page editable in certain cases and display
only in others.

Is there an easy way to be able to have a display only
version of a struts-powered page without having to
write a second page?

=
~~~
Scott

__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Display Only Version

2001-12-19 Thread pritika.pattar

Hi Scott,

You can maintain a session variable, say "allowEdit", which you can set
to True/False depending on your requirement. While displaying your page,
check for the value of the session variable "allowEdit". Set the value
of session variable in Action class of your page.

Pritika

-Original Message-
From: Scott Walter [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 9:19 AM
To: [EMAIL PROTECTED]
Subject: Display Only Version


Hi,

I have a page using Struts tags that I want to be able
to make the page editable in certain cases and display
only in others.

Is there an easy way to be able to have a display only
version of a struts-powered page without having to
write a second page?

=
~~~
Scott

__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Checkbox's question.

2001-12-19 Thread Barry L. White

BONNET Francois-Xavier wrote:

>You don't even need javascript :
>I have modified checkboxTag to generate a hidden field with the same name that the 
>checkbox and value false. As Struts BeanUtils.populate(...) method takes first value 
>found in the request to populate the field in the ActionForm, i just had to put the 
>hidden field after the checkbox.
>It seems to work fine, no javascript and other developpers on my project do not have 
>to 
>worry about it anymore.
>
>Francois-Xavier Bonnet
> 
>- Original Message -
>From: Dan Cancro <[EMAIL PROTECTED]>
>Date: Monday, December 17, 2001 6:41 pm
>Subject: RE: Checkbox's question.
>
>>I was just thinking about this problem, too.  I think this
>>checkbox-in-request-only-when-checked anomaly should be handled with
>>javascript like this:
>>
>>The checkbox jsp tag should create a hidden field named after the property,
>>and a checkbox with some other name.  When the checkbox is checked or
>>unchecked, it should change the value of the hidden field with a generated
>>line of javascript.
>>
>>This way, the controller doesn't have to know that the field is rendered as
>>a checkbox (and do this special checkbox jig), and the field's value is only
>>changed when the field exists in the request.  So if another jsp doesn't
>>have the checkbox at all, the value isn't touched.
>>
>>Dan
>>
>>>-Original Message-
>>>From: Linnea Ahlbeck [mailto:[EMAIL PROTECTED]]
>>>Sent: Monday, December 17, 2001 10:29 AM
>>>To: Struts Users Mailing List
>>>Subject: Re: Checkbox's question.
>>>
>>>
>>>Hi!!
>>>
>>>All values from your formbean are sent in the request as 
>>>parameters when you
>>>press submit - but checkbox values are only in this request 
>>>if they have the
>>>value on = they are checked. If you use the reset method it 
>>>should work in a
>>>correct way  -  values are first set to false by the reset 
>>>method and then,
>>>if they are present i the request they receive value true, 
>>>otherwise the
>>>have the value false. /Linnéa
>>>
>>>
>>>
>>>- Original Message -
>>>From: <[EMAIL PROTECTED]>
>>>To: <[EMAIL PROTECTED]>
>>>Sent: Monday, December 17, 2001 7:07 PM
>>>Subject: RE: Checkbox's question.
>>>
>>>
>>>coincidentally, I was working on the check box today for the 
>>>first time. I
>>>found the problem too.
>>>It seems OK when you set the check box "unchecked" as defaut
>>>(openWindow=null;). but when you set it "checked" as default, 
>>>each time you
>>>uncheck the box and submit. the value won't change, it still remained
>>>checked. In fact. the setOpenWindow(..) function has never 
>>>been called when
>>>the box was unchecked. It is only called when the check box 
>>>is checked.
>>>Any one knows what went wrong?
>>>
>>>Thanks
>>>
>>>Yunming Li
>>>
>>>-Original Message-
>>>From: Linnea Ahlbeck [mailto:[EMAIL PROTECTED]]
>>>Sent: Monday, December 17, 2001 11:51 AM
>>>To: Struts Users Mailing List
>>>Subject: Re: Checkbox's question.
>>>
>>>
>>>Hi!
>>>
>>>Use the reset method in the form bean:
>>>
>>>public void reset(ActionMapping mapping, HttpServletRequest request) {
>>>  openWindow= false;
>>> }
>>>
>>>This is a well known problem, see link:
>>>http://www.jguru.com/faq/view.jsp?EID=471957
>>>
>>>Good luck / Linnéa
>>>
>>>
>>>- Original Message -
>>>From: "Hong Xing" <[EMAIL PROTECTED]>
>>>To: <[EMAIL PROTECTED]>
>>>Sent: Monday, December 17, 2001 4:05 PM
>>>Subject: Checkbox's question.
>>>
>>>
>>>Hi all,
>>>I am a newbie.
>>>I used  in my work. But it worked strange. When I
>>>first view the page and submit the form, the checkbox is OK. Then if I
>>>view the page again and change the checkbox's state, the 
>>>checkbox is not
>>>ok. It's always checked. How to fix it?
>>>
>>>
>>>public void setOpenWindow(String openWindow)
>>>{
>>>this.openWindow=openWindow;
>>>}
>>>public String getOpenWindow()
>>>{
>>>return openWindow;
>>>}
>>>private String openWindow="on";
>>>
>>>Please help me!!!
>>>
>>>Sincerely, Hong Xing
>>>
>>>
>>>==
>>>Bioinformatics Department
>>>Beijing Genomics Institute
>>>Beijing Center
>>>Beijing Airport Industrial Zone B6
>>>Beijing 101300
>>>Tel: 0086-10-80494199-3306(Office)
>>>Email : [EMAIL PROTECTED]
>>>==
>>>
>>>
>>>
>>>
>>>--
>>>To unsubscribe, e-mail:
>>>
>>>For additional commands, e-mail:
>>>
>>>
>>>
>>>
>>>--
>>>To unsubscribe, e-mail:
>>>
>>>For additional commands, e-mail:
>>>
>>>
>>>
>>>--
>>>To unsubscribe, e-mail:   
>>>
>>
>>For additional commands, e-mail:
>>
>>
>>--
>>To unsubscribe, e-mail:   
>>For additional commands, e-mail: 
>>
>>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>
>
Francois,

Could you post the changes you made to the che

Re: Country List

2001-12-19 Thread Barry L. White

Kevin J. Turner wrote:

>I am involved in converting a large Active Server Pages (ASP)
>application to a JSP/Servlets solution, using the Struts framework. I am
>new to Struts and I have a relatively okay grasp of JSP/Servlets/Struts.
> 
>A few of the pages in the current project use an ASP include file that
>creates an HTML SELECT object of Country names and their corresponding
>2-digit ISO codes.. The code is encapsulated in a function call, with
>the country code to be selected passed in as a parameter, as follows:
> 
>--- snip ---
><%
>Call CountryList("country", "CA")
>%>
>--- snip ---
> 
>which produces HTML similar to the following:
> 
>--- snip ---
>
>  Canada
>  United States
>  France
>  Fiji
>  Finland
>  ...
>  etc
>
>--- snip ---
> 
>I would like to duplicate this functionality using
>JSP/Struts/JavaBeans.. whatever.. but I'm not sure the best way to do
>it. Could some offer advice on what the most elegant approach to this
>would be? The obvious goal would be to have a reusable component/module
>that produces the necessary HTML based on a static list of country names
>and codes, and to be able to pre-select a country.
> 
>Any advice is appreciated.
> 
>Regards,
> 
>Kevin J. Turner
>
I would first look at the CountryList function and see where they are 
populating the data from (database, etc.).  Because you are just 
starting out, the simplest way might be to create a custom tablib that 
does the same thing.  Beans and taglibs are basically the same (java 
classes) but the interface is just a little different.  I would also 
check out the Local class because I think all of that info is already in 
there.

Also check out the Struts-Blank example webapp because it uses text from 
a resource file for display on the jsp page.  I think the language 
displayed is based on the language that the browser is using (I think). 
 This could do away with the select box completely and make the whole 
process automatic.

Barry



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: forward to static page

2001-12-19 Thread Barry L. White

Tom Lister wrote:

>Hi
>I would like to set up an action that forwards to a static page - in this
>case the javadoc for a sample application to show how struts can work. This
>seems as if it should be straight forward but I am stuck
>I have an action mapping
>
>
>a menu button as
>
>   target="DetailsFrame">
>   
>
>
>
>
>but I get an error  of
>404 Not Found
>/JavaJumble/web-inf/javadoc/index.html was not found on this server. 
>Resin 2.0.0 (built Fri Jun 8 12:04:24 PDT 2001) 
>s
>:-)
>Regards
>[EMAIL PROTECTED]  
>Advanced Banking Solutions Limited
>+44 (0)20 7448 9146
>º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤ºº¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤ºº¤ø,
>¸¸,ø¤º°'°º¤ø,¸¸,
>This email and any attachments are confidential. They may contain privileged
>
>information or useless trivia and are intended for the named addressee (s)
>only. 
>They must not be distributed without our consent. If you are not the
>intended recipient, 
>please notify us immediately and do not disclose, distribute, or retain this
>email or any
>part of it. Unless expressly stated, opinions in this email are those of the
>
>individual sender, and not of Advanced Banking Solutions Limited. We believe
>
>but do not warrant that this e-mail and any attachments are virus free. You
>must
>therefore take full responsibility for virus checking. Advanced Banking
>Solutions
>Limited and its subsidiaries reserve the right to monitor all email
>communications
>through their networks. 
>º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤ºº¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤ºº¤ø,
>¸¸,ø¤º°'°º¤ø,¸¸,
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>
>
I think web-inf should be WEB-INF in your action mapping.

hope this helps,
Barry



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: help with iterate tag

2001-12-19 Thread Andras Balogh

Hi,

I think you placed the wrong id in logic:iterate.
It should be something like this(not tested):



...

Hope it helps,

Andras.

 
ps. Look at the logic:iterate tag description on the struts site.
 

On Thu, 2001-12-20 at 00:50, Fred Livingston wrote:
> Hi all:
> 
> I am having a problem with iterate tags:
> 
> The following line of code returns a correct result independent of an
> interate tag:
> 
> 
> 
> Thus I know the bean has the information I want...
> 
> But the following gives errors:
> 
>  property="userSearchResults">
> 
> ...
> 
> with these errors:
> 
> Location: /userdisplay.jsp
> Internal Servlet Error:
> javax.servlet.ServletException: Cannot find bean userInfoForm in scope null
>   at
> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
> l.java:459)
> 
> Any thoughts? I have fussed around with many of the logic:iterate
> parameters...
> 
> Thanks in advance
> 
> -Fred
> 
> 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: