Re: Tricky configuration?

2005-06-03 Thread Nic Werner
Yeah, depending on what language your boss likes, make your action .pl , .dll, .exe, .vbs, .ico, or my favorite: .bat /processCreditCard.bat just instills confidence in me. - Nic. amol k wrote: There are several ways to make this transparent to the user! I can send details if >you don

Seperation between Controller and Model

2005-05-03 Thread Nic Werner
Hi again, My apologies for a probably obvious problem. I've got an example where I need to check (on update) if this object is actually being 'moved' (ie, keypair is being changed), and if there is already data at the dest. keypair, go back to the page, display both objects and confirm the us

Using validate() and returning to original page dynamically

2005-04-18 Thread Nic Werner
Hi again, I'm calling the validate() method in my MappingDispatchAction to check errors on page. Which is fine, except that I want to return to the URL (Action w/params) that was called. I have two Actions, Edit and Add, which both refer to Attributes.jsp, and depending on the type param set,

Re: Simple JSTL Question

2005-04-07 Thread Nic Werner
Did you try putting them all in one bracket? SELECTED - Nic. Brian McGovern wrote: At least i think its simple. I have this code which doesnt error.. but also doesnt work. " SELECTED > This loops fine and i can c:out every single piece of that code, including the session var.

Re: RESEND: RE: Load message resources from DB???

2005-04-06 Thread Nic Werner
Reading from the 'Jakarta Struts Cookbook' by Bill Siggelkow, he discusses this problem. "You want to store all labels,messages, and other static text in a database rather than a properties file, while still being able to access the values using the bean:message tag" If this is what you're look

Re: One click on a link -> two requests/calls to Action (?!)

2005-03-31 Thread Nic Werner
Wendy, I had a similiar issue where I was adding a user, and I would get an error about breaking unique constraints. Looking at the logs, I saw this action being performed twice. I don't have an exact solution, but what I did was re-checked my pageflow (I was using DispatchAction), and made

MappingDispatchAction usage

2005-03-31 Thread Nic Werner
For the 1.2 users: I have a simple CRUD unit that I'm working on. Instead of creating an action for each one, I originally used DispatchAction to merge them all into one action. This allowed me to have my Create/Update page re-use the same JSP - I included a hidden param for the respective metho

Re: Links to external files not in web application

2005-03-28 Thread Nic Werner
Brad Balmer wrote: Many different people/groups need to access these so I thought that the first person in would generate it and save it to a common location. Then, the next user in would see a link to the PDF instead of re-generating it. I obviously don't know your users, but beware of your expe

Re: DispatchAction defaults

2005-03-28 Thread Nic Werner
Rick Reumann wrote: Nic Werner wrote the following on 3/28/2005 1:06 PM: I view the unspecified() method as the equivalent to 'index.jsp'. I deliberately put an index.jsp (or html) in the directory to provide the correct output, as opposed to leaving it unhandled - I see Struts and u

Re: DispatchAction defaults

2005-03-28 Thread Nic Werner
I view the unspecified() method as the equivalent to 'index.jsp'. I deliberately put an index.jsp (or html) in the directory to provide the correct output, as opposed to leaving it unhandled - I see Struts and unspecified() as a mirror of this. - Nic. Rick Reumann wrote: nitin dubey wrote the f

Re: DispatchAction defaults

2005-03-27 Thread Nic Werner
That was exactly what I needed, thanks Wendy. Wendy Smoak wrote: From: "Nic Werner" <[EMAIL PROTECTED]> I call this with: addDevice.do?method=edit and: addDevice.do?method=update The param for the first page seems a bit extraneous, is there a way that DispatchAction can just call

DispatchAction defaults

2005-03-26 Thread Nic Werner
Hi, I'm using DispatchAction for grouping common items together, and one of them is to just load a form page, and the other action is to 'update' this page. I call this with: addDevice.do?method=edit and: addDevice.do?method=update The param for the first page seems a bit extraneous, is there

Re: Correct Prepopulate Method (simple problem) SOLVED.

2005-03-14 Thread Nic Werner
, where the form values will be displayed. It is that simple. On Mon, 14 Mar 2005 11:53:12 -0800, Nic Werner <[EMAIL PROTECTED]> wrote: 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 jus

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 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

Re: Correct Prepopulate Method

2005-03-13 Thread Nic Werner
with different actions for new form and edit forms. The same save actions then work either way. -Original Message- From: Nic Werner <[EMAIL PROTECTED]> Date: Sun, 13 Mar 2005 18:13:05 To:Struts Users Mailing List Subject: Re: Correct Prepopulate Method Okay, from the FAQ:

Re: Correct Prepopulate Method

2005-03-13 Thread Nic Werner
Okay, from the FAQ: * Both the |/editRegistration| and |/saveRegistration| actions use the same form bean. * When the |/editRegistration| action is entered, Struts will have pre-created an empty form bean instance, and passed it to the |execute()| method. The setup action is fr

Page flow with some business logic

2005-03-09 Thread Nic Werner
Hi, Big picture, I have a form that gives you the ability to 'move' an object. I'd like to check to see if the destination location already exists so nothing would be overwritten. If something does exist, I'd like to output what object (and its values) is there, and do a confirmation screen.

OT: Why code testing is necessary

2005-03-09 Thread Nic Werner
Saw this in a query, anybody know what you would have to do for this result? http://www.officedepot.com/txtSearchDD.do?uniqueSearchFlag=true&searchTxt=ibook+power+supplie&x=0&y=0 Actually, any search query starting with 'ibook power' and a third word returns this problem. Relevance 1. <%

Re: Does not call action?

2005-03-04 Thread Nic Werner
QUICK NOTE: Hubert brought up a good point that gets asked a lot: For those of you wanting to use Struts but have some basic logic that only needs to go to JSP pages, this is a good way to do it. All your page flow still goes through Struts but you don't have to write any additional code/overhe

Re: AW: Multi-select file chooser

2005-02-28 Thread Nic Werner
m. kr, guenther -Ursprüngliche Nachricht- Von: Nic Werner [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 01. März 2005 00:17 An: Struts Users Mailing List Betreff: Re: Multi-select file chooser Wow, what browser is that? Can they hold down CTRL? (assuming Windows) Rakefet Bitton wrote: Hi, I'm usi

Re: Multi-select file chooser

2005-02-28 Thread Nic Werner
Wow, what browser is that? Can they hold down CTRL? (assuming Windows) Rakefet Bitton wrote: Hi, I'm using the "file" tag to select a file from my jsp. The default browser allows the user to select only 1 file at a time. The user can not multi select files or a directory. Does anyone know of a m

Using html:options with JSTL

2005-02-23 Thread Nic Werner
Hi, Is there any way to have html:option parse JSTL sql:query results for a dropdown? I have a form containing a drop-down that is populated by a database. My hope is that I could use to walk through it, and if the id matches the value of the Form, pre-select that value. Is this possibl

Re: JSP only page flow

2005-02-22 Thread Nic Werner
Which part are you agreeing with? Setting the hidden field to be 'pageB.jsp' and having the Action return (mapping.findForward(request.getParameter("page"))? - This wouldn' put all the page flow in one file though. Eric Lemle wrote: sure you just forward to a .jsp or an Action. Eric D. Lemle Se

JSP only page flow

2005-02-22 Thread Nic Werner
Hi, I want to follow the Struts model and have all my page flow be in struts-config. However, I have a couple of JSP-only pages that forward to each other. Is there a way to set this flow up? A -> B->C. An example I have is of a search page -> results -> edit individual result. I thought of s

Re: test

2005-02-18 Thread Nic Werner
Please remove Read Notification when you post to this list. Justin Moore wrote: test - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ---

Re: Newbie Page flow question

2005-02-17 Thread Nic Werner
in your Action class. The lookup method will lookup the data, store it into your ActionForm (using session scope), and then forward to the page that displays the data. -Original Message----- From: Nic Werner [mailto:[EMAIL PROTECTED] Sent: Thursday, February 17, 2005 10:01 AM To: user@strut

Re: Newbie--->Construct JSPs on the fly

2005-02-17 Thread Nic Werner
It looks like your issue isn't about customized page names, but customized links. I don't know your implementation, and I'm going to abstract out the Tiles/Struts portion, but here is how I would do it: - For the intro page, load the class schedule from the database, and its according class co

Newbie Page flow question

2005-02-17 Thread Nic Werner
Greetings, I've searched through the archives but can't really seem to find a solution. If one exists, please just point me there. I have a form that is to be filled out. However, one of the fields needs to have a seperate lookup, and then return back to the original page with the results.