RE: Can V in MVC be Swing in Struts?

2002-10-18 Thread Xue-Feng Yang
--- Rohra, Prakash N. ,,DMDC/BEAU [EMAIL PROTECTED] wrote: We have a similar situation where Server side Struts components (Actions and JavaBean business components) will be accessed by a client Swing Java application (not a browser). We are also looking at various alternatives like

RE: Can V in MVC be Swing in Struts?

2002-10-18 Thread Rohra, Prakash N. ,,DMDC/BEAU
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

RE: Can V in MVC be Swing in Struts?

2002-10-18 Thread Craig R. McClanahan
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

RE: Can V in MVC be Swing in Struts?

2002-10-18 Thread Craig R. McClanahan
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

RE: Can V in MVC be Swing in Struts?

2002-10-18 Thread Assenza, Chris
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

RE: Can V in MVC be Swing in Struts?

2002-10-18 Thread Jim.W.Berg
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

RE: Can V in MVC be Swing in Struts?

2002-10-18 Thread Xue-Feng Yang
--- Craig R. McClanahan [EMAIL PROTECTED] wrote: On Thu, 17 Oct 2002, Rohra, Prakash N. ,,DMDC/BEAU wrote: Date: Thu, 17 Oct 2002 11:23:29 -0400 From: Rohra, Prakash N. ,,DMDC/BEAU [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing

Re: Can V in MVC be Swing in Struts?

2002-10-18 Thread Kevin . Bedell
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

RE: Can V in MVC be Swing in Struts?

2002-10-18 Thread Xue-Feng Yang
Again, it is not my question! Look at my last post! --- Chappell, Simon P [EMAIL PROTECTED] wrote: ... snip ... And I just point out someone's answer is not a correct answer. That's it. Yes, but it's polite to provide the correct answer if you want to solve a problem

RE: Can V in MVC be Swing in Struts?

2002-10-18 Thread Xue-Feng Yang
1) it is not my question; 2) I just pointed out that Craig didn't answer the question: (1) Does STRUTS support sending serialized VO objects (as against HTML or XML text strings) back and forth between client app and server. What needs to be changed in STRUTS components to suport this?

Re: Can V in MVC be Swing in Struts?

2002-10-18 Thread David Graham
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

RE: Can V in MVC be Swing in Struts?

2002-10-18 Thread Kevin A. Smith
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.

RE: Can V in MVC be Swing in Struts?

2002-10-18 Thread Rohra, Prakash N. ,,DMDC/BEAU
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

RE: Can V in MVC be Swing in Struts?

2002-10-18 Thread jsadove
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

RE: Can V in MVC be Swing in Struts?

2002-10-18 Thread Xue-Feng Yang
--- Assenza, Chris [EMAIL PROTECTED] wrote: I can't tell if you're being serious or not, but the question really has been answered already. The problem is that you're either A) missing the point or B) a troll. I prefer to assume A. In that case, I believe I can paraphrase what Craig has

Re: Can V in MVC be Swing in Struts?

2002-10-18 Thread Eddie Bush
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

RE: Can V in MVC be Swing in Struts?

2002-10-18 Thread Xue-Feng Yang
Hahaha, it's upto you! I don't care. --- Kevin A. Smith [EMAIL PROTECTED] wrote: As several other people on this list pointed out, Craig _did_ answer the question. In detail. With examples. For those of you who missed it, the answer is YES. As in the opposite of NO. At this point, you might

Re: Can V in MVC be Swing in Struts?

2002-10-18 Thread Kevin . Bedell
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

RE: Can V in MVC be Swing in Struts?

2002-10-18 Thread Kevin A. Smith
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

RE: Can V in MVC be Swing in Struts?

2002-10-18 Thread Chappell, Simon P
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

RE: Can V in MVC be Swing in Struts?

2002-10-18 Thread Xue-Feng Yang
It could be. --- [EMAIL PROTECTED] wrote: Really! sheesh...it must be a translation issue Kevin A. Smith [EMAIL PROTECTED] on 10/17/2002 01:55:53 PM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc:

RE: Can V in MVC be Swing in Struts?

2002-10-18 Thread Kevin . Bedell
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

Re: Can V in MVC be Swing in Struts?

2002-10-18 Thread Kevin . Bedell
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

RE: Can V in MVC be Swing in Struts?

2002-10-18 Thread Xue-Feng Yang
This is my last post under RE: Can V in MVC be Swing in Struts?. All later response will be ignored since your lack of etiquette over the matter. If you don't have time, then keep quiet. However, don't mis-lead other people. Xue-Feng Yang, Ph.D Senior Java Technical Architect --- Chappell,

RE: Can V in MVC be Swing in Struts?

2002-10-18 Thread Xue-Feng Yang
Let me copy your answer here with #, and tell me where is your correct answer. And you didn't understand the answer correctly :-). # There are at least two different ways to accomplish # this: #* Have your Action write the XML output directly to #the response, # and then return null

RE: Can V in MVC be Swing in Struts?

2002-10-18 Thread Xue-Feng Yang
Let me copy your answer here with #, and tell me where is your correct answer. And you didn't understand the answer correctly :-). # There are at least two different ways to accomplish # this: #* Have your Action write the XML output directly to #the response, # and then return null

RE: Can V in MVC be Swing in Struts?

2002-10-18 Thread jsadove
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

Re: Can V in MVC be Swing in Struts?

2002-10-18 Thread Eddie Bush
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

RE: Can V in MVC be Swing in Struts?

2002-10-18 Thread Chappell, Simon P
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

Re: Can V in MVC be Swing in Struts?

2002-10-18 Thread Xue-Feng Yang
I will not use RMI to communicate between clients and servers since the clients are always behind firewalls. So it is possible that some clients cannot talk with servers at all if I use RMI. About Soap, I mean the general term Soap not only the one: Apache Soap. Sure, I will consider Apache AXIS

RE: Can V in MVC be Swing in Struts?

2002-10-18 Thread Rohra, Prakash N. ,,DMDC/BEAU
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

Re: Can V in MVC be Swing in Struts?

2002-10-18 Thread Antoni Reus
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

RE: Can V in MVC be Swing in Struts?

2002-10-18 Thread Kevin A. Smith
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?

2002-10-18 Thread Xue-Feng Yang
--- Antoni Reus [EMAIL PROTECTED] wrote: Hi, A Dijous 17 Octubre 2002 19:31, Xue-Feng Yang va escriure: --- Craig R. McClanahan [EMAIL PROTECTED] wrote: On Thu, 17 Oct 2002, Xue-Feng Yang wrote: Date: Thu, 17 Oct 2002 13:19:48 -0400 (EDT) From: Xue-Feng Yang [EMAIL

RE: Can V in MVC be Swing in Struts?

2002-10-18 Thread Chappell, Simon P
... 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

RE: Can V in MVC be Swing in Struts?

2002-10-18 Thread Craig R. McClanahan
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 :-).

Re: Can V in MVC be Swing in Struts?

2002-10-18 Thread Xue-Feng Yang
Yes, you can find such reference from ServerSide. There is a research report on this, which I forgot the link. The reason is that JBoss uses too much java.lang.reflect and some other thing. --- David Graham [EMAIL PROTECTED] wrote: JBoss too slow? I've never heard that before. If you don't

RE: Can V in MVC be Swing in Struts?

2002-10-18 Thread Xue-Feng Yang
--- Craig R. McClanahan [EMAIL PROTECTED] wrote: On Thu, 17 Oct 2002, Xue-Feng Yang wrote: Date: Thu, 17 Oct 2002 13:19:48 -0400 (EDT) From: Xue-Feng Yang [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED]

Re: Can V in MVC be Swing in Struts?

2002-10-18 Thread Xue-Feng Yang
Thanks for the suggestions. The architecture of my project is different from standard B2B and B2C although they are part of it. I will choose Struts/Soap/EJB to deal with XML, but implement other parts from ground to Struts. I would like to know if there are good code generators for

RE: Can V in MVC be Swing in Struts?

2002-10-18 Thread Kevin . Bedell
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

RE: Can V in MVC be Swing in Struts?

2002-10-18 Thread Xue-Feng Yang
Let me copy your answer here with #, and tell me where is your correct answer. And you didn't understand the answer correctly :-). # There are at least two different ways to accomplish # this: #* Have your Action write the XML output directly to #the response, # and then return null

Re: Can V in MVC be Swing in Struts?

2002-10-17 Thread Vilya Harvey
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

RE: Can V in MVC be Swing in Struts?

2002-10-17 Thread Kevin . Bedell
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.

RE: Can V in MVC be Swing in Struts?

2002-10-16 Thread Andrew Hill
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

RE: Can V in MVC be Swing in Struts?

2002-10-16 Thread Xue-Feng Yang
The Swing app I mentioned talks to servlets via HTTP/HTTPS. --- Andrew Hill [EMAIL PROTECTED] wrote: Practically speaking no - as Struts is very much web oriented and reliant on a lot of the servlet container functionality (ie: requests and responses, etc...). -Original

RE: Can V in MVC be Swing in Struts?

2002-10-16 Thread Andrew Hill
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;

RE: Can V in MVC be Swing in Struts?

2002-10-16 Thread David Graham
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

RE: Can V in MVC be Swing in Struts?

2002-10-16 Thread Xue-Feng Yang
The response could be a String, an XML, a HTML or a HexString. I am wondering if I can make a JSP without HTML tags. If this is the case, then the thing can be done. So far, I use servlet to do this. It would be nice if I can built on Struts. --- Andrew Hill [EMAIL PROTECTED] wrote: Ah well

RE: Can V in MVC be Swing in Struts?

2002-10-16 Thread David Graham
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

RE: Can V in MVC be Swing in Struts?

2002-10-16 Thread Andrew Hill
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

RE: Can V in MVC be Swing in Struts?

2002-10-16 Thread Xue-Feng Yang
JSP is interpreted into a servlet in a servlet container such as Tomcat. So JSP should work on this. Servlet is not only designed for HTML browser, so is JSP. I will try it and believe this should work! --- David Graham [EMAIL PROTECTED] wrote: I think you're trying to force technologies into