comp.lang.java.programmer http://groups-beta.google.com/group/comp.lang.java.programmer [EMAIL PROTECTED]
Today's topics: * cancel <[EMAIL PROTECTED]> ; - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/43f5966bb44773c4 * cancel <[EMAIL PROTECTED]> - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d1d1f78e78640cac * Help ....API's - 8 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/43884fd5c0b83a71 * How do you write to text files WITHOUT OVERWRITING? - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6f3671c3a6cf1cdd * AXIS to emit SOAPHeader in wsdl - 4 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/2c45ef5524d60a3e * Off JAVA Topic - Billing Rate - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/83b0fce5d3ff0b01 * AXIS to emit SOAPHeader in WSDL - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/ce9c8cb067f871bd * dynamically change struts' form's action - 2 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/bc28d63a3a8fb854 * any body can invite me to GMAIL? - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/33e39c774f521fbb * interesting thin-client problem - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/df226049f75e9516 * Jakarta commons validator question - 2 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c0969e600adbc6f1 * Cannot reply message - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/eb70246ca8fbe9a8 * get Tomcat 5 to compile at startup? - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/80990d518d14af33 ============================================================================== TOPIC: cancel <[EMAIL PROTECTED]> ; http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/43f5966bb44773c4 ============================================================================== == 1 of 1 == Date: Wed, Dec 15 2004 12:04 pm From: [EMAIL PROTECTED] This message was cancelled from within Mozilla. ============================================================================== TOPIC: cancel <[EMAIL PROTECTED]> http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d1d1f78e78640cac ============================================================================== == 1 of 1 == Date: Wed, Dec 15 2004 12:04 pm From: [EMAIL PROTECTED] This message was cancelled from within Mozilla. ============================================================================== TOPIC: Help ....API's http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/43884fd5c0b83a71 ============================================================================== == 1 of 8 == Date: Tues, Dec 14 2004 3:18 pm From: "rwarai" Have %TOMCAT_HOME%\common\lib\servlet-api.jar in your classpath. Remember to add ; == 2 of 8 == Date: Tues, Dec 14 2004 3:17 pm From: "rwarai" add %TOMCAT_HOME%\common\lib\servlet-api.jar to your classpath if you are using j2se == 3 of 8 == Date: Tues, Dec 14 2004 3:25 pm From: "rwarai" add %TOMCAT_HOME%\common\lib\servlet-api.jar in your classpath if you are using j2se == 4 of 8 == Date: Tues, Dec 14 2004 3:02 pm From: "rwarai" add %TOMCAT_HOME%\common\lib\servlet-api.jar in your classpath if you are using j2se == 5 of 8 == Date: Tues, Dec 14 2004 3:20 pm From: "rwarai" add ;%TOMCAT_HOME%\common\lib\servlet-api.jar to your classpath. That should do it if your are using j2se == 6 of 8 == Date: Tues, Dec 14 2004 2:54 pm From: "rwarai" add %TOMCAT_HOME%\common\lib\servlet-api.jar in your classpath if your are using j2se == 7 of 8 == Date: Tues, Dec 14 2004 2:54 pm From: "rwarai" add %TOMCAT_HOME%\common\lib\servlet-api.jar in your classpath if your are using j2se == 8 of 8 == Date: Tues, Dec 14 2004 3:28 pm From: "rwarai" add %TOMCAT_HOME%\common\lib\servlet-api.jar in your classpath if you are using j2se ============================================================================== TOPIC: How do you write to text files WITHOUT OVERWRITING? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6f3671c3a6cf1cdd ============================================================================== == 1 of 1 == Date: Tues, Dec 14 2004 10:00 am From: "Storm" Niels Dybdahl wrote: > > I am relatively new to java and have already tried many ways to write > > to text files with Java. Is there any way to write to a text file > > without overwriting what is already there?? > > None of the most used filesystems can insert data at a random place without > overwriting what is already there. So all operating systems and most > programming languages work in the same way. Databases use tree structures to > make it possible to insert data in the middle without overwriting anything. > > Niels Dybdahl Actually yes you can insert data at random places by utilizing the RandomFile class. By supplying the length of each record, and the end record number, you can reset the file size to the oldsize + newRec length and boom you have an append. Also, you can write data into the middle of a file without overwriting. All you have to do is create a class that represents each row, read each record into the created class, insert the new record at the appropriate point in the vector during a For/While loop, and re-write the file using the data present in the vector. Storm ============================================================================== TOPIC: AXIS to emit SOAPHeader in wsdl http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/2c45ef5524d60a3e ============================================================================== == 1 of 4 == Date: Tues, Dec 14 2004 4:06 pm From: [EMAIL PROTECTED] [AXIS to emit SOAPHeader in wsdl] Tribe, Using AXIS and C# winforms to build an app. I'm building my services in java and exposing them through AXIS and consuming them just fine with C#. I want now to add some soapheader data for session mgmt and authorization. I'm building my own WSDD for the service deployment in AXIS and so I'm allowing AXIS to emit the WSDL which describes the services. I want to add something somewhere to direct axis now to emit a SoapHeader in the WSDL which Visual Studio will then swallow and build into my reference.cs class. I've looked and looked. No luck. Any ideas? Dave Cline ~bangeye~ == 2 of 4 == Date: Tues, Dec 14 2004 3:44 pm From: [EMAIL PROTECTED] Tribe, Using AXIS and C# winforms to build an app. I'm building my services in java and exposing them through AXIS and consuming them just fine with C#. I want now to add some soapheader data for session mgmt and authorization. I'm building my own WSDD for the service deployment in AXIS and so I'm allowing AXIS to emit the WSDL which describes the services. I want to add something somewhere to direct axis now to emit a SoapHeader in the WSDL which Visual Studio will then swallow and build into my reference.cs class. I've looked and looked. No luck. Any ideas? Dave Cline ~bangeye~ == 3 of 4 == Date: Tues, Dec 14 2004 3:43 pm From: [EMAIL PROTECTED] Tribe, Using AXIS and C# winforms to build an app. I'm building my services in java and exposing them through AXIS and consuming them just fine with C#. I want now to add some soapheader data for session mgmt and authorization. I'm building my own WSDD for the service deployment in AXIS and so I'm allowing AXIS to emit the WSDL which describes the services. I want to add something somewhere to direct axis now to emit a SoapHeader in the WSDL which Visual Studio will then swallow and build into my reference.cs class. I've looked and looked. No luck. Any ideas? Dave Cline ~bangeye~ == 4 of 4 == Date: Tues, Dec 14 2004 3:44 pm From: [EMAIL PROTECTED] Tribe, Using AXIS and C# winforms to build an app. I'm building my services in java and exposing them through AXIS and consuming them just fine with C#. I want now to add some soapheader data for session mgmt and authorization. I'm building my own WSDD for the service deployment in AXIS and so I'm allowing AXIS to emit the WSDL which describes the services. I want to add something somewhere to direct axis now to emit a SoapHeader in the WSDL which Visual Studio will then swallow and build into my reference.cs class. I've looked and looked. No luck. Any ideas? Dave Cline ~bangeye~ ============================================================================== TOPIC: Off JAVA Topic - Billing Rate http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/83b0fce5d3ff0b01 ============================================================================== == 1 of 1 == Date: Tues, Dec 14 2004 9:46 am From: "Nagu" Sorry Guys to bring up this questions here. How can I find out what's the current billing rate for JAVA programmers experienced in JSP/ Servlets and EJB in and around New England area ( USA). I tried to search through salary.com reports but they were generic. Thanks for all your time and patience. Nagendra ============================================================================== TOPIC: AXIS to emit SOAPHeader in WSDL http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/ce9c8cb067f871bd ============================================================================== == 1 of 1 == Date: Tues, Dec 14 2004 4:01 pm From: [EMAIL PROTECTED] Tribe, Using AXIS and C# winforms to build an app. I'm building my services in java and exposing them through AXIS and consuming them just fine with C#. I want now to add some soapheader data for session mgmt and authorization. I'm building my own WSDD for the service deployment in AXIS and so I'm allowing AXIS to emit the WSDL which describes the services. I want to add something somewhere to direct axis now to emit a SoapHeader in the WSDL which Visual Studio will then swallow and build into my reference.cs class. I've looked and looked. No luck. Any ideas? Dave Cline ~bangeye~ ============================================================================== TOPIC: dynamically change struts' form's action http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/bc28d63a3a8fb854 ============================================================================== == 1 of 2 == Date: Tues, Dec 14 2004 3:31 pm From: "ctyberg" I want to have two separate actions because the validtions are different. I ended up setting a variable using c:set and then using html-el:form. <c:if test="${param.isNew=='true'}"><c:set var="formAction" value="/saveNew.do"/></c:if> <c:if test="${param.isNew=='false'}"><c:set var="formAction" value="/saveExisting.do"/></c:if> <html-el:form action="${formAction}" > == 2 of 2 == Date: Tues, Dec 14 2004 3:33 pm From: "ctyberg" Thanks for replying. Originally it was a dispatchAction, but then I split it out because each action had different validations. ============================================================================== TOPIC: any body can invite me to GMAIL? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/33e39c774f521fbb ============================================================================== == 1 of 1 == Date: Tues, Dec 14 2004 8:39 am From: [EMAIL PROTECTED] Sorry abouy my grammer. english doesn't my mother language. any body can invite me to GMAIL? I am sorry that i am writing in here, Buy I think that some of yours are memebers. ============================================================================== TOPIC: interesting thin-client problem http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/df226049f75e9516 ============================================================================== == 1 of 1 == Date: Tues, Dec 14 2004 2:53 pm From: "stefoid" An applet is certainly the easiest way to implement the map component from my point of view, however I wonder if an applet can be made to fit the JSF framework - like can an applet be wrapped up as a JSF component? Anyway, it seems I have a few options - a) a straight server-side image map b) a custom JSF component that does a bit of client-side processing with javascript c) an applet thanks all Mark Murphy wrote: > stefoid wrote: > > hmm, I just realised that JSF components can be (usually are?) made > > with JSP and javascript. so maybe I could create a 'hex map' JSF > > component. Would kind of break my rule about @[EMAIL PROTECTED] around > > with JSP and > > so on. > > > > It would have to > > > > 1) generate a scrollable and zoomable hex map > > 2) display the players units/objects in the hexes they occupy > > 3) display some information about the hex and possible units on mouse > > rollover > > 4) display detailed information when the hex is clicked on, possibly in > > a popup window > > 5) allow a unit to be moved from its current hex to a destination hex > > > > > > would all that be possible with javascript? Using this kind of client > > side processing would mean the client would have to have a lot of data > > about the map and its contents. Lets say the map was 100x100 hexes, > > each with a name, a type, and optionally some containing a number of > > units of possibly differing types. Even at only 50 bytes per hex, > > thats half a meg of data. I cant see any way around the client having > > to ask the server for specific information about each hex. hmmm... > > > I think you can do what you want with a Java applet. > > I'm actually working on something similar to this designed more for a > D&D RPG type game. It's my first Java project. I always find working on > games make learning a new programming language more fun. Its fully a > Java application that I will convert to an applet when I'm done. > > I started by developing my own animation panel for the map: > 1)The map can scroll in either dimension just by moving close to the > edge of the screen. > 2)The mouse location is continuously monitored, so hovering in one > location can trigger a popup image or text to be added in the frame. > 3) A grid ( in my case rectangular) can be turned on or off at will. > 4) Clicking in any location takes the Panel location -> map conversion > -> then the object in that location is notified it is clicked on. In my > case this notifies the Char that they are active and moves them to then > next location. In your case it sounds like you want to open a new image. > > My server that I will post this on does not run Java servers, so I > handle all of the communication, move data, map updates with POSTs to > a PHP script that returns requested data. > > I hope this gives you some ideas. Let me know if you want more details > of what I have going on. > > Mark ============================================================================== TOPIC: Jakarta commons validator question http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c0969e600adbc6f1 ============================================================================== == 1 of 2 == Date: Tues, Dec 14 2004 2:51 pm From: [EMAIL PROTECTED] I have been using the Jakarta Commons Validator (without Struts) for a project at work and I think its awesome. Here's my problem. I have multiple "forms" where the fields are disributed in different pages. So for example, in "form1" the firstName field is in page 1. In "form2" the first name field is in page 5. We can validate this by creating two <form> elements in the validation.xml file and changing the page attribute in the <field> tag. Doesn't this tie the actual logic of validating the fields to the presentation/view? This pretty much means that if I move fields around from one page to the other I am forced to duplicate the <form> tag with a new mapping and change the page attribute. Instead of doing that, why don't we create another constructor for the Validator class that takes a List of fields to be validated. That way the "action" (or the servlet that proceses the request) can read the fields that were submitted from the request and validate only those fields. The advantage of this approach would be, everytime fields are moved around, our validation.xml file does not need to change. We just focus on creating the JSP (or whatever) page and not worry about the validations. Of course, we do need to ensure that the request paramater names match the field name. The disadvantage of this approach is that, we are only validating those fields that are being submitted. So when you submit page 3, only page 3 is validated, not page 1 and 2. I'm willing to contribute to the commons source code but before I do that, I wanted to know if my thought process is flawed or if I am missing something. I looked at the TODO list in the Commons Validator and didn't find anything that matches what I am looking for. Thanks, Eddie. == 2 of 2 == Date: Tues, Dec 14 2004 2:52 pm From: [EMAIL PROTECTED] I have been using the Jakarta Commons Validator (without Struts) for a project at work and I think its awesome. Here's my problem. I have multiple "forms" where the fields are disributed in different pages. So for example, in "form1" the firstName field is in page 1. In "form2" the first name field is in page 5. We can validate this by creating two <form> elements in the validation.xml file and changing the page attribute in the <field> tag. Doesn't this tie the actual logic of validating the fields to the presentation/view? This pretty much means that if I move fields around from one page to the other I am forced to duplicate the <form> tag with a new mapping and change the page attribute. Instead of doing that, why don't we create another constructor for the Validator class that takes a List of fields to be validated. That way the "action" (or the servlet that proceses the request) can read the fields that were submitted from the request and validate only those fields. The advantage of this approach would be, everytime fields are moved around, our validation.xml file does not need to change. We just focus on creating the JSP (or whatever) page and not worry about the validations. Of course, we do need to ensure that the request paramater names match the field name. The disadvantage of this approach is that, we are only validating those fields that are being submitted. So when you submit page 3, only page 3 is validated, not page 1 and 2. I'm willing to contribute to the commons source code but before I do that, I wanted to know if my thought process is flawed or if I am missing something. I looked at the TODO list in the Commons Validator and didn't find anything that matches what I am looking for. Thanks, Eddie. ============================================================================== TOPIC: Cannot reply message http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/eb70246ca8fbe9a8 ============================================================================== == 1 of 1 == Date: Tues, Dec 14 2004 2:57 pm From: [EMAIL PROTECTED] (vizlab) Dear all: Each time I want to reply the message posted by others, it always says: "Unable to retrieve message [EMAIL PROTECTED]". And I have to post a new message. Why? Thanks a lot for your help. ============================================================================== TOPIC: get Tomcat 5 to compile at startup? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/80990d518d14af33 ============================================================================== == 1 of 1 == Date: Tues, Dec 14 2004 9:27 am From: "Mads" Thanks for the quick reply, but what I'm looking for is some kind of setting in Tomcat 5. I work in a company with a dozen of (big) applications that we need to run at a server very often and it is crucial that we compile all the source code every time. As it is right now, IE hangs every time Tomcat starts compiling a page. So it would be very handy if Tomcat just started compiling the applications once we restarted the server or deployed a new build. Can someone please specify if Tomcat 5 has any settings that has that kind of functionality? Best regards Mads (DK) ============================================================================== You received this message because you are subscribed to the Google Groups "comp.lang.java.programmer" group. To post to this group, send email to [EMAIL PROTECTED] or visit http://groups-beta.google.com/group/comp.lang.java.programmer To unsubscribe from this group, send email to [EMAIL PROTECTED] To change the way you get mail from this group, visit: http://groups-beta.google.com/group/comp.lang.java.programmer/subscribe To report abuse, send email explaining the problem to [EMAIL PROTECTED] ============================================================================== Google Groups: http://groups-beta.google.com
