struts 1.2.7 culprit.....?????

2005-10-12 Thread bib_lucene bib
okgot it to work...But here is the catch. I got it to work with struts.jar details of which are ...Manifest-Version: 1.0Extension-Name: Struts FrameworkSpecification-Title: Struts FrameworkSpecification-Vendor: Apache Software FoundationSpecification-Version: 1.1Implementation-Title: Struts

App reload and session variables

2005-10-12 Thread Daniel Łaś
Hi I'm using Tomcat 5.0.x When I reload application sessions are available, but there are no session variables. How can I avbid this? regards -- Daniel Łaś [EMAIL PROTECTED] e-direct Polska sp. z o.o. ul. 1-go Maja 9 45-068 Opole tel. +48 77 44 17 868

Re: App reload and session variables

2005-10-12 Thread Gareth Evans
Hi, I'm guessing your talking about session attributes as in 'session.setAttribute' ... Trying making all the objects that you store within the session Serializable. Regards, Gareth Daniel Łaś wrote: Hi I'm using Tomcat 5.0.x When I reload application sessions are available, but there

Re: App reload and session variables

2005-10-12 Thread Daniel Łaś
Hi Big thanks :) It helped. Regards Gareth Evans napisał(a): Hi, I'm guessing your talking about session attributes as in 'session.setAttribute' ... Trying making all the objects that you store within the session Serializable. Regards, Gareth Daniel Łaś wrote: Hi I'm using Tomcat

Re: Why I Hate Struts Modules

2005-10-12 Thread James Mitchell
http://www.junlu.com/msg/93974.html -- James Mitchell Software Engineer / Open Source Evangelist Consulting / Mentoring / Freelance EdgeTech, Inc. http://www.edgetechservices.net/ 678.910.8017 AIM: jmitchtx Yahoo: jmitchtx MSN: [EMAIL PROTECTED] Skype: callto://jmitchtx On Oct 12, 2005,

Free Database Graphical Tool

2005-10-12 Thread Gaet
Hello, i'm sure it's not the right place but maybe some of you can help me... Do you know a Free Database Graphical Tool that allow to insert/update/delete in a graphical manner (like clicking into a cell as with Excel)? If an Eclipse plugin can do that I'm intersted also... Thanks

Re: Free Database Graphical Tool

2005-10-12 Thread James Mitchell
I use DBVisualizer. It is a swing app that lets you use any JDBC driver. There is a free version available... http://www.minq.se/products/dbvis/ -- James Mitchell Software Engineer / Open Source Evangelist Consulting / Mentoring / Freelance EdgeTech, Inc. http://www.edgetechservices.net/

Re: Free Database Graphical Tool

2005-10-12 Thread Ronald Holshausen
SquirrelSQL is another one, and I prefer it to some of the commercial ones. On 12/10/05, James Mitchell [EMAIL PROTECTED] wrote: I use DBVisualizer. It is a swing app that lets you use any JDBC driver. There is a free version available... http://www.minq.se/products/dbvis/ -- James

Re: Free Database Graphical Tool

2005-10-12 Thread Vic Cekvenich
SQuriel client has a Eclipse plugin version (on eclipse plugins page is where you'd search for plugins). I use SQLyog (windoze only... but Mac and Linux have Windoze emulators). .V - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: findforward w/session objects

2005-10-12 Thread gramani
Chris Pat [EMAIL PROTECTED] wrote on 10/11/2005 05:31:03 PM: Hello When I use the code below the Action playThis claims the file attribute is null. It is not unless I am loosing the session on the findforward. How can I store a value in the session and forward to an Action? The first

Re: Example not working: Fill the value of a hidden field from a props-file

2005-10-12 Thread Ed Griebel
You can't nest tags like that. Try this instead: html:hidden property=methodToCall bean:message key=login.format.test/ /html:hidden On 10/12/05, starki78 [EMAIL PROTECTED] wrote: Hi, my goal is to dynamically set the value of a hidden field from a Ressources- File: html:hidden

Re: Free Database Graphical Tool

2005-10-12 Thread 梁炳場
How about SQLExplorer. It also has Eclipse plugin. 2005/10/12, Vic Cekvenich [EMAIL PROTECTED]: SQuriel client has a Eclipse plugin version (on eclipse plugins page is where you'd search for plugins). I use SQLyog (windoze only... but Mac and Linux have Windoze emulators). .V

Re: Example not working: Fill the value of a hidden field from a props-file

2005-10-12 Thread starki78
-- Initial Header --- From : Ed Griebel [EMAIL PROTECTED] To : Struts Users Mailing List user@struts.apache.org Cc : Date : Wed, 12 Oct 2005 09:31:02 -0400 Subject : Re: Example not working: Fill the value of a hidden field from a props-file Oh thank

Re: validator. i need help

2005-10-12 Thread Martin Gainty
Here is an example of subclassing DynaValidatorActionForm with validation-rules.xml outlined Miren- Great article located here detailing validator-rules.xml identified validator.xml which contains field depends clause identifiying the field to validate good example of inlining JavaScript thru

Re: findforward w/session objects

2005-10-12 Thread Chris Pat
Hi Geeta Thank you. Even though it is a major point, I am getting killed by syntatic problems. I know the sophisticated issues but the blocking tackling is my present downfall. I feel like I am the teacher and student in the Jaime Escalante story, grin. --- [EMAIL PROTECTED] wrote: Chris

Re: Example not working: Fill the value of a hidden field from a props-file

2005-10-12 Thread Ed Griebel
OK, try setting a bean to the value of the message and then output the value of the bean, something like this: bean:define id=msg bean:message key=login.format.test/ /bean:define html:hidden property=methodToCall value=%=msg%/ Or, you can use the struts-el taglibs this way: c:set var=msg

Forwarding to an unknown action

2005-10-12 Thread Benjamin Lerman
Hi all, I'm trying to do the following: I have a custom action that check if a user is logged in. If it is not, this action forward to a login action. Now my problem is, how can I have the login action forward back to the page the user tried to reach before being forwarded to the login

Print out Bean value

2005-10-12 Thread Troy Bull
Hello I have a form bean that is changed in an action. I set one attribute secret then on the next jsp I want to display this. If I do html:text property=secret/ a text box appears with the correct value in it. My problem is i dont want it in a text box I just want to display the text.

action class not being called for repeat initial requests when using validation

2005-10-12 Thread John Andrews
I have the action mapping below in my struts config file: action path=/packageActionCreateT type=struts.actions.packages.PackageAction name=PackageForm input=/pages/createPackage.jsp parameter=dispatch scope=session

Re: Print out Bean value

2005-10-12 Thread Martin Gainty
Troy jsp:UseBean id=IdOfUseBean scope=Request .. jsp:getProperty property=IdOfUseBean property=PropertyName .. bean:write name=IdOfUseBean property=PropertyName scope=request courtesy of JavaBoutique http://javaboutique.internet.com/tutorials/StrutsTags/bean_tags.html HTH, Martin - Original

Re: Is the best way to have multiple struts-config.xml andtiles-defs.xml files, modules?

2005-10-12 Thread Kishore Senji
I think a Filter would be ideal for this. Based on the users locale, (or any logic which identifies a webpage of particular language) the Filter can maintain the number of hits. On 10/12/05, Bryon Lape [EMAIL PROTECTED] wrote: Along similar lines, I have a question of using modules for

Re: findforward w/session objects

2005-10-12 Thread Chris Pat
Hi Geeta, et. al I typed too soon. I am still getting a servlet error even with this modified code and not getting a the println produced. playThis action: HttpSession session = request.getSession(false); if (session == null) System.out.println(null session); String file =

Re: Why I Hate Struts Modules

2005-10-12 Thread Dave Newton
Joe Germuska wrote: I've used modules in the past, but I too found the walls too high; since the only real functionality I wanted was splitting config files, once I realized there are other ways to do that, I stopped using modules. +1 Checkout problems aren't a good reason for using modules

Re: findforward w/session objects

2005-10-12 Thread gramani
Chris Pat [EMAIL PROTECTED] wrote on 10/12/2005 11:29:41 AM: Hi Geeta, et. al I typed too soon. I am still getting a servlet error What error are you getting? That String file below is null? Maybe the error is differnet from what you think it is..? If not, this is strange. I have set

changing log4J configuration during run time

2005-10-12 Thread Deep Chand
Hi, In log4J, if I change the configuration i.e. increase/decrease the level of a particular logger or add more appenders/categories in the config file, then do I have to restart the web server for that setting to take effect. What I understand from the documentation is that if I use

Re: [OT] how actually to make a shoping cart

2005-10-12 Thread Danny Lee
Oh no, don't show the shopping cart - view. Most user prefer to see the same thing what they saw after clicking on add to cart. Just change the ## products in your cart cost ### string somewhere in your layout. BTW it's nothing bad if the user sees top of the search-result list after add

Re: DynaActionForm, Boolean checkboxes, and Initial

2005-10-12 Thread katre
Okay, I went back and created the smallest app that shows this problem. It can be downloaded from http://www.henchmonkey.org/struts-test.zip . The basic problem, as before, is that it is totally impossible in struts to default a checkbox to true, and still be able to detect when it is uncheked by

Re: action class not being called for repeat initial requests when using validation

2005-10-12 Thread Martin Gainty
John There are a number of solutions I would suggest looking at JBuilder doc located at http://bdn.borland.com/borcon2004/article/paper/0,1963,32246,00.html the fastest way is for your button to route to your jsp page is to route to the page identified by the action mapping in

Re: Forwarding to an unknown action

2005-10-12 Thread Danny Lee
I've tried to find a solution to absolutely same problem, with no result (ok-ok, I haven't tried TOO hard). So now I just go back to the welcome-page, which is OK too ;) But you can find couple of solutions here, I was too lazy to give a shot:

Re: Free Database Graphical Tool

2005-10-12 Thread Danny Lee
I like my SQLyog-Tool, using it for couple of years now. It's really fast, unproblematic and simple to use. Cheers Danny - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Why I Hate Struts Modules

2005-10-12 Thread Hubert Rabago
Paul, You can declare something like a struts-config-common.xml which will contain the config items that are common among your modules and then include them in your config declarations: param-nameconfig/param-name param-value /WEB-INF/classes/elms/resource/struts-config-common.xml,

Re: DynaActionForm, Boolean checkboxes, and Initial

2005-10-12 Thread Dave Newton
katre wrote: The basic problem, as before, is that it is totally impossible in struts to default a checkbox to true, and still be able to detect when it is uncheked by a user. Wow. All those apps of mine, ruined ;) Someone, please prove me wrong! Tell me struts isn't this limited! Tell

Re: Forwarding to an unknown action

2005-10-12 Thread Benjamin Lerman
But you can find couple of solutions here, I was too lazy to give a shot: http://forum.java.sun.com/thread.jspa?threadID=614714messageID=3411424 Thanks a lot for the URL. A method that just keep request.getRequestURI() and do a sendRedirect to this value works very well... --

Re: DynaActionForm, Boolean checkboxes, and Initial

2005-10-12 Thread katre
Dave Newton wrote: katre wrote: The basic problem, as before, is that it is totally impossible in struts to default a checkbox to true, and still be able to detect when it is uncheked by a user. Wow. All those apps of mine, ruined ;) Well, I figured, since no one replied to my first

Re: DynaActionForm, Boolean checkboxes, and Initial

2005-10-12 Thread Dave Newton
katre wrote: Right, and this does work, but it requires having a separate action leading to every form. Why _wouldn't_ forms have separate actions? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: ActionMessages not displayed in the UI

2005-10-12 Thread Dave Newton
[EMAIL PROTECTED] wrote: Errors are displayed as I expect through my validation.xml but no error is displayed when it goes through my action class. Any ideas why? protected ActionForward errorToInput(final HttpServletRequest request_, final ActionMapping mapping_, final String errorKey_,

Re: DynaActionForm, Boolean checkboxes, and Initial

2005-10-12 Thread katre
Dave Newton wrote: katre wrote: Right, and this does work, but it requires having a separate action leading to every form. Why _wouldn't_ forms have separate actions? A lot of my forms (for example, search forms) don't need any special prepopulation (or just get prepopulation from the

RE: action class not being called for repeat initial requests when using validation

2005-10-12 Thread John Andrews
Hi Martin, Thanks for your suggestion. Basically the problem that I have is that my action class is only being called intermittently - the rest of the time I am just being sent straight to the jsp that I want to display - without ever getting into the action class. This is causing a major

Re: changing log4J configuration during run time

2005-10-12 Thread Jeff Beal
We have a super-secret (that is, not linked to) URL in our application that we can use to trigger a Log4J reload. We don't have to restart the server, but we also don't have to worry about the possibility of configureAndWatch() taking *any* cycles from our production box. (Since I put in this

Re: DynaActionForm, Boolean checkboxes, and Initial

2005-10-12 Thread Michael Jouravlev
On 10/12/05, katre [EMAIL PROTECTED] wrote: Um, well, what _I've_ been doing is setting the appropriate ActionForm value before I display the form, not in reset but in the Action's execute method (reset works too, but because I've never used validate=true I'm doing setup stuff in the

[FORMDEF] Resetting booleans for session-scoped dynaforms

2005-10-12 Thread Michael Jouravlev
If Struts is about community and bringing people and Struts-related tools together, not about one particular product anymore, then I'd ask this question right here. The question is inspired by katre's interest in checkboxes inside dynaforms. I guess, there should be no problem with request-scoped

Re: DynaActionForm, Boolean checkboxes, and Initial

2005-10-12 Thread katre
Michael Jouravlev wrote: More importantly (and getting back to my original question), it means that when using a dyna form, you can't use the initial attribute for properties. You have to write code to set them to the default value in that separate action (and thus separating the form

Re: [FORMDEF] Resetting booleans for session-scoped dynaforms

2005-10-12 Thread Hubert Rabago
Wow, you've got good timing, because someone is calling for this very feature in FormDef, patch provided: https://formdef.dev.java.net/issues/show_bug.cgi?id=2 The quick answer to your question is no. FormDef doesn't meddle with how Struts populates the form. It's more of a utility class you

Re: DynaActionForm, Boolean checkboxes, and Initial

2005-10-12 Thread Michael Jouravlev
On 10/12/05, katre [EMAIL PROTECTED] wrote: Michael Jouravlev wrote: More importantly (and getting back to my original question), it means that when using a dyna form, you can't use the initial attribute for properties. You have to write code to set them to the default value in that

Re: changing log4J configuration during run time

2005-10-12 Thread abhay . b . chaware
By saying not linked to , do you mean its an action loading a JSP , and is NOT called from any of the pages / buttons etc ? Hiding it from the application user world ? What does this JSP do internally ? Thanks abhay ~~ You can easily

Using RBAC and tiles to dynamically display menu items

2005-10-12 Thread Chris Loschen
Hi experts! We're using struts 1.1 and rbac 2.0a. We have some menu items set up like this in our tiles-defs.xml file: bean id=Hierarchy classtype=com.xxx.core.menus.RITilesMenuBean set-property property=roles value=ALL_ADMIN/

Re: Why I Hate Struts Modules

2005-10-12 Thread Michael Jouravlev
On 10/11/05, David G. Friedman [EMAIL PROTECTED] wrote: Paul, See, after all these years, I really wanted was to split files up. Modules don't gain me anything, do they? I know (or I think) when Craig wrote Struts 0.x, he had an action.xml which did something similar Now I could

Re: [FORMDEF] Resetting booleans for session-scoped dynaforms

2005-10-12 Thread Michael Jouravlev
That would be great, but please don't forget the request type. Usually I need to do this for POST requests only, this separation by type is really important to me. So instead of reset=true I would rather have: form-property name=someFlag type=java.lang.String initial=true reset=POST/

Re: [FORMDEF] Resetting booleans for session-scoped dynaforms

2005-10-12 Thread Hubert Rabago
I'm not sure we're understanding each other about this request type. When a form is submitted, here's what happens: * Struts receives a request for an action * Struts sees that a form was configured for the mapping, so it calls retrieves the form (if it can find it) or creates a new one

Re: changing log4J configuration during run time

2005-10-12 Thread Jeff Beal
I just mean that none of the other pages in the application link to it, so chances are pretty good that nobody who doesn't know about will find out about it. All it does internally is call the Log4J DOMConfigurator.configure() method and write a simple success message to the user. You can

Re: [FORMDEF] Resetting booleans for session-scoped dynaforms

2005-10-12 Thread Michael Jouravlev
On 10/12/05, Hubert Rabago [EMAIL PROTECTED] wrote: I'm not sure we're understanding each other about this request type. When a form is submitted, here's what happens: * Struts receives a request for an action * Struts sees that a form was configured for the mapping, so it calls retrieves

Using the StrutsPleaseWait solution with dynaforms

2005-10-12 Thread Richard Yee
Has anyone used the StrutsPleaseWait solution from the Struts Wiki with DynaForms? It seems that the code in the example doesn't handle DynaActionForms correctly because org.apache.commons.beanutils.BeanUtils.cloneBean() is used to clone the form. Has anyone else arrived at the same conclusion? I

Re: [FORMDEF] Resetting booleans for session-scoped dynaforms

2005-10-12 Thread Hubert Rabago
Still not quite getting you. Are you saying that reset will be called during your GET? Is this because you've configured your action with the same form? On 10/12/05, Michael Jouravlev [EMAIL PROTECTED] wrote: If you're prepopulating your form, none of this matters, since either (1) you'll

Trouble with html:link and params

2005-10-12 Thread Faisal Mahmoud
I need to construct a table of files available for download. A file is downloaded by hitting the /download.do?jobId=2 action. The info for each row in the table is stored in an action form called retrieveJobsFormBean. This actionform contains a List of DownloadJob objects. Each of these objects is

Re: Trouble with html:link and params

2005-10-12 Thread Jeff Beal
On 10/12/05, Faisal Mahmoud [EMAIL PROTECTED] wrote: I need to construct a table of files available for download. A file is downloaded by hitting the /download.do?jobId=2 action. The info for each row in the table is stored in an action form called retrieveJobsFormBean. This actionform

Re: Validation Configuration for Multiple Modules

2005-10-12 Thread Adam Hardy
[EMAIL PROTECTED] on 11/10/05 07:20, wrote: I'm using *Struts 1.1* to build an application with multiple Struts modules. I put my validations for each module in a seperate validations.xml file. For example, I have validations-a.xml for module a and validations-b.xml for module b. I then

Re: Trouble with html:link and params

2005-10-12 Thread Faisal Mahmoud
Actually, what I did was the following change to my html:link html:link action=downloadFile.do paramId=jobId paramName=job paramProperty=jobId So I changed teh paramName to job, which is the variable that refers to the bean during the iteration. On 10/12/05, Jeff Beal [EMAIL PROTECTED] wrote:

Re: [FORMDEF] Resetting booleans for session-scoped dynaforms

2005-10-12 Thread Michael Jouravlev
On 10/12/05, Hubert Rabago [EMAIL PROTECTED] wrote: Still not quite getting you. Are you saying that reset will be called during your GET? Is this because you've configured your action with the same form? It is not *my* GET ;-) Ok, I will try to analyze what happens on request, please

Re: [FORMDEF] Resetting booleans for session-scoped dynaforms

2005-10-12 Thread Hubert Rabago
On 10/12/05, Michael Jouravlev [EMAIL PROTECTED] wrote: It is not *my* GET ;-) Ok, I will try to analyze what happens on request, please correct me if I am wrong. HTML form is submitted to an action (in 99% of cases via POST); 1) RequestProcessor.process() is called: 2) ActionForm form

Re: startup time validator validation?

2005-10-12 Thread Adam Hardy
David G. Friedman on 11/10/05 20:58, wrote: Wouldn't XDoclet's Struts Validator features work for you in this regard? It wouldn't be i nthe JSP or at startup but at build/compile time. See: http://xdoclet.sourceforge.net/xdoclet/tags/[EMAIL PROTECTED] David, that looked tantalising but

Re: changing log4J configuration during run time

2005-10-12 Thread Martin Gainty
You must be referring to Ted Husted's article on hiding entry points where he discourages use of html:link and possible obfuscation of entry points http://www.jguru.com/faq/view.jsp?EID=741079 Martin- Support American industry Caterpillar Engines - Made by Americans for Americans

Re: [FORMDEF] Resetting booleans for session-scoped dynaforms

2005-10-12 Thread Hubert Rabago
On 10/12/05, Michael Jouravlev [EMAIL PROTECTED] wrote: I really want to use your stuff, but I need to differentiate between request types (more generally, between input and output phases, but in 95% of cases it boils down to request type). It seems your concerns are outside the scope of

Re: ActionMessages not displayed in the UI

2005-10-12 Thread paul
Thanks Dave that worked... my errors.jsp is pasted below. So I used two sets of tags one for the struts validation errors and one for the action errors. It would have been more elegant using only 1 set of tags but I guess this works just fine. %@ page contentType=text/html;charset=UTF-8

Re: Why I Hate Struts Modules

2005-10-12 Thread Adam Hardy
Hubert, does that work for all config items including global exceptions etc, as was discussed earlier? Adam Hubert Rabago on 12/10/05 17:09, wrote: Paul, You can declare something like a struts-config-common.xml which will contain the config items that are common among your modules and

[OT] Servlet 2.5, what is the right JSR?

2005-10-12 Thread Leon Rosenberg
Hi, There are a lot of google entries about servlet 2.5 spec, but I fail to find the JSR for it. The JSR 154 states itself as 2.4 (shorty in maintenance review), but offers a 2.5 download. Now is this the http://www.jcp.org/aboutJava/communityprocess/maintenance/jsr154/index3.html official 2.5

Re: ActionMessages not displayed in the UI

2005-10-12 Thread Dave Newton
[EMAIL PROTECTED] wrote: Thanks Dave that worked... my errors.jsp is pasted below. So I used two sets of tags one for the struts validation errors and one for the action errors. It would have been more elegant using only 1 set of tags but I guess this works just fine. That's actually what I

Re: [FORMDEF] Resetting booleans for session-scoped dynaforms

2005-10-12 Thread Michael Jouravlev
So, returning back to what should be done: the checkbox values should be cleared, before they are populated with request values. And this is what Struts does now, assuming you have the correct code in reset(). http://struts.apache.org/userGuide/struts-html.html#checkbox I am telling you

java.lang.NullPointerException at org.apache.struts.action.RequestProcessor.getServletContext(RequestProcesso r.java:1136)

2005-10-12 Thread Malik, Yousuff M
I need help. I am getting the following exception when I try to login in my web application I am using struts 1.1 and weblogic 7.0. Below is the stack trace Oct 12, 2005 8:57:42 PM GMT Error HTTP 101017 [ServletContext(id=130706 4407,name=web,context-path=/seal)] Root cause of

Re: findforward w/session objects

2005-10-12 Thread Leon Rosenberg
session.setAttribute(file, temp); vs. request.getAttribute(file); you know that request and session are different scopes? change the second line to request.getSession().getAttribute(file); regards leon On 10/11/05, Chris Pat [EMAIL PROTECTED] wrote: Hello When I use the code below the Action

Re: ActionMessages not displayed in the UI

2005-10-12 Thread paul
... system-oriented error types never run. Dave When I was using an older version of Struts I used ActionErrors and I could get away with just one set of jsp tags. I guess they have been deprecated for a good reason. Anyhow, when I get time I'll move the validation from my action class

Re: [FORMDEF] Resetting booleans for session-scoped dynaforms

2005-10-12 Thread Hubert Rabago
On 10/12/05, Michael Jouravlev [EMAIL PROTECTED] wrote: I am telling you that checkbox values should be cleared, you are telling me that reset() is get called. Don't you think these are different things? ;-) I don't think there are any disagreements there. :) We're discussing clearing these

Re: [FORMDEF] Resetting booleans for session-scoped dynaforms

2005-10-12 Thread Hubert Rabago
On 10/12/05, Michael Jouravlev [EMAIL PROTECTED] wrote: Well, that means that I should patch RequestProcessor/RequestUtils myself. Thanks for clarification. Still, that enhancement in Bugzilla, it is important despite the fact that it is outside of FormDef's scope. All I am asking for is to do

container-managed security and struts

2005-10-12 Thread Adam Hardy
Hi All, I want to stick with container-managed security and I would like to have form-based login on servlet 2.4 (tomcat 5), with SSL encryption on the login form but then switch back out of SSL for the remainder of the session (mostly). I tried this 18 months ago and if my memory serves me

Re: container-managed security and struts

2005-10-12 Thread Dave Newton
Adam Hardy wrote: I tried this 18 months ago and if my memory serves me well, in tomcat 5, if I switch the request back out of SSL with a redirect or similar, I can no longer see the SSL session (and am effectively not logged in anymore). Is there an easy way around this? A javascript

Re: Resetting booleans for session-scoped dynaforms

2005-10-12 Thread Hubert Rabago
Hope you don't mind me trying again here (and removing FormDef from the subject). I see two scenarios. action path=/edit type=PrepareFormAction/ action path=/save type=SubmitFormAction name=myForm input=/edit.jsp/ in PrepareFormAction, you'd: DynaActionForm myForm = (DynaActionForm)

[OT] Re: ActionMessages not displayed in the UI

2005-10-12 Thread Dave Newton
[EMAIL PROTECTED] wrote: I'm not so sure about using different style for front end and back end errors - great for a developer but confusing for a user (of a consumer site) I display form errors within the form itself (with a non-radical message saying they screwed up) and system errors in

Re: [FORMDEF] Resetting booleans for session-scoped dynaforms

2005-10-12 Thread Dave Newton
Hubert Rabago wrote: On 10/12/05, Michael Jouravlev [EMAIL PROTECTED] wrote: Do you want to say, that Struts somehow gets to know that a form was submitted? How exactly does it do that? Can you show it in the code? There is nothing in request which says this stuff comes from an HTML form.

Re: Why I Hate Struts Modules

2005-10-12 Thread Don Brown
Why not have the best of both? I've found this trick to be handy: 1. Define a common config file that contains items you want to share 2. For each module, specify both the common and module-specific configuration file. At runtime, they will be treated as if they were one big file to begin with.

Re: Resetting booleans for session-scoped dynaforms

2005-10-12 Thread Hubert Rabago
On 10/12/05, Dave Newton [EMAIL PROTECTED] wrote: Hubert Rabago wrote: Regardless of your conventions for GET and POST, I still don't understand how a call to reset() when a form is submitted messes up your prepopulation routine when no forms are being submitted and reset() doesn't get

Re: Why I Hate Struts Modules

2005-10-12 Thread Hubert Rabago
Yes. Hubert On 10/12/05, Adam Hardy [EMAIL PROTECTED] wrote: Hubert, does that work for all config items including global exceptions etc, as was discussed earlier? Adam Hubert Rabago on 12/10/05 17:09, wrote: Paul, You can declare something like a struts-config-common.xml which

Re: container-managed security and struts

2005-10-12 Thread Adam Hardy
Dave Newton on 12/10/05 23:22, wrote: Adam Hardy wrote: I tried this 18 months ago and if my memory serves me well, in tomcat 5, if I switch the request back out of SSL with a redirect or similar, I can no longer see the SSL session (and am effectively not logged in anymore). Is there an

Re: Why I Hate Struts Modules

2005-10-12 Thread Paul Benedict
Frank, I didn't know this. I thought the only way to chunk up the Struts config was to define modules, because only one XML could be specified. well now that I know I can have one (default) module that contain all my configurations, I am chucking the modules. :-) Paul --- Frank W. Zammetti

Re: Is the best way to have multiple struts-config.xml andtiles-defs.xml files, modules?

2005-10-12 Thread Don Brown
Why wouldn't you want to use modules? I find them a great organizational tool and way to customize each request processor for its section. Don On 10/11/05, Preston CRAWFORD [EMAIL PROTECTED] wrote: No, in our case it's mostly to make the code manageable. We're putting code into separate

Re: Resetting booleans for session-scoped dynaforms

2005-10-12 Thread Michael Jouravlev
I do not use pre- and post- actions. I use only one action to prepare and display and to process input. Think ASP.NET or JSF. Therefore, I need to differentiate what phase I am in. I do not create form instance in an action class, I prefer it to be created for me. Here is the example from

Re: container-managed security and struts

2005-10-12 Thread Max Cooper
My memory of all this stuff is a bit foggy, and some of this is just plain speculative, so this post is sort of general (and maybe even wrong in some spots ;-) -- but I hope it might have some value in guiding you toward a solution... Some browsers (somewhat correctly, though somewhat

Re: Free Database Graphical Tool

2005-10-12 Thread 梁炳場
fabFORCE is a free too. It supports ER diagram. 2005/10/12, Danny Lee [EMAIL PROTECTED]: I like my SQLyog-Tool, using it for couple of years now. It's really fast, unproblematic and simple to use. Cheers Danny - To

Validator Error Message

2005-10-12 Thread Ganesh
Hi All, Iam using struts 1.2.7 and commons validator 1.1.4.. I made the validator working with these, but after a while, its not validating the jsp form for some reasons.. This following is the error message, I get when I try validating the form. -- 17:00:22,292 ERROR

Re: Struts action forms crossing sessions?Anyideawhythisishappening?

2005-10-12 Thread Andre Van Klaveren
I'm dieing to hear if you solved this issue. Sounds like a Hibernate caching problem after I read the rest of the posts. On 10/6/05, Preston CRAWFORD [EMAIL PROTECTED] wrote: Yes on the first one. We are calling session.invalidate() on logoff. Even more, if you close down the browser AND

Re: Print out Bean value

2005-10-12 Thread Sunil_Sahu
Troy, You can use bean:define tag to display the value as text. Here is example bean:define id=txtSecret name=formName property=secret/ show it like this : %=(String)txtSecret% Hope it helps. Sunil Troy Bull [EMAIL PROTECTED] 10/12/2005 08:25 PM Please respond to Struts Users Mailing List

RE: action class not being called for repeat initial requests when using validation

2005-10-12 Thread Sunil_Sahu
John, Can you explain your problem little bit more, i am not getting your problem exactly. Sunil John Andrews [EMAIL PROTECTED] 10/12/2005 10:16 PM Please respond to Struts Users Mailing List user@struts.apache.org To Struts Users Mailing List user@struts.apache.org, Martin Gainty [EMAIL

RE: startup time validator validation?

2005-10-12 Thread David G. Friedman
Adam, You can see a quick example of the @struts.validator xdoclet syntax on this guy's blog: http://www.raibledesigns.com/page/rd/20030226 But this one is much better: http://www.systemmobile.com/articles/XDocletDynaForms.html Does that help you see how XDoclet works with the Struts

RE: Free Database Graphical Tool

2005-10-12 Thread Zsolt
At http://squirrelsql.org I cannot see anything about eclipse. Can you help me please where I can find the eclipse plug-in. Zsolt -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Vic Cekvenich Sent: Wednesday, October 12, 2005 2:44 PM To: user@struts.apache.org