Re: Virtual Host & Struts Action Form

2004-11-24 Thread Eddie Bush
Steven, That's hard-coded behavior in RequestProcessor :-| It doesn't look to me like it'd be a tremendously difficult thing to fix. Basically, what happens is RequestProcessor.processForwardConfig sees the leading "/" on your action and prepends the context root. Sounds like we should only be

Virtual Host & Struts Action Form

2004-11-24 Thread Steven Leija
Hello All, I'm currenting running a virtual host in tomcat and apache and running into an issue where my form is being rendered with two slashes followed by my action path. eg. action="//myAction.do" I'm assuming this is due to my tomcat context path being "/", so the slash is being added on

RE: including external urls in tiles

2004-11-24 Thread David G. Friedman
Sarath, You could scrape the other site and insert the content into your tile, see: http://jakarta.apache.org/taglibs/doc/scrape-doc Regards, David -Original Message- From: Sarath PS [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 24, 2004 11:15 PM To: Struts Users Mailing List Sub

including external urls in tiles

2004-11-24 Thread Sarath PS
hello all, is there any solution for including an external url in a tile. All links should be re-written so that the request come back to my server ? Any plug ins ? library is available for that ? Thanks in advance, Sarath -

Re: prepopulating forms

2004-11-24 Thread Rick Reumann
Just a quick look and noticed you aren't being consistent with your use of the findForward. You should be consistent in your code in regard to whether you plan to use a Constants class or not. In one place (EvaluatiePreAction) you are hardcoding "success" but in LoginAction you are using the Co

RE: plugin config confusion

2004-11-24 Thread David G. Friedman
Nathan, The PlugIn interface init(servlet, moduleConfig) method provides them in case you want to use them. It's optional. Heck, I could ignore the module config, exception, content type, etc, and just make a PlugIn to echo print "System startup!" and "System shutting down." Sure that would be a

Re: plugin config confusion

2004-11-24 Thread Nathan Coast
thanks Craig, David, hmmm Craig David is a crap pop singer but that's another story. kinda obvious really, for my info, what is passed in the properties in the PluginConfig? Craig McClanahan wrote: When you include a nested element (as you did in your example below), Struts expects your PlugIn

Re: plugin config confusion

2004-11-24 Thread Craig McClanahan
When you include a nested element (as you did in your example below), Struts expects your PlugIn implementation class to have a corresponding public property setter method that can be used to pass on that value. Thus, if you have: then your MyPlugIn class must have a setFoo() method

RE: plugin config confusion

2004-11-24 Thread David G. Friedman
Nathan, Can't you just add getters and setters to your mypluginclass so set-property works directly on them? *scratches his head in confusion* That seems to be the way the DigestingPlugIn does it in the example application. v1.2.4 frozen cvs DigestingPlugIn code from it's WEB-INF/struts-config.x

plugin config confusion

2004-11-24 Thread Nathan Coast
Hi, I'm a bit confused about how you pass config params to a plugin. The plugin API has no mechanism to set the PluginConfig for a particular plugin. The tiles plugin has a method called: setCurrentPlugInConfigObject(PlugInConfig plugInConfigObject) and the javadocs state that this is called by

Re: prepopulating forms

2004-11-24 Thread Bill Siggelkow
Did you try changing the LogonAction to implement 'execute' instead of the old 'perform' method? Brij Naald wrote: Not unless you would like to try posting non-private parts of your action class for list members to review. In advance: thanks for all the work you put in some 'newbie'-problems! I'v

RE: org.apache.jasper.JasperException: Unable to compile class for JSP

2004-11-24 Thread David G. Friedman
Danko, I'm confuse by your EL tag showing map['password']. So wouldn't you access it using a map syntax like so: Maybe if you had a getValue(String val) method you could do: My thinking on this came from: http://www.jguru.com/faq/view.jsp?EID=890992 -David -Original Message- From: Da

RE: org.apache.jasper.JasperException: Unable to compile class for JSP

2004-11-24 Thread Danko Desancic
See below: -Original Message- From: David G. Friedman [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 24, 2004 5:09 PM To: Struts Users Mailing List Subject: RE: org.apache.jasper.JasperException: Unable to compile class for JSP Danko, What, exactly, are you typing in for your

RE: prepopulating forms

2004-11-24 Thread Brij Naald
Not unless you would like to try posting non-private parts of your action class for list members to review. In advance: thanks for all the work you put in some 'newbie'-problems! I've checked the "success"-issue, but this was'nt the problem. Here are the java-files ** * Evaluati

RE: org.apache.jasper.JasperException: Unable to compile class for JSP

2004-11-24 Thread David G. Friedman
Danko, What, exactly, are you typing in for your html:text tag? or something else? I'm on the same setup and I haven't seen that error before. Regards, David -Original Message- From: Danko Desancic [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 24, 2004 5:06 PM To: [EMAIL PROTECTE

Re: Versions of Tomcat Causing Problem with tags?

2004-11-24 Thread Stefan Clos
I think you´re meaning the v. 5.0.28 of Tomcat. Are all you required packages in your WEB-INF/lib directory of your application? Maybe you have some packages in the TOMCAT_HOME/server/lib of your Tomcat. cheers, Stefan Frank Burns schrieb: I am using Struts version 1.2.4 and running identical co

org.apache.jasper.JasperException: Unable to compile class for JSP

2004-11-24 Thread Danko Desancic
Hello, I am using struts 1.2.4 and Tomcat 5.0.28. I am trying to get simple login page working but as soon as I use one of html:text or html:password I ran into compilation error. Below are the error and the page that's causing it. When I remove the html:text and use it works fine. Any ideas on

RE: prepopulating forms

2004-11-24 Thread David G. Friedman
Sorry Brij, Other than you typing "succes" (one ending s) in your email multiple times but writing "success (2 ending s's) in your Action mapping, I don't have any other ideas as the moment. Not unless you would like to try posting non-private parts of your action class for list members to review

RE: prepopulating forms

2004-11-24 Thread Brij Naald
No, that isn't the fault. Thanks! What is the signature of your execute() method? I occasionally click on the wrong signature in my Eclipse IDE and use ServletRequest/ServletResponse instead of HttpServltRequest/HttpServletResponse. Regards, David

RE: prepopulating forms

2004-11-24 Thread David G. Friedman
What is the signature of your execute() method? I occasionally click on the wrong signature in my Eclipse IDE and use ServletRequest/ServletResponse instead of HttpServltRequest/HttpServletResponse. Regards, David -Original Message- From: Brij Naald [mailto:[EMAIL PROTECTED] Sent: Wednes

RE: prepopulating forms

2004-11-24 Thread Brij Naald
I just tried it, but I don't see an solution in this. The problem is that the execute() of EvaluatiePreAction never is called. The output of the mapping.findForward().getPath() is /EvaluatiePre.do (which seems to be correct) Thanks for the answer! /EvaluatiePre.do Hvae you tried logging the path

Re: loosing request attributes from jsp to action

2004-11-24 Thread Rick Reumann
Tito Eritja wrote the following on 11/24/2004 2:41 PM: We get that identifier in jsp "window" with request.getAttribute("index") (with JSTL tags works fine), set it on request with , and submit the form to the action, The problem comes when trying to get the identifier bean from this request in the

Re: [OT] how do i get context-param

2004-11-24 Thread Struts User
I had the same feeling that servlet spec. should be more specific when I just started working with J2EE:) But, my experience tells me that a specification tells you "What" you need to have in a servlet container and not "How" to implement a servlet container. If I want to learn servlet programmin

RE: prepopulating forms

2004-11-24 Thread David G. Friedman
Hvae you tried logging the path/URI at start of execute() and the mapping.findForward().getPath() before you end/invoke the return(mapping.findForward("success"); ? Regards, David -Original Message- From: Brij Naald [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 24, 2004 3:16 PM To:

prepopulating forms

2004-11-24 Thread Brij Naald
Hi, i'm trying to prepopulate a form. To do this I followed the advice on this list to look at the mailreader-app that comes with struts. I also tried other sollutions posted here, but still i really can't get it right. I started from the code of the logon-example which came with struts. This o

Re: [OT] Happy Thanksgiving!

2004-11-24 Thread Rick Reumann
Erik Weber wrote the following on 11/24/2004 2:41 PM: More importantly, I am grateful to the subscribers to this list! I have received help here many times, and I hope I can repay the favors! Thanks to all. You have repaid the favor many times Erik. I save off a lot of your replies actually into

Info on another java Scheduler (not Quarts but Oil)

2004-11-24 Thread David G. Friedman
I'm a fan of having options so with that in mind, I'm passing on another Java Timer/Scheduler I read about in some Java webblog: OIL - Objects in Line. I've gone through the documentation and see it lists scheduling options such as hourly, daily, one-time, immediate, various queues, saving to a da

RE: Trouble with my first DynaActionForm

2004-11-24 Thread john . chesher
Thanks Matt and David! Geez, I couldn't see the forest for the trees... I knew it had to be something simple. Solved that part of the problem, but bounced into the next problem. If I can't get that one after more investigation, I'll be back!

Re: [OT] how do i get context-param

2004-11-24 Thread Erik Weber
Good point. I guess the J2EE tutorial would be the place for stuff like that (I was trying to only speak of "official" documentation). Erik Craig McClanahan wrote: It's important to remember that the Servlet Specification target audience isn't application developers -- it's people that are implem

[OT] Happy Thanksgiving!

2004-11-24 Thread Erik Weber
Whether you celebrate Thanksgiving, these sentiments apply any time of year, I think . . . I joined this list earlier in the year, when I started my first Struts project. I was skeptical of Struts at first, but my opinion quickly changed when I discovered how sensible it is. So I am grateful to

loosing request attributes from jsp to action

2004-11-24 Thread Tito Eritja
Hi everybody. We are working on a fleet trucking system. One user can have several windows opened, each window can manage several trucks. In order to manage this, the actionform has a Vector of this "window" information (and it's set in a session scope). As all this "windows" are managed by th

Re: [OT] how do i get context-param

2004-11-24 Thread Craig McClanahan
It's important to remember that the Servlet Specification target audience isn't application developers -- it's people that are implementing servlet containers (such as the group that creates Tomcat). It is about defining requirements, not illustrating use cases. For application level questions, a

Re: [OT] how do i get context-param

2004-11-24 Thread Erik Weber
Ack, here I go being a writing critic and leave in a glaring typo . . . Erik Weber wrote: Well, I have to criticize my own advice. I just read over the Servlet 2.4 spec. It doesn't explain this well at all, in my opinion. It still uses the same old, nearly meaningless, obscure language like "used

RE: Trouble with my first DynaActionForm

2004-11-24 Thread Durham David R Jr Contr 805 CSPTS/SCE
> form-property name="message" type="java.lang.String" Should this be ? Notice that you did not include the enclosing less-than and greater-than signs. - Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

Re: Trouble with my first DynaActionForm

2004-11-24 Thread Matt Bathje
[snip] form-property name="message" type="java.lang.String" form-property name="street1" type="java.lang.String" form-property name="street2" type="java.lang.String" form-property name="city" type="java.lang.String" form-property name="s

RE: Trouble with my first DynaActionForm

2004-11-24 Thread john . chesher
Oops, forgot the action: "Durham David R

Re: [OT] how do i get context-param

2004-11-24 Thread Erik Weber
Well, I have to criticize my own advice. I just read over the Servlet 2.4 spec. It doesn't explain this well at all, in my opinion. It still uses the same old, nearly meaningless, obscure language like "used by the Servlet container to communicate with a Servlet", and stuff like that, which doe

[ot] Naming generated files

2004-11-24 Thread Mark Lowe
Not really entirely a struts question but here seems as gooder place as any. To have the benefits of storing images in the database without having to write a byte array to an output stream, I figured have a servlet that lists all the blobs from a data base and then create files based on those at

RE: Trouble with my first DynaActionForm

2004-11-24 Thread Durham David R Jr Contr 805 CSPTS/SCE
What does your look like? - Dave > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 24, 2004 1:21 PM > To: Struts Users Mailing List > Subject: Trouble with my first DynaActionForm > > > > > > I am using Struts 1.1. I added my fi

Trouble with my first DynaActionForm

2004-11-24 Thread john . chesher
I am using Struts 1.1. I added my first DynaActionForm and can't get it to work. The error I get indicates that "street1" is an invalide property name to retrieve from the form. I have changed the name in my action class to confirm that it changes in the error message, so the error definitel

Re; Zammetti download app

2004-11-24 Thread fzlists
Argh, just realized my messages haven't been getting through to the list. Should be working now though Anyway... First, I don't think this got to anyone... Ken I think is right (I say I *think* he's right because I don't really remember writing that comment!). Reading it back now I suspect I

test

2004-11-24 Thread fzlists
test - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Versions of Tomcat Causing Problem with tags?

2004-11-24 Thread Frank Burns
I am using Struts version 1.2.4 and running identical code on two different platforms: 1) Tomcat: v2.0.28 on XP 2) Tomcat v2.0.19 on linux. The code on the v2.0.28 runs perfectly. However, on the v2.0.19, the tags are ignored. Any suggestions as to what might be the source of this problem? I a

Re: Zammetti Download App

2004-11-24 Thread Dakota Jack
DOH! I bet you are right. I never thought of that reading. ;-) While I am here, I might as well ask Frank if he has any improvements, etc. he would like on this. Jack On Wed, 24 Nov 2004 12:26:15 -0600, Ken Pelletier <[EMAIL PROTECTED]> wrote: > Since this is an ActionMapping subclass, then

Values of a select

2004-11-24 Thread Luis Antonio Martinez Cuevas
Hi, can i get the values of a select to use them in another select with a logic? Correo Saliente escaneado por Webshield Appliance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: smart navigation

2004-11-24 Thread struts lover
Thanks for your reply. I will try it later. Have to go out for Thanksgiving. Happy Thanksgiving everybody. --- "David G. Friedman" <[EMAIL PROTECTED]> wrote: > You (got a name? Struts Lover is so impersonal) can > invoke it by clicking on something in a page using > by adding onClick="SetScrollTo

Re: Post Validation

2004-11-24 Thread Lee Harrington
Okwhat is your solution to the problem of Validation? Lee On Wed, 24 Nov 2004 13:13:13 -0500, David G. Friedman <[EMAIL PROTECTED]> wrote: > Bill, > > I understand it might be lightweight but that message, to me, say that at > that time, calling an action from another action still results i

Re: how do i get context-param

2004-11-24 Thread Bill Siggelkow
Thanks for the clarification, Erik. Erik Weber wrote: I think you want ServletContext.getInitParameter here. That is used with the "context-param" element (global to your web app). ServletConfig.getInitParameter is used with the "init-param" element (specific to one Servlet). In addition to the

Re: Zammetti Download App

2004-11-24 Thread Ken Pelletier
Since this is an ActionMapping subclass, then 'className' is the attribute used to declare it in the struts config, not 'type'; 'type' refers to the Action class to use. As written there, of course, 'type' could be taken less literally to mean the class of the ActionMapping. Unfortunately, the

Re: how do i get context-param

2004-11-24 Thread Erik Weber
I think you want ServletContext.getInitParameter here. That is used with the "context-param" element (global to your web app). ServletConfig.getInitParameter is used with the "init-param" element (specific to one Servlet). In addition to the JavaDocs, you should read the Servlet specification,

RE: smart navigation

2004-11-24 Thread David G. Friedman
You (got a name? Struts Lover is so impersonal) can invoke it by clicking on something in a page using by adding onClick="SetScrollTo('someIDName');". If you do that in an href, be sure to return false or the page might submit. :) You can do it anywhere onClick is supported. If you use dynamic c

Re: Zammetti Download App

2004-11-24 Thread Dakota Jack
Hi Frank, The quote is in the class as follows: import org.apache.struts.action.ActionMapping; /** * This class defines a custom action mapping is used when downloading a file * from the file system. To use it, set the type of an action mapping in * struts-config.xml to this classname. All

RE: Post Validation

2004-11-24 Thread David G. Friedman
Bill, I understand it might be lightweight but that message, to me, say that at that time, calling an action from another action still results in Struts reprocessing the request (all of it). I haven't heard anything about any code in production which would prevent the additional re-processing of

Re: Getting a regular expression from application.properties

2004-11-24 Thread Bill Siggelkow
Did you try escaping the single qoutes with a backslash? ^[0-9]\'{\'0,10\'}\'(,[0-9]\'{\'0,2\'}\')?$ Simon Matic Langford wrote: I have a regular expression for date formatting (don't ask!) in our application.properties. This can change depending on user locale. I am trying to get the following val

Zammetti Download App

2004-11-24 Thread Dakota Jack
Hello, Frank, I have been looking at the download app you submitted. Do I misunderstand or should "type" in the following quote from your java doc comments be "className"? Isn't "type" a typo? ;-) Jack -- "You can't wake a person who is pretending to be asleep." ~Native Proverb~ "Each ma

Re: Post Validation

2004-11-24 Thread Bill Siggelkow
Well, the type of action I am talking about is usually pretty lightweight -- a view helper -- that simply sets up the request and forwards to the view -- but doesn't do a lot of "business" stuff. Check out this thread from the archives: http://www.mail-archive.com/struts-user@jakarta.apache.or

RE: smart navigation

2004-11-24 Thread struts lover
How and from where do I call the javascript function? Thanks. --- "David G. Friedman" <[EMAIL PROTECTED]> wrote: > If you give an HTML tag the ID="..." attribute, you > can give that ID to the SetScrollTo function. That > will set the focus and automatically move the > tag into the visible port

RE: smart navigation

2004-11-24 Thread David G. Friedman
If you give an HTML tag the ID="..." attribute, you can give that ID to the SetScrollTo function. That will set the focus and automatically move the tag into the visible portion of the browser window. Regards, David -Original Message- From: struts lover [mailto:[EMAIL PROTECTED] Sent: W

Re: smart navigation

2004-11-24 Thread struts lover
Thanks Jack, I am not very good at javascript. Can you please again explain how to use it. Thanks once again. --- Dakota Jack <[EMAIL PROTECTED]> wrote: > Also, if you want similar things with other > browsers, here is a Mozilla deal: > > > function SetScrollTo(strControlID) > { > var > objC

Re: Validator : network unreachable

2004-11-24 Thread Derek Broughton
On Wednesday 24 November 2004 11:35, Matt Bathje wrote: > I am pretty sure this error is related to invalid/outdated versions of > validator and/or struts. Doh! I'm still pretty new to Tomcat. I keep forgetting that applications keep their own copies of everything. Though the Debian libcommo

Re: Setting checkboxes on/off from Javascript

2004-11-24 Thread dnz
I liedplease disregard. Thanks a bunch Andrew!! On Wed, 24 Nov 2004 10:15:22 -0600, dnz <[EMAIL PROTECTED]> wrote: > Thank you for your reply. > > I tried your suggestion but still couldn't get to work. > > there's something else. I do get an object back but I think (its > wierd)...t

RE: Best practice updating data in webapps?

2004-11-24 Thread David G. Friedman
You could always program ahead of the curve and try to hook version control into your updating. Then, theoretically, you could "merge" each update instead of replacing content. I was searching for CVS compatible modules but thought subversion was better since it's "taking over" CVS sites one by o

Getting a regular expression from application.properties

2004-11-24 Thread Simon Matic Langford
I have a regular expression for date formatting (don't ask!) in our application.properties. This can change depending on user locale. I am trying to get the following value back: ^[0-9]'{'0,10'}'(,[0-9]'{'0,2'}')?$ However in MessageResources at line 346: format = new MessageFormat(escape(formatS

RE: smart navigation

2004-11-24 Thread David G. Friedman
Jack, I wrote almost the exact thing a week or so ago on this list for a Tiles issue. The idea was: He inserted random jsp's into a tile but wanted (without resubmitting to use the URL#anchor syntax) to make the page automatically scroll down to a particular inserted area. Sadly, my post wasn't

RE: Post Validation

2004-11-24 Thread David G. Friedman
Bill, Isn't setting the input to another action sort of a bad idea? Wouldn't that cause the framework to start all over internally - request processing everything from scratch and all that? Wouldn't forwarding to a tile with a tiles controller work better (i.e. less processing power) in that sit

Re: Setting checkboxes on/off from Javascript

2004-11-24 Thread dnz
Thank you for your reply. I tried your suggestion but still couldn't get to work. there's something else. I do get an object back but I think (its wierd)...the object I get is of type "hidden" (you know, the ' wrote: > hmm how about: > > document.forms[0].elements['somecheckbox'].checked =

RE: [OT] Plug for Geary's JSF book

2004-11-24 Thread Durham David R Jr Contr 805 CSPTS/SCE
> go to your bookstore or favorite online store and pick up Core > Java Server Faces by David Geary and Cay Horstmann. Since we're plugging, I'll mention that http://search.safaribooksonline.com/ has this book. - Dave ---

Re: Validator : network unreachable

2004-11-24 Thread Matt Bathje
I am pretty sure this error is related to invalid/outdated versions of validator and/or struts. Since you list an invalid validator version, I can't tell what you are using. I would try first seeing if the problem exists with the version of validator that ships with the version of struts you ar

Re: Validator : network unreachable

2004-11-24 Thread Niall Pemberton
I think you mean validator 1.1.3. These threads had similar issues - except they were using Struts 1.2.4 instead of 1.1. When you dropped in your new 1.1.3 validator jar, did you also upgrade the validator-rules.xml to the new version (with the 1.1.3 DOCTYPE) and did you change the DOCTYPE on you

Re: smart navigation

2004-11-24 Thread Dakota Jack
Smart navigation is a feature of the browser, allowing a page to be refreshed while keeping scroll position. Consequently, the use of this is in HTML, not JSP or ASP. They build it. Right? Jack On Wed, 24 Nov 2004 05:39:09 -0800 (PST), struts lover <[EMAIL PROTECTED]> wrote: > Hello Everyone,

Re: Validator : network unreachable

2004-11-24 Thread Derek Broughton
On Wednesday 24 November 2004 11:07, [EMAIL PROTECTED] wrote: > Probably trying to do xml validation using the dtd specified on the > doctype. Save dtd locally (and change reference) or make sure you have a > network path to jakarta.apache.org > Thanks, Jeff. I'm using tiles, and I do recall seein

RE: Validator : network unreachable

2004-11-24 Thread Simon Matic Langford
why doesn't validator use an entity resolver to pull the dtd out of the jar? > > > Probably trying to do xml validation using the dtd specified on the > doctype. Save dtd locally (and change reference) or make sure > you have a > network path to jakarta.apache.org > > JC > > > > >

Re: Post Validation

2004-11-24 Thread Guillaume Cottenceau
Lee Harrington writes: > I'm using DynaValidator forms. Works great, except when you have pick [...] Please don't hit "answer" on a random message in your email program when you want to start a new thread. Your email program keeps track of what message it thinks you were answering (the Referen

Re: Validator : network unreachable

2004-11-24 Thread Guillaume Cottenceau
Derek Broughton writes: > I'm running Validator 1.3.1, Apache 2.0.52, Tomcat 4.1.30, Struts 1.1 on a > Debian Linux system. When connected to the net, Tomcat starts fine. When > unconnected, I get the following message in catalina*.log. Why on earth does > Validator need to reach the web?

Re: smart navigation

2004-11-24 Thread Dakota Jack
Also, if you want similar things with other browsers, here is a Mozilla deal: function SetScrollTo(strControlID) { var objControl=document.getElementById(strControlID); document.body.scrollTop = objControl.offsetTop; //maybe object is not focusable, hidden or disabled. try { objControl.focus();

Re: Validator : network unreachable

2004-11-24 Thread Jeff_Caswell
Probably trying to do xml validation using the dtd specified on the doctype. Save dtd locally (and change reference) or make sure you have a network path to jakarta.apache.org JC

Re: [OT] Plug for Geary's JSF book

2004-11-24 Thread Duncan Mills
+1 Core JavaServer Faces certainly has the clearest explanation of JSF Eventing that I've found Regards Duncan Mills http://www.groundside.com/blog Rick Reumann wrote: Sorry if this hits the list twice. I think my works outgoing server pegged it as Spam.. If you are Struts person thinking abou

AW: nullpointer in struts-tag

2004-11-24 Thread Rinnert, Wolfgang
Problem solved. The bad DataSource definition indeed killed my application. After reading some more docu, I decided to put the database parameters into the resources directory and do the actual connection in a "business logic" class. Whoops, it works .. Thanks for your support! Mit freundlichen G

Re: [OT] quick JSF question.. can it handle nested VOs easily?

2004-11-24 Thread Duncan Mills
Additionally if it'll make you feel warm and fuzzy (?) , The Oracle ADF Faces distribution includes a forEach component which acts just like a JSTL tag for iterating through collections within a manged bean . Regards Duncan Mills http://www.groundside.com/blog Craig McClanahan wrote: On Tue,

Re: Post Validation

2004-11-24 Thread Bill Siggelkow
You're on the right path, Lee. Instead of setting the "input" to the JSP, set it to an action, which creates your pick lists and stuffs them in the request, that precedes the JSP. -Bill Siggelkow Lee Harrington wrote: I'm using DynaValidator forms. Works great, except when you have pick lists a

Re: HI Everybody

2004-11-24 Thread Andrew Hill
But first take a trip to read this FAQ: http://www.catb.org/~esr/faqs/smart-questions.html ;-) Bill Siggelkow wrote: Bikram, It is really bad etiquette (sic) to repost the same question with a different subject. Please post this question to the OJB mailing lists. You'll find information on this

Re: Setting checkboxes on/off from Javascript

2004-11-24 Thread Andrew Hill
hmm how about: document.forms[0].elements['somecheckbox'].checked = false; any luck with that? The value property is whats submitted when you submit, so its the checked property your after, but Id have thought that your document.getElementById("somecheckbox") should work? Maybe it needs an expli

Re: how do i get context-param

2004-11-24 Thread Bill Siggelkow
MyServlet extends HttpServlet { public void init (ServletConfig config) { String paramValue = config.getInitParameter("myContextParamName"); } } Personally, I have found the JavaDocs invaluable for this kind of stuff; you can find the Servlet 2.4 Javadocs online at http://jakarta.apache.o

Re: HI Everybody

2004-11-24 Thread Bill Siggelkow
Bikram, It is really bad etiquette (sic) to repost the same question with a different subject. Please post this question to the OJB mailing lists. You'll find information on this list at http://db.apache.org/mail.html. -Bill Siggelkow Bikram B Kapoor wrote: Hi All, I am not a newbie in struts,

Setting checkboxes on/off from Javascript

2004-11-24 Thread dnz
Hi all. I have a struts form bean to populate data on my JSP page which works perfectly fine. I use a boolean attribute in my form bean to set the checkbox control (at page load time) based on the boolean value. I'm using the

Re: XTag problem

2004-11-24 Thread Bill Siggelkow
Though I haven't used the xtags, it looks like to me that the tag is expecting a Reader not a String. You could probably make it work by doing something like this: <% StringReader xml = new StringReader((String) request.getAttribute("xmlString")); %> -Bill Siggelkow Nishant wrote: hi to all,

Post Validation

2004-11-24 Thread Lee Harrington
I'm using DynaValidator forms. Works great, except when you have pick lists and a validation fails. When the validation fails, it calls the form, but the code that puts the pick lists in the request scope isn't rerun. No biggieI put my lists in the session scope. However, I don't want them

smart navigation

2004-11-24 Thread struts lover
Hello Everyone, I wanted to know if smart navigation is possible in JSP with Struts as it is with ASP.Net. If yes, I would like to know it. Any help would be appreciated. Thanks everyone. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spa

Re: [OT] Plug for Geary's JSF book

2004-11-24 Thread Bill Siggelkow
I also recently got this book and am enjoying it so far ... I met David Geary at the recent Atlanta No Fluff Just Stuff conference ... his talks on JSF and Tiles were excellent and down-to-earth ... his (and Cay's) writings reflect these qualities as well. -Bill Siggelkow Rick Reumann wrote: So

Re: http://marc.theaimsgroup.com/ down and out?

2004-11-24 Thread Dakota Jack
Thanks, Joe! With gmane, it starts out with the GUI I really like: simple, direct, easy to use. Then, after a search, it turns to this GUI I really hate: cluttered, busy, hard to read. Is there a way to get it to stick to the first GUI? I have looked around and cannot find it. Jack On Wed, 2

Validator : network unreachable

2004-11-24 Thread Derek Broughton
I'm running Validator 1.3.1, Apache 2.0.52, Tomcat 4.1.30, Struts 1.1 on a Debian Linux system. When connected to the net, Tomcat starts fine. When unconnected, I get the following message in catalina*.log. Why on earth does Validator need to reach the web? In the first place, my Tomcat is l

Re: startup class

2004-11-24 Thread Andrew Hill
Plugins are indeed what you are looking for. Nathan Coast wrote: Hi, Is there any way to execute some code when a module loads? I could write servlets with the code in the init method and then declare them in the web.xml. However I'd like to do this on a per-module basis without having to add

how do i get context-param

2004-11-24 Thread Nishant
hi can anyone tell me how can i get context-param parameter in my servlet . thanks in advance Regards Nishant Patil Software Engineer Cybage Softwares Pvt. Ltd. (A CMM Level 3 Company) West Avenue, Kalyaninagar Pune - 411006 Ph. +91-20-4044700/4041700 Extn 355 [EMAIL PROTECTED] www.cybage.com "Th

Re: DynaValidatorForm 'forgets' request-attribute on redisplay after validation

2004-11-24 Thread Adam Hardy
On 11/23/2004 02:20 PM Joe Germuska wrote: Your action isn't executed if validation fails. However, the validation is performed on a second request, so the object placed into the scope before the form was presented is no longer there. If your categories are really relatively static, consider ma

Re: Struts + OJB

2004-11-24 Thread Daniel H. F. e Silva
Hi Bikram, Maybe you should post your problem in ojb list. It is clear to me that it is an OJB issue. Regards, Daniel Silva. --- Bikram B Kapoor <[EMAIL PROTECTED]> wrote: > Hi All, > > I am not a newbie in struts, i am trying to implement OJB with struts. I > picked up reference from Sourc

Re: error params in html taglib

2004-11-24 Thread Adam Hardy
On 11/23/2004 05:44 PM Daniel Perry wrote: I've just noticed in the html taglib documentation that various fields: errorKey, errorStyle, etc have appeared. Can anyone point me to any documentation on how these work? ie. errorStyle "CSS styles to be applied to this HTML element if an error exists

startup class

2004-11-24 Thread Nathan Coast
Hi, Is there any way to execute some code when a module loads? I could write servlets with the code in the init method and then declare them in the web.xml. However I'd like to do this on a per-module basis without having to add to the web.xml. Are plugins what I'm looking for? -- Nathan Coas

RE: Best practice updating data in webapps?

2004-11-24 Thread Paul McCulloch
The approach you describe is known as optimisitic locking. The alternative approach is pessimistic locking, where you mark the records to be updated as locked at the time you get the records from the datasource. No other process will be allowed to lock the records at the same time - so no two use

RE: File upload.

2004-11-24 Thread Paul McCulloch
I don't use DynaForms, so I may be way off the mark, but in my ActionForms I declare the file fields to be of type org.apache.struts.upload.FormFile. My understanding of local classes is that they can only be used by the declaring class - is my understanding wrong? Paul > -Original Message-

Re: http://marc.theaimsgroup.com/ down and out?

2004-11-24 Thread Joe Germuska
At 8:43 PM -0800 11/23/04, Dakota Jack wrote: Anyone know what is up with this? I see on http://marc.theaimsgroup.com/?q=about some notes about adding a dedicated server for searching, dated about a month ago. Maybe something didn't go smoothly with that. I find GMANE a nicer archive anyway: htt

  1   2   >