RE: Can V in MVC be Swing in Struts?
--- 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 in
RE: Can V in MVC be Swing in Struts?
Ok..Peace guys... I got my answers... and more.. :-) Thanks Craig.. -Original Message- From: Xue-Feng Yang [mailto:just4look;yahoo.com] Sent: Thursday, October 17, 2002 1:20 PM To: Struts Users Mailing List 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). #* 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 -- 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?
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. (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
RE: Can V in MVC be Swing in Struts?
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. #* 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
RE: Can V in MVC be Swing in Struts?
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. 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
RE: Can V in MVC be Swing in Struts?
We have a prototype that we are using that uses Struts as the framework. We have a JTree applet that is displayed as part of the view component. This way we get to use an Explorer-type interface with the power of the JTree Swing component. The tags to implement a tree pane was pretty ugly on our first attempt. The applet approach made everything much cleaner. We have a set of classes to populate the tree model for the applet. Jim Berg Sr. Software Specialist PSCI 610-270-4158 [EMAIL PROTECTED] Xue-Feng Yang [EMAIL PROTECTED] To: Struts Users Mailing List 17-Oct-2002 00:19 Please respond tocc: Struts Users MailingSubject: RE: Can V in MVC be Swing in Struts? List [EMAIL PROTECTED] pache.org 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:just4look;yahoo.com] 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:just4look;yahoo.com] 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: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 -- To unsubscribe, e-mail:
RE: Can V in MVC be Swing in Struts?
--- 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?
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-- 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:
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
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
Re: Can V in MVC be Swing in Struts?
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 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
RE: Can V in MVC be Swing in Struts?
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 -- 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?
OK.I asked the original question... Did I get the answer exactly in the way/format I was looking for ?? Probably not.. Yes...Craig didn't mention the words Serialized and VO in the original answer. But hey...the answer was more than adequate to satisify my original query and apply the same concept for serialized objects. Thanks -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 -- 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?
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
RE: Can V in MVC be Swing in Struts?
--- 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?
Xue-Feng Yang wrote: 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? Struts is primarily a controller. It does not dictate *any* view. If you want to serialize objects, that's lovely! Java happens to have built-in tools for doing this. You want to transmit them? Again - *lovely*! There are facilities for that too (as I understand) in the Java language. Now, if you're asking if *Struts* provides a facility to serialize and/or transmit/receive objects, the answer is an unequivocal, resounding no. Sorry - but that's not what the focus is here. 3) As a open source forum, any one should not mis-lead the people who asked the questions here. -- Eddie Bush -- 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?
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?
The date keeps changing - you can check this page for the latest expected date - http://www.amazon.com/exec/obidos/tg/detail/-/0672324725/qid=1034868641/sr=1-1/ref=sr_1_1/002-0797019-2419256?v=glance Thanks! Kevin Xue-Feng Yang [EMAIL PROTECTED] on 10/17/2002 11:29:15 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? 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.
RE: Can V in MVC be Swing in Struts?
What part of writing serialized VO objects to the raw ServletOutputStream is confusing to you? You still have to set the mime-type in the header correctly because you're using HTTP, but other than that, its pure serialized objects. --Kevin -Original Message- From: Xue-Feng Yang [mailto:just4look;yahoo.com] Sent: Thursday, October 17, 2002 2:09 PM To: Struts Users Mailing List Subject: RE: Can V in MVC be Swing in Struts? --- 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 -- 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?
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
RE: Can V in MVC be Swing in Struts?
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: Can V in MVC be Swing in Struts?
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
Re: Can V in MVC be Swing in Struts?
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
RE: Can V in MVC be Swing in Struts?
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?
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?
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?
I think it's time to wield the crook. Get him off the stage so informed, serious, and polite people don't need to put up with 9 year old behavior. Let's just note the name so it can be blocked later. Xue-Feng Yang [EMAIL PROTECTED] on 10/17/2002 02:40:47 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? 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 -- 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?
Maybe you missed my other post ;-) You've got a Ph.D. - wasn't part of your course-work centered on learning to RTFM? You should have gotten an accompanying degree in sociology. Struts focuses on the 'C' in MVC. Because of the fact that HTML/JSP/XML are quite widely used, there happen to be tools for assisting folks in developing with them. What *you* are proposing is *not* something that is commonly done. There is no wiring harness for it. By the same token, there is nothing *against* it - though *you* would have to implement the necessary communication using either the Java language itself, or something else *you* develop! right-click action=ignore-thread/ Bye. Xue-Feng Yang wrote: 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 -- Eddie Bush -- 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?
Thank you Dr. Yang. I must say that I do admire your moxie on this matter and I would also like to thank you for making me laugh so much while exactly proving my point! May we all be blessed with such a marvelous ability to filter out vast quantities of reality in real-time. Simon (And people wondered why I didn't study for a Ph.D!? ;-) - 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:41 PM To: Struts Users Mailing List Subject: RE: Can V in MVC be Swing in Struts? 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 -- 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?
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?
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? (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 ?? 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 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
Re: Can V in MVC be Swing in Struts?
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 -- 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?
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
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
RE: Can V in MVC be Swing in Struts?
... 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
RE: Can V in MVC be Swing in Struts?
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
Re: Can V in MVC be Swing in Struts?
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?
--- 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?
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?
I'm telling you, we could build a bridge between Axis and Struts and accomplish this: - Axis provides a SOAP-based interface to client applications. - Axis itself runs as a webapp accepting HTTP requests - We could define an XML-format that clients could send to the Web Service that would provide the information required to invoke a Struts request processor I honestly don't have time to contribute this on my own, but I've put thought to it. If anyone is intersted in working on this with me helping, let me know. But to answer the questions - 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? I'd have to climb a bit inside the coude to see if Struts specifically *requires* any particular HTML to be sent. Not sure why it would. You should be able to create an ActionForward to a JSP that was literally just a scriptlet from beginning to end and that that did an 'out.print()' of the serialized form of the object you wanted. (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 ?? I don't belive that SOAP in an of itself specifies sessions - though I may be wrong. Both Apache Soap and Axis provide session management using cookies if you use HTTP as the transport (as most everyone does). http://xml.apache.org/axis/faq.html#faq9 thanks Anytime - Kevin - Kevin Bedell Author, Struts Kick Start --- 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
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). #* 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?
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:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Can V in MVC be Swing in Struts?
What you're describing - a swing application communicating via http to a server-based application - is really better resolved by using a Web Service (or potentially XML-RPC if your requriements for delivery are loose enough). I'd recommend you take a look at Apache Axis. http://xml.apache.org/axis. I've actually put a decent bit of though to putting Axis in front of Struts to allow people to build web service applications using Action Classes, form beans, etc. I believe there's a way it could be done - Best of luck, Kevin Xue-Feng Yang [EMAIL PROTECTED] on 10/17/2002 12:08:36 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To:Struts Users Mailing List [EMAIL PROTECTED], [EMAIL PROTECTED] cc: (bcc: Kevin Bedell/Systems/USHO/SunLife) Subject:RE: Can V in MVC be Swing in Struts? 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] --- 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:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Can V in MVC be Swing in Struts?
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]
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]
RE: Can V in MVC be Swing in Struts?
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]
RE: Can V in MVC be Swing in Struts?
That doesn't matter. Struts has to run inside a servlet container. Struts is a web only framework and Swing has plenty of components for building a view. 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: Wed, 16 Oct 2002 23:57:09 -0400 (EDT) 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] _ 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]
RE: Can V in MVC be Swing in Struts?
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?
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]
RE: Can V in MVC be Swing in Struts?
Looks to me like what he plans on doing is instead of connecting to the web app using a broswer, one would use his swing application. In the web app would be a struts app as normal that would interpret the request parameters as normal etc... except that for his response instead of rendering html using the struts tags he could render something his client understands (such as xml - maybe leveraging the stxx tags). Not bad. Wouldnt have to worry about browser incompatibilities that way, and also if he later wants to support a normal browser, his actions would merely forward to a jsp that renders normal html for those users. The action logic would not need to change (much), just the way the response is rendered... -Original Message- From: David Graham [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 17, 2002 12:03 To: [EMAIL PROTECTED] Subject: RE: Can V in MVC be Swing in Struts? That doesn't matter. Struts has to run inside a servlet container. Struts is a web only framework and Swing has plenty of components for building a view. 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: Wed, 16 Oct 2002 23:57:09 -0400 (EDT) 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] _ 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
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! --- 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]