Re: StrutsCX

2002-10-23 Thread Xue-Feng Yang
Nice job.

Why do you use ActionForm as Model part?


 --- Bernhard Woehrlin [EMAIL PROTECTED]
wrote:  Hallo everybody,
 
 I created a small Struts add-on framework called
 StrutsCX. StrutsCX is
 Struts with Castor XML and XSLT.
 
 Features:
 
 - Lightweight framework running on any Servlet
 Engine or J2EE Application
 Server.
 - Simple and fast to implement.
 - Support of internationalization. IS0-8859-1 and
 any other language, like
 chinese, korean, arabic, too!
 - StrutsCXServlet: Replaces Struts JSP and Message
 Ressources features with
 a pure XML and XSLT solution 100%
 internationalizable.
 - Output of 100% standard conform XML, XHTML,
 XSL-FO, WML or whatever you
 like.
 - Simple validation error mechanism.
 - Prototype persists via Castor XML.
 - Prototype featuring the CRUD cycle (Create,
 Reatrieve, Update, Delete) and
 support for english, german and korean language.
 
 StrutsCX takes further the idea of the Model 2X by
 Julien Mercay and Gilbert
 Bouzeid. Check out the StrutsCX website:
 
 http://it.cappuccinonet.com/strutscx
 
 A documentation on StrutsCX got published in a
 series of articles in the
 JavaMagazin here in Germany. There are rather
 detailed Javadoc comments in
 English. Anyway, depending on my resources, I plan
 to extend the English
 documentation.
 
 Regards
 
 Berny Woehrlin
 
 ---
 Bernhard Woehrlin
 XML Architect, Java Web Component Developer
 (SCJP2, SCWCD, IBM XML/141, IBM OOAD/UML)
 
 
 --
 To unsubscribe, e-mail:  
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org
  

__ 
Post your free ad now! http://personals.yahoo.ca

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




tiles-definitions related XML parser exception

2002-10-21 Thread Xue-Feng Yang
I just found the following exception in catalina.out.

Any suggestion?


Oct 22, 2002 1:39:13 AM
org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 39 column 21: The content
of element type tiles-definitions is incomplete, it
must match (definition)+.
org.xml.sax.SAXParseException: The content of element
type tiles-definitions is incomplete, it must match
(definition)+.
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:232)
at
org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:173)
at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:362)
at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:296)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.java:1953)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:878)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElement(XMLDocumentFragmentScannerImpl.java:1144)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:987)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1445)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:524)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:580)
at
org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1169)
at
org.apache.commons.digester.Digester.parse(Digester.java:1514)
at
org.apache.struts.tiles.xmlDefinition.XmlParser.parse(XmlParser.java:341)
at
org.apache.struts.tiles.xmlDefinition.I18nFactorySet.parseXmlFile(I18nFactorySet.java:529)
at
org.apache.struts.tiles.xmlDefinition.I18nFactorySet.parseXmlFiles(I18nFactorySet.java:466)
at
org.apache.struts.tiles.xmlDefinition.I18nFactorySet.createDefaultFactory(I18nFactorySet.java:294)
at
org.apache.struts.tiles.xmlDefinition.I18nFactorySet.initFactory(I18nFactorySet.java:267)
at
org.apache.struts.tiles.xmlDefinition.I18nFactorySet.initFactory(I18nFactorySet.java:215)
at
org.apache.struts.tiles.definition.ComponentDefinitionsFactoryWrapper.init(ComponentDefinitionsFactoryWrapper.java:69)
at
org.apache.struts.tiles.DefinitionsUtil.createDefinitionsFactory(DefinitionsUtil.java:276)
at
org.apache.struts.tiles.TilesPlugin.init(TilesPlugin.java:147)
at
org.apache.struts.action.ActionServlet.initApplicationPlugIns(ActionServlet.java:991)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:458)
at
javax.servlet.GenericServlet.init(GenericServlet.java:256)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:924)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3341)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3534)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:257)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:502)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:410)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:879)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:368)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
at
org.apache.catalina.startup.Catalina.start(Catalina.java:510)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at

Re: JDK 1.4 and struts

2002-10-20 Thread Xue-Feng Yang
I tried Struts 1.1b2 with Tomcat 4.1.12 on win2k and
Redhat 7.3. I haven't met any problem. 

I will try on Redhat 8.0 in next a few days.

 --- email [EMAIL PROTECTED] wrote:  
 There were a couple of messages the other day
 concerning Struts failing
 to work correctly under the 1.4 JDK. I'd like to add
 some evidence to that.
 
 Sun's 1.4 JDK (at least the Linux version) seems to
 have serious
 problems w/ the classpath. After upgrading to
 1.4.0_01, and then
 1.4.1_01, Struts no longer works on my machine.
 Specifically, when
 dispatching to an Action subclass, the JVM cannot
 seem to find
 org.apache.struts.action.Action -- despite knowing
 all about
 ActionServlet and a bunch of other classes in the
 struts.jar file. 
 
 Someone stated recentl 7y that Struts DOES WORK w/
 JDK1.4. Which OS is
 that? And does anyone have positive experience using
 Struts w/ JDK1.4 on 
 Linux?
 
 ---
 John Byrd
 [EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:  
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org
  

__ 
Post your free ad now! http://personals.yahoo.ca

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Re: JDK 1.4 and struts

2002-10-20 Thread Xue-Feng Yang
Forgot to mention that I use Sun Java 1.4.1.

 --- Xue-Feng Yang [EMAIL PROTECTED] wrote: 
 I tried Struts 1.1b2 with Tomcat 4.1.12 on win2k and
Redhat 7.3. I haven't met any problem. 
 
 I will try on Redhat 8.0 in next a few days.
 
  --- email [EMAIL PROTECTED] wrote:  
  There were a couple of messages the other day
  concerning Struts failing
  to work correctly under the 1.4 JDK. I'd like to
 add
  some evidence to that.
  
  Sun's 1.4 JDK (at least the Linux version) seems
 to
  have serious
  problems w/ the classpath. After upgrading to
  1.4.0_01, and then
  1.4.1_01, Struts no longer works on my machine.
  Specifically, when
  dispatching to an Action subclass, the JVM cannot
  seem to find
  org.apache.struts.action.Action -- despite knowing
  all about
  ActionServlet and a bunch of other classes in the
  struts.jar file. 
  
  Someone stated recentl 7y that Struts DOES WORK w/
  JDK1.4. Which OS is
  that? And does anyone have positive experience
 using
  Struts w/ JDK1.4 on 
  Linux?
  
  ---
  John Byrd
  [EMAIL PROTECTED]
  
  --
  To unsubscribe, e-mail:  
 
 mailto:struts-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
  mailto:struts-user-help;jakarta.apache.org
   
 

__
 
 Post your free ad now! http://personals.yahoo.ca
 
 --
 To unsubscribe, e-mail:  
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org
  

__ 
Post your free ad now! http://personals.yahoo.ca

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: Can V in MVC be Swing in Struts?

2002-10-18 Thread Xue-Feng Yang


 --- Rohra, Prakash N. ,,DMDC/BEAU
[EMAIL PROTECTED] wrote:  We have a similar
situation where Server side Struts
 components (Actions and
 JavaBean business components) will be accessed by a
 client Swing Java
 application (not a browser).
 
 We are also looking at various alternatives like
 SOAP, XML-RPC or simple
 HTTP POST requests (with XML data or Serialized
 objects).
 
 I have 2 questions:
 
 (1) Does STRUTS support sending serialized VO
 objects (as against HTML or
 XML text strings) back and forth between client app
 and server. What needs
 to be changed in STRUTS components to suport this?

It is not a STRUTS problem. It is HTTP/HTTPS problem.
Since Servlet use this two protocol to communicate, so
you cannot use STRUTS to send serialized VOs directly.
You have to do some code to make this work.  

 
 (2) Does SOAP (Web services) support client sessions
 ? i.e. will I be able
 to maintain individual client's session state (which
 might be full business
 object JavaBeans) or Web services are suited for
 state-less method calls??
 Any pointers will be appriciated ??

This should not be a problem if STRUTS sits on SOAP.

 
 thanks
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:Kevin.Bedell;sunlife.com]
 Sent: Thursday, October 17, 2002 10:56 AM
 To: Struts Users Mailing List
 Subject: Re: Can V in MVC be Swing in Struts?
 
 
 
 
 
 Using Struts/Soap/EJB for XML?
 
 Using SOAP implies (usually) communications between
 the client app and the
 server over HTTP. Using EJB generally implies
 communications from the
 client and server using RMI.
 
 The only way I can see to do what you are describing
 is to 'wrap' an EJB on
 the server using a Web Service. Which, btw, is
 exactly what Weblogic and
 JBoss.NET do for web services. But these are not the
 only solutions.
 
 If you are interested in using SOAP for
 communications between the client
 and server, then Apache AXIS is likely your best
 bet. It provides about the
 best and most current Java SOAP client code. (More
 up to date then Apache
 SOAP.) You could then code your back-end processing
 in Java (if you want -
 and which is my personal choice!) using Axis as
 well. The Java2WSDL and
 WSDL2Java utilities provided by Axis are a good
 place to start.
 
 My upcoming book, Struts Kick Start, has a chapter
 and a sample application
 dedicated to exactly this solution. It provides a
 Struts App that uses SOAP
 and XML to communicate to a Java-based Web Service
 that was built using
 Axis. I include build files and scripts to generate
 the .java files using
 the Java2WSDL and WSDL2Java utilities. Also, copies
 of Axis (and struts,
 etc) are included on the CD-ROM that comes with the
 book.
 
 Regarding Code Generators - XDoclet seems the best
 for this work, but it is
 still a bit immature when it comes to the web
 service stuff - Struts code
 generation is provided, though I've not used it.
 There is an Ant task under
 development that automatically generates Java code
 for web service
 communications (it wraps the Java2WSDL and WSDL2Java
 utilities) but it is
 not ready for prime time yet and no documentation
 yet exists.
 
 Best of luck,
 
 Kevin
 
 
 --
 Kevin Bedell
 Author, Struts Kick Start
 
 
 
 
 
 
 
 
 
 
 Xue-Feng Yang [EMAIL PROTECTED] on 10/17/2002
 10:27:29 AM
 
 Please respond to Struts Users Mailing List
[EMAIL PROTECTED]
 
 To:Struts Users Mailing List
 [EMAIL PROTECTED]
 cc: (bcc: Kevin Bedell/Systems/USHO/SunLife)
 Subject:Re: Can V in MVC be Swing in Struts?
 
 
 Thanks for the suggestions.
 
 The architecture of my project is different from
 standard B2B and B2C although they are part of it.
 
 I will choose Struts/Soap/EJB to deal with XML, but
 implement other parts from ground to Struts.
 
 I would like to know if there are good code
 generators
 for XML/Struts/Soap/EJB. Seems to me this part of
 the
 code is standard now.
 
 
 --- [EMAIL PROTECTED] wrote:
 
 
 
  If you decline to use SOAP protocol and want to
  build an interface that
  returns XML over HTTP, I'd recommend looking
 XML-RPC
  protocol - it's
  simpler and actually pretty easy to use. The
  O'Reilly XML-RPC book gives
  you step by step instructions on how to do it and
  even points you to Java
  libraries that can save you a bunch of time.
 
  The value here is that there are Java libraries
  available for you to use to
  manage all the communications from the client. You
  wouldn't have to write
  any low-level communications stuff, you could just
  use the packages already
  available - plus there are VB, Perl, Python, etc
  packages available for
  XML-RPC clients as well so it would make your
  service much more reusable.
 
 
 
 
 
 
  Vilya Harvey [EMAIL PROTECTED] on
  10/17/2002 05:13:33 AM
 
  Please respond to Struts Users Mailing List
 [EMAIL PROTECTED]
 
  To:Struts Users Mailing List
  [EMAIL PROTECTED]
  cc: (bcc: Kevin Bedell/Systems/USHO/SunLife)
  Subject:Re: Can V in MVC be Swing

RE: Can V in MVC be Swing in Struts?

2002-10-18 Thread Xue-Feng Yang

--- Craig R. McClanahan [EMAIL PROTECTED] wrote:
 
 
 On Thu, 17 Oct 2002, Rohra, Prakash N. ,,DMDC/BEAU
 wrote:
 
  Date: Thu, 17 Oct 2002 11:23:29 -0400
  From: Rohra, Prakash N. ,,DMDC/BEAU
 [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List
 [EMAIL PROTECTED]
  To: 'Struts Users Mailing List'
 [EMAIL PROTECTED]
  Subject: RE: Can V in MVC be Swing in Struts?
 
  We have a similar situation where Server side
 Struts components (Actions and
  JavaBean business components) will be accessed by
 a client Swing Java
  application (not a browser).
 
  We are also looking at various alternatives like
 SOAP, XML-RPC or simple
  HTTP POST requests (with XML data or Serialized
 objects).
 
  I have 2 questions:
 
  (1) Does STRUTS support sending serialized VO
 objects (as against HTML or
  XML text strings) back and forth between client
 app and server. What needs
  to be changed in STRUTS components to suport this?
 
 
 There are at least two different ways to accomplish
 this:
 
 * Have your Action write the XML output directly to
 the response,
   and then return null (indicates that the response
 has been completed,
   so no forwarding is necessary).
 
 * Have the JSP pages you forward to (for the view)
 render text/xml
   instead of text/html.  You won't be using the
 struts-html tags
   in this scenario, but you'll be able to fill in
 dynamic parts of
   the response with things like bean:write or
 bean:message:
 
   customer
 ...
 namebean:write name=customer
 property=name//name
 ...
   /customer
 
 In some scenarios, you will also want to transform
 the XML output
 depending on what the user agent is, or for other
 similar reasons.  Check
 out the STXX framework (search in Google to find
 it), which layers on top
 of Struts and lets you specify a pipeline of XSLT
 transformations to be
 performed on the response that your app itself
 generates.
 

You didn't read the question correctly. The question
is:
 
Does STRUTS support sending serialized VO objects (as
against HTML or XML text strings) back and forth
between client app and server.


  (2) Does SOAP (Web services) support client
 sessions ? i.e. will I be able
  to maintain individual client's session state
 (which might be full business
  object JavaBeans) or Web services are suited for
 state-less method calls??
  Any pointers will be appriciated ??
 
 
 SOAP is generally designed to be stateless -- I know
 that during the
 design of JAX-RPC (the standard Java API for
 SOAP-based web services),
 there was discussion of supporting HTTP sessions but
 do not remember how
 that came out.
 
 If you are rolling your own XML output (per one of
 the suggestions above),
 and your client is aware of how servlet-based
 sessions work, you can
 support stateful transactions by having your client
 include the
 appropriate cookie (or the jsessionid path
 parameter) in the requests that
 it sends.
 
 In either scenario, this is not likely to be
 interoperable with
 non-servlet-API based SOAP servers, or with clients
 that don't understand
 servlet sessions.
 
  thanks
 
 
 Craig
 
 
 --
 To unsubscribe, e-mail:  
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org
 


__ 
Post your free ad now! http://personals.yahoo.ca

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: Can V in MVC be Swing in Struts?

2002-10-18 Thread Xue-Feng Yang
Again, it is not my question!

Look at my last post!

 --- Chappell, Simon P [EMAIL PROTECTED]
wrote:  
 ... snip ...
 
 And I just point out someone's answer is not a
 correct
 answer. That's it.
 
 Yes, but it's polite to provide the correct answer
 if you want to solve a problem and not dump all over
 the person who's answer you didn't like.
 
 This is doubly true when debating with Craig The
 Father of all Struts McClanahan.
 
 My advice to you is to listen to everything that
 Craig EVER speaks about Struts and take it very
 seriously. You don't have to like what he says, but
 it doesn't get any more definitive.
 
 Simon
 

-
 Simon P. Chappell
 [EMAIL PROTECTED]
 Java Programming Specialist 
 www.landsend.com
 Lands' End, Inc.  
 (608) 935-4526
 
 --
 To unsubscribe, e-mail:  
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org
  

__ 
Post your free ad now! http://personals.yahoo.ca

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: Can V in MVC be Swing in Struts?

2002-10-18 Thread Xue-Feng Yang
1) it is not my question;

2) I just pointed out that Craig didn't answer the
question:

  (1) Does STRUTS support sending serialized VO
 objects (as against HTML or  XML text strings) back
 and forth between client
 app and server. What needs to be changed in STRUTS
 components to suport this?

3) As a open source forum, any one should not mis-lead
the people who asked the questions here.

 



--- Kevin A. Smith [EMAIL PROTECTED] wrote:
 What do you hope to accomplish by badgering people?
 It seems to me that Craig answered your question in
 more than adequate detail.
 
 --Kevin
 
 -Original Message-
 From: Xue-Feng Yang [mailto:just4look;yahoo.com]
 Sent: Thursday, October 17, 2002 1:52 PM
 To: Struts Users Mailing List
 Subject: Re: Can V in MVC be Swing in Struts?
 
 
  --- Antoni Reus [EMAIL PROTECTED] wrote: 
 Hi,
  
  A Dijous 17 Octubre 2002 19:31, Xue-Feng Yang va
  escriure:
--- Craig R. McClanahan [EMAIL PROTECTED]
   wrote: 
  
On Thu, 17 Oct 2002, Xue-Feng Yang wrote:
 Date: Thu, 17 Oct 2002 13:19:48 -0400 (EDT)
 From: Xue-Feng Yang [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List
   
[EMAIL PROTECTED]
   
 To: Struts Users Mailing List
   
[EMAIL PROTECTED]
   
 Subject: RE: Can V in MVC be Swing in
 Struts?

 Let me copy your answer here with #, and
 tell
  me
   
where
   
 is your correct answer.

  And you didn't understand the answer
  correctly
:
:-).
:
 # There are at least two different ways to
   
accomplish
   
 # this:

 #* Have your Action write the XML output
  directly
   
to
   
 #the response,
 #  and then return null (indicates that the
   
response
   
 #has been completed,
 #  so no forwarding is necessary).
   
To use output directly generated by an Action
(either serialized objects,
or directly created XML), use this.
  
   Hahaha, where is the VO in your message with #?
  You
   only talked about XML not VO.
  
  
  
  html, xml, serialized objects, pdf, svg,  what's
 the
  difference?
  
  For serialized objects:
  
  Set the content type to
  application/x-java-serialized-object
  Grab the ServletOuputStream in a
 ObjectOutputStream
  and write(Object it)
  return null 
  
  
  Salut,
  
  -- Antoni Reus
 
 
 You should answer this question. It is correct now.
 Just remind you that it is not my question.
 
 A person asked the following question:
 
  (1) Does STRUTS support sending serialized VO
 objects (as against HTML or  XML text strings) back
 and forth between client
 app and server. What needs to be changed in STRUTS
 components to suport this?
 
 And I just point out someone's answer is not a
 correct
 answer. That's it.
 
  
  
  --
  To unsubscribe, e-mail:  
 
 mailto:struts-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
  mailto:struts-user-help;jakarta.apache.org
   
 

__
 
 Post your free ad now! http://personals.yahoo.ca
 
 --
 To unsubscribe, e-mail:  
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org
 
 
 --
 To unsubscribe, e-mail:  
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org
 


__ 
Post your free ad now! http://personals.yahoo.ca

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Re: does all ActionForm data get passed to the client

2002-10-18 Thread Xue-Feng Yang
You should not do this on ActionForm although this may
not leak the data to clients. You could do this on the
business logic layer. Basically, a cache machinery
need to be added.  


--- Muffat, Shane [EMAIL PROTECTED] wrote:
 Does all the data that resides on a user created
 ActionForm object get
 passed to the client?  I'm saving some DB objects
 onto my form so I don't
 have to go back to the db to get the objects when I
 want to persist the
 changes from the jsp page.  I have a lot of saved
 objects on my form object
 (ActionForm) that aren't actually meant for the
 client to see or use.
 Basically, I want to know if I am taking a
 performance hit by saving all
 this data on my Form class.
 
 For instance, say I want to save data from the DB
 that may end up containing
 the equivalent of 1000 tables on a jsp page.  I
 don't want to display all
 those at once...maybe only a few of them, say 10 at
 a time.  If they change
 some options on the page, I do a roundtrip to the
 server to display a
 different set of 10.  I don't want all the
 information for the 1000 tables
 being sent to the client whether it is shown on the
 jsp or not, but I don't
 want to go back to the DB to get all this data
 either.
 
 How does this work?
 
 Thanks in advance,
 Shane 
 
 --
 To unsubscribe, e-mail:  
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org
 


__ 
Post your free ad now! http://personals.yahoo.ca

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: Can V in MVC be Swing in Struts?

2002-10-18 Thread Xue-Feng Yang
 --- Assenza, Chris [EMAIL PROTECTED] wrote: 
I can't tell if you're being serious or not, but the
 question really has
 been answered already.  The problem is that you're
 either A) missing the
 point or B) a troll.  I prefer to assume A.  In that
 case, I believe I can
 paraphrase what Craig has said: 
 
  (1) Does STRUTS support sending serialized VO
  objects (as against HTML or  XML text strings)
 back
  and forth between client
  app and server. 
 
 Craig: Yes.

Craig only answered yes to XML, but not the
serialized VO objects

I am not the person who asked the question. In the
question, you must notice that as against HTML or 
XML text strings. So Craig's answer is not correct.

 
 
  What needs to be changed in STRUTS
  components to suport this?
 
 Craig: Nothing.
 
 It doesn't matter if it's a VO object or not, we're
 assuming already that
 it's serialized and that we just need to get this
 serialized thing back to
 the client.  Craig not only answered the question,
 but went a step further
 to provide a couple suggestions as to how one might
 accomplish the desired
 goal within a struts app. 
 
 Best,
 
 Chris
 
 -Original Message-
 From: Xue-Feng Yang [mailto:just4look;yahoo.com]
 Sent: Thursday, October 17, 2002 1:52 PM
 To: Struts Users Mailing List
 Subject: Re: Can V in MVC be Swing in Struts?
 
 
  --- Antoni Reus [EMAIL PROTECTED] wrote: 
 Hi,
  
  A Dijous 17 Octubre 2002 19:31, Xue-Feng Yang va
  escriure:
--- Craig R. McClanahan [EMAIL PROTECTED]
   wrote: 
  
On Thu, 17 Oct 2002, Xue-Feng Yang wrote:
 Date: Thu, 17 Oct 2002 13:19:48 -0400 (EDT)
 From: Xue-Feng Yang [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List
   
[EMAIL PROTECTED]
   
 To: Struts Users Mailing List
   
[EMAIL PROTECTED]
   
 Subject: RE: Can V in MVC be Swing in
 Struts?

 Let me copy your answer here with #, and
 tell
  me
   
where
   
 is your correct answer.

  And you didn't understand the answer
  correctly
:
:-).
:
 # There are at least two different ways to
   
accomplish
   
 # this:

 #* Have your Action write the XML output
  directly
   
to
   
 #the response,
 #  and then return null (indicates that the
   
response
   
 #has been completed,
 #  so no forwarding is necessary).
   
To use output directly generated by an Action
(either serialized objects,
or directly created XML), use this.
  
   Hahaha, where is the VO in your message with #?
  You
   only talked about XML not VO.
  
  
  
  html, xml, serialized objects, pdf, svg,  what's
 the
  difference?
  
  For serialized objects:
  
  Set the content type to
  application/x-java-serialized-object
  Grab the ServletOuputStream in a
 ObjectOutputStream
  and write(Object it)
  return null 
  
  
  Salut,
  
  -- Antoni Reus
 
 
 You should answer this question. It is correct now.
 Just remind you that it is not my question.
 
 A person asked the following question:
 
  (1) Does STRUTS support sending serialized VO
 objects (as against HTML or  XML text strings) back
 and forth between client
 app and server. What needs to be changed in STRUTS
 components to suport this?
 
 And I just point out someone's answer is not a
 correct
 answer. That's it.
 
  
  
  --
  To unsubscribe, e-mail:  
 
 mailto:struts-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
  mailto:struts-user-help;jakarta.apache.org
   
 

__
 
 Post your free ad now! http://personals.yahoo.ca
 
 --
 To unsubscribe, e-mail:
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org
 
 --
 To unsubscribe, e-mail:  
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org
  

__ 
Post your free ad now! http://personals.yahoo.ca

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: Can V in MVC be Swing in Struts?

2002-10-18 Thread Xue-Feng Yang
Hahaha, it's upto you! I don't care.

 --- Kevin A. Smith [EMAIL PROTECTED] wrote: 
As several other people on this list pointed out,
 Craig _did_ answer the question. In detail. With
 examples. For those of you who missed it, the answer
 is YES. As in the opposite of NO. At this point,
 you might want to review the previous emails in this
 thread.
 
 Craig is not misleading anyone. I would humbly
 submit that you didn't understand the answer.
 
 --Kevin
 
 -Original Message-
 From: Xue-Feng Yang [mailto:just4look;yahoo.com]
 Sent: Thursday, October 17, 2002 2:04 PM
 To: Struts Users Mailing List
 Subject: RE: Can V in MVC be Swing in Struts?
 
 
 1) it is not my question;
 
 2) I just pointed out that Craig didn't answer the
 question:
 
   (1) Does STRUTS support sending serialized VO
  objects (as against HTML or  XML text strings)
 back
  and forth between client
  app and server. What needs to be changed in STRUTS
  components to suport this?
 
 3) As a open source forum, any one should not
 mis-lead
 the people who asked the questions here.
 
  
 
 
 
 --- Kevin A. Smith [EMAIL PROTECTED] wrote:
  What do you hope to accomplish by badgering
 people?
  It seems to me that Craig answered your question
 in
  more than adequate detail.
  
  --Kevin
  
  -Original Message-
  From: Xue-Feng Yang [mailto:just4look;yahoo.com]
  Sent: Thursday, October 17, 2002 1:52 PM
  To: Struts Users Mailing List
  Subject: Re: Can V in MVC be Swing in Struts?
  
  
   --- Antoni Reus [EMAIL PROTECTED] wrote: 
  Hi,
   
   A Dijous 17 Octubre 2002 19:31, Xue-Feng Yang va
   escriure:
 --- Craig R. McClanahan
 [EMAIL PROTECTED]
wrote: 
   
 On Thu, 17 Oct 2002, Xue-Feng Yang wrote:
  Date: Thu, 17 Oct 2002 13:19:48 -0400
 (EDT)
  From: Xue-Feng Yang [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List

 [EMAIL PROTECTED]

  To: Struts Users Mailing List

 [EMAIL PROTECTED]

  Subject: RE: Can V in MVC be Swing in
  Struts?
 
  Let me copy your answer here with #, and
  tell
   me

 where

  is your correct answer.
 
   And you didn't understand the answer
   correctly
 :
 :-).
 :
  # There are at least two different ways to

 accomplish

  # this:
 
  #* Have your Action write the XML output
   directly

 to

  #the response,
  #  and then return null (indicates that
 the

 response

  #has been completed,
  #  so no forwarding is necessary).

 To use output directly generated by an
 Action
 (either serialized objects,
 or directly created XML), use this.
   
Hahaha, where is the VO in your message with
 #?
   You
only talked about XML not VO.
   
   
   
   html, xml, serialized objects, pdf, svg,  what's
  the
   difference?
   
   For serialized objects:
   
   Set the content type to
   application/x-java-serialized-object
   Grab the ServletOuputStream in a
  ObjectOutputStream
   and write(Object it)
   return null 
   
   
   Salut,
   
   -- Antoni Reus
  
  
  You should answer this question. It is correct
 now.
  Just remind you that it is not my question.
  
  A person asked the following question:
  
   (1) Does STRUTS support sending serialized VO
  objects (as against HTML or  XML text strings)
 back
  and forth between client
  app and server. What needs to be changed in STRUTS
  components to suport this?
  
  And I just point out someone's answer is not a
  correct
  answer. That's it.
  
   
   
   --
   To unsubscribe, e-mail:  
  
 
 mailto:struts-user-unsubscribe;jakarta.apache.org
   For additional commands, e-mail:
   mailto:struts-user-help;jakarta.apache.org

  
 

__
  
  Post your free ad now! http://personals.yahoo.ca
  
  --
  To unsubscribe, e-mail:  
 
 mailto:struts-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
  mailto:struts-user-help;jakarta.apache.org
  
  
  --
  To unsubscribe, e-mail:  
 
 mailto:struts-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
  mailto:struts-user-help;jakarta.apache.org
  
 
 

__
 
 Post your free ad now! http://personals.yahoo.ca
 
 --
 To unsubscribe, e-mail:  
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org
 
=== message truncated === 

__ 
Post your free ad now! http://personals.yahoo.ca

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: Can V in MVC be Swing in Struts?

2002-10-18 Thread Xue-Feng Yang
It could be. 
--- [EMAIL PROTECTED] wrote:
 
 
 Really! sheesh...it must be a translation issue
 
 
 
 
 Kevin A. Smith [EMAIL PROTECTED] on
 10/17/2002 01:55:53 PM
 
 Please respond to Struts Users Mailing List
 [EMAIL PROTECTED]
 
 To:   Struts Users Mailing List
 [EMAIL PROTECTED]
 cc:(bcc: Joseph Sadove/DKBDS USA/DKB)
 
 Subject:  RE: Can V in MVC be Swing in Struts?
 
 
 What do you hope to accomplish by badgering people?
 It seems to me that Craig
 answered your question in more than adequate detail.
 
 --Kevin
 
 -Original Message-
 From: Xue-Feng Yang [mailto:just4look;yahoo.com]
 Sent: Thursday, October 17, 2002 1:52 PM
 To: Struts Users Mailing List
 Subject: Re: Can V in MVC be Swing in Struts?
 
 
  --- Antoni Reus [EMAIL PROTECTED] wrote: 
 Hi,
 
  A Dijous 17 Octubre 2002 19:31, Xue-Feng Yang va
  escriure:
--- Craig R. McClanahan [EMAIL PROTECTED]
   wrote: 
  
On Thu, 17 Oct 2002, Xue-Feng Yang wrote:
 Date: Thu, 17 Oct 2002 13:19:48 -0400 (EDT)
 From: Xue-Feng Yang [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List
   
[EMAIL PROTECTED]
   
 To: Struts Users Mailing List
   
[EMAIL PROTECTED]
   
 Subject: RE: Can V in MVC be Swing in
 Struts?

 Let me copy your answer here with #, and
 tell
  me
   
where
   
 is your correct answer.

  And you didn't understand the answer
  correctly
:
:-).
:
 # There are at least two different ways to
   
accomplish
   
 # this:

 #* Have your Action write the XML output
  directly
   
to
   
 #the response,
 #  and then return null (indicates that the
   
response
   
 #has been completed,
 #  so no forwarding is necessary).
   
To use output directly generated by an Action
(either serialized objects,
or directly created XML), use this.
  
   Hahaha, where is the VO in your message with #?
  You
   only talked about XML not VO.
  
 
 
  html, xml, serialized objects, pdf, svg,  what's
 the
  difference?
 
  For serialized objects:
 
  Set the content type to
  application/x-java-serialized-object
  Grab the ServletOuputStream in a
 ObjectOutputStream
  and write(Object it)
  return null
 
 
  Salut,
 
  -- Antoni Reus
 
 
 You should answer this question. It is correct now.
 Just remind you that it is not my question.
 
 A person asked the following question:
 
  (1) Does STRUTS support sending serialized VO
 objects (as against HTML or  XML text strings) back
 and forth between client
 app and server. What needs to be changed in STRUTS
 components to suport this?
 
 And I just point out someone's answer is not a
 correct
 answer. That's it.
 
 
 
  --
  To unsubscribe, e-mail:
 
 mailto:struts-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
  mailto:struts-user-help;jakarta.apache.org
 
 

__
 Post your free ad now! http://personals.yahoo.ca
 
 --
 To unsubscribe, e-mail:  
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org
 
 
 --
 To unsubscribe, e-mail:  
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org
 
 
 
 
 
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org
 


__ 
Post your free ad now! http://personals.yahoo.ca

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Re: problems with struts under j2sdk1.4.0_01

2002-10-18 Thread Xue-Feng Yang
I use j2sdk1.4.1. There are no problems.

 --- Isabell Schaadt [EMAIL PROTECTED] wrote:  The struts
1.0.2 version worked without problems
 until I installed the
 j2sdk1.4.0_01 yesterday.
 I have choosen this version because I think it still
 will be worked on the
 beta version and there still may be problems with
 it.
 
 But if you it is ok I will try it.
 
 
 I thank you very much for help.
 
 
 
  Oops, very strange.
  As far as I see there is no hint on what is going
 wrong, unfortunately. I 
  think we need help from the Struts developers;-)
  
  Another question: Why do you use Struts 1.0.2 and
 not the 1.1 Beta? The 
  Beta ist quite OK.
  
  Ciao
  
  Thomas
  
  
  
  At 15:34 17.10.2002 +0200, Isabell Schaadt wrote:
  Hi Thomas,
  
  thank you for your answer.
  The exception message isn't very helpfully. Here
 it is:
  
  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
   at
 

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextIm
  pl.java:471)
   at

org.apache.jsp.index$jsp._jspService(index$jsp.java:237)
   at 
  

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
   at

javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
 

org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.j
  ava:201)
   at 
  

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
   at
  

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
   at

javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
 

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio
  nFilterChain.java:247)
   at
 

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC
  hain.java:193)
   at
 

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j
  ava:243)
   at
 

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
  566)
   at
 

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   at 
  

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j
  ava:190)
   at
 

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
  566)
   at
 

org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:
  246)
   at
 

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
  564)
   at
 

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   at 
  

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 

org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
   at
 

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:18
  0)
   at
 

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
  566)
   at
 

org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve
  .java:170)
   at
 

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
  564)
   at
 

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:17
  0)
   at
 

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
  564)
   at
 

org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
   at
 

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
  564)
   at
 

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   at 
  

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav
  a:174)
   at
 

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
  566)
   at
 

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   at 
  

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 

org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java
  :1027)
   at
 

org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:112
  5)
   at java.lang.Thread.run(Thread.java:536)
  
  
  root cause:
  
  javax.servlet.jsp.JspException
   at 
  

org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:242)
   at

org.apache.jsp.index$jsp._jspService(index$jsp.java:93)
   at 
  


RE: Can V in MVC be Swing in Struts?

2002-10-18 Thread Xue-Feng Yang
This is my last post under RE: Can V in MVC be Swing
in Struts?. All later response will be ignored since
your lack of etiquette over the matter.

If you don't have time, then keep quiet. However,
don't mis-lead other people. 

Xue-Feng Yang, Ph.D
Senior Java Technical Architect 


--- Chappell, Simon P [EMAIL PROTECTED]
wrote:
 I was not discussing the question, the matter of who
 asked it or the degree of wonderfulness of Craig's
 answer.
 
 I was addressing your lack of etiquette over the
 matter. This is a volunteer forum and many people
 make time during their workdays to try to help
 people. Craig has a workload that would make lesser
 people meltdown, so when he takes time to answer a
 question, take what he gives you and work with it.
 
 If you don't like the answers given round here,
 download the source, read it and fix anything that
 looks wrong or become a Microsoft platform developer
 where it is certain that Bill Gates will not be
 offering you any help and there will be precious few
 volunteers and you have to pay for what little
 support you do get.
 
 Simon
 

-
 Simon P. Chappell
 [EMAIL PROTECTED]
 Java Programming Specialist 
 www.landsend.com
 Lands' End, Inc.  
 (608) 935-4526
 
 
 -Original Message-
 From: Xue-Feng Yang [mailto:just4look;yahoo.com]
 Sent: Thursday, October 17, 2002 1:05 PM
 To: Struts Users Mailing List
 Subject: RE: Can V in MVC be Swing in Struts?
 
 
 Again, it is not my question!
 
 Look at my last post!
 
  --- Chappell, Simon P
 [EMAIL PROTECTED]
 wrote:  
  ... snip ...
  
  And I just point out someone's answer is not a
  correct
  answer. That's it.
  
  Yes, but it's polite to provide the correct
 answer
  if you want to solve a problem and not dump all
 over
  the person who's answer you didn't like.
  
  This is doubly true when debating with Craig The
  Father of all Struts McClanahan.
  
  My advice to you is to listen to everything that
  Craig EVER speaks about Struts and take it very
  seriously. You don't have to like what he says,
 but
  it doesn't get any more definitive.
  
  Simon
  
 

-
  Simon P. Chappell
  [EMAIL PROTECTED]
  Java Programming Specialist 
  www.landsend.com
  Lands' End, Inc. 
 
  (608) 935-4526
  
  --
  To unsubscribe, e-mail:  
 
 mailto:struts-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
  mailto:struts-user-help;jakarta.apache.org
   
 

__
 
 Post your free ad now! http://personals.yahoo.ca
 
 --
 To unsubscribe, e-mail:   
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org
 
 
 --
 To unsubscribe, e-mail:  
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org
 


__ 
Post your free ad now! http://personals.yahoo.ca

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: Can V in MVC be Swing in Struts?

2002-10-18 Thread Xue-Feng Yang
Let me copy your answer here with #, and tell me where
is your correct answer.

 And you didn't understand the answer correctly :-).


# There are at least two different ways to accomplish
# this:
 
#* Have your Action write the XML output directly to
#the response,
#  and then return null (indicates that the response
#has been completed,
#  so no forwarding is necessary).

#* Have the JSP pages you forward to (for the view)
#render text/xml
#  instead of text/html.  You won't be using the
# struts-html tags
#  in this scenario, but you'll be able to fill in
#dynamic parts of
#  the response with things like bean:write or
#bean:message:

#  customer
#...
#namebean:write name=customer
#property=name//name
#...
#  /customer

#In some scenarios, you will also want to transform
#the XML output
#depending on what the user agent is, or for other
#similar reasons.  Check
#out the STXX framework (search in Google to find
#it), which layers on top
#of Struts and lets you specify a pipeline of XSLT
#transformations to be
#performed on the response that your app itself
#generates. 






 --- Craig R. McClanahan [EMAIL PROTECTED]
wrote:  
 
 On Thu, 17 Oct 2002, Xue-Feng Yang wrote:
 
  You didn't read the question correctly. The
 question
  is:
 
  Does STRUTS support sending serialized VO objects
 (as
  against HTML or XML text strings) back and forth
  between client app and server.
 
 
 And you didn't understand the answer correctly :-).
 
 Struts (the framework) makes ***zero*** requirements
 on what the output
 looks like -- that is up to your application to
 decide.  You can even
 generate binary output if you like (such as a
 dynamically generated graph,
 or serialized value objects)  by writing directly to
 the
 ServletOutputStream and then returning null from
 your action.
 
 Struts (the struts-html tag library) does render
 HTML output, but you
 won't want to use this if you are writing non-HTML
 stuff.
 
 Craig
 
 
 --
 To unsubscribe, e-mail:  
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org
  

__ 
Post your free ad now! http://personals.yahoo.ca

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: Can V in MVC be Swing in Struts?

2002-10-18 Thread Xue-Feng Yang
Let me copy your answer here with #, and tell me where
is your correct answer.

 And you didn't understand the answer correctly :-).


# There are at least two different ways to accomplish
# this:
 
#* Have your Action write the XML output directly to
#the response,
#  and then return null (indicates that the response
#has been completed,
#  so no forwarding is necessary).

#* Have the JSP pages you forward to (for the view)
#render text/xml
#  instead of text/html.  You won't be using the
# struts-html tags
#  in this scenario, but you'll be able to fill in
#dynamic parts of
#  the response with things like bean:write or
#bean:message:

#  customer
#...
#namebean:write name=customer
#property=name//name
#...
#  /customer

#In some scenarios, you will also want to transform
#the XML output
#depending on what the user agent is, or for other
#similar reasons.  Check
#out the STXX framework (search in Google to find
#it), which layers on top
#of Struts and lets you specify a pipeline of XSLT
#transformations to be
#performed on the response that your app itself
#generates. 






 --- Craig R. McClanahan [EMAIL PROTECTED]
wrote:  
 
 On Thu, 17 Oct 2002, Xue-Feng Yang wrote:
 
  You didn't read the question correctly. The
 question
  is:
 
  Does STRUTS support sending serialized VO objects
 (as
  against HTML or XML text strings) back and forth
  between client app and server.
 
 
 And you didn't understand the answer correctly :-).
 
 Struts (the framework) makes ***zero*** requirements
 on what the output
 looks like -- that is up to your application to
 decide.  You can even
 generate binary output if you like (such as a
 dynamically generated graph,
 or serialized value objects)  by writing directly to
 the
 ServletOutputStream and then returning null from
 your action.
 
 Struts (the struts-html tag library) does render
 HTML output, but you
 won't want to use this if you are writing non-HTML
 stuff.
 
 Craig
 
 
 --
 To unsubscribe, e-mail:  
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org
  

__ 
Post your free ad now! http://personals.yahoo.ca

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




The XML may not be enough ...

2002-10-18 Thread Xue-Feng Yang
Sometimes, people need to use http channel as rmi
since rmi may not be availabe for some clients behind
firewalls. This is not re-invent SAOP and XML-PRC, but
RMI on HTTP.

--- [EMAIL PROTECTED] wrote:
 
 
 
 
 At the risk of me seeming simple and pointless, can
 I ask why you want
 manually code sending serialized objects over HTTP?
 
 What you're doing is reinventing SOAP and XML-RPC.
 These technologies are
 not that hard to use - especially XML-RPC. There are
 Java libraries
 available that handle all the communications for you
 and just hand your
 code XML docs.
 
 Not to mention debugging the application is much
 easier if you are using
 XML because at least it's readable english -
 
 You may also run the risk that you'll code a whole
 bunch of stuff this way
 and then later you'll be asked to refactor them as
 web services. 'Which is
 probably what you should've done to begin with', is
 what they'll say.
 
 Of course, I could be way off base. From my
 viewpoint I don't know what
 your requirements are -
 
 Kevin
 
 
 

---
 This e-mail message (including attachments, if any)
 is intended for the use
 of the individual or entity to which it is addressed
 and may contain
 information that is privileged, proprietary ,
 confidential and exempt from
 disclosure.  If you are not the intended recipient,
 you are notified that
 any dissemination, distribution or copying of this
 communication is
 strictly prohibited.  If you have received this
 communication in error,
 please notify the sender and erase this e-mail
 message immediately.

---
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org
 


__ 
Post your free ad now! http://personals.yahoo.ca

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Re: Can V in MVC be Swing in Struts?

2002-10-18 Thread Xue-Feng Yang
I will not use RMI to communicate between clients and
servers since the clients are always behind firewalls.
So it is possible that some clients cannot talk with
servers at all if I use RMI. 

About Soap, I mean the general term Soap not only
the one: Apache Soap. Sure, I will consider Apache
AXIS among others. 

For app servers, Weblogic and other commercial ones
are too expensive and JBoss is too slow. You know what
I will choose.

BTW, when your book will be avaible? I cannot wait.


--- [EMAIL PROTECTED] wrote:
 
 
 
 Using Struts/Soap/EJB for XML?
 
 Using SOAP implies (usually) communications between
 the client app and the
 server over HTTP. Using EJB generally implies
 communications from the
 client and server using RMI.
 
 The only way I can see to do what you are describing
 is to 'wrap' an EJB on
 the server using a Web Service. Which, btw, is
 exactly what Weblogic and
 JBoss.NET do for web services. But these are not the
 only solutions.
 
 If you are interested in using SOAP for
 communications between the client
 and server, then Apache AXIS is likely your best
 bet. It provides about the
 best and most current Java SOAP client code. (More
 up to date then Apache
 SOAP.) You could then code your back-end processing
 in Java (if you want -
 and which is my personal choice!) using Axis as
 well. The Java2WSDL and
 WSDL2Java utilities provided by Axis are a good
 place to start.
 
 My upcoming book, Struts Kick Start, has a chapter
 and a sample application
 dedicated to exactly this solution. It provides a
 Struts App that uses SOAP
 and XML to communicate to a Java-based Web Service
 that was built using
 Axis. I include build files and scripts to generate
 the .java files using
 the Java2WSDL and WSDL2Java utilities. Also, copies
 of Axis (and struts,
 etc) are included on the CD-ROM that comes with the
 book.
 
 Regarding Code Generators - XDoclet seems the best
 for this work, but it is
 still a bit immature when it comes to the web
 service stuff - Struts code
 generation is provided, though I've not used it.
 There is an Ant task under
 development that automatically generates Java code
 for web service
 communications (it wraps the Java2WSDL and WSDL2Java
 utilities) but it is
 not ready for prime time yet and no documentation
 yet exists.
 
 Best of luck,
 
 Kevin
 
 
 --
 Kevin Bedell
 Author, Struts Kick Start
 
 
 
 
 
 
 
 
 
 
 Xue-Feng Yang [EMAIL PROTECTED] on 10/17/2002
 10:27:29 AM
 
 Please respond to Struts Users Mailing List
[EMAIL PROTECTED]
 
 To:Struts Users Mailing List
 [EMAIL PROTECTED]
 cc: (bcc: Kevin Bedell/Systems/USHO/SunLife)
 Subject:Re: Can V in MVC be Swing in Struts?
 
 
 Thanks for the suggestions.
 
 The architecture of my project is different from
 standard B2B and B2C although they are part of it.
 
 I will choose Struts/Soap/EJB to deal with XML, but
 implement other parts from ground to Struts.
 
 I would like to know if there are good code
 generators
 for XML/Struts/Soap/EJB. Seems to me this part of
 the
 code is standard now.
 
 
 --- [EMAIL PROTECTED] wrote:
 
 
 
  If you decline to use SOAP protocol and want to
  build an interface that
  returns XML over HTTP, I'd recommend looking
 XML-RPC
  protocol - it's
  simpler and actually pretty easy to use. The
  O'Reilly XML-RPC book gives
  you step by step instructions on how to do it and
  even points you to Java
  libraries that can save you a bunch of time.
 
  The value here is that there are Java libraries
  available for you to use to
  manage all the communications from the client. You
  wouldn't have to write
  any low-level communications stuff, you could just
  use the packages already
  available - plus there are VB, Perl, Python, etc
  packages available for
  XML-RPC clients as well so it would make your
  service much more reusable.
 
 
 
 
 
 
  Vilya Harvey [EMAIL PROTECTED] on
  10/17/2002 05:13:33 AM
 
  Please respond to Struts Users Mailing List
 [EMAIL PROTECTED]
 
  To:Struts Users Mailing List
  [EMAIL PROTECTED]
  cc: (bcc: Kevin Bedell/Systems/USHO/SunLife)
  Subject:Re: Can V in MVC be Swing in Struts?
 
 
  You're right, it will work. In a previous job, I
  worked on a project which
  had a Visual Basic (!) client talking to some EJBs
  via servlets which
  returned XML responses. That project wasn't using
  JSP, simply because
  servlets were more convenient in that case, but
  there's no reason why it
  couldn't have. We found a lot of benefits from
 this
  approach.
 
  The downside was that a fair amount of time was
  spent defining the exact
  protocol between the client and the servlets. Of
  course, this was before
  SOAP... If you haven't already, it may be worth
 your
  while to take a look
  at
  that.
 
  Hope that helps,
  Vil.
  --
  Vilya Harvey, Consultant
  [EMAIL PROTECTED] /
  digital steps /
  (W) +44 (0)1483 469 480
  (M) +44 (0)7816 678 457
  http://www.digitalsteps.com/
 
  --Disclaimer

Re: Can V in MVC be Swing in Struts?

2002-10-18 Thread Xue-Feng Yang
 --- Antoni Reus [EMAIL PROTECTED] wrote:  Hi,
 
 A Dijous 17 Octubre 2002 19:31, Xue-Feng Yang va
 escriure:
   --- Craig R. McClanahan [EMAIL PROTECTED]
  wrote: 
 
   On Thu, 17 Oct 2002, Xue-Feng Yang wrote:
Date: Thu, 17 Oct 2002 13:19:48 -0400 (EDT)
From: Xue-Feng Yang [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List
  
   [EMAIL PROTECTED]
  
To: Struts Users Mailing List
  
   [EMAIL PROTECTED]
  
Subject: RE: Can V in MVC be Swing in Struts?
   
Let me copy your answer here with #, and tell
 me
  
   where
  
is your correct answer.
   
 And you didn't understand the answer
 correctly
   :
   :-).
   :
# There are at least two different ways to
  
   accomplish
  
# this:
   
#* Have your Action write the XML output
 directly
  
   to
  
#the response,
#  and then return null (indicates that the
  
   response
  
#has been completed,
#  so no forwarding is necessary).
  
   To use output directly generated by an Action
   (either serialized objects,
   or directly created XML), use this.
 
  Hahaha, where is the VO in your message with #?
 You
  only talked about XML not VO.
 
 
 
 html, xml, serialized objects, pdf, svg,  what's the
 difference?
 
 For serialized objects:
 
 Set the content type to
 application/x-java-serialized-object
 Grab the ServletOuputStream in a ObjectOutputStream
 and write(Object it)
 return null 
 
 
 Salut,
 
 -- Antoni Reus


You should answer this question. It is correct now.
Just remind you that it is not my question.

A person asked the following question:

 (1) Does STRUTS support sending serialized VO
objects (as against HTML or  XML text strings) back
and forth between client
app and server. What needs to be changed in STRUTS
components to suport this?

And I just point out someone's answer is not a correct
answer. That's it.

 
 
 --
 To unsubscribe, e-mail:  
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org
  

__ 
Post your free ad now! http://personals.yahoo.ca

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Re: Can V in MVC be Swing in Struts?

2002-10-18 Thread Xue-Feng Yang
Yes, you can find such reference from ServerSide.
There is a research report on this, which I forgot the
link. The reason is that JBoss uses too much
java.lang.reflect and some other thing. 

--- David Graham [EMAIL PROTECTED] wrote:
 JBoss too slow?  I've never heard that before.  If
 you don't like JBoss then 
 you might check out Orion.
 
 David
 
 
 
 
 
 
 From: Xue-Feng Yang [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List
 [EMAIL PROTECTED]
 To: Struts Users Mailing List
 [EMAIL PROTECTED]
 Subject: Re: Can V in MVC be Swing in Struts?
 Date: Thu, 17 Oct 2002 11:29:15 -0400 (EDT)
 
 I will not use RMI to communicate between clients
 and
 servers since the clients are always behind
 firewalls.
 So it is possible that some clients cannot talk
 with
 servers at all if I use RMI.
 
 About Soap, I mean the general term Soap not only
 the one: Apache Soap. Sure, I will consider Apache
 AXIS among others.
 
 For app servers, Weblogic and other commercial ones
 are too expensive and JBoss is too slow. You know
 what
 I will choose.
 
 BTW, when your book will be avaible? I cannot wait.
 
 
 --- [EMAIL PROTECTED] wrote:
  
  
  
   Using Struts/Soap/EJB for XML?
  
   Using SOAP implies (usually) communications
 between
   the client app and the
   server over HTTP. Using EJB generally implies
   communications from the
   client and server using RMI.
  
   The only way I can see to do what you are
 describing
   is to 'wrap' an EJB on
   the server using a Web Service. Which, btw, is
   exactly what Weblogic and
   JBoss.NET do for web services. But these are not
 the
   only solutions.
  
   If you are interested in using SOAP for
   communications between the client
   and server, then Apache AXIS is likely your best
   bet. It provides about the
   best and most current Java SOAP client code.
 (More
   up to date then Apache
   SOAP.) You could then code your back-end
 processing
   in Java (if you want -
   and which is my personal choice!) using Axis as
   well. The Java2WSDL and
   WSDL2Java utilities provided by Axis are a good
   place to start.
  
   My upcoming book, Struts Kick Start, has a
 chapter
   and a sample application
   dedicated to exactly this solution. It provides
 a
   Struts App that uses SOAP
   and XML to communicate to a Java-based Web
 Service
   that was built using
   Axis. I include build files and scripts to
 generate
   the .java files using
   the Java2WSDL and WSDL2Java utilities. Also,
 copies
   of Axis (and struts,
   etc) are included on the CD-ROM that comes with
 the
   book.
  
   Regarding Code Generators - XDoclet seems the
 best
   for this work, but it is
   still a bit immature when it comes to the web
   service stuff - Struts code
   generation is provided, though I've not used it.
   There is an Ant task under
   development that automatically generates Java
 code
   for web service
   communications (it wraps the Java2WSDL and
 WSDL2Java
   utilities) but it is
   not ready for prime time yet and no
 documentation
   yet exists.
  
   Best of luck,
  
   Kevin
  
  
   --
   Kevin Bedell
   Author, Struts Kick Start
  
  
  
  
  
  
  
  
  
  
   Xue-Feng Yang [EMAIL PROTECTED] on
 10/17/2002
   10:27:29 AM
  
   Please respond to Struts Users Mailing List
  [EMAIL PROTECTED]
  
   To:Struts Users Mailing List
   [EMAIL PROTECTED]
   cc: (bcc: Kevin Bedell/Systems/USHO/SunLife)
   Subject:Re: Can V in MVC be Swing in Struts?
  
  
   Thanks for the suggestions.
  
   The architecture of my project is different from
   standard B2B and B2C although they are part of
 it.
  
   I will choose Struts/Soap/EJB to deal with XML,
 but
   implement other parts from ground to Struts.
  
   I would like to know if there are good code
   generators
   for XML/Struts/Soap/EJB. Seems to me this part
 of
   the
   code is standard now.
  
  
   --- [EMAIL PROTECTED] wrote:
   
   
   
If you decline to use SOAP protocol and want
 to
build an interface that
returns XML over HTTP, I'd recommend looking
   XML-RPC
protocol - it's
simpler and actually pretty easy to use. The
O'Reilly XML-RPC book gives
you step by step instructions on how to do it
 and
even points you to Java
libraries that can save you a bunch of time.
   
The value here is that there are Java
 libraries
available for you to use to
manage all the communications from the client.
 You
wouldn't have to write
any low-level communications stuff, you could
 just
use the packages already
available - plus there are VB, Perl, Python,
 etc
packages available for
XML-RPC clients as well so it would make your
service much more reusable.
   
   
   
   
   
   
Vilya Harvey [EMAIL PROTECTED]
 on
10/17/2002 05:13:33 AM
 
=== message truncated ===


__ 
Post your free ad now! http://personals.yahoo.ca

--
To unsubscribe, e-mail

RE: Can V in MVC be Swing in Struts?

2002-10-18 Thread Xue-Feng Yang


 --- Craig R. McClanahan [EMAIL PROTECTED]
wrote:  
 
 On Thu, 17 Oct 2002, Xue-Feng Yang wrote:
 
  Date: Thu, 17 Oct 2002 13:19:48 -0400 (EDT)
  From: Xue-Feng Yang [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List
 [EMAIL PROTECTED]
  To: Struts Users Mailing List
 [EMAIL PROTECTED]
  Subject: RE: Can V in MVC be Swing in Struts?
 
  Let me copy your answer here with #, and tell me
 where
  is your correct answer.
 
   And you didn't understand the answer correctly
 :-).
 
 
  # There are at least two different ways to
 accomplish
  # this:
 
  #* Have your Action write the XML output directly
 to
  #the response,
  #  and then return null (indicates that the
 response
  #has been completed,
  #  so no forwarding is necessary).
 
 
 To use output directly generated by an Action
 (either serialized objects,
 or directly created XML), use this.

Hahaha, where is the VO in your message with #? You
only talked about XML not VO.

 
  #* Have the JSP pages you forward to (for the
 view)
  #render text/xml
  #  instead of text/html.  You won't be using the
  # struts-html tags
  #  in this scenario, but you'll be able to fill in
  #dynamic parts of
  #  the response with things like bean:write or
  #bean:message:
 
  #  customer
  #...
  #namebean:write name=customer
  #property=name//name
  #...
  #  /customer
 
 
 To use XML generated by a JSP page as the basis for
 your output, use this.
 
  #In some scenarios, you will also want to
 transform
  #the XML output
  #depending on what the user agent is, or for other
  #similar reasons.  Check
  #out the STXX framework (search in Google to find
  #it), which layers on top
  #of Struts and lets you specify a pipeline of XSLT
  #transformations to be
  #performed on the response that your app itself
  #generates.
 
 
 
 
 
 
   --- Craig R. McClanahan [EMAIL PROTECTED]
  wrote: 
  
   On Thu, 17 Oct 2002, Xue-Feng Yang wrote:
  
You didn't read the question correctly. The
   question
is:
   
Does STRUTS support sending serialized VO
 objects
   (as
against HTML or XML text strings) back and
 forth
between client app and server.
   
  
   And you didn't understand the answer correctly
 :-).
  
   Struts (the framework) makes ***zero***
 requirements
   on what the output
   looks like -- that is up to your application to
   decide.  You can even
   generate binary output if you like (such as a
   dynamically generated graph,
   or serialized value objects)  by writing
 directly to
   the
   ServletOutputStream and then returning null from
   your action.
  
   Struts (the struts-html tag library) does render
   HTML output, but you
   won't want to use this if you are writing
 non-HTML
   stuff.
  
   Craig
  
  
   --
   To unsubscribe, e-mail:
  
 mailto:struts-user-unsubscribe;jakarta.apache.org
   For additional commands, e-mail:
   mailto:struts-user-help;jakarta.apache.org
  
 
 

__
  Post your free ad now! http://personals.yahoo.ca
 
  --
  To unsubscribe, e-mail:  
 mailto:struts-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org
 
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org
  

__ 
Post your free ad now! http://personals.yahoo.ca

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Re: Can V in MVC be Swing in Struts?

2002-10-18 Thread Xue-Feng Yang
Thanks for the suggestions. 

The architecture of my project is different from
standard B2B and B2C although they are part of it.

I will choose Struts/Soap/EJB to deal with XML, but
implement other parts from ground to Struts.

I would like to know if there are good code generators
for XML/Struts/Soap/EJB. Seems to me this part of the
code is standard now.
  

--- [EMAIL PROTECTED] wrote:
 
 
 
 If you decline to use SOAP protocol and want to
 build an interface that
 returns XML over HTTP, I'd recommend looking XML-RPC
 protocol - it's
 simpler and actually pretty easy to use. The
 O'Reilly XML-RPC book gives
 you step by step instructions on how to do it and
 even points you to Java
 libraries that can save you a bunch of time.
 
 The value here is that there are Java libraries
 available for you to use to
 manage all the communications from the client. You
 wouldn't have to write
 any low-level communications stuff, you could just
 use the packages already
 available - plus there are VB, Perl, Python, etc
 packages available for
 XML-RPC clients as well so it would make your
 service much more reusable.
 
 
 
 
 
 
 Vilya Harvey [EMAIL PROTECTED] on
 10/17/2002 05:13:33 AM
 
 Please respond to Struts Users Mailing List
[EMAIL PROTECTED]
 
 To:Struts Users Mailing List
 [EMAIL PROTECTED]
 cc: (bcc: Kevin Bedell/Systems/USHO/SunLife)
 Subject:Re: Can V in MVC be Swing in Struts?
 
 
 You're right, it will work. In a previous job, I
 worked on a project which
 had a Visual Basic (!) client talking to some EJBs
 via servlets which
 returned XML responses. That project wasn't using
 JSP, simply because
 servlets were more convenient in that case, but
 there's no reason why it
 couldn't have. We found a lot of benefits from this
 approach.
 
 The downside was that a fair amount of time was
 spent defining the exact
 protocol between the client and the servlets. Of
 course, this was before
 SOAP... If you haven't already, it may be worth your
 while to take a look
 at
 that.
 
 Hope that helps,
 Vil.
 --
 Vilya Harvey, Consultant
 [EMAIL PROTECTED] /
 digital steps /
 (W) +44 (0)1483 469 480
 (M) +44 (0)7816 678 457
 http://www.digitalsteps.com/
 
 --Disclaimer--
 
 This e-mail and any attachments may be confidential
 and/or legally
 privileged. If you have received this email and you
 are not a named
 addressee, please inform the sender at Digital Steps
 Ltd by phone on
 +44 (0)1483 469 480 or by reply email and then
 delete the email from
 your system. If you are not a named addressee you
 must not use,
 disclose, distribute, copy, print or rely on this
 email. Although
 Digital Steps Ltd routinely screens for viruses,
 addressees should
 check this email and any attachments for viruses.
 Digital Steps Ltd
 makes no representation or warranty as to the
 absence of viruses in this
 email or any attachments.
 
 
 - Original Message -
 From: Xue-Feng Yang [EMAIL PROTECTED]
 To: Struts Users Mailing List
 [EMAIL PROTECTED]
 Sent: Thursday, October 17, 2002 5:19 AM
 Subject: RE: Can V in MVC be Swing in Struts?
 
 
  JSP is interpreted into a servlet in a servlet
  container such as Tomcat. So JSP should work on
 this.
  Servlet is not only designed for HTML browser, so
 is
  JSP.
 
  I will try it and believe this should work!
 
 
 --
 To unsubscribe, e-mail:   
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: 
 mailto:struts-user-help;jakarta.apache.org
 
 
 
 
 
 
 

---
 This e-mail message (including attachments, if any)
 is intended for the use
 of the individual or entity to which it is addressed
 and may contain
 information that is privileged, proprietary ,
 confidential and exempt from
 disclosure.  If you are not the intended recipient,
 you are notified that
 any dissemination, distribution or copying of this
 communication is
 strictly prohibited.  If you have received this
 communication in error,
 please notify the sender and erase this e-mail
 message immediately.

---
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org
 


__ 
Post your free ad now! http://personals.yahoo.ca

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: Can V in MVC be Swing in Struts?

2002-10-18 Thread Xue-Feng Yang
Let me copy your answer here with #, and tell me where
is your correct answer.

 And you didn't understand the answer correctly :-).


# There are at least two different ways to accomplish
# this:
 
#* Have your Action write the XML output directly to
#the response,
#  and then return null (indicates that the response
#has been completed,
#  so no forwarding is necessary).

#* Have the JSP pages you forward to (for the view)
#render text/xml
#  instead of text/html.  You won't be using the
# struts-html tags
#  in this scenario, but you'll be able to fill in
#dynamic parts of
#  the response with things like bean:write or
#bean:message:

#  customer
#...
#namebean:write name=customer
#property=name//name
#...
#  /customer

#In some scenarios, you will also want to transform
#the XML output
#depending on what the user agent is, or for other
#similar reasons.  Check
#out the STXX framework (search in Google to find
#it), which layers on top
#of Struts and lets you specify a pipeline of XSLT
#transformations to be
#performed on the response that your app itself
#generates. 






 --- Craig R. McClanahan [EMAIL PROTECTED]
wrote:  
 
 On Thu, 17 Oct 2002, Xue-Feng Yang wrote:
 
  You didn't read the question correctly. The
 question
  is:
 
  Does STRUTS support sending serialized VO objects
 (as
  against HTML or XML text strings) back and forth
  between client app and server.
 
 
 And you didn't understand the answer correctly :-).
 
 Struts (the framework) makes ***zero*** requirements
 on what the output
 looks like -- that is up to your application to
 decide.  You can even
 generate binary output if you like (such as a
 dynamically generated graph,
 or serialized value objects)  by writing directly to
 the
 ServletOutputStream and then returning null from
 your action.
 
 Struts (the struts-html tag library) does render
 HTML output, but you
 won't want to use this if you are writing non-HTML
 stuff.
 
 Craig
 
 
 --
 To unsubscribe, e-mail:  
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org
  

__ 
Post your free ad now! http://personals.yahoo.ca

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Can V in MVC be Swing in Struts?

2002-10-16 Thread Xue-Feng Yang

Can V in MVC be Swing in Struts?

__ 
Post your free ad now! http://personals.yahoo.ca

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




RE: Can V in MVC be Swing in Struts?

2002-10-16 Thread Xue-Feng Yang

The Swing app I mentioned talks to servlets via
HTTP/HTTPS. 

 --- Andrew Hill [EMAIL PROTECTED]
wrote:  Practically speaking no - as Struts is very
much web
 oriented and reliant on
 a lot of the servlet container functionality (ie:
 requests and responses,
 etc...).
 
 
 -Original Message-
 From: Xue-Feng Yang [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 17, 2002 11:48
 To: Struts Users Mailing List
 Subject: Can V in MVC be Swing in Struts?
 
 
 Can V in MVC be Swing in Struts?
 

__
 Post your free ad now! http://personals.yahoo.ca
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
  

__ 
Post your free ad now! http://personals.yahoo.ca

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




RE: Can V in MVC be Swing in Struts?

2002-10-16 Thread Xue-Feng Yang

The response could be a String, an XML, a HTML or a
HexString.

I am wondering if I can make a JSP without HTML tags.
If this is the case, then the thing can be done. So
far, I use servlet to do this. It would be nice if I
can built on Struts.
 
--- Andrew Hill [EMAIL PROTECTED]
wrote:
 Ah well in that case yes, I dont see why not.
 Didnt think of that scenario!
 
 What sort of response would you be returning to this
 swing client? xml?
 
 -Original Message-
 From: Xue-Feng Yang [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 17, 2002 11:57
 To: Struts Users Mailing List;
 [EMAIL PROTECTED]
 Subject: RE: Can V in MVC be Swing in Struts?
 
 
 The Swing app I mentioned talks to servlets via
 HTTP/HTTPS.
 
  --- Andrew Hill [EMAIL PROTECTED]
 wrote:  Practically speaking no - as Struts is very
 much web
  oriented and reliant on
  a lot of the servlet container functionality (ie:
  requests and responses,
  etc...).
 
 
  -Original Message-
  From: Xue-Feng Yang [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, October 17, 2002 11:48
  To: Struts Users Mailing List
  Subject: Can V in MVC be Swing in Struts?
 
 
  Can V in MVC be Swing in Struts?
 
 

__
  Post your free ad now! http://personals.yahoo.ca
 
  --
  To unsubscribe, e-mail:
 
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 
  --
  To unsubscribe, e-mail:
 
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 

__
 Post your free ad now! http://personals.yahoo.ca
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__ 
Post your free ad now! http://personals.yahoo.ca

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




RE: Can V in MVC be Swing in Struts?

2002-10-16 Thread Xue-Feng Yang

JSP is interpreted into a servlet in a servlet
container such as Tomcat. So JSP should work on this.
Servlet is not only designed for HTML browser, so is
JSP.

I will try it and believe this should work!

 --- David Graham [EMAIL PROTECTED] wrote:  I
think you're trying to force technologies into
 areas they weren't designed 
 for.  What would the JSP do if it didn't have HTML
 in it?  JSP's main job is 
 displaying dynamic html.  Swing for client apps,
 Struts for webapps.
 
 David
 
 
 
 
 
 
 From: Xue-Feng Yang [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List
 [EMAIL PROTECTED]
 To: Struts Users Mailing List
 [EMAIL PROTECTED],  
 [EMAIL PROTECTED]
 Subject: RE: Can V in MVC be Swing in Struts?
 Date: Thu, 17 Oct 2002 00:08:36 -0400 (EDT)
 
 The response could be a String, an XML, a HTML or a
 HexString.
 
 I am wondering if I can make a JSP without HTML
 tags.
 If this is the case, then the thing can be done. So
 far, I use servlet to do this. It would be nice if
 I
 can built on Struts.
 
 --- Andrew Hill [EMAIL PROTECTED]
 wrote:
   Ah well in that case yes, I dont see why not.
   Didnt think of that scenario!
  
   What sort of response would you be returning to
 this
   swing client? xml?
  
   -Original Message-
   From: Xue-Feng Yang [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, October 17, 2002 11:57
   To: Struts Users Mailing List;
   [EMAIL PROTECTED]
   Subject: RE: Can V in MVC be Swing in Struts?
  
  
   The Swing app I mentioned talks to servlets via
   HTTP/HTTPS.
  
--- Andrew Hill
 [EMAIL PROTECTED]
   wrote:  Practically speaking no - as Struts is
 very
   much web
oriented and reliant on
a lot of the servlet container functionality
 (ie:
requests and responses,
etc...).
   
   
-Original Message-
From: Xue-Feng Yang
 [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 17, 2002 11:48
To: Struts Users Mailing List
Subject: Can V in MVC be Swing in Struts?
   
   
Can V in MVC be Swing in Struts?
   
   
  

__
Post your free ad now!
 http://personals.yahoo.ca
   
--
To unsubscribe, e-mail:
   
  
 mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
   
   
--
To unsubscribe, e-mail:
   
  
 mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
   
  
  

__
   Post your free ad now! http://personals.yahoo.ca
  
   --
   To unsubscribe, e-mail:
  
 mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
   mailto:[EMAIL PROTECTED]
  
  
   --
   To unsubscribe, e-mail:
  
 mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
   mailto:[EMAIL PROTECTED]
  
 
 

__
 Post your free ad now! http://personals.yahoo.ca
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 

_
 Protect your PC - get McAfee.com VirusScan Online 

http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
  

__ 
Post your free ad now! http://personals.yahoo.ca

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




Re: StoreFront

2002-10-15 Thread Xue-Feng Yang

I mean the draft, which I looked at a few months ago.
It was one of the books I read when I took the train
to another city to work. So haven't had time to test
yet.

 --- [EMAIL PROTECTED] wrote:  No, it's not out
yet. I was told by the publisher
 that 
 it will be out November 11.
 
 Chuck
  The book is out?  I ordered but have seen nothing
 as yet.
  
  At 03:34 AM 10/15/2002 +, you wrote:
  I have, does that count? :) Seriously, due to the
  feedback that I received during the writing
 process, I
  know that many people have deployed it on various
  containers. I believe a few people experienced
 some
  issues on earlier versions of WebSphere, but they
 were
  documented problems with that container. If
 you're
  having trouble deploying it, email me and I'll
 help you
  out.
  
  Chuck
Has anyone deployed the store front example in
 Chuck
Cavaness' book?
   
   

__
Post your free ad now!
 http://personals.yahoo.ca
   
--
To unsubscribe, 
   e-mail:  
 mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
   mailto:[EMAIL PROTECTED]
   
  
  --
  To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
  
  Micael
  
 

---
  
  This electronic mail  transmission and any
 accompanying documents contain 
  information belonging to the sender which may be
 confidential and legally 
  privileged.  This information is intended only for
 the use of the 
  individual or entity to whom this electronic mail
 transmission was sent as 
  indicated above. If you are not the intended
 recipient, any disclosure, 
  copying, distribution, or action taken in reliance
 on the contents of the 
  information contained in this transmission is
 strictly prohibited.  If you 
  have received this transmission in error, please
 delete the message.  Thank you 
  
  
  
  --
  To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
  
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
  

__ 
Post your free ad now! http://personals.yahoo.ca

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




Re: StoreFront

2002-10-15 Thread Xue-Feng Yang

Are you sure that there is a war in Chapter 16? I
searched all zip files. I couldn't find any war file. 



--- [EMAIL PROTECTED] wrote:
 I should have pointed out that in the draft version
 of 
 Chapter 16, there's a storefront.war file that you 
 should be able to just drop into your web container
 and 
 go. I tested it on several containers, but not
 WebSphere 
 (for various reasons, but mostly laziness). 
 
 Chuck
  The book is out?  I ordered but have seen nothing
 as yet.
  
  At 03:34 AM 10/15/2002 +, you wrote:
  I have, does that count? :) Seriously, due to the
  feedback that I received during the writing
 process, I
  know that many people have deployed it on various
  containers. I believe a few people experienced
 some
  issues on earlier versions of WebSphere, but they
 were
  documented problems with that container. If
 you're
  having trouble deploying it, email me and I'll
 help you
  out.
  
  Chuck
Has anyone deployed the store front example in
 Chuck
Cavaness' book?
   
   

__
Post your free ad now!
 http://personals.yahoo.ca
   
--
To unsubscribe, 
   e-mail:  
 mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
   mailto:[EMAIL PROTECTED]
   
  
  --
  To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
  
  Micael
  
 

---
  
  This electronic mail  transmission and any
 accompanying documents contain 
  information belonging to the sender which may be
 confidential and legally 
  privileged.  This information is intended only for
 the use of the 
  individual or entity to whom this electronic mail
 transmission was sent as 
  indicated above. If you are not the intended
 recipient, any disclosure, 
  copying, distribution, or action taken in reliance
 on the contents of the 
  information contained in this transmission is
 strictly prohibited.  If you 
  have received this transmission in error, please
 delete the message.  Thank you 
  
  
  
  --
  To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
  
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__ 
Post your free ad now! http://personals.yahoo.ca

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




Re: StoreFront

2002-10-15 Thread Xue-Feng Yang

I built one war file from Chapter 20. However, there
are no database tables. I copied the tables from
Chapter 6, but there are no data.


--- Xue-Feng Yang [EMAIL PROTECTED] wrote:
 Are you sure that there is a war in Chapter 16? I
 searched all zip files. I couldn't find any war
 file. 
 
 
 
 --- [EMAIL PROTECTED] wrote:
  I should have pointed out that in the draft
 version
  of 
  Chapter 16, there's a storefront.war file that you
 
  should be able to just drop into your web
 container
  and 
  go. I tested it on several containers, but not
  WebSphere 
  (for various reasons, but mostly laziness). 
  
  Chuck
   The book is out?  I ordered but have seen
 nothing
  as yet.
   
   At 03:34 AM 10/15/2002 +, you wrote:
   I have, does that count? :) Seriously, due to
 the
   feedback that I received during the writing
  process, I
   know that many people have deployed it on
 various
   containers. I believe a few people experienced
  some
   issues on earlier versions of WebSphere, but
 they
  were
   documented problems with that container. If
  you're
   having trouble deploying it, email me and I'll
  help you
   out.
   
   Chuck
 Has anyone deployed the store front example
 in
  Chuck
 Cavaness' book?


 

__
 Post your free ad now!
  http://personals.yahoo.ca

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

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

---
   
   This electronic mail  transmission and any
  accompanying documents contain 
   information belonging to the sender which may be
  confidential and legally 
   privileged.  This information is intended only
 for
  the use of the 
   individual or entity to whom this electronic
 mail
  transmission was sent as 
   indicated above. If you are not the intended
  recipient, any disclosure, 
   copying, distribution, or action taken in
 reliance
  on the contents of the 
   information contained in this transmission is
  strictly prohibited.  If you 
   have received this transmission in error, please
  delete the message.  Thank you 
   
   
   
   --
   To unsubscribe, e-mail:  
 
 mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
   
  
  --
  To unsubscribe, e-mail:  
 
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
 
 

__
 
 Post your free ad now! http://personals.yahoo.ca
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__ 
Post your free ad now! http://personals.yahoo.ca

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




RE: StoreFront

2002-10-15 Thread Xue-Feng Yang

Chuck, I haven't seen the package yet. Could you
please send me the package to [EMAIL PROTECTED]

Thank you very much

--- [EMAIL PROTECTED] wrote:
 After just scanning what's been posted there, I
 agree. I 
 just sent a complete chapter16.zip to this list.
 It's 
 got everything in it, WAR file, source and an
 updated 
 chapter 16 (which is the packaging chapter).
 
 Chuck
  There is no war file in chap 16, or any other chap
 ???
  
  -Original Message-
  From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, October 15, 2002 8:36 AM
  To: Struts Users Mailing List
  Subject: Re: StoreFront
  
  
  I should have pointed out that in the draft
 version of
  Chapter 16, there's a storefront.war file that you
  should be able to just drop into your web
 container and
  go. I tested it on several containers, but not
 WebSphere
  (for various reasons, but mostly laziness).
  
  Chuck
   The book is out?  I ordered but have seen
 nothing as yet.
  
   At 03:34 AM 10/15/2002 +, you wrote:
   I have, does that count? :) Seriously, due to
 the
   feedback that I received during the writing
 process, I
   know that many people have deployed it on
 various
   containers. I believe a few people experienced
 some
   issues on earlier versions of WebSphere, but
 they were
   documented problems with that container. If
 you're
   having trouble deploying it, email me and I'll
 help you
   out.
   
   Chuck
 Has anyone deployed the store front example
 in Chuck
 Cavaness' book?



__
 Post your free ad now!
 http://personals.yahoo.ca

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

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

---
  
   This electronic mail  transmission and any
 accompanying documents contain
   information belonging to the sender which may be
 confidential and legally
   privileged.  This information is intended only
 for the use of the
   individual or entity to whom this electronic
 mail transmission was sent as
   indicated above. If you are not the intended
 recipient, any disclosure,
   copying, distribution, or action taken in
 reliance on the contents of the
   information contained in this transmission is
 strictly prohibited.  If you
   have received this transmission in error, please
 delete the message.
  Thank you
  
  
  
   --
   To unsubscribe, e-mail:
 
 mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
  
  --
  To unsubscribe, e-mail:
 
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
  
  
  --
  To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
  
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__ 
Post your free ad now! http://personals.yahoo.ca

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




RE: StoreFront

2002-10-15 Thread Xue-Feng Yang

Thank you Chuck, I recieved the package.

I looked at the package. There are no database tables
and data in the war file. I am wondering if there is a
magic way in Struts which I don't have to make all the
tables and data available in the database.

__ 
Post your free ad now! http://personals.yahoo.ca

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




RE: StoreFront

2002-10-15 Thread Xue-Feng Yang

James, how do you make the sample data from
repository_user.xml? The tables are there, but no
data. 

Chuck, does your store front have no data? or empty
store?

 --- James Mitchell [EMAIL PROTECTED] wrote: 
Chuck, are these the same as the beer4all app?
 
 (I generated those myself from your
 repository_user.xml and the internal
 tables)
 
 
 James Mitchell
 Software Engineer/Struts Evangelist
 http://www.open-tools.org
 
 
 
 
  -Original Message-
  From: Xue-Feng Yang [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, October 15, 2002 10:56 AM
  To: Struts Users Mailing List
  Subject: RE: StoreFront
 
 
  Thank you Chuck, I recieved the package.
 
  I looked at the package. There are no database
 tables
  and data in the war file. I am wondering if there
 is a
  magic way in Struts which I don't have to make all
 the
  tables and data available in the database.
 
 

__
  Post your free ad now! http://personals.yahoo.ca
 
  --
  To unsubscribe, e-mail:
 
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
  

__ 
Post your free ad now! http://personals.yahoo.ca

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




StoreFront

2002-10-14 Thread Xue-Feng Yang

Has anyone deployed the store front example in Chuck
Cavaness' book? 

__ 
Post your free ad now! http://personals.yahoo.ca

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




Re: StoreFront

2002-10-14 Thread Xue-Feng Yang

Hi Chuck,

Sure, you did.

Thank you very much for your nice book.

Do you have any deployment documentation?

I am trying to deploy Store Front to my Redhat Linux
Box(7.3) with Tomcat 4.1.12 and postgreSQL 7.2.2.

--- [EMAIL PROTECTED] wrote:
 I have, does that count? :) Seriously, due to the 
 feedback that I received during the writing process,
 I 
 know that many people have deployed it on various 
 containers. I believe a few people experienced some 
 issues on earlier versions of WebSphere, but they
 were 
 documented problems with that container. If you're 
 having trouble deploying it, email me and I'll help
 you 
 out.
 
 Chuck
  Has anyone deployed the store front example in
 Chuck
  Cavaness' book? 
  
 

__
 
  Post your free ad now! http://personals.yahoo.ca
  
  --
  To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
  
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__ 
Post your free ad now! http://personals.yahoo.ca

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




Re: StoreFront

2002-10-14 Thread Xue-Feng Yang

 
Hi Chuck,

Do you have SQL scripts for the tables and data? I
couldn't find them.

Thanks

--- Xue-Feng Yang [EMAIL PROTECTED] wrote:  Hi
Chuck,
 
 Sure, you did.
 
 Thank you very much for your nice book.
 
 Do you have any deployment documentation?
 
 I am trying to deploy Store Front to my Redhat Linux
 Box(7.3) with Tomcat 4.1.12 and postgreSQL 7.2.2.
 
 --- [EMAIL PROTECTED] wrote:
  I have, does that count? :) Seriously, due to the 
  feedback that I received during the writing
 process,
  I 
  know that many people have deployed it on various 
  containers. I believe a few people experienced
 some 
  issues on earlier versions of WebSphere, but they
  were 
  documented problems with that container. If you're
 
  having trouble deploying it, email me and I'll
 help
  you 
  out.
  
  Chuck
   Has anyone deployed the store front example in
  Chuck
   Cavaness' book? 
   
  
 

__
  
   Post your free ad now! http://personals.yahoo.ca
   
   --
   To unsubscribe, e-mail:  
 
 mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
   
  
  --
  To unsubscribe, e-mail:  
 
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
 
 

__
 
 Post your free ad now! http://personals.yahoo.ca
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
  

__ 
Post your free ad now! http://personals.yahoo.ca

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




RE: Error message - not sure of meaning or significance.

2002-10-11 Thread Xue-Feng Yang

Hi Galbreath,

Which plateforms do you think a REAL programmer can
read   
the hex in a core dump without a calculator?



 --- Galbreath, Mark [EMAIL PROTECTED] wrote: 
Hey, you aren't a REAL programmer until you can
 debug an app by reading the
 hex in a core dump without a calculator!
 
 -Original Message-
 From: Andrew Hill
 [mailto:[EMAIL PROTECTED]]
 Sent: Friday, October 11, 2002 10:05 AM
 
 Hehe, one of my rather complex (2000 line) classes
 was being a real pita a
 while back. I kept wrapping chuncks of code with
 more and more try catchs
 throwing nested exceptions with rather verbose and
 detailed messages.
 Now if you so much as sneeze at this class it will
 give you a 30 page stack
 trace that explains in copiously verbose detail how
 that sneeze evolves into
 a cyclone over Tokyo...
 (Great for debugging though. Just have to read the
 stack and I know exactly
 what the problem is!)
 
 -Original Message-
 From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
 Sent: Friday, October 11, 2002 22:00
 To: 'Struts Users Mailing List'
 Subject: RE: Error message - not sure of meaning or
 significance.
 
 
 Don't have any knowledge on the stderr msgs, but
 sometimes debugging is a
 painful process of narrowing the offending code in a
 method or module with
 println statements.  I know - been doing it for 2
 days now trying to figure
 out why my resultset in
 
 conn = getConnection( isPooled );
 stmt = conn.createStatement();
 rset = stmt.executeQuery( sql );
 
 if( rset.next() ) {
   clob = rset.getClob( 1 );
 }
 int clobSize = ( new Long( clob.length()
 ).intValue() );
 char[] buffer = new char[ clobSize ];
 clobStream = clob.getCharacterStream();
 clobStream.read( buffer );
 clobString = new String( buffer );
 
 is returning a single CLOB when my SQL (verified in
 PL/SQL) is returning 3.
 It's been a PITA!
 
 Mark
 
 -Original Message-
 From: Ryan Cuprak [mailto:[EMAIL PROTECTED]]
 Sent: Friday, October 11, 2002 9:45 AM
 To: Struts Users Mailing List
 Subject: Re: Error message - not sure of meaning or
 significance.
 
 
 Well, I have wrapped the offending page in a try
 catch with
 system.out.print but I still get the same darn
 exception and no output
 from my system.outs. So, back to digging... Those
 entries on standard
 error in the email are new though... (I think)
 
 -Ryan
 
 On Friday, October 11, 2002, at 09:40 AM, Galbreath,
 Mark wrote:
 
  Learn the mystical art of System.out.println(). 
 :-(
 
  -Original Message-
  From: Ryan Cuprak
 [mailto:[EMAIL PROTECTED]]
  Sent: Friday, October 11, 2002 9:33 AM
 
BTW: How do I get exception traces for servlet
 errors. I am trying to
  track down a servlet exception in one of my
 tiles - all I get on the
  page is a servlet exception and the path to the
 tile (jsp page).
  Looking through the logs in jboss I don't see any
 exception trace. I am
  not sure if the above error is related.
 
  --
  To unsubscribe, e-mail:
 
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
  

__ 
Post your free ad now! http://personals.yahoo.ca

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




Re: [FRIDAY] Quote of the Day

2002-10-11 Thread Xue-Feng Yang

Do you know the first type of human being who
understand binary?  

 --- Jacob Hookom [EMAIL PROTECTED] wrote:  
 There are 10 kinds of people in this world, those
 who understand binary
 and those who don't
 
 -Bubba
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
  

__ 
Post your free ad now! http://personals.yahoo.ca

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