Re:

2005-01-28 Thread Dakota Jack
Try JSTL, if you want. The above works. On Sat, 29 Jan 2005 10:53:10 +1100, James Hill <[EMAIL PROTECTED]> wrote: > James Hill wrote: > > > Is there anyway I can use the tag with two variables, > > instead of one variable and one constant. > > > > ie. > > > > but instead of actually compari

Re: html:options

2005-01-28 Thread Norris Shelton
I am using a LazyValidatorForm as my backing bean. I assumed that it would be able to handle them automatically, but you got me to thinking. I added in the String[] declaration and it works great. --- Eddie Bush <[EMAIL PROTECTED]> wrote: > Are you getting

Re: html:options

2005-01-28 Thread Eddie Bush
Are you getting any interesting debug statements? Looks to me like the form should be properly populated, even if validation failed. What type of field are the values being put into? If you're looking for multiples, I imagine you're putting them into a String array? Please trim unnecessary dial

Re: html:options

2005-01-28 Thread Norris Shelton
That was it exactly. Thx. Now I have another question. My box is a multi select. If there is a validation error, only the first option will still be selected. --- Kishore Senji <[EMAIL PROTECTED]> wrote: > On Fri, 28 Jan 2005 16:53:16 -0800 (PST), Norris Shelton > <[EMAIL PROTECTED]> wrote:

Re: html:options

2005-01-28 Thread Norris Shelton
The ${formName} is in fact a variable that holds the name of the form. Kishore Senji's solution was what I needed. --- Eddie Bush <[EMAIL PROTECTED]> wrote: > Seems to me you have the form name incorrect? is 'formName' > the name > of the form, or is it a String holding the name of the form? >

Re: html:options

2005-01-28 Thread Kishore Senji
On Fri, 28 Jan 2005 16:53:16 -0800 (PST), Norris Shelton <[EMAIL PROTECTED]> wrote: > Here is what I have in the JSP tag file: > >multiple="true"> > labelProperty="description" /> collection attribute takes a name which holds the Collection and not the collection itself. Assuming that y

Re: html:options

2005-01-28 Thread Eddie Bush
Sorry for the double post. G-Mail hiccuped. -- Eddie Bush - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: html:options

2005-01-28 Thread Eddie Bush
Seems to me you have the form name incorrect? is 'formName' the name of the form, or is it a String holding the name of the form? I think you'd find it easier to populate your list in an action. Perhaps you meant to put: If "formName" (above) is the name of your form, I think this is what you

Re: html:options

2005-01-28 Thread Eddie Bush
Seems to me you have the form name incorrect? is 'formName' the name of the form, or is it a String holding the name of the form? I think you'd find it easier to populate your list in an action. Perhaps you meant to put: If "formName" (above) is the name of your form, I think this is what you

html:options

2005-01-28 Thread Norris Shelton
Here is what I have in the JSP tag file: state is a simple tag that makes a List of State objects available to the page. I tried setting them as a page scope attribute and a request scope attribute. I always get the following message: javax.servlet.jsp.JspException: Cannot find

Re:

2005-01-28 Thread Niall Pemberton
JSTL / EL is probably the best option Niall - Original Message - From: "James Hill" <[EMAIL PROTECTED]> Sent: Friday, January 28, 2005 11:47 PM > Is there anyway I can use the tag with two variables, > instead of one variable and one constant. > > ie. > > but instead of actually c

Re: Database Connection Workflow Question

2005-01-28 Thread Larry Meadors
Heheh, you two are about to end up on my "straight-to-the-trash-bin" filter. Quit your whining, and start writing code. :-) ...and have a great weekend. On Fri, 28 Jan 2005 17:16:00 -0600, Eddie Bush <[EMAIL PROTECTED]> wrote: > http://jakarta.apache.org/site/mail.html > > Most everyone was li

Re:

2005-01-28 Thread James Hill
James Hill wrote: Is there anyway I can use the tag with two variables, instead of one variable and one constant. ie. but instead of actually comparing the property item1 to the string "item2", i want a variable in value. - T

user@struts.apache.org

2005-01-28 Thread James Hill
Is there anyway I can use the tag with two variables, instead of one variable and one constant. ie. but instead of actually comparing the property item1 to the string "item2", i want a variable in value. - To unsubscribe, e-m

Re: Database Connection Workflow Question

2005-01-28 Thread Eddie Bush
http://jakarta.apache.org/site/mail.html Most everyone was likely routed through this when they found the list to sign-up. Note the section entitled "keep your email short and to the point." Also "Ask Smart Questions" is good. I should have thought to mention that before. -- Eddie Bush On Fr

Re: Database Connection Workflow Question

2005-01-28 Thread Dakota Jack
Eddie, You are not believeable when you accept 668 kilobytes of gunk without complaint over and over and complain about 10 kilobytes of code which the person asking the question found very helpful. Your objections are pure baloney. This is personal merely and that is obvious. Anyone truly int

Re: Database Connection Workflow Question

2005-01-28 Thread Eddie Bush
I didn't notice that (G-Mail sometimes folds prior responses), but it's a good example of where we could trim messages. Footers are another one. The server is going to add the subscribe/unsubscribe information to every message - it's beyond pointless to carry this information through in repli

Re: Database Connection Workflow Question

2005-01-28 Thread Dakota Jack
I just did a study of a thread on this list, Eddie, which is called "PlugIn and the base URL". You will recognize that thread because you posted to it without complaint and had a disagreement with me about relations between intranets and the Internet. This thread had a total of 82 posts and a siz

RE: New session on submit?

2005-01-28 Thread Benedict, Paul C
There is a slim chance, but to Ed's point, if URL rewriting is off and your session is configured to transfer jsessionid only by URL rewriting (setting "cookies" to "false" in but true by default), this situation will exist. Thanks, Paul -Original Message- From: Joe Germuska [mailto:[EMA

BANDWIDTH CONCERNS and SNIPPING POSTS

2005-01-28 Thread Dakota Jack
Pursuant to Eddie's recent concerns about bandwidth, there is a post (see POST A below) that is five lines long but utilizes 262 lines. I think that getting these down to size would be very productive. The code Eddie complained about was 304 lines long but included the code that would answer the

Re: Database Connection Workflow Question

2005-01-28 Thread Dakota Jack
On Fri, 28 Jan 2005 14:38:30 -0600, Eddie Bush <[EMAIL PROTECTED]> wrote: > Not at all. I read you crystal clear. I was replying to Jack ;-) > > On Fri, 28 Jan 2005 15:35:40 -0500, Chaikin, Yaakov Y. > <[EMAIL PROTECTED]> wrote: > > Eddie, > > > > I just read your post and hope you didn't misun

Re: New session on submit?

2005-01-28 Thread Joe Germuska
At 2:21 PM -0600 1/28/05, Eddie Bush wrote: What would happen in the off-chance that URL rewriting were diabled and the browser had cookies disabled? That would be a scenario in which the server wouldn't know that the user should be associated with a session. However, if the form which is submitt

RE: PlugIn and the base URL

2005-01-28 Thread David Suarez
Definitely too difficult to communicate using email! Please read the scenario I was framing my response under. As an application that is bought, you do not have control over the environment it will be installed in so firewalls do come to play in my mind. This thing has been beaten to death! I t

Re: Database Connection Workflow Question

2005-01-28 Thread Dakota Jack
Eddie, If you want to get together with other committers and enforce your own judgment on these matters, please be my guest, Eddie. As things stand, I differ with you on how to approach this and as far as I can tell quite a few others disagree with you on this too. I am following my best judgmen

Re: Database Connection Workflow Question

2005-01-28 Thread Eddie Bush
Not at all. I read you crystal clear. I was replying to Jack ;-) On Fri, 28 Jan 2005 15:35:40 -0500, Chaikin, Yaakov Y. <[EMAIL PROTECTED]> wrote: > Eddie, > > I just read your post and hope you didn't misunderstand me... > > I wasn't saying that you shouldn't use JNDI to get a reference to th

RE: Database Connection Workflow Question

2005-01-28 Thread Chaikin, Yaakov Y.
Eddie, I just read your post and hope you didn't misunderstand me... I wasn't saying that you shouldn't use JNDI to get a reference to the DataSource. I was simply saying that you should do it only once, not every time you need it. Yaakov. -Original Message- From: Eddie Bush [mailto:[EM

Re: Database Connection Workflow Question

2005-01-28 Thread Eddie Bush
Jack, Would you *please* post URLs instead of full source? I know you have publicly-hittable space of your own ... So far as how to acquire a DataSource/Connection goes, JNDI is a fantastic tool for allowing your persistence layer acquire a DataSource instance in a *standard* fashion. Standards

Re: New session on submit?

2005-01-28 Thread Eddie Bush
What would happen in the off-chance that URL rewriting were diabled and the browser had cookies disabled? On Fri, 28 Jan 2005 13:33:46 -0600, Joe Germuska <[EMAIL PROTECTED]> wrote: > Session management is the responsibility of the servlet container. > Are you sure that the session ID is being ret

Re: New session on submit?

2005-01-28 Thread Joe Germuska
Session management is the responsibility of the servlet container. Are you sure that the session ID is being returned correctly? Struts definitely isn't doing anything to remove or invalidate the session for you. You can tell Struts not to put a Locale in the session by specifying a "false" v

Re: Database Connection Workflow Question

2005-01-28 Thread Dakota Jack
On Fri, 28 Jan 2005 08:46:30 -0600, Scott Purcell <[EMAIL PROTECTED]> wrote: > Hello, > > I am running Tomcat struts. I am beginning a new project using the struts > technologies and have a question in regards to handling connections. > > First off, just to give you some background, older proje

Re: [OT] Advertising website

2005-01-28 Thread Graham Reeds
Print it on your forehead and walk around the mall. There's people on E-Bay that will do it for you too! Get a family to name their new-born child after it? G. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-

RE: [OT] Advertising website

2005-01-28 Thread Mulligan, Scott H
Yeah... Print it on your forehead and walk around the mall. There's people on E-Bay that will do it for you too! Scott -Original Message- From: t t [mailto:[EMAIL PROTECTED] Sent: Friday, January 28, 2005 11:04 AM To: Struts Users Mailing List Subject: [OT] Advertising website Hi,

Re: Blocking direct access to JSPs

2005-01-28 Thread Hubert Rabago
Take a look at http://wiki.apache.org/struts/StrutsCatalogHidingPagesUnderWEBINF for one of the more common approaches taken for this problem. On Fri, 28 Jan 2005 19:09:46 +, Tim Christopher <[EMAIL PROTECTED]> wrote: > Hi, > > I would like to block direct access to jsp files, and from what

Blocking direct access to JSPs

2005-01-28 Thread Tim Christopher
Hi, I would like to block direct access to jsp files, and from what I've read the best practice appears to be setting a security-constraint within the web.xml file. (As opposed to storing all *.jsp files within the WEB-INF folder, though please correct me if that's wrong). I've currently tried u

Re: Dynamic parameter within

2005-01-28 Thread Susan Bradeen
On Fri, 28 Jan 2005 11:18:58 -0700, Wendy Smoak <[EMAIL PROTECTED]> wrote: > From: "Susan Bradeen" <[EMAIL PROTECTED]> > > Yes, true. So the page loads, and the user types something into the > > userField1, and then clicks on the link next to userField2. Depending > > on what the value is in userFi

Re: Losing changed form value

2005-01-28 Thread Christopher Loschen
Thanks again for your help. Yes, that was the problem (sort of). I finally found that my UpdateCurrentUserAction class was making the change to the database but not updating the UserProfileForm in the session and request. I added code to do that to that class and now all is well. Thank you again

Re: Dynamic parameter within

2005-01-28 Thread Wendy Smoak
From: "Susan Bradeen" <[EMAIL PROTECTED]> Yes, true. So the page loads, and the user types something into the userField1, and then clicks on the link next to userField2. Depending on what the value is in userField1, you get different userField2 selections, which appears in the window opened by the

Re: Validation on length of fields destined for UTF-8 database?

2005-01-28 Thread PA
On Jan 28, 2005, at 18:57, Janice wrote: something quick and dirty Ooops... forgot about the obvious... aString.getBytes( "UTF-8" ).length Cheers -- PA, Onnay Equitursay http://alt.textdrive.com/ - To unsubscribe, e-mail: [EMAIL PR

Re: Database Connection Workflow Question

2005-01-28 Thread Eddie Bush
I'll try to do this over the weekend. Right now I'm home sick :-( I guess I could do them against Tomcat, but I'd prefer to do them against WSAS at work. On Fri, 28 Jan 2005 12:36:46 -0500, Chaikin, Yaakov Y. <[EMAIL PROTECTED]> wrote: > Whoops! I missed an "if" there. Sounded kinda rude without

Re: Validation on length of fields destined for UTF-8 database?

2005-01-28 Thread PA
On Jan 28, 2005, at 18:57, Janice wrote: I'm hoping there's something quick and dirty new DataOutputStream( aByteArrayOutputStream ). writeUTF( aString ) aByteArrayOutputStream.size() Quick and dirty it is :P Cheers -- PA, Onnay Equitursay http://alt.textdrive.com/

Validation on length of fields destined for UTF-8 database?

2005-01-28 Thread Janice
Hi, not sure if I should be tackling this from the app side or the database side. I have a struts (1.1) application that is working against an Oracle 9i database using utf-8 as character set. Things work just lovely until somebody fills up a textbox and uses characters that will be stored in 2 or

Re: PlugIn and the base URL

2005-01-28 Thread Dakota Jack
Just so everyone is knowingly on the same page, the basics are at http://webserver.cpg.com/ws/3.4/. Jack -- -- "You can lead a horse to water but you cannot make it float on its back." ~Dakota Jack~ "You can't wake a person who is pretending to be asleep." ~Nat

Re: Dynamic parameter within

2005-01-28 Thread Susan Bradeen
On Thu, 27 Jan 2005 16:37:52 -0500, Erik Weber <[EMAIL PROTECTED]> wrote: > Since a JavaScript function can return any type of value, including a > String, why can't you just write a function that returns the value of > userField1? Perhaps within the a tag, you could call a function that > generate

Re: Dynamic parameter within

2005-01-28 Thread Susan Bradeen
On Thu, 27 Jan 2005 14:45:52 -0700, Wendy Smoak <[EMAIL PROTECTED]> wrote: > From: "Susan Bradeen" <[EMAIL PROTECTED]> > > > > > > > > > > name="requestform" property="udf2Map" />');"> > > > > With the link parameter hard coded as "parent=XXX", this works > > perfectly. However, I

Re: PlugIn and the base URL

2005-01-28 Thread Dakota Jack
On Fri, 28 Jan 2005 11:15:35 -0600, Eddie Bush <[EMAIL PROTECTED]> wrote: > See Frank's post on the web service. He expressed it more eloquently > than I did. But, Frank and I are in agreement. If you are not talking about the Web, then you are saying that the solution is not a solution to an

RE: Database Connection Workflow Question

2005-01-28 Thread Chaikin, Yaakov Y.
Whoops! I missed an "if" there. Sounded kinda rude without it. Sorry. -Original Message- From: Chaikin, Yaakov Y. [mailto:[EMAIL PROTECTED] Sent: Friday, January 28, 2005 12:29 PM To: 'Struts Users Mailing List' Subject: RE: Database Connection Workflow Question And on top of that... Just

Re: PlugIn and the base URL

2005-01-28 Thread Dakota Jack
On Fri, 28 Jan 2005 09:03:07 -0800 (PST), [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > While I absolutely acknowledge the cleverness of this solution, it's not one > I would personally employ. Making a server application dependent on another > server for startup configuration strikes me as qu

RE: Database Connection Workflow Question

2005-01-28 Thread Chaikin, Yaakov Y.
And on top of that... Just kidding. Actually, I've never done any trials, so you could either post them and/or email me about what you've found out about it, I'd appreciate it. Thanks, Yaakov. -Original Message- From: Eddie Bush [mailto:[EMAIL PROTECTED] Sent: Friday, January 28, 2005 12

Re: Database Connection Workflow Question

2005-01-28 Thread Eddie Bush
Ok, ok, you convinced me :-P I still want to run some time trials in my environment. On Fri, 28 Jan 2005 12:16:27 -0500, Chaikin, Yaakov Y. <[EMAIL PROTECTED]> wrote: > Quote from the ServiceLocator Pattern about performance and JNDI: > > Initial context creation and service object lookups, if f

Re: Database Connection Workflow Question

2005-01-28 Thread Eddie Bush
in-line On Fri, 28 Jan 2005 12:13:16 -0500, Chaikin, Yaakov Y. <[EMAIL PROTECTED]> wrote: > Eddie, > > How long it takes to look up things through JNDI? Lng is the answer. > That's even if your JNDI is sitting on the same machine as your servlet/EJB > container. But if it's a distributed

Re: New session on submit?

2005-01-28 Thread Brandon Mercer
Brad Balmer wrote: I am using the 1.2.4 release and am finding that when I submit a form to a plain Action, a new HttpSession is automatically created and replacing the session that I already am using. I have a simple search form where when the form is initially brought up, the reset() function

RE: Database Connection Workflow Question

2005-01-28 Thread Chaikin, Yaakov Y.
Quote from the ServiceLocator Pattern about performance and JNDI: Initial context creation and service object lookups, if frequently required, can be resource-intensive and may impact application performance. This is especially true if the clients and the services are located in different tiers -

New session on submit?

2005-01-28 Thread Brad Balmer
I am using the 1.2.4 release and am finding that when I submit a form to a plain Action, a new HttpSession is automatically created and replacing the session that I already am using. I have a simple search form where when the form is initially brought up, the reset() function gets called and I s

RE: Database Connection Workflow Question

2005-01-28 Thread Chaikin, Yaakov Y.
Eddie, How long it takes to look up things through JNDI? Lng is the answer. That's even if your JNDI is sitting on the same machine as your servlet/EJB container. But if it's a distributed environment... see you later. :) As far as an administrator changing the DataSource while the applic

Re: PlugIn and the base URL

2005-01-28 Thread Dakota Jack
Lo, Eddie, See infra: > How many different host/port combinations are the applications you use > this strategy in deployed to? Thousands. > In the environment I "live", apps deploy on multiple servers (always > 2+ for high availability), and are likely to be accessed by a > different (non-st

RE: Database Connection Workflow Question

2005-01-28 Thread Chaikin, Yaakov Y.
Scott, Look at the description of the Service Locator pattern here: http://java.sun.com/blueprints/corej2eepatterns/Patterns/ServiceLocator.html JNDI does not do any connection pooling. It's just a standardized naming API to look up your connection pooling object (among other things), thus the na

Re: PlugIn and the base URL

2005-01-28 Thread fzlists
While I absolutely acknowledge the cleverness of this solution, it's not one I would personally employ. Making a server application dependent on another server for startup configuration strikes me as quite a hack (albeit a clever one!) > It in fact does make sense to assume that a web service

Re: Database Connection Workflow Question

2005-01-28 Thread Eddie Bush
I wouldn't even store the DataSource. You may wish to have multiple DataSource instances you wish to use in a given project. I have Business Objects that extends a "BaseBO" object, which are generated by a factory (the factory reads an XML file using digester). My DAOs are generated similarly.

RE: Database Connection Workflow Question

2005-01-28 Thread Chaikin, Yaakov Y.
Larry, Very cute. Thanks for the partial credit. :) Just remember: it's not what say, it's what I mean. :) And what I meant to say was this: Have a private variable that stores your DataSource reference in your BaseDAO, ***NOT*** your connection (yes, I know, I wrote connection before, so sue me

Re: PlugIn and the base URL

2005-01-28 Thread Eddie Bush
On Fri, 28 Jan 2005 08:21:40 -0800, Dakota Jack <[EMAIL PROTECTED]> wrote: > I am not sure at this point David S. what you have tried, but I can > assure you that your conclusion that "configuration is the only way in > this scenario above" is incorrect, because I do this all the time with > no dif

Re: PlugIn and the base URL

2005-01-28 Thread Martin Wegner
Kishore, This turns out to be the exact solution that I require. I just extended AxisServlet and scrape off the "requestURL" which is the URL that was used to reach the WS. That did the trick. And again, this illustrates what I consider a flaw in the Axis implementation. If you look through

RE: Database Connection Workflow Question

2005-01-28 Thread Scott Purcell
Yes, This is what I want to do. I am just getting underway with this new project, and am looking for a solution to handle this. I have read the full O'Reilly struts book, and I will keep the Action classes clean of business logic. If this is not asking too much, is the basic workflow for this t

Re: Database Connection Workflow Question

2005-01-28 Thread Larry Meadors
On Fri, 28 Jan 2005 11:09:41 -0500, Chaikin, Yaakov Y. wrote: > 1) I hope the code you showed is sitting inside a DAO, not your Action. Heheh, me too. ;-) > 2) It looks much messier because you are not using something like a > ServiceLocator Pattern. Look up and cache the reference to your DataSo

Re: PlugIn and the base URL

2005-01-28 Thread Dakota Jack
On Fri, 28 Jan 2005 08:02:46 -0600, David Suarez <[EMAIL PROTECTED]> wrote: > I think the answer here would be configuration is the only way in the > scenario above. The question is, do you really need the call backs for > what you're really doing? In the licensing example above, you likely > on

Re: [OT] a java question

2005-01-28 Thread Eddie Bush
Smooth, Frank :-) -- Eddie Bush - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [OT] a java question

2005-01-28 Thread fzlists
The only thing with that is if you might need to change those constants while the application is running, you won't be able to this way. Of course, you could argue they aren't constants then, and i'd tend to agree! :) For instance, in one application I wrote, I read in an application configura

Re: Create dynamic form ?

2005-01-28 Thread Joe Germuska
At 8:03 AM -0700 1/28/05, Wendy Smoak wrote: From: "Eric Chow" <[EMAIL PROTECTED]> How can I create forms without defining it in the struts-config.xml? I mean I want o use my own config and generate a HTML form with Struts action handling. Take a look at LazyDynaBean and LazyValidatorForm. There's

Re: How I decided to handle the dynamic titles/label problem with Tiles

2005-01-28 Thread Rick Reumann
Dakota Jack, Still interested in how you would provide an implementation since you mention you didn't like the "view being tightly bound." Rick Reumann wrote the following on 1/27/2005 10:49 AM: Dakota Jack wrote the following on 1/27/2005 12:24 AM: For me, and of course I speak for myself alone

RE: Database Connection Workflow Question

2005-01-28 Thread Chaikin, Yaakov Y.
Scott, 1) I hope the code you showed is sitting inside a DAO, not your Action. 2) It looks much messier because you are not using something like a ServiceLocator Pattern. Look up and cache the reference to your DataSource there. It's cleaner and way faster than doing it every time in your DAO. 3)

Re: Advise How to set alternative raow background color

2005-01-28 Thread Rick Reumann
senthil Kumar wrote the following on 1/27/2005 2:19 AM: I am getting more than 100 regards from database and print in a JSP by 15 regards per Page. Its is working fine. Now i want to set alternative Row background color. I print all the rows between the in Struts. any one help me. I create

[OT] Advertising website

2005-01-28 Thread t t
Hi, Does anyone know a easy and cheap (even free) way to advertise a website? Thanks. T.T. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

Re: Abstract Bean Processing

2005-01-28 Thread Hubert Rabago
Instead of using the StorableObject in your form bean, use a LazyDynaBean, then when the form gets submitted, use BeanUtils.copyProperties to copy from the LazyDynaBean to your concrete StorableObject instances. Hubert On Fri, 28 Jan 2005 16:55:34 +0900, Sylvain ~ <[EMAIL PROTECTED]> wrote: > H

Re: PlugIn and the base URL

2005-01-28 Thread Dakota Jack
On Fri, 28 Jan 2005 08:02:46 -0600, David Suarez <[EMAIL PROTECTED]> wrote: > Just the same, it's > likely not a problem for your server to figure out where the request > came from if that is needed for the protocol (the receiver of the > initial message). It's the callback that you have a proble

Re: Advise How to set alternative raow background color

2005-01-28 Thread Eddie Bush
I avoid runtime expressions and scriplets as much as I can: <%-- White BG --%> ... <%-- Grey BG --%> ... ... Y'all would do well to use the JSTL where you can. The documentation for the Struts taglibs even says that. --

Re: [OT] a java question

2005-01-28 Thread Eddie Bush
I'll probably get called insane ... :-) Generally, when I have a class that contains constants, I do make them final, but I set their value in a static initializer. Inside of this static initializer, I will load the values from a properties file and then assign them. This way, my values are easi

Re: Database Connection Workflow Question

2005-01-28 Thread Larry Meadors
Rick has some GREAT struts stuff here: http://reumann.net/struts/ibatisLesson1.do He talks about using a DAO pattern, and getting that connection type of stuff (as well as other JDBC specific stuff) out of your application code. Larry On Fri, 28 Jan 2005 08:46:30 -0600, Scott Purcell <[EMAIL P

Re: Database Connection Workflow Question

2005-01-28 Thread Alex Kravets
I think you can still use your DAO classes in Struts. In my application, which was not written in Struts I use DAOs written as Singleton, Factory DP everywhere, I guess in Struts you can call your DAOs from Action Class to access database. Scott Purcell wrote: Hello, I am running Tomcat struts.

Re: Create dynamic form ?

2005-01-28 Thread Wendy Smoak
From: "Eric Chow" <[EMAIL PROTECTED]> How can I create forms without defining it in the struts-config.xml? I mean I want o use my own config and generate a HTML form with Struts action handling. Take a look at LazyDynaBean and LazyValidatorForm. There's some information on the wiki: http://wiki.a

Database Connection Workflow Question

2005-01-28 Thread Scott Purcell
Hello, I am running Tomcat struts. I am beginning a new project using the struts technologies and have a question in regards to handling connections. First off, just to give you some background, older projects I worked on had a singleton class that handed me database connections. So when I ne

RE: how to integrate struts project with hibernate?

2005-01-28 Thread Marco Mistroni
Hello, Use spring with struts. Spring plugin will take care of Hibernate session.. Check www.springframework.org. Regards marco -Original Message- From: Metin Erksan [mailto:[EMAIL PROTECTED] Sent: 28 January 2005 14:20 To: Struts Users Mailing List Subject: Re: how to

Re: how to integrate struts project with hibernate?

2005-01-28 Thread Metin Erksan
hi thank you for tutorial.but i could not get myeclipse plugin.does it have a price ? i considered it is an opensource tool. sincerely Sebastian Hennebrueder <[EMAIL PROTECTED]> wrote: Sorry, I wanted to write cache implementation or better cache usage. ;-) Regards Sebastian Hennebrueder -

Re: how to integrate struts project with hibernate?

2005-01-28 Thread Metin Erksan
hi http://www.oracle.com/technology/products/ias/toplink/preview/spring/doc/TopLinkPetClinic.html i mentioned above example. yours sincerely Duncan Mills <[EMAIL PROTECTED]> wrote: Metin, I know someone who has integrated Hibernate with the ADFm DataBinding layer in JDeveloper. So you can use Dr

Re: how to integrate struts project with hibernate?

2005-01-28 Thread Metin Erksan
hi duncan i found an example application "petclinic" in otn.oracle.com accourding to example it has three types "hibernate" "jdbc" and "third one i dont remember" document tells example according to toplink.i have a struts-based project if you help me to integrate a simple hibernate sample it wil

RE: PlugIn and the base URL

2005-01-28 Thread David Suarez
Hello, Looks like there's more than 1 David on this list. I'm the one who originally asked the question that you gave responses to. I guess all David's think alike and ask the same startup questions... ;-) Anyway, from the fogginess so far this is what I can conjure up as a make pretend example

Re: Struts Web Service project on SF.net

2005-01-28 Thread Frank W. Zammetti
That was my point exactly. :) Especially when you already have the application implemented in Struts, something like my project makes some sense. If you were writing something new, you might want to do things differently. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Techn

Re: Struts Web Service project on SF.net

2005-01-28 Thread bschneider
> Most importantly though is that you can still use what Struts gives you, > things like form validation and internationalization, plus some degree of > the control layer, depending on how your app is designed. I think with Axis, > you would have to either write some code to duplicate these things,

Create dynamic form ?

2005-01-28 Thread Eric Chow
For use DynaForm, I have to define it in struts-config.xml, right ? How can I create forms without defining it in the struts-config.xml? I mean I want o use my own config and generate a HTML form with Struts action handling. Is it possible to implement this with Struts ?? ---

RE: [ANN] Struts/JSF London Networking / BOF VII / Friday 28 Jan 2005 @ 19:15 / Kettners Restuarant

2005-01-28 Thread Pilgrim, Peter
> -Original Message- > From: Niall Pemberton [mailto:[EMAIL PROTECTED] > > > I am planning on turning up tommorrow and I see Duncan has RSVP'd on > meetup.com - anyone else planning to come along? > > Niall ==== So far the list of the confirmed attendees are Char

Re: How to send result into Pop-up window

2005-01-28 Thread Keshav Shetty
Hi Manisha, As I understood your requirement is 1. In first page you show teh search criteria. User enters all required input and press show report. 2. The form will be submitted action gets control and retrives required data and forwards to report jsp. 3. The final report page should come in a s

How to send result into Pop-up window

2005-01-28 Thread Manisha Sathe
Hi, I am having a serach criteria, depending on that one report will be generated. After Submit it is going to one Action handler and then going to JSP report page. Currently i am displaying it in the same window. But if i want to display result in new window then how can i achieve it ? (I b

RE: Process tiles definition from a different module

2005-01-28 Thread hermod . opstvedt
Hi Use the Switch Action. Hermod -Original Message- From: Diego Manilla Suárez [mailto:[EMAIL PROTECTED] Sent: Thursday, January 27, 2005 1:54 PM To: Struts Users Mailing List Subject: Process tiles definition from a different module Hi! I need to process a tiles definition that is loc

RE: Struts Security

2005-01-28 Thread hermod . opstvedt
Hi 1. It means that any authentication token will not be propagated to a J2EE EJB server. 2. When using the role attribute with tiles, it will pick up what you have defined in SecurityFilter Hermod -Original Message- From: Tim Christopher [mailto:[EMAIL PROTECTED] Sent: Thursday, January

Re: How to Forward out of struts to a URL from an Action

2005-01-28 Thread Keshav Shetty
In struts you can redirect(not forward) to other page or site. In your action instead of mapping.findforward use following code ActionForward toAction= new ActionForward (); ActionForward fromAction = mapping.findForward("targetURL"); toAction.setPath(fromAction.getPath()); toAction.set

Re: Parse XML Files

2005-01-28 Thread Duncan Mills
For a good summary of the options check out the following Blog entry from Olivier Le Diouris http://jroller.com/page/oliv/20050112 Regards Duncan Mills Nelson wrote: Hi Guys, I'm new to struts and JSP and need to parse and compare XML files. I know you can do this with JSTL tags, but wanting to

Re: Abstract Bean Processing

2005-01-28 Thread listed
Hi Silvian, you have to know the propertyname and write accessor-methods. Where should struts know, which property to put out? Have a look at the jstl-core library. Greets Mark Sylvain ~ wrote: Hi, I wanted to create a Form Bean to represent a list of StorableObjects with a filter bean nested ins

Re: Welcome file problem

2005-01-28 Thread Sebastian Hennebrueder
Normally I forward to an default action from the page xy.de/myProjekt/index.jsp The index.jsp is in the Home directory and all other JSPs are located in a JSP directory which is protected. The home directory is not protected. Regards Sebastian Hennebrueder http://www.laliluna.de Tutorials