RE: Has anyone used Hibernate with Struts?

2003-08-14 Thread David Friedman
Dear Victor, I'm in the same boat with Struts and Hibernate. I found the Hibernate 2.0 reference PDF http://hibernate.bluemars.net/hib_docs/reference/pdf/hibernate_reference.pdf and the struts-hibernate example PlugIn (by Tedd Husted, at http://sourceforge.net/projects/struts under the name "hibe

RE: Struts plugin for eclipse

2003-08-14 Thread David Friedman
I don't like the strugs plug-in for Elipse. It takes too much time to click and do things. Then again, I AM developing on a dual CPU 266 MHZ PII (yes, 2 PII's at 266 MHZ each) computer. I need to upgrade this 6 year old machine SOOO badly. :( And to think it was once high-tech. Well, back to

RE: browse for a directory

2003-08-17 Thread David Friedman
Kelly, This link may be of interest to you. I haven't tried it and don't want to give my customers that kind of power, yet. :) http://www.vonloesch.de/jspbrowser.html Regards, David -Original Message- From: Kelly Clauson [mailto:[EMAIL PROTECTED] Sent: Thursday, August 14, 2003 10:06

RE: DynaValidatorForm and DynaValidatorActionForm

2003-08-17 Thread David Friedman
Speaking of ValidationActionForms (and derivatives), when you use a DynaValidatorActionForm or a ValidatorActionForm, how do you use it in an tag? I tried using it as and it gave me a weird Javascript function declared: "function validate/logon(form)" Regards, David -Original Message

RE: DynaValidatorForm and DynaValidatorActionForm

2003-08-17 Thread David Friedman
Andy, Your solution worked perfectly: I spent most of my time in the wrong place: the Validator User Guide. Even though I skimmed the HTML tablib reference page, I didn't notice the method segment. My other problem was blank validations caused by a 'page="1"' parameter in my html:javascript ta

RE: A JSP based JDBC query client?

2003-08-18 Thread David Friedman
You can show SQL queries in a JSP using this: http://cocoon.apache.org/1.x/sqltaglib.html I don't happen to know if it can submit SQL, only that obvious that it lets you show SQL. Maybe you could embged a bean:write within the tag to pull the submitted form field to do that. -David -Original

RE: login request + ActionServlet RequestProcessor Action

2003-08-22 Thread David Friedman
ant to see what they do in processRoles) is: http://cvs.apache.org/viewcvs/jakarta-struts/src/share/org/apache/struts/act ion/RequestProcessor.java?rev=1.32&content-type=text/vnd.viewcvs-markup Regards, David -Original Message- From: Andy Richards [mailto:[EMAIL PROTECTED] Sent:

RE: Tiles Definition problem

2003-08-22 Thread David Friedman
Bryce, Try taking our your leading slash on the /default.layout tile reference: If you didn't put a slash in your tile name, don't use it with a slash in your definition. Tiles are specific to the 'name="something"', not path specific. Regards, David -Original Message- From: Bryce Fis

RE: blank screen when validation fails. appears to be related to html:options

2003-08-22 Thread David Friedman
Dear Rich, I had my javascript validation break the page like that when I had two conditions incorrect in my page: 1) I put my tag within my opening/closing tags 2) when I used #1 with the wrong formName="something" (i.e. no matching validation formset). When I fixed both of those problems on

RE: login request

2003-08-22 Thread David Friedman
Dear Eric, >From what I learned of interfaces, I would not need to redefine my checkLogin method in each Action subclass. By saying "public class NewAction extends Action implements LoginCheck", I am able to use the LoginCheck's "checkLogin(request)" method as if it were something I'd defined in

RE: Tiles Definition problem

2003-08-25 Thread David Friedman
Bryce, To show a tile inside an independent, externally usable JSP, you're going in the wrong direction. I also suggested this broken path so let me help you get on the right path. These below 2 lines are all you need in your index.jsp to invoke your tile. I have included some explanations below o

RE: using tiles...

2003-08-25 Thread David Friedman
Pady, I didn't see you set your controller line set to use a Tiles RequestProcessor such as: I had a problem a little like that over the weekend with my tiles. I put that in but forgot my TilesPlugIn. Regards, David -Original Message- From: Pady Srinivasan [mailto:[EMAIL PROTECTED] Se

RE: Tiles Definition problem

2003-08-25 Thread David Friedman
Bryce, You're welcome. -David -Original Message- From: Bryce Fischer [mailto:[EMAIL PROTECTED] Sent: Monday, August 25, 2003 3:55 PM To: Struts Users Mailing List Subject: Re: Tiles Definition problem David. Thank you very much. I knew I was missing something very simple. I had 2 book

RE: Connector or Apache and Tomcat

2003-08-25 Thread David Friedman
Mohan, What are you looking to do? Write one Struts-based webapp (probably with modules) to merge and replace all of that on one IP? I'm developing the same way: 2 sites, different looks controlled with Tiles, both on one IP. The trouble is if you need SSL on multiple sites then they need their

RE: Small request...

2003-08-25 Thread David Friedman
Keith, What are you doing? Sorting your mailbox on the 'sent' times so it shows up out of order because of the different timzones and countries of members posting to this list? I'm sorting on the 'received' time and everything is readable and makes perfect sense. Well, everything except this qu

RE: Html-el:hidden tag!?!?!

2003-08-26 Thread David Friedman
I'll go with the logical answer of: It's a hidden form tag, so there is no point in having a visual style for a non-visible element. Regards, David -Original Message- From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED] Sent: Monday, August 25, 2003 1:37 PM To: Struts User List ([EMAIL PR

skipping repopulation between actions without external forwarding

2003-08-26 Thread David Friedman
Without an HTTP redirect, so the call is internal to Struts and not sent back to the client browser, how can I either: a) remove all GET/POST parameters that came with the request so my action gets passed nothing for repopulation. b) change one parameter that was submitted with the HTTP GET/POST

RE: skipping repopulation between actions without external forwarding

2003-08-26 Thread David Friedman
he browser will match what the user sees in their browser window, and it sounds like it might also fix your other problem. -Max - Original Message - From: "David Friedman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 26, 2003 1:39 PM Subject:

RE: Struts, Tomcat, Hibernate - what the heck?

2003-08-26 Thread David Friedman
Bill, It's not that bad using Struts(1.1)/Tomcat(4.1.27)/Hibernate (2.02). I just got it working with the Struts Hibernate PlugIn http://www.hibernate.org/105.html over the weekend. My big thing was that I accidentally mapped one of my 'string's to 'long' in my Config.hbm.xml file so it kept cra

RE: skipping repopulation between actions without external forwarding

2003-08-27 Thread David Friedman
me requests and examine the responses more carefully than the browser will allow, or use a debugger or print statements to debug. -Max - Original Message - From: "David Friedman" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesda

RE: J2EE IDE

2003-08-27 Thread David Friedman
Raj, I had slow Eclipse load times (no crashes and no refresh issues) but my excuse was that I ran it on a dual CPU PII/266 MHz setup w/512 MB RAM (5 years old), not something modern. When I tried it in the office on an AMD 1300+ processor w/512 MB RAM, it loaded much faster and ran a somewhat fa

RE: HibernatePlugIn for struts (a few questions)

2003-08-27 Thread David Friedman
Bill, You're probably best off using the PlugIn style of Hibernate/Struts where it keeps one session factory and manages it for you on startup and shutdown, plus provides a simple, central way to obtain it via the servlet's getAttribute: > SessionFactory sessionFactory = (SessionFactory) > getSe

RE: BEGINEER FOR STRUTS

2003-08-28 Thread David Friedman
Mahavir, What are the lines in your web.xml for the struts-bean.tld? It needs lines similar to: /tags/struts-bean /WEB-INF/struts-bean.tld Regards, David (still up at midnight, like a true computer addict) -Original Message- From: mahavir [mailto:[EMAIL PROTECTED] Sen

RE: Looking for Multiple file upload at once example

2003-08-28 Thread David Friedman
oaded files name and data. :) Sorry to bother the list. And shame on me. :( David -Original Message- From: David Friedman [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 27, 2003 11:52 PM To: [EMAIL PROTECTED] Subject: Looking for Multiple file upload at once example I'm drawing a b

Looking for Multiple file upload at once example

2003-08-28 Thread David Friedman
I'm drawing a blank looking for an example of uploading 2 or more files at once in Struts 1.1. I'm trying to load 3 pics at once: image, bgImage, and logo. I have String setter's in my ActionFrom so I can store the name of the files, and I'm setting my form enctype to "multipart/form-data". I did

RE: JSP not displaying data when in Edit Mode

2003-08-28 Thread David Friedman
What you cut and pasted suggested a typo of a missing closing slash before the end of the action tag: Should've been either: OR Regards, David -Original Message- From: Srinivas Gunturu [mailto:[EMAIL PROTECTED] Sent: Thursday, August 28, 2003 10:05 AM To: [EMAIL PROTECTED] Subje

RE: A new way to handle multi-page entry

2003-08-28 Thread David Friedman
David, I like your solution. Thanks for figuring it out. I have a few questions: 1. You listed "/OrderSubmit.do" as your "/terms" action parameter but didn't show how you define it. What Action class do you derive it from? How do you return true or false from it to the forward action? I've on

RE: struts on tomcat?

2003-08-29 Thread David Friedman
Mahavir, I recommend you copy the struts-blank.war to the tomcat "webapps" directory then start tomcat. It will create a directory "struts-blank" with a WEB-INF and extract everything from the war file. You may then edit the struts-blank/WEB-INF/struts-config.xml and do your work. Regards, Davi

RE: load data from db into form

2003-08-31 Thread David Friedman
Jiri, Your error message explains the problem properly: "No destination bean specified". This means that BeanUtils.copyProperties is trying to copy the registerDTO to a bean named 'form', which is null. This makes complete sense since your previous emails never tell us you've fixed your tag to i

RE: load data from db into form

2003-08-31 Thread David Friedman
nto form for future editing. How to do it, or what can I do for it? Thanks, Jiri David Friedman wrote: >Jiri, > >Your error message explains the problem properly: "No destination bean >specified". This means that BeanUtils.copyProperties is trying to copy the >registerDTO

RE: Warning: Page has Expired The page you requested was created using information

2003-09-02 Thread David Friedman
Anand, Is your browser cache setting set to check the page every time, "automatically", or some other option? Is your browser set to use a proxy or cache, or are you behind a transparent (no settings needed as pages are simply intercepted) corporate proxy server? Can you try using a HTTPS:// url

RE: basic struts question...

2003-09-02 Thread David Friedman
Pady, Your external url of http://myserver/taglib/jsp/submit.do, suggests your application is mapped to "/taglib/". That means your directory structure should be: taglib/jsp taglib/WEB-INF/struts-config.xml taglib/WEB-INF/web.xml taglib/WEB-INF/classes taglib/WEB-INF/lib (and so forth Then your

RE: basic struts question...

2003-09-03 Thread David Friedman
throw an error about the missing class. Anyways, I will create an Action class and see. Thanks -- pady [EMAIL PROTECTED] -Original Message- From: David Friedman [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 02, 2003 5:35 PM To: Struts Users Mailing List Subject: RE: basic struts ques

RE: basic struts question...

2003-09-03 Thread David Friedman
Pady, You didn't restart Tomcat or reload your application before this? How did you expect your changes to be incorporated? Automagically? The next time you change your application, rebuild classes, add libs, etc, (pretty much anything except for editing a jsp' contents) you should look into the

RE: form value not loaded...

2003-09-04 Thread David Friedman
Pady, Your references are named "resumeInformation", but your action definition is saving the form under the name "Resume". Which are you using? You might be better off changing your action's name="Resume" to, perhaps, name="resumeInformation". Regards, David -Original Message- From: P

RE: Probelm with routing.

2003-09-05 Thread David Friedman
Dear Sreekant, When I programmed my RequestProcessor a about 2 weeks ago, I found processRoles() throws exceptions which are absolutely not catchable by any Exceptions listings in struts-config.xml. So, I wrote better Java code to catch things like null pointers. Or (pardon the thick sarcasm), y

RE: Out of memory error

2003-10-22 Thread David Friedman
Mohan, You should search the list archives. I posted an out of memory tomcat 4.1.24 & 4.1.27 issue a while ago. It was related to application reloading (not Tomcat stopping/restarting). The reloads weren't releasing something so memory was slowly being eaten up every time I updated my code. As

RE: Cannot find bean org.apache.struts.taglib.html.BEAN in any scope

2003-10-22 Thread David Friedman
Dear "lover birds" (do you have a real name you can sign in your email(s) ?), You didn't list 'validate="true"' in your declaration. Why? Did you not customize the form validation so it will bounce back to /pages/count/List.jsp for input? Does your script actually bounce back to that page if you

Any way to put the output of a JSP into a String?

2003-10-22 Thread David Friedman
I'd like to be able retrieve a JSP on the same server as a String so I can email attach it as a customer's receipt (as well as displaying it on the screen later). I'd prefer to not have to make an outside HTTP request but simply as the server to give it to me as a string. Can someone point me in

RE: Cannot find bean org.apache.struts.taglib.html.BEAN in any scope (URGENT)

2003-10-22 Thread David Friedman
Did you add the methods: getJournal_category() setJournal_category() To the form used by the action which goes to that page? Regards, David -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Thursday, October 23, 2003 12:58 AM To: Struts Users Mailing List Subject: R

RE: Cannot find bean org.apache.struts.taglib.html.BEAN in any scope

2003-10-22 Thread David Friedman
sure how to do it using struts, so could you suggest me the best way to do so. David Friedman <[EMAIL PROTECTED]> wrote: Dear "lover birds" (do you have a real name you can sign in your email(s) ?), You didn't list 'validate="true"' in your declaration.

RE: Any way to put the output of a JSP into a String?

2003-10-22 Thread David Friedman
Richard, Any clues on any solutions which I can call from within a Struts action? I don't want to leave the action and go to that JSP until I'm done and have emailed the JSP. Thanks, David -Original Message- From: Richard Yee [mailto:[EMAIL PROTECTED] Sent: Thursday, October 23, 2003 1:

Eclipse question about using taglibs in

2003-10-22 Thread David Friedman
In order to get the output of a JSP, I want to try to call the struts Bean.IncludeTag from my struts action. I've never tried calling a taglib from java before, only used the TLDs in JSP's. So, here is my attempt: package org.nothing; import org.apache.struts.taglib.bean.IncludeTag; public cla

RE: Eclipse question about using taglibs in

2003-10-22 Thread David Friedman
s Evangelist http://www.struts-atlanta.org 678.910.8017 AIM:jmitchtx > -----Original Message- > From: David Friedman [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 23, 2003 1:43 AM > To: Struts Users Mailing List > Subject: Eclipse question about using taglibs in >

RE: Forward Cannot Be Achieved In One Step

2003-10-28 Thread David Friedman
I usually handle logoffs by having my logoff action invoke a jsp that does a With a forward setting having 'redirect="true"'. That forces the broswer to do a redirect and reload the new page, allowing the URL to read as the proper page. Warning: with Struts v1.1 or earlier, this will not work i

RE: was Re: Struts and db access: OT: pgSQL

2003-10-29 Thread David Friedman
This article seems very old. A significant portion of what they talk about was fixed in the Version 4.0 of MySQL which has got to be at least 9 months old or so. Regards, David -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of Vic Cekvenich Sent: Wednesday, October 29, 20

RE: jdbc realms: cannot log into tomcat manager

2003-10-30 Thread David Friedman
Ajay, I tried a JDBC realm with MySQL (on Tomcat 4.1.24) earlier this week and had to add the keys 'connectionName="MySQLusername"' and 'connectionPassword="MySQLpassword"'. Using a jdbc realm had no effect on my ability to login to the tomcat manager. Did you put the JDBC realm in the " ... " s

RE: Paging

2003-11-03 Thread David Friedman
Rick, I started using the 1.0 beta 2 this weekend and it's full of impressive changes including fixed exports so it works with page breaks (previously, it only exported what was on the screen). About your copying of objects, the docs say that copying will happen if you let the tags sort the object

RE: Wanted API to handle user roles

2003-11-03 Thread David Friedman
Try this: http://pow2acl.sourceforge.net/screenshots.html I just wish there were a day to update (add/remove) roles during production. That way, I could switch an admistrator to a client's ID and fix something for the client, then switch back. But, everything I've seen about roles shows that To

RE: session time-out in pop-up windows

2003-11-03 Thread David Friedman
Why not call request.isRequestedSessionIdValid() to find out if the session timed out? Or, try something inside struts such as request.getSession().isNew() to see if the session didn't exist before the call, then see if the session Id came from a cookie or embedded in the URL: 1) request.isReques

RE: Exception Handling in Action objects

2003-11-03 Thread David Friedman
Hubert, In struts v1.1 and newer, you can setup local exception handlers for an action such as: ... ... You sound like you're worried about a phenomenal number of exceptions. It sounds a little like overkill for exceptions. Regards, David -Original Message- From: Hubert Rabago [m

RE: how to retrieve property values from previous forms/jsp pages

2003-11-03 Thread David Friedman
Kam, One approach is to use hidden variables to ensure all fields are in every page. Another approach is to have each action use the same form in "session" scope so all fields are retained between POSTs (just remember to getSession().removeAttribute(NAME) when you're done with it to free up memor

RE: DynaAction form and ArrayList

2003-11-03 Thread David Friedman
Shouldn't you be adding rs.next() and not repeatedly adding the same teachForm? See: > teachers.add(teacherForm); Shouldn't it be: (?) teachers.add(rs); Regards, David -Original Message- From: Barry Volpe [mailto:[EMAIL PROTECTED] Sent: Monday, November 03, 2003 2:36 PM To: Struts Us

RE: ForwardAction not picking up Tiles defs?

2003-11-03 Thread David Friedman
You can turn off debugging by setting the type to "none". I recommend you set it instead to "info" so you can follow any standard tiles messages while you work on it. Regards, David -Original Message- From: Hubert Rabago [mailto:[EMAIL PROTECTED] Sent: Monday, November 03, 2003 3:20 PM T

RE: how to retrieve property values from previous forms/jsp pages

2003-11-03 Thread David Friedman
the firstForm from here?? } //end execute May be I need to use the request.setAttribute to setup a DAO object in the firstAction.java and retrieve the DAO object from within the execute method of the hotel.secondAction.java by using the request.getAttribute method? Can this be done? Thank you

RE: ForwardAction not picking up Tiles defs?

2003-11-03 Thread David Friedman
Tiles work with starting dots. I use it that way myself. I think I picked up that suggestion from Ted's book "Struts In Action". What is the exact URL you are using? Do regular non-tiles actions work for your webapp? Regards, David -Original Message- From: Mikael Eriksson - Swedish Con

RE: how to retrieve property values from previous forms/jsp pages

2003-11-03 Thread David Friedman
e("hotel"); Is the string "hotel" the name of the form that was declared in the struts-config.xml? Many Thanks, Kam Lung Leung On Mon, 3 Nov 2003 15:58:24 -0500, "David Friedman" wrote: > > Kam, > > You can force a bean into the sessio

RE: ForwardAction not picking up Tiles defs?

2003-11-03 Thread David Friedman
You can enable tiles debugging output to see information like the below. It came from my tiles "tiles-defs.xml" definition named ".success.Page". I setup a forward for that action so the mapping "success" goes to ".success.Page", which pulls up "/success.jsp" for me. It works fine on Struts 1.1

RE: ForwardAction not picking up Tiles defs?

2003-11-03 Thread David Friedman
nd moving my JSPs that have tiles:insert statements to tile definitions that I can extend & overload. David Friedman wrote: >Tiles work with starting dots. I use it that way myself. I think I picked >up that suggestion from Ted's book "Struts In Action". > >What is the exact

RE: Struts - Parsing error processing resource path

2003-11-03 Thread David Friedman
Sounds like a typo (in the class name?) in your struts-config.xml file. Regards, David -Original Message- From: Vijaykumar [mailto:[EMAIL PROTECTED] Sent: Monday, November 03, 2003 11:43 PM To: Struts Subject: Struts - Parsing error processing resource path Hi all, I am a newbie in

RE: Application objects

2003-11-04 Thread David Friedman
Mathieu and Ruth, If you want read-only access to session information like that, here are some taglibs around I saw last month (but never used) that might fit your needs: http://www.servletsuite.com/servlets/sesstag.htm And http://www.servletsuite.com/servlets/sessadmtag.htm -Original Mes

RE: html:text - Only ActionForm

2003-11-04 Thread David Friedman
It works with beans in you have imported into your JSP page using the 'name=""' attribute. name The attribute name of the bean whose properties are consulted when rendering the current value of this input field. If not specified, the bean associated with the form tag we are nested within is utiliz

RE: [OT] Sysdeo Eclipse plugin for tomcat - working directory

2003-11-05 Thread David Friedman
When you say working directory, do you mean JSP's or classes? With Eclipse v2.1, Struts v1.1, taglibs 1 (beta), and Sysdeo 2.1.0, I can debug both. Debugging my java classes is as easy as pie - add a breakpoint, reload your page in the browser, and step through it in Ecilpse's debug window while

RE: [OT] Sysdeo Eclipse plugin for tomcat - working directory

2003-11-05 Thread David Friedman
have a try following Yansheng's advise by setting my catalina_home env variable. (Its not set as I have severalmany tomcats I need to switch between for different projects) -Original Message- From: David Friedman [mailto:[EMAIL PROTECTED] Sent: Thursday, 6 November 2003 01:11 To: Struts

RE: Session handling through Request Processsor

2003-11-05 Thread David Friedman
Sam, I check my session in an extention class of RequestProcessor under processRoles. If the session isn't valid, I do the following (which might work in other RequestProcessor methods): // Retain the http or https used in this call using getScheme() String redirect = (String) request.ge

RE: validator, range

2003-11-05 Thread David Friedman
Why not just setup a few constants and use them later as your ${var:max} where appropriate? I got the maxInteger value from echo printing Integer.MAX_VALUE. Once you define a constant for maxInteger or maxFloat, just reference it as your var {$maxFloat} or var {$maxInteger}.

RE: Can I use RequestProcessor to handle session?

2003-11-05 Thread David Friedman
Sam, You can get a context relative path in your RequestProcessor processRoles function by doing something like this: // Retain the http or https used in this call using getScheme() String redirect = (String) request.getScheme() + "://" + request.getHeader("host")

RE: Dynamic Image from DB to JSP

2003-11-06 Thread David Friedman
Marc, That's a tricky one I've planned for but haven't started yet. My research showed the html:img tag should be used with a path. That path can invoke an action (direct, not tiled) that sets the content-type to the right type of image then tosses out the binary stream. So, it should be somethi

RE: Eclipse Sysdeo Tomcat Plugin Problem

2003-11-07 Thread David Friedman
Go the easy route using a combination someone's used before (i.e. me!): a) Eclipse 2.1 b) Tomcat 4.1.24 c) Sysdeo tomcatPluginv21 d) Struts (v1.0 and v1.1 final, not old rc's). e) Java v1.4.1_02 At least you'll know it works for setup, testing, and debugging of actions. I don't use it to debug JS

RE: Configuration Trouble

2003-11-09 Thread David Friedman
David, What classes or taglibs are called from that index.jsp? Regards, David -Original Message- From: David Liles [mailto:[EMAIL PROTECTED] Sent: Sunday, November 09, 2003 12:02 PM To: [EMAIL PROTECTED] Subject: Configuration Trouble I am having trouble getting a struts web app to wor

RE: Configuration Trouble

2003-11-09 Thread David Friedman
rvice.java:66) at allaire.jrun.ServletService.init(ServletService.java:31) at JRun.main(JRun.java:169) -Original Message- From: David Friedman [mailto:[EMAIL PROTECTED] Sent: Sunday, November 09, 2003 11:23 AM To: Struts Users Mailing List Subject: RE: Configuration Trouble David,

RE: Accessing application scope in Action.execute()

2003-11-10 Thread David Friedman
Dear Looser, Inside the execute, you can set/get application scope properties using the Action class methods getServlet() followed by two more commands: getServlet().getServletContext().getAttribute(String); OR getServlet().getServletContext().setAttribute(String, obj); Regards, David -Ori

RE: Dynamic Image from DB to JSP

2003-11-12 Thread David Friedman
ou.write(buffer); ou.flush(); ou.close(); in.close(); img.delete(); img.deleteOnExit(); Regards, Marc David Friedman wrote: >Marc, > >That's a tricky one I've planned for but haven't started yet. My research >showed the html:img tag should be used with a path. That path can

RE: R: who want to join xmoon project ?

2003-11-13 Thread David Friedman
Mario, Where did you hear that dynabean will not be supported? I'm using the 2.1b6 release and it has components that can be dynabeans. I didn't see any notes about it going away anytime soon. (not that I've used those dynabean components yet). Regards, David -Original Message- From: M

RE: Simple Question

2003-11-14 Thread David Friedman
For maintaining the JSESSIONID if someone has their cookies turned off - this ensures the id is embedded in the link when cookies aren't available. Regards, David -Original Message- From: Srinivas Kusunam [mailto:[EMAIL PROTECTED] Sent: Friday, November 14, 2003 3:49 PM To: > Subject: Sim

RE: how to disable submit button when click on checkbox

2003-11-17 Thread David Friedman
Philip, If it is in the same " ... " form tag, try this javascript: this.form.delete.disabled=true -David -Original Message- From: Philip [mailto:[EMAIL PROTECTED] Sent: Monday, November 17, 2003 11:02 PM To: [EMAIL PROTECTED] Subject: how to disable submit button when click on checkbox

RE: how to disable submit button when click on checkbox

2003-11-17 Thread David Friedman
rm.delete.disabled=true"?It's still not working. The checkbox is not even checked when click on it. David Friedman <[EMAIL PROTECTED]> wrote:Philip, If it is in the same " ... " form tag, try this javascript: this.form.delete.disabled=true -David -Original Messag

RE: Email Validation Rules

2003-11-18 Thread David Friedman
I'd suggest calling: org.apache.commons.validator.GenericValidator.isEmail(String arg); -Original Message- From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 1:03 PM To: Struts Users Mailing List Subject: Email Validation Rules Can any one correct

RE: tiles:insert page action with form - problem?

2003-11-21 Thread David Friedman
Fred, Try checking out a org.apache.struts.tiles.actions.TilesAction as your action type. That gives you direct access to the tiles layout so you can add/set tiles information to your choice of values. Regards, David -Original Message- From: Fred Bloggs [mailto:[EMAIL PROTECTED] Sent: F

RE: Inheritance in tile definition files I

2003-11-21 Thread David Friedman
How do you get to your JSP? Do you use and action? If so, are you using 'path="login.form"' or 'path="form.layout"' and do you see any tiles loading errors? Are you getting to your JSP directly from the outside world (not through an action's mapping)? If so, you need to first load your tile def

RE: Inheritance in tile definition files I

2003-11-21 Thread David Friedman
;/WEB-INF/struts-logic.tld"%> >From struts-config.xml: Thank you, Ed - Original Message - From: "David Friedman" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, November 21, 2003 1:22 PM S

RE: Problem in deploying struts app in production environment. Pls help

2003-11-22 Thread David Friedman
What is the .do page error, exactly? Are there any error messages in the Tomcat /logs directory? Regards, David -Original Message- From: Samanth Athrey [mailto:[EMAIL PROTECTED] Sent: Saturday, November 22, 2003 3:50 AM To: [EMAIL PROTECTED] Subject: Problem in deploying struts app in pr

RE: Problem in deploying struts app in production environment. Pls help

2003-11-22 Thread David Friedman
cannot be found. Regards Sam -----Original Message- From: David Friedman [mailto:[EMAIL PROTECTED] Sent: Saturday, November 22, 2003 2:25 PM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: Problem in deploying struts app in production environment. Pls help What is the .do page err

RE: Still no reply for :Problem in grouping using logic iterate & logic equal

2003-11-22 Thread David Friedman
This sounds like a job for ... the DisplayTag Taglib. See this example page: http://www.displaytag.org/example-grouping.jsp Your formbean looks pretty simple: (Should I ask why your properties start with a capital letter?) myteam.teamName myteam.Firstname myteam.Midinitial myteam.Lastname If so

RE: [OT] xdoclet + hibernate

2003-11-22 Thread David Friedman
Mark, There are plenty of Hibernate and Xdoclet questions on the hibernate forum: http://forum.hibernate.org Regards, David -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Saturday, November 22, 2003 9:32 AM To: Struts Users Mailing List Subject: Re: [OT] xdoclet + hib

RE: DynaValidator can't get validation to work

2003-11-22 Thread David Friedman
Your login.jsp seems to be missing the form and fields. Do you have your in it so you get the validation code? Does your login page form also set the ? Regards, David -Original Message- From: M.Schipperheyn [mailto:[EMAIL PROTECTED] Sent: Saturday, November 22, 2003 1:31 PM To: [EMAIL P

RE: getParameter() returns null on multipart requests

2003-11-22 Thread David Friedman
Terry, 1. Does your actionform receive data? 2. Did you set the enctype on your form appropriately for multipart/form-data ? Regards, David -Original Message- From: Terry Brick [mailto:[EMAIL PROTECTED] Sent: Saturday, November 22, 2003 1:08 PM To: [EMAIL PROTECTED] Subject: getParamete

RE: getParameter() returns null on multipart requests

2003-11-23 Thread David Friedman
uts. I generally just create my own actionform by getting the necessary data out of the request object (long story). So, in other words, in my struts config, there's no actionform associated with the action. 2) Yes, the form tag looks like --- David Friedman <[EMAIL PROTECTED]> w

RE: Inheritance in tile definitions II

2003-11-23 Thread David Friedman
Ed, The tile definition is initialized before the pages/jsp's/actions are called. You can therefore access any name in any component as long as that component is tiles aware. In the case of your JSP's, juse use the tiles taglib and do what you did in header.jsp to obtain the title (a getAsString

RE: Action which always forwards back to the requesting page

2003-11-23 Thread David Friedman
Franz, Not all browsers support sending the HTTP_REFERER when you click on a page. So, your best chances are to either: 1) Store the name of the last action in the session context so you know what the last page is probably going to be (unless they use multiple browsers at once when visiting your

RE: Hibernate plugin

2003-11-23 Thread David Friedman
Mark, I have a simpler approach for Hibernate (v2.0.3 or v2.1 under Struts v1.0 or v1.1) 1. Start with the Hibernate example Struts PlugIn code and struts-config.xml configuration text at: http://www.hibernate.org/105.html 2. Do NOT put any context entries in server.xml or web.xml! 3. Choose an

RE: Hibernate plugin

2003-11-23 Thread David Friedman
Shh I don't think I've ever seen any Hibernate errors on startup using the code from the Hibernate site. And it works fine accessing it either through JNDI or a Servlet attribute named SESSION_FACTORY_KEY. :) http://www.hibernate.org/105.html Regards, David -Original Message- From:

RE: Validator Backend Issues

2003-11-24 Thread David Friedman
Joe, Nope. I was writing to you about that but you found your solution faster than I could type (my poor aching fingers at 2AM!). When you said your 'formName="UserLoginForm"', that suggests you're keying off the action's ActionForm name 'name='UserLoginForm' for your validation. That's why you

RE: Struts & Validator question

2003-11-24 Thread David Friedman
Two questions immediately come to mind from what you documented: 1. Does com.hp.ipg.ne.pgpm.forms.orgForm extend org.apache.struts.validator.ValidatorForm or org.apache.struts.validator.ValidatorActionForm 2. The 'input="org_edit.jsp" is context sensitive. Can you reach org_edit.jsp from the sam

RE: Validator Backend Issues

2003-11-24 Thread David Friedman
Monday, November 24, 2003 2:37 AM To: 'David Friedman' Subject: RE: Validator Backend Issues Don't laugh. Now I remember the problem I first encountered. I'm getting a generated javascript function of "validate/Login(form)" Do I have to escape the sla

RE: Inheritance in tile definitions II

2003-11-24 Thread David Friedman
or useAttribute. Ed - Original Message - From: "David Friedman" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Sunday, November 23, 2003 12:22 PM Subject: RE: Inheritance in tile definitions II > Ed, > > The tile definition is

RE: Struts upload functionalities

2003-11-24 Thread David Friedman
The struts distributions should all have a sample .war application with code and jsp's called struts-upload.war. It's often in the webapps folder. :) -David -Original Message- From: Viral_Thakkar [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2003 4:12 AM To: Struts Users Mailing Li

RE: [OT] Stress Test

2003-11-24 Thread David Friedman
So after 6 hours, what do your log files (web server and java application server) show? Do they show struts actions being performed? Does it show out of memory errors? Anything like that? Regards, David -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED] Sent: Monday, Novem

RE: Disable binary files in upload

2003-11-24 Thread David Friedman
Ludo, You might want to use a FormFile in your ActionForm bean to make the file easier to deal with. Then, you can do things like this: 1. FormFile.getContentType() and see if it is a MIME type you allow. 2. FormFile.getInputStream() and save it in an ascii, not binary mode. So, binary data w

RE: Inheritence and tile definitions III

2003-11-24 Thread David Friedman
Ed, >From the previous tiles problem, it seems as though the base definition is key and must list everything that needs to be 'global'. So, it might fix your problem if you make sure all elements are in it. I.e. in "base.layout", try including your content, which is defined everywhere EXTENDING

  1   2   >