Re: Correct Prepopulate Method (simple problem)

2005-03-14 Thread nitin dubey
Hi Jack, I have been thinking of posting the same problem but was watching this thread to arrive at something that would help me.. Anyways, as you mentioned in this reply that it can be done using single Action, I am into the same. I want to populate the form using dispatch action. All the thin

Load message resources from DB???

2005-03-14 Thread Jason Long
Is it possible to load the message resources from a database instead of a file? If so can this be done without reloading the entire application? I would like to let users manage these. Thank you for your time, Jason Long CEO and Chief Software Engineer BS Physics, MS Chemical Engineering http:

Load message resources from DB???

2005-03-14 Thread Jason Long
Is it possible to load the message resources from a database instead of a file? If so can this be done without reloading the entire application? I would like to let users manage these. Thank you for your time, Jason Long CEO and Chief Software Engineer BS Physics, MS Chemical Engineering http:

RE: Struts Menu

2005-03-14 Thread Vijaya S
Hi Matt, Thanks very much for the reply. I use struts-menu version 2.3. My menu-config.xml is The jsp where the menu is incorporated looks like <%@ taglib uri="http://struts-menu.sf.net/tag"; prefix="menu" %> struts-config has the plugin

RE: Tiles does not function in case validation error?

2005-03-14 Thread David G. Friedman
Daniel, Why aren't you doing one of the following: 1. set your input from "/ChgPassword.jsp" to the tile "user.chgPassword". 2. change validate="true" to validate="false" then perform the validation call in your Action whenever you need it. That way, you'll know when validation fails and can se

Re: Correct Prepopulate Method (simple problem) SOLVED.

2005-03-14 Thread Nic Werner
Okay, after some review of my code and such, it is now working! There is not one definite thing, I just double-checked everything I had after taking a break. I want to thank everyone for their input (and patience) and the side emails making sure I was up and running. This is a great community,

Re: Typical Struts development team and distribution of tasks?

2005-03-14 Thread Craig McClanahan
On Fri, 11 Mar 2005 13:06:38 -0500, Ted Husted <[EMAIL PROTECTED]> wrote: > I still see both. The larger team, the more likely it is that people > start to specialized. But it is not unusual to see teams where > everyone can do everything, from code HTML to code Java to code SQL. > > -Ted. Ted's

Re: STRUTS PROJECT finding problem

2005-03-14 Thread Martin Gainty
Erik- I didnt get the attachment please resend M- - Original Message - From: "Eric Lemle" <[EMAIL PROTECTED]> To: Sent: Monday, March 14, 2005 5:24 PM Subject: STRUTS PROJECT finding problem What could cause this error See attached error message. Why can't it find the site? -Eric

Re: Using javascript to access nested form items

2005-03-14 Thread Frank W. Zammetti
That's what I thought, but I wasn't certain so I didn't say it. Both IE and Firefox handled it, at least to the extent that the fields of the inner form weren't lost or hidden or anything. I suppose that's a *form* of support :) -- Frank W. Zammetti Founder and Chief Software Architect Omnyte

Re: Using javascript to access nested form items

2005-03-14 Thread Hubert Rabago
or try something like: document.projectForm["projectStobsForms[1].estStaffCost"].value where "projectStobsForms[1].estStaffCost" matches what struts uses for the field names in the form controls. Hubert On Mon, 14 Mar 2005 17:45:33 -0500, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > At least

Re: Using javascript to access nested form items

2005-03-14 Thread Neil Erdwien
HTML doesn't support nested forms. In other words, is invalid HTML. The browsers likely just ignore the second FORM tag and treat it as one big form. But there no guarantees of that behavior. Frank W. Zammetti wrote: At least in IE: projectForm.estStaffCost.valu

Re: Using javascript to access nested form items

2005-03-14 Thread Frank W. Zammetti
At least in IE: projectForm.estStaffCost.value ...will get the value of the textfield. In fact, looking in the DOM inspector in Firefox, it is true there too. Seems "nested forms" is a bit of a misnomer... seems the elements of the second form show up in the object tree of the first. -- Frank

STRUTS PROJECT finding problem (adding attachment again, not sure why it said Part.001)

2005-03-14 Thread Eric Lemle
>>> [EMAIL PROTECTED] 03/14/05 3:24 PM >>> What could cause this error See attached error message. Why can't it find the site? -Eric - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTE

Using javascript to access nested form items

2005-03-14 Thread jelything
I have a struts 1.1 form with a nested form. I need to access textareas with javascript, but am not hitting the right syntax. Can anyone help me out? The main form is 'projectForm'. The nested form is 'projectStobsForms'. The textfield I'm trying to read/write is 'estStaffCost'. I've tried:

STRUTS PROJECT finding problem

2005-03-14 Thread Eric Lemle
What could cause this error See attached error message. Why can't it find the site? -Eric - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Output PDF

2005-03-14 Thread Andre Van Klaveren
Sounds like in 6.0 they went back to sending two extra requests instead of one extra. I'm assuming this from your statement. I haven't verified this with our application. The first request (the one generated by the user to get the PDF) should still have a valid userAgent (MSIE). The subsequent

RE: Output PDF

2005-03-14 Thread Scott Piker
This intrigued me, since our app also has some generated PDFs. Sure enough, there's a double-get occurring w/ our IE clients (IE 6.0). Problem is that the "USER_AGENT" header for get #1 & #2 are identical. In fact, the only difference I can see in all headers is that get #1 has an "ACCEPT-LANGU

Re: Output PDF

2005-03-14 Thread Andre Van Klaveren
Any time! Virtually, Andre Van Klaveren, SCP On Mon, 14 Mar 2005 14:51:37 -0600, Brad Balmer <[EMAIL PROTECTED]> wrote: > Thanks for the great response. This should take care of all my issues. > > -Original Message- > From: Andre Van Klaveren [mailto:[EMAIL PROTECTED] > Sent: Monday, M

Re: Output PDF

2005-03-14 Thread Andre Van Klaveren
Woh! IE *does not* use the URL to determine content type. It's determined by the MIME type sent back with the response from the server. And, by default, the option to have IE save encrypted data to disk is turned on, so there won't be an issue with PDFs and SSL unless Micro$oft has changed this

RE: Output PDF

2005-03-14 Thread Brad Balmer
Thanks for the great response. This should take care of all my issues. -Original Message- From: Andre Van Klaveren [mailto:[EMAIL PROTECTED] Sent: Monday, March 14, 2005 2:39 PM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: Output PDF I'm assuming that your browser clien

Re: Correct Prepopulate Method (simple problem)

2005-03-14 Thread Dakota Jack
Note that the key is not to think of the ActionForm as somehow being wedded to the page form. That is a crazy way to think. ///;-) On Mon, 14 Mar 2005 12:43:18 -0800, Dakota Jack <[EMAIL PROTECTED]> wrote: > No problem, Nic. Just trying to see what the problem is. Glad I > asked. I would not

Re: Output PDF

2005-03-14 Thread Larry Meadors
Why are you doing that in a jsp? You can do it in an action, but it will not work that well (but it will work better tahn in a jsp, i promise). The other issue is that a URL ending in /foo.do?name=value will not be seen by IE as a pdf. You should probably use a servlet for this instead, then you c

Re: Correct Prepopulate Method (simple problem)

2005-03-14 Thread Dakota Jack
No problem, Nic. Just trying to see what the problem is. Glad I asked. I would not have know this was it. So, your client on a browser is seeing a list of users, chooses a user, then has that users attributes displayed and can update them. Right? If so, this is easy. You can use one JSP page

Re: Output PDF

2005-03-14 Thread Andre Van Klaveren
I'm assuming that your browser client is IE. If so, the reason your Action is being called twice is because of a "feature" in IE 4.x+. If your application returns data that is to be handled with an ActiveX control (ie Adobe Acrobat Reader) the browser sends additional requests to the server. In

Re: Correct Prepopulate Method (simple problem)

2005-03-14 Thread Jeff Beal
On Mon, 14 Mar 2005 11:53:12 -0800, Nic Werner <[EMAIL PROTECTED]> wrote: > Reading the replies here and the Struts FAQ, everyone says "Create two > actions, one to pre-populate the data, and the other to save that data" > - So, the first action populates the data in the Execute() function, > retur

Output PDF

2005-03-14 Thread Brad Balmer
I'm using Jasper to create PDF's through my Actions and cannot figure out a good way to export the resulting byte[] to the user. Currently the tail end of my Action class looks like this: byte[] reportBytes = null; File jasperReport = new File(location); try { reportBytes = JasperRunMana

Re: Correct Prepopulate Method (simple problem)

2005-03-14 Thread Nic Werner
I apologize as I seem to have hijacked this thread in a direction I didn't intend. Jack, I didn't mean for you to pick through my code, it was just in response to Joe helping me. To answer your question Dakota Jack, in an overall view what you have said is correct: From a page of Users, I want

Re: Correct Prepopulate Method

2005-03-14 Thread Dakota Jack
I am just going to hold out, Nic, until you merely say what you want the client to do without giving any code. If you want to know what to do from me, just tell me what you want the client to do. As I said, this is simple stuff, but dealing with your code just complicates it. If you don't just w

Re: RE: Struts - Page Centric Framework[Scanned]

2005-03-14 Thread Ted Husted
In Struts, the Front Controller and Dispatcher are combined. Which begs the quesion: Do you actually miss a Front Controller, which provides a centralized access point for presentation-tier request handling? Or do you just miss a Dispatcher, which selects the views to handle the response. (Strut

Re: Correct Prepopulate Method

2005-03-14 Thread Joe Germuska
This is where I must be doing something wrong, my UserUpdateAction isn't finding the pre-populated form. Here is my code for both: Hm. is UserUpdateAction expecting certain properties to survive between the requests which are not in the request parameters? By default, form beans have request s

Re: Correct Prepopulate Method

2005-03-14 Thread Nic Werner
See my comments in-line. You've got the idea of what I want to do, Joe. Joe Germuska wrote: At 11:08 PM -0800 3/13/05, Nic Werner wrote: Is what I am doing calling JSP pages directly? From my struts-config below I show them being mapped to Actions. My question was that I have to set the html:form a

Validator Framework question

2005-03-14 Thread Scott Purcell
I am trying to use the validator framework for some simple form-field validation. Under web-inf, I have placed the default validator-rules.xml eg: /WEB-INF/validator-rules.xml (from the extracted examples). and /WEB-INF/validation.xml (from the storefront example, see below); and in my struts-co

Unable to initialize Action Servlet

2005-03-14 Thread Alex Rodrigues da Silva
Hi, when i start the tomcat 5.5.7 i get this SEVERE. Unable to initialize Struts ActionServlet due to an unexpected exception or error thrown, so marking the servlet as unavailable. Most likely, this is due to an incorrect or missing library dependency. java.lang.NoClassDefFoundError: org/apach

RE: Request Processor validation Question

2005-03-14 Thread Antony Joseph
Correction. Default implementation uses any configured roles. Your implementation can override this and implement whatever logic you want. - Original Message - From: "Antony Joseph" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Subject: RE: Request Processor validation Question Da

Re: Struts tags and enums

2005-03-14 Thread Nicolas De Loof
You can use jakarta unstandard taglib to "bind" a variable to the static fiedl YES Nico. Vinicius Caldeira Carvalho a écrit : Hello there! I'm using enum types in my app and I'd like to use combine them with struts tags. My enum class hierarchy descends to PersistenEnum (the example on hibern

Struts tags and enums

2005-03-14 Thread Vinicius Caldeira Carvalho
Hello there! I'm using enum types in my app and I'd like to use combine them with struts tags. My enum class hierarchy descends to PersistenEnum (the example on hibernate) a method called getEnumCode() returns a Serializable that represents the code for that enum :P So far what I'm doing is: <%S

RE: Request Processor validation Question

2005-03-14 Thread Antony Joseph
There is nothing special about processRoles(). It just returns true by default.You can overide it and implement whatever logic you want in it. It is not tied to any J2ee mechanism. - Original Message - From: "Scott Purcell" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Subject: RE

RE: Request Processor validation Question

2005-03-14 Thread Scott Purcell
If I use the processRoles(), does that mean I have to use the J2EE authentication mechanism for web applications? Using the container and declare the applications declaratively? I am using a database with form-based authentication and just want to find out whether the user is logged in, and if

Re: Request Processor validation Question

2005-03-14 Thread Antony Joseph
Hi Scott, Check the javadocs for the RequestProcessor. Any method which has an ActionMapping as an argument can be used to figure out the action (ex: mapping.getPath()). If you plan to do authorization the method processRoles() is a good candidate to be overriden. - Original Message -

Request Processor validation Question

2005-03-14 Thread Scott Purcell
Hello, I have extended the RequestProcessor and I am looking for a way to find out where the page is going to. The reason for this is as follows. I am giving each user a UserObject when they hit the site. Later on, after they log in, I set some flags to know they are valid inside the application

[OT] Fresh Blood

2005-03-14 Thread Rick Reumann
Your friendly neighborhood losers are still hanging out in #FunkyCodeMonkey on irc.darkmyst.org and wouldn't mind having some fresh blood in the channel. (We're getting tired of making fun of the same people all day:) Actually come by and babble about your favorite flavor-of-the-month framework

Re: [OT]Pop-Up Window and getParameter()

2005-03-14 Thread Leon Rosenberg
yes, but you'd need to store all data from a popup window via javascript into your document (web page) OR to have an action inbetween, which is called on pop-up window submit, and stores the values in the session or something for later retrieval. leon On Mon, 2005-03-14 at 06:56 -0800, Caroline Je

[OT]Pop-Up Window and getParameter()

2005-03-14 Thread Caroline Jen
I have used the getParameter() to retrieve data from web page text fields. No problem so far. Now, I have a web page that has a number of text fields. In addition, the JavaScript is used in this web page to pop-up another window for users to enter more data in some text fields and a textarea.

Re: Correct Prepopulate Method

2005-03-14 Thread Joe Germuska
At 11:08 PM -0800 3/13/05, Nic Werner wrote: Is what I am doing calling JSP pages directly? From my struts-config below I show them being mapped to Actions. My question was that I have to set the html:form action to be the calling Action in order to populate it, but I want it to submit to a differe

forward

2005-03-14 Thread sudip shrestha
I have certain situations when I have to forward the web page upon success to a certaion action or to a page with url such that it has a query string with it: e.g.: "/actions/myActionxx.do?wId=123" or "/pages/myPagexx.do?wId=123" Now, I can't provide the query strings with ids in struts-config.xml

Re: Struts Menu

2005-03-14 Thread Matt Raible
On Mar 14, 2005, at 5:31 AM, Antony Joseph wrote: Hi Vijaya, You will need an entry in the web.xml similar to the one below: /WEB-INF/struts-menu /WEB-INF/struts-menu.tld You should only need this if the URI in your JSP taglib declaration points to the URI in your web.xml. 2.3 Servl

Tiles does not function in case validation error?

2005-03-14 Thread Daniel PC Leung
In case validation error, the header, footer and menu portions disappear when error messages display on top of the body page which occupies the whole screen. If I can click "cancel" or validation is okay, Tiles function properly. Only the body page is changed. An

RE: using the validwhen validator

2005-03-14 Thread Reddy, Ajith
Hi Niall, I was following the same example that you sent me even before I mailed you. I had the validations.xml file exactly the same as you pointed in your old example. Only problem was that I didn't have the ORs and ANDs in lower case and that caused the problem. I fixed that and now it works fi

Re: [Slightly OT] Intuitive way of multi-select?

2005-03-14 Thread Sebastian Hennebrueder
What about to lists the first one is the source list, the second one the "selected" list. You can select an item and send it via javascript to the second list. On submit everything is updated. Regards Sebastian Hennebrueder http://www.laliluna.de Tutorials for JSP, JavaServer Faces, Struts, Hi

[Slightly OT] Intuitive way of multi-select?

2005-03-14 Thread Vamsee Kanakala
Hello, I have been mulling over how to provide a simple way of multi-select. Some how, I'm not very comfortable with providing the normal way of enlarged drop down list, which the users have use Ctrl+click to select. The reason is that this becomes messy when they come back to edit their s

Re: Struts Menu

2005-03-14 Thread Antony Joseph
Hi Vijaya, You will need an entry in the web.xml similar to the one below: /WEB-INF/struts-menu /WEB-INF/struts-menu.tld If you are still having problems, check out the application https://workeffort.dev.java.net . It uses struts-menu. - Original Message - From: "Vijaya S"

Re: Correct Prepopulate Method

2005-03-14 Thread Dakota Jack
Nic, the pages don't matter in a real sense. Actions process requests using the data from ActionForms and then return an ActionForward. Anytime you want to process a request use them. It is that simple. If you just explain what you want to do, we can give you a dozen ways to do it in all probab

Re: Correct Prepopulate Method

2005-03-14 Thread Dakota Jack
But, Craig has indicated in other places that he thinks my way of doing it resonates with him fine and is consistent with OOP principles. Anyway, who created it and why is a historical answer. The question, I thought, was about logic? ///;-) On Sun, 13 Mar 2005 21:31:43 -0800, Craig McClanah

RE: [ANN] Struts-JSF London Networking BOF VIII / Tuesday / 15th March 2005 @ 18:45 / Oracle City of London

2005-03-14 Thread Pilgrim, Peter
> From: Pilgrim, Peter See intermixed ==== This is just another reminder of BOF 8 Struts-JSF London Networking happening tomorrow; Tuesday, 15th March 2005 starting 6:45 PM at Oracle City of London offices. This is first meetup not at an restaurant or a public bar with some A/C Mains P

changing Format in bean write

2005-03-14 Thread VIALE G Ext ROSI/DPS
Hello, i changed Date Format Symbols in a class but can i apply this changement with struts tag ? call a method in my jsp for reformat ? thx. Cordialement, Grégory VIALE Ext ROSI/DPS Ingénieur d'etudes tel: 01 55 88 62 75 mailto:[EMAIL PROTECTED] --

Re: session and request scope

2005-03-14 Thread Manfred Wolff
Radu. To avoid such problems you may use contextes. When you have contextes stored in the session and you store your values only in this context you have no problem to clean the session. There is a small architecture project called struts-it (struts-it.org) in detail http://plstrutsit.sourcefor

class TagUtils, retrieving a message bundle, code modification re quest

2005-03-14 Thread Lesaint Sébastien
Hello, I've been looking into the source code (of both 1.2.4 and 1.2.6, not cvs), and I have a question about the way a message bundle is looked up based on its name. I understand from the code that the resource bundle is search: - in the page context - if not found, in the request context - i

Re: session and request scope

2005-03-14 Thread Radu Badita
At 08:14 14.03.2005, Craig McClanahan wrote: For a developer, though, you should train yourself to good habits in the first place -- use request scope for *everything* unless it absolutely must be saved, on the server side, in between requests from the same user. This sounds like common-sense but i

Re: Anybody who can answer this ?

2005-03-14 Thread Vamsee Kanakala
nitin dubey wrote: My question is where can we write that ? In A's Action or in B's Action ? Any simple pattern that can be used for this ? Neither. You can write it in A's action when you are pretty sure that A will be called before B. You can't write that in B because your 'execute' in B wi