Re: Nested Iterates...

2002-03-13 Thread Arron Bates
Marcelo, It's kind of fuzzy as to where you're trying to get to. There's three loops. So I have to assume that you want a radio button for each "answer" within each "test" within each "item". Say there's three elements in each, you'll end up with 27 radio buttons. Right so far?... This is goi

html:messagesExist - using ActionErrors and ActionMessages

2002-03-13 Thread Matt Raible
I'm using a yesterday's nightly build of struts. I am using ActionErrors in my application to set validation and other such errors. I want to use ActionMessages to set success messages when things have happened successfully. However, the following code renders the error message + the error mess

RE: Forcing a form-reload OR a select Options reload

2002-03-13 Thread Jesse Alexander (KADA 12)
Hi, Struts is a server-based application-environment... The functionality you describe is client-side... So the only option is to use Javascript to get this dynamic behaviour. This is live at the html-web-application programming side of live. Without Javascript the only way you can do somethin

RE: Use of stuts in J2EE

2002-03-13 Thread Jesse Alexander (KADA 12)
Hi, even though I do not use EJB's: Ted's scaffolding page says that the Action is the place where this translation (from Action-Form to backend-compatible) should take place (and vice-versa when returning values). I think that is the best place. Alexander -Original Message- From: Vikr

Re: Downloading files

2002-03-13 Thread Konstantina Stamopoulou
Hi Alexander, This is what I did after searching the archieves. I'm a little bit confused with the mime type (shouldn't "multipart/form-data " work for every type of file? it doesn't work for .jsps). I think I have to search more on this one. Thanx for the reply, Konstantina - Original Mess

RE: "Best Practice" for parsing an XML file for application confi guration parameters?

2002-03-13 Thread Jesse Alexander (KADA 12)
dead on correct. That's why we decided to write the configuration file in xml, using include (external entities that get included in the complete xml-stream) and a DTD (to check the format). Then we read it in a framework-component and offer it to our app-programmers as properties using the dot

RE: Downloading files

2002-03-13 Thread Jesse Alexander (KADA 12)
Hi, write an action for the download. This can be a generic action within your app taking the filename as a parameter. In this action: - grab request.out(standard servlet-programming) - set the correct mime-type(standard servlet-programming) - read the file(standard servlet-programmi

How make a forward when redirect=true

2002-03-13 Thread Nordström Ulrika
Hi, This is how struts-config looks like In my action class I return: mapping.findForward("success"); But I get an error message, HTTP 404, file not found. mReturn.getPath() writes the correct path and if I copy this path inte the

Where and when do struts call the method named toString()?

2002-03-13 Thread nsg
Hi all, in struts-example, Subscription.java file contains the following method: /** * Return a String representation of this object. */ public String toString() { StringBuffer sb = new StringBuffer("Subscription[username="); sb.append(username); if (host !=

RE: Use of stuts in J2EE

2002-03-13 Thread Dave J Dandeneau
1) We use many patterns to implement this, but I think that you are referring to the Value Object pattern 2) The copy part of the strategy is somewhat inefficient (processor wise), but it saves network traffic since the data is sent to the EJBs and the setters are called within a bean method ra

RE: Use of stuts in J2EE

2002-03-13 Thread Vikram Goyal01
Sorry that is three questions, not two. Vikram -Original Message- From: Vikram Goyal01 Sent: Thursday, March 14, 2002 10:14 AM To: Struts Users Mailing List Subject: RE: Use of stuts in J2EE Hi Dave, Thanks again for your valuable comments. Two questions.. 1. Is this strategy that

RE: Use of stuts in J2EE

2002-03-13 Thread Vikram Goyal01
Hi Dave, Thanks again for your valuable comments. Two questions.. 1. Is this strategy that you described the part of any pattern? 2. Isnt this strategy inefficient? As you have to create two objects which hold the same data and have to make sure that data is copied from one to another all the

Re: Problem in HTML:ERROR tag

2002-03-13 Thread Jay sissom
If we do that, the errors would bring like this: abcderror,error,errorefgh, correct? Isn't that just as bad or worse than the null problem? We're having this problems with tomcat also. Jay On Thu, 14 Mar 2002, nsg wrote: > I had met the problem. > you append the "errors.head=abcd","errors.f

Re: using image as a submit button!

2002-03-13 Thread Jay sissom
You can do it the exact same way you would do it in html, or if you want to use a tag library, you can use the html:image tag. Please read this url for more information. http://jakarta.apache.org/struts/doc-1.0.2/struts-html.html#image The jakarta site has documentation on all the tags in the

html:options problem with labelProperty

2002-03-13 Thread Allen Walker
I have the following: [html:select property="merchandiseCategory"] [html:options property="merchandiseCategoryCodes" labelProperty="merchandiseCategoryDescriptions"/] [/html:select] Now when I take out the labelProperty attribute, all works. When the labelProperty attribute is in, I get: java

RE: Problem in HTML:ERROR tag

2002-03-13 Thread subhendukumar mohanty
Hi matt, I was using the struts with weblogic in my previous project . This problem never happened in that environment. Is this happened only in websphere environment?? thanks, subhendu -Original Message- From: Matt Barnicle [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 13, 2002

Re: Problem in HTML:ERROR tag

2002-03-13 Thread nsg
I had met the problem. you append the "errors.head=abcd","errors.footer=efgh" two lines in your resource file. it will be OK. hope helps Laker - Original Message - From: "subhendukumar mohanty" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 14, 2002 10:07 AM Subject: P

Problem in HTML:ERROR tag

2002-03-13 Thread subhendukumar mohanty
Hi I am setting the action error in my action class. Then when the error displays in the screen it appends "null" in front and end of the message. For example if the error message is "Error occurred", it shows as "null Error Occurred null". I am using struts with visualage 4.0. I am using st

using image as a submit button!

2002-03-13 Thread nsg
Hi all, How can I use a image to submit a form? how to do? Thanks in advancce. Laker

Re: Problem with mapping - prepending a slash

2002-03-13 Thread Matt Barnicle
Well, I didn't get any feedback yet, so I dug into the code. I had to change getActionMappingURL() in FormTag.java from this: // Return the completed value return (value.toString()); to this: String valueStr = value.toString(); if (valueStr.startsWith("//"))

Property Editor Support

2002-03-13 Thread Brian Knorr
Are there any plans for struts to support custom property editors for html form input fields? We would like to have the ability to register a property editor to convert the string representation to an object and vice-versa. A good example would be support for a Date editor. Is this right pl

RE: Global application object?

2002-03-13 Thread Bomb Diggy
>> HttpSession.setAttribute( String name, >> Object value)? no, I want the data available across sessions. >> The Singleton pattern may be useful if the object >> will be shared across sessions. yes, someting like a singleton might work. >> How about creating a servlet with an init >> metho

Re: RE: RE: RE: How to use XML and XSL with Struts?

2002-03-13 Thread Gernot Koller
Thanks, I've already read this article. I like their concept but not their implementation though. And I wouldn't go as far as eliminating jsps but I think a little more XSLT support is definitly a must! 13.03.2002 21:37:25, "Afshartous, Nick" <[EMAIL PROTECTED]> wrote: > >There was also a recent

RE: Defining a forward path- not to a JSP, but to another Action

2002-03-13 Thread Nguyen, Khuong
You must get the chained action and call it for this to work. It looks something like this. You could extend Action and have a method or two that wrap this code. ActionForward actionForward = mapping.findForward(forwardName); String returnPath = actionForward.getPath();

Re: Visual Age 4.0, WebSphere Test Environment and struts

2002-03-13 Thread corrado agusto
Hello Andrew, Tuesday, March 12, 2002, 12:37:17 PM, you wrote: AFvcu> Does anyone have a good basic tutorial on setting up a struts application AFvcu> within Visual Age 4.0? AFvcu> I have Xerces 1.4.4 in my workspace and the IBM XML Parser that comes with AFvcu> VAJ 4.0 - I have tried a newer

Re: Bug in logic:notEmpty?

2002-03-13 Thread theron . kousek
Never mind, I forgot to include: <%@ taglib uri="/struts-logic" prefix="logic" %> In my JSP. Surprisingly, I received no JSP errors or exception stack trace before when I did not have that "include". I am surprised by that behavior.

Struts used in Non-webapp format (WLS 5.1 sp11)

2002-03-13 Thread Jeff_Mychasiw
Greetings: If possible, I would like help getting struts running without a web.xml file. I am working on an App with EJB/JSP/Servlets(kinda model One). on Weblogic5.1. This app does NOT follow the specified Webapp format (with the web.xml). All configuration is done with t

Bug in logic:notEmpty?

2002-03-13 Thread theron . kousek
Exception: [] <% if (EBErrorMsg.getException() == null) { System.out.println("getException is null"); } else { System.out.println("getException is not null [" + EBErrorMsg.getException() + "]"); } %>

Architecture Questions - Session Management and Validation

2002-03-13 Thread @Basebeans.com
Subject: Architecture Questions - Session Management and Validation From: "Arthur Frankel" <[EMAIL PROTECTED]> === I am new to Struts and have the following questions that I have been unable to answer from FAQs and documentation: 1) Session Management - I want to limit the information stored in

RE: RE: RE: How to use XML and XSL with Struts?

2002-03-13 Thread Joseph Barefoot
Hmmm..a quick read of this article provides some insights, but I can't see that the advantages offered with this "Model 2x" architecture outweigh the overhead (although it is a nifty idea), except perhaps in applications where the content needs to be in multiple formats (HTML, PDF, etc.) for diffe

RE: Global application object?

2002-03-13 Thread Michelle Popovits
How about creating a servlet with an init method and loading it there (should load on app server startup) and storing it in the application object... or... Try using lazy loading, and load the data when the system first needs to access it and then store it in the application object for future acce

Problem with mapping - prepending a slash

2002-03-13 Thread Matt Barnicle
Hey all.. I've been working on this on and off for days. I searched the mail archives, even looked at the source code, no luck. When I submit a form once, it works. If that same forms gets redisplayed to the user (say, on invalid input), the struts html:form tag prepends an extra slash to the

RE: Global application object?

2002-03-13 Thread Witbeck, Shane
The Singleton pattern may be useful if the object will be shared across sessions. Sincerely, Shane Witbeck Web Application Developer, Bank of America 904.987.1688 -Original Message- From: Bomb Diggy [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 13, 2002 3:06 PM To: [EMAIL PROTECTED]

RE: Global application object?

2002-03-13 Thread Galbreath, Mark
HttpSession.setAttribute( String name, Object value)? Mark -Original Message- From: Bomb Diggy [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 13, 2002 3:06 PM To: [EMAIL PROTECTED] Subject: Global application object? Hi, I'd like to load up an global application object (say referen

RE: RE: RE: How to use XML and XSL with Struts?

2002-03-13 Thread Afshartous, Nick
There was also a recent posting about an article on the same topic. See http://www.mail-archive.com/struts-user@jakarta.apache.org/msg23094.html Nick > -Original Message- > From: Gernot Koller [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, March 13, 2002 2:44 PM > To: Struts User

Iterate Bug?

2002-03-13 Thread Mark . Sowiak
I have a jsp in which I iterate over a bean... the code works as long as the bean is in the session. If I put in the request scope... it doesn't. Any thoughts on why I can't get it via the request scope? - Mark

Global application object?

2002-03-13 Thread Bomb Diggy
Hi, I'd like to load up an global application object (say reference it from the ServletContext somehow) with a collection of data objects I wish to render on my JSP. What might be a strategy for doing this? Do I have to use another servlet just to load my global object? Ideally I only want the

Re: FW: Config for WAS 3.5 on OS/390?

2002-03-13 Thread Steven Banks
Just curious about several things on this setup. 1.Did you need a special patch level to make this work? We are at 3.5.3. 2. What JDK version are you using? We are using 1.3. 3. Which struts jar are you using? Is it the websphere specific version for NT? Or, is it normal version?

Re: Activity

2002-03-13 Thread @Basebeans.com
Subject: Re: Activity From: "Jeff" <[EMAIL PROTECTED]> === "Sandra Cann" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > I've been noticing more activity on the list and was curious how many > subscribers this list has grown to presently? > -- > Sandra > > > -- > To unsubscribe,

Re: Perhaps TABOO Question, how to convert struts apps to non-struts

2002-03-13 Thread Bryan Field-Elliot
On Wed, 2002-03-13 at 12:02, John M. Corro wrote: I've found that every > service provider that I've worked w/ or seen that provides a shared JVM > won't allow you to deploy classes. In those situations I've had to write > everything in JSP - SUCKS! > Of course that's silly, because JSP pages a

Re: RE: RE: How to use XML and XSL with Struts?

2002-03-13 Thread Gernot Koller
Haven't had a closer look to STXX yet. Already had finished my own XSLT-Servlet when I stumbled over STXX. My solution heavily relies on XSLT-Filter chaining to provide practicable solutions for i18n, etc. I didn't touch Struts though, as I know I won't be able to keep up as Struts envolves... But

RE: More problems: No action instance for path /login could be create d...

2002-03-13 Thread Don Dumrauf
Are you using a forward or action in your jsp? If using a forward you'll need an entry in . If you're using an action in an don't use .do -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 13, 2002 1:43 PM To: [EMAIL PROTECTED] Subject: More pr

Re: Perhaps TABOO Question, how to convert struts apps to non-struts

2002-03-13 Thread keithBacon
1 - http://myserver/my-web-app/admin/reload.do reloads ApplicationResources & I think struts-config. If I haven't recompiled any classes it works for me. On Tomcat it goes wonky if I've re-compiled so I have to restart. This is if thoe entries for admin unctions are in your struts-config.xml. They

Re: Nested Iterates...

2002-03-13 Thread Marcelo Caldas
Ok, I've got progress... I've downloaded the latest struts build wich contains the NESTED tags... I'm trying to use the nested:iterate and nested:radio, but I couldn'g get grip of everything from the docs that comes together... So if there's anyone out there that has used the nested tags prope

RE: RE: How to use XML and XSL with Struts?

2002-03-13 Thread Robert
Couldn't tell you as that's out of my hands :-) The feature that I'm adding is the ability to support static XML files. The current action uses dynamic XML files, generated in the action class. It stores the document (a JDom Document) in the request, and the servlet then transforms the document wi

Re: RE: How to use XML and XSL with Struts?

2002-03-13 Thread Gernot Koller
Hi! Do you know if STXX will find it's way into Struts standard distribution ? 13.03.2002 18:47:16, "Robert" <[EMAIL PROTECTED]> wrote: >Try out STXX (http://www.oroad.com/opencode/index.html). It handles XML >and XSLT transforms for you at the Action level. It is currently at .9 >release and I

Activity

2002-03-13 Thread Sandra Cann
I've been noticing more activity on the list and was curious how many subscribers this list has grown to presently? -- Sandra -- To unsubscribe, e-mail: For additional commands, e-mail:

Re: Perhaps TABOO Question, how to convert struts apps to non-struts

2002-03-13 Thread John M. Corro
My personal experience is that if you're writing the application in any form of tiered way (beans, classes, etc), only service providers that give you your own JVM instance are going to let you deploy those classes anyways (making the non-inclusion of Struts a moot point). I've found that every s

Re: Defining a forward path- not to a JSP, but to anotherAction

2002-03-13 Thread MARK NICHOLS
I have done what you want. Here is a piece of my struts-config.xml: The "success" path from finishReasonInsert (action) is the loadFinishReason (action). HTH, /\/\ark ___ - mark h. n

More problems: No action instance for path /login could be create d...

2002-03-13 Thread lindsay . hamoudi
Ok my login.jsp is loading fine, and the ActionForm (LoginForm) is working OK because error messages are being returned OK. But when I submit valid entries (i.e. when my Action class, LoginAction, should kick in) - I get this error message: "Status code:500 request:R( /struts-SACT + /login.do +

RE: Need help with JspException: Missing message for key login.ti tle

2002-03-13 Thread lindsay . hamoudi
Well - I seem to have inadvertently fixed the problem! I really don't know what made the difference. Now for my next problem... -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: 13 March 2002 18:01 To: 'Struts Users Mailing List' Subject:RE: Need

Re: Perhaps TABOO Question, how to convert struts apps to non-struts

2002-03-13 Thread Bryan Field-Elliot
Tomcat manager app is documented here: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/manager-howto.html Personally, I don't know what are the current state-of-the-art best-practices for web hosting providers. However, I have to assume that they generally allow their customers to restart their

Re: Perhaps TABOO Question, how to convert struts apps to non-struts

2002-03-13 Thread theron . kousek
I'm curious.I did not know about the manager reload command. Where can I find out more about it? Also, if I went with a web-hosting service that had 1 and only 1 tomcat JVM instance, would the reload command be something the hosting site would allow me to run?Would the reload command af

RE: the best way to log action "hits"

2002-03-13 Thread Galbreath, Mark
Simple: int count; String path; public void init() throws ServletException { FileReader fr = null; BufferedReader br = null; String path = "[path to counting file]"; try{ fr = new FileReader( path); br = new BufferedReader( fr); String cnt = br.readLine(); count = Integer

RE: amount of data stored in session

2002-03-13 Thread Dave J Dandeneau
I prefer to use a profiler, but I had looked into writing a class that did just that, but could not find one that would give the exact size of the session object. The easiest way to do it with regular java objects is to create one, garbage collect, record available memory, null the object, garbage

RE: amount of data stored in session

2002-03-13 Thread Cakalic, James
IBM has published some "Best Practices" material that I consider excellent guidance. Although some of the material may be specific to WebSphere, the recommendations are likely relevant to most application servers. Here is the link to the specific best practice. Don't know if this will come across

Re: dynamicly set an attribute of tags

2002-03-13 Thread Louis Leung
try where formName is the name u defined in the struts-config.xml yanming lu wrote: > Louis, I got the following error: > An error occurred between lines: 46 and 47 in the jsp file: > /WEB-INF/jsp/reg/RegForm.jsp > > Generated servlet error: > C:\tomcat\work\localhost\test\WEB-INF\jsp\reg\RegFo

RE: Need help with JspException: Missing message for key login.ti tle

2002-03-13 Thread Galbreath, Mark
"Run away! Run away!" -Arthur, King of the Brits -Original Message- From: keithBacon [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 13, 2002 11:45 AM To: Struts Users Mailing List Subject: RE: Need help with JspException: Missing message for key login.ti tle good attitide - it takes

RE: Defining a forward path- not to a JSP, but to another Action

2002-03-13 Thread Kanoza, Douglas (NCI)
Piece of cake. You can define forwards that point to actions. The syntax below defines a forward to an action named 'myaction' defined in your struts-config.xml file. I haven't done it, but I think you can do the same thing by creating an ActionForward with "/myaction.do" and returning

RE: How to use XML and XSL with Struts?

2002-03-13 Thread Robert
Try out STXX (http://www.oroad.com/opencode/index.html). It handles XML and XSLT transforms for you at the Action level. It is currently at .9 release and I'm helping Jeff (the author of STXX) with a few extras for a 1.0 release. - Robert -Original Message- From: Struts Newsgroup [mailto

calling processActionForward from processesPreprocess in struts 1.0.2 & timeout checking

2002-03-13 Thread Brad Rhoads
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg15542.html suggests calling processActionForward from unauthenticatedUser, which is called from processesPreprocess, to handle timout checking. But in the stable release processActionForward needs an ActionMapping parm. So I change the

RE: amount of data stored in session

2002-03-13 Thread Jeff_Mychasiw
Along these lines, is there a simple way of determining the size of a user session at runtime? Is it as simple as a bit of code that will serialize to a temporary byte array and read the size? Has any one tried anything like this? Thanks in advance. "Dave J Dandeneau" <[EMAIL PROTECTED]> o

How to use XML and XSL with Struts?

2002-03-13 Thread @Basebeans.com
Subject: How to use XML and XSL with Struts? From: "jcorey" <[EMAIL PROTECTED]> === In my action I parse an xml document. I find the section of the xml data I want to display. Then I put a Node in the request and forward to a view jsp. The view jsp transforms the node object and puts the result

RE: amount of data stored in session

2002-03-13 Thread Dave J Dandeneau
If you want to scale your application servers horizontally then you will need to keep your session size below about 4k. After 4k the sessions start to become to much to manage across servers and the session traffic between servers becomes a huge performance hit. dave -Original Message-

Defining a forward path- not to a JSP, but to another Action

2002-03-13 Thread lindsay . hamoudi
Hi In the examples I've seen - any forwards that are defined (whether global-forwards or action-specific) seem to point to JSP pages, i.e. However I'd like for my user to login (handled by LoginAction) and then not just be sent straight to home.jsp. Instead, I'd like to forward

Re: Perhaps TABOO Question, how to convert struts apps to non-struts

2002-03-13 Thread Bryan Field-Elliot
Your assumptions are most likely wrong. Whether or not your Servlet container supports "hot-redeploy" is a general question, and not at all specific to Struts. Therefore, the question of whether to strip out Struts from your application shouldn't even be on the table with repsect to your concerns.

Re: dynamicly set an attribute of tags

2002-03-13 Thread yanming lu
Louis, I got the following error: An error occurred between lines: 46 and 47 in the jsp file: /WEB-INF/jsp/reg/RegForm.jsp Generated servlet error: C:\tomcat\work\localhost\test\WEB-INF\jsp\reg\RegForm$jsp.java:263: Method isReadOnly() not found in class java.lang.Object. _jspx_th

Re: No getter - method order bug?

2002-03-13 Thread Jon Ferguson
Keith, I suspect its more like if you overload you must overload both get and set.. eg.. if it takes an int there should be one that returns an int?.. Actually this all falls down when you consider properties of arrays.. you can return the whole array or one item.. but then the pattern is to have

RE: Nested Iterates...

2002-03-13 Thread Nguyen, Khuong
Though unconventional but should work: <% String itemTestValue= "items[" + index + "].tests[" + index2 + "].value"; %> -Original Message- From: Marcelo Caldas [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 13, 2002 9:26 AM To: Struts Mailing List Su

Please help - String Indexed Properties

2002-03-13 Thread Oscar Trigueiros
What i want to do is someting like: were "contact_record" reference one instance of a java.util.Map stored at request scope and nickmane is one key in this map. Does any body knows how to do this. Thanks, Oscar. -- To unsubscribe, e-mail: For additional co

Perhaps TABOO Question, how to convert struts apps to non-struts

2002-03-13 Thread theron . kousek
A co-worker and I were talking about this yesterday and I was curious of the following Seems like in order to develop a struts application, you'll have to pay for a private JVM instance so you can start and stop the tomcat or other JSP engine so that it can re-read the config.xml files

RE: Need help with JspException: Missing message for key login.ti tle

2002-03-13 Thread keithBacon
good attitide - it takes hero to run away from a problem! It can be hard going learning struts - nothing wrong with reducing your field of focus for a bit. --- [EMAIL PROTECTED] wrote: > Thanks but I've given up! > > I don't care much for i18n at present so have abandoned the .properties file >

RE: Need help with JspException: Missing message for key login.ti tle

2002-03-13 Thread lindsay . hamoudi
Thanks but I've given up! I don't care much for i18n at present so have abandoned the .properties file and resorted to hardcoding. Mind you - I do like how you can set the errors.header and footer. I will need that in the future I think. But I now have more problems (which I wont bother you wi

FW: Tiles and struts action

2002-03-13 Thread Hill, Donald
-Original Message- From: Hill, Donald Sent: Tuesday, March 12, 2002 12:44 PM To: 'Jakarta Tag Libraries Users List' (E-mail) Subject: Tiles and struts action I am trying to use a struts action in a tile definition, something like this. I always get a Response has

Re: JavaScript problem. please help me.

2002-03-13 Thread SUPRIYA MISRA
if(navigator.appName =="Microsoft Internet Explorer") { blah blah } else if(navigator.appName =="Netscape") { blah blah } >From: "Cyber Sagar" <[EMAIL PROTECTED]> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> >Subject: J

RE: Help with Oracle dates from Secs passed since 1970

2002-03-13 Thread SUPRIYA MISRA
I got the same .Thanks import java.util.*; public class dated{ public static void main (String args[]){ Date d=new Date(1001091454*1000L); System.out.println(d); } >From: "Wilson, Les J SI-FSIA" <[EMAIL PROTECTED]> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >To: 'Struts Users

RE: Help with Oracle dates from Secs passed since 1970

2002-03-13 Thread SUPRIYA MISRA
Worked Great --Had to make sure the variable was a Long. Thanks import java.util.*; public class dated{ public static void main (String args[]){ Date d=new Date(1001091454*1000L); System.out.println(d); } >From: "Robert Nocera" <[EMAIL PROTECTED]> >Reply-To: "Struts Users Mailing List" <[EMAIL

RE: Why no struts.jar on the classpath?

2002-03-13 Thread keithBacon
Yeah - MarkG we're becoming dependant on you. Make sure you don't take fridays off! Perhaps people on this list will get really annoyed if we start having fun on other days of the week. Personally I reckon anyone who delivers good replies deserves some play-time. Especially since the standard is g

RE: the best way to log action "hits"

2002-03-13 Thread keithBacon
Give us code for being thread safe then - i always avoided that stuff! My suggestions:- If voumes are low - use Log4J or similar - minimal work If you have a really fast database do it from a normal class, key DB table on the URL - the database locking will take care of concurrent access issue

RE: Help with Oracle dates from Secs passed since 1970

2002-03-13 Thread Wilson, Les J SI-FSIA
Hi, I tried the code below and it generated a date of 21-Sep-2001 (if thats the wrong date, I wouldn't bother reading any further!!) long secs = 1001091454; Calendar dtDate = Calendar.getInstance(); dtDate.setTime (new Date(secs*1000)); java.sql.Date newDate = new java.sql.Date(d

RE: Need help with JspException: Missing message for key login.ti tle

2002-03-13 Thread keithBacon
1 - does anything get data from ApplicationResources successfully? 2 - Try rename struts.jar on web-inf/lib & re-start (just to prove there is no other version - or even unzipped struts class files somewhere in the class pth). 3 - reboot if on windows. (you have to it's traditional & really does p

File Upload and MultipartRequestWrapper

2002-03-13 Thread Yannick Lamothe
Hi, I'm using the latest nightly build from struts (1.1) and I'm experiencing some issues with file upload. The validation of the form performs well, but when the forward is called to display the next page, I've got the following exception. java.lang.ClassCastException: org.apache.struts.uploa

Re: amount of data stored in session

2002-03-13 Thread keithBacon
Hopefully some-one has some better guidelines (not me!). Best I know is... 1 - Does anyone know how big is the session storage used internally by the server? Any thing you add is additional % that. 2 - I guess the more expensive your web-server the more efficient it's storage management would be.

Re: [Newbie] ActionForm with a scope session

2002-03-13 Thread Slimane Zouggari
THANX A LOT, you're my hero :) indeed it was a spelling mistake (damn, I can be stupid sometimes :( Again, THANX for the code, it was usefull this time and I'm sure I will resolve a lot of bugs in my future development :) Friendly Regards, Slimane At 06:17 13/03/2002 -0800, you wrote: >T

Re: Nested Iterates...

2002-03-13 Thread Olexander Rudyy
Look at http://www.keyboardmonkey.com/struts/index.html - Original Message - From: "Marcelo Caldas" <[EMAIL PROTECTED]> Newsgroups: Struts To: "Struts Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, March 13, 2002 4:25 PM Subject: Nested Iterates... > Hi guys, > > I have a inside a

Re: Nested Iterates...

2002-03-13 Thread Louis Leung
have u tried name="items.tests" ?? Marcelo Caldas wrote: > Hi guys, > > I have a inside a tag in the following manner: > > > > > ... > > The problem is that the HTML being generated is like > > > > when actually I want to group them as items as well, like: > > > >

Re: Help with Oracle dates from Secs passed since 1970

2002-03-13 Thread keithBacon
ho ho - do it my way if you get paid by number of lines of code produced! --- keithBacon <[EMAIL PROTECTED]> wrote: > Without looking it all up (maybe a bit wrong here). > convert seconds into days (divide by 60 * 60 * 24) then use java.util.Date or > GregorianCalendar to add that number of days

JavaScript problem. please help me.

2002-03-13 Thread Cyber Sagar
Dear friends, I have a strange problem. please help me I have to execute 2 scripting files in a html page (One is compatible for Internet explorer and anotherone is for netscape) ie.js netscape.js how can i call these 2 scripts in my html file to make compatible for both IE and Netscape. I have

RE: Help with Oracle dates from Secs passed since 1970

2002-03-13 Thread Robert Nocera
You can just convert seconds into milliseconds (*1000) and then use java.util.Date(milliseconds) to get your date which is Sep 21, 12:57:34 EDT 2001. Robert Nocera New England Open Solutions www.neosllc.com "You supply the vision, we'll do the rest." -Original Message- From: SUPRIYA M

Re: Help with Oracle dates from Secs passed since 1970

2002-03-13 Thread Owen Scott Medd
Isn't unix time equivalent to the java date divided by 1000? I thought the java date is in milliseconds since Jan 1, 1970. lol... well, at least that works for us. We have unix times tucked away in database fields that we multiply by 1000 to get java dates, like so: info.submitdate = n

RE: Best way to find referrer

2002-03-13 Thread McDowell, Mark
String refText = request.getHeader("referer"); if (refText == null) { // no referer } -Original Message- From: John M. Corro [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 13, 2002 9:11 AM To: [EMAIL PROTECTED] Subject: Best way to find referrer I'm looking to find the best way to

Re: Help with Oracle dates from Secs passed since 1970

2002-03-13 Thread keithBacon
Without looking it all up (maybe a bit wrong here). convert seconds into days (divide by 60 * 60 * 24) then use java.util.Date or GregorianCalendar to add that number of days to 1/1/1970. Then grapple with DateFormat objects!! I have some totally non-standard date code that I converted from VB aft

Re: Examples using struts tags

2002-03-13 Thread Elijah Jacobs
here's a good one.. http://stealthis.athensgroup.com/presentations/ let me know if you find others. - ej - Original Message - From: "sanjeev_dutt" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, March 13, 2002 9:41 AM Subject: Examples using stru

Best way to find referrer

2002-03-13 Thread John M. Corro
I'm looking to find the best way to find the referring page (ie find out where the user came from). So far this is the piece of code I have... Enumeration e = request.getHeaderNames(); String refText = null; while (e.hasMoreElements()) { String key = (String)e.nextElement(); if (key.eq

amount of data stored in session

2002-03-13 Thread ltorrence
Are there published guidelines as to the number and size of objects that are stored in the session? I've seen references to the importance of keeping session data to a minimum, but no concrete recommendations.

RE: Weblogic 6.1 SP2 and Struts 1.0.2 taglibs

2002-03-13 Thread Arnaud Heritier
I found that the problem lied on the use of struts-layout taglibs (http://struts.application-servers.com) It seems that this taglib is not compiled with struts 1.0.2 but perhaps with a newer release. I don't know why but WLS search for the class ActionMessages even though this tag lib doesn't u

RE: Form Bean to Value Object Conversion ... URGENT!!!

2002-03-13 Thread CARDON Denis
Hi VD/cool dude :-), there is a "mapping framework" referenced on Struts resouces page http://jakarta.apache.org/struts/resources.html In fact it points to a resouce on Ted Husted site : http://husted.com/struts/resources/mapper.htm I read through the documentation and it seems quite powerful. H

Help with Oracle dates from Secs passed since 1970

2002-03-13 Thread SUPRIYA MISRA
If anyone has a ready made solution to convert an UNIX TIME of seconds passed 1970 into java or oracle dates, please help. The number I get is 1001091454 which seconds passed since Jan 1st 1970. This needs to be converted to a valid oracle date. The answer will be a date in 2001. ___

Examples using struts tags

2002-03-13 Thread sanjeev_dutt
Hi Guys, Where can I find examples of jsp's using the tags from struts tag library ? I have gone thru all the examples which come with struts and also the tag library documentation. I am looking for examples. Thanks Sanjeev -Original Message- From: Marcelo Caldas [mailto:[EMAIL PROTECT

Re: No getter - method order bug?

2002-03-13 Thread keithBacon
Hi Jon, Good debugging! I'd like to see some clear rules about struts & bean properties, so here's my attempt. (Not having read the bean spec very carefully!). 1 - If you want something treated as a property you must have get & set methods even if you won't call them both (from bean spec). 2 - Dec

  1   2   >