Re: JerichoFaces ?

2004-11-17 Thread Dakota Jack
Again, Craig, we are in complete agreement. I also am madly in love with the basic idea behind Tiles and with what Tiles does. I don't see why everyone isn't. Tiles, however, uses a "controller" in a very different sense than the sense Struts uses a web framework controller in a MVC pattern. Ti

Re: how to access oracle database on netwrk

2004-11-17 Thread Erik Weber
You say you are using Oracle, but your configuration is for a MySQL database. For Oracle, your driver class is going to be oracle.jdbc.driver.OracleDriver. Your URL is going to follow this pattern: jdbc:oracle:thin:@:: The "database name" is also known as a TNS name in Oracle terms. Usually th

Re: Question regarding filters in html-tags

2004-11-17 Thread René Thol
Hi David, David G. Friedman schrieb: René, By +1, I meant I would vote to add filter="true/false" to the html:text and html:textarea tags as well. So, when you write you are using regular html tags, are you using a tag with bean write, like this: name="beanName" property="propertyName"/>" /> T

JDBC problem

2004-11-17 Thread Nishant
i am tryin to connect with oracle Server on network. Now i am getting errors as No Suitable Driver i hav classes12.jar file in my jre\lib directory... still i am gettin error ... and also wht should be written in value field of url... plz help.. thanks in advance .. Regards Nishant Patil Softwar

[OT] how to print - jdk1.3?

2004-11-17 Thread Viral_Thakkar
Hi All: How to print document/pdf file which is available on server machine on user printer in asynchronous mode? TIA Regards, Viral - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTE

RE: how to access oracle database on netwrk

2004-11-17 Thread Ramesh Mullankara
You have to use Oracle thin driver instead. I don't remember the location of jar file named classes12.jar for example to be used with jdk1.3, but it would be available with an Oracle client installation or you can copy them from an existing oracle client/oracle installation. It is also available at

Re: JerichoFaces ?

2004-11-17 Thread Craig McClanahan
On Wed, 17 Nov 2004 21:43:14 -0800, Dakota Jack <[EMAIL PROTECTED]> wrote: > Craig, > > I not only have no technical arguments against a View Helper design > pattern, but the suggestion on the Wiki WhiteBoard for Struts both for > the JerichoData and the JerichoFaces is an instance of advocating s

Re: URL Customization

2004-11-17 Thread Craig McClanahan
A frameset with a single frame in it (doesn't need to be invisible) will get rid of the "/index.jsp" or "/serverpages/add-record.rr" parts of the URL. To get rid of the context path ("/mywebapp") part, you'l need to either install your application as the "root" webapp on the server (in Tomcat, for

Re: JerichoFaces ?

2004-11-17 Thread Dakota Jack
Craig, I not only have no technical arguments against a View Helper design pattern, but the suggestion on the Wiki WhiteBoard for Struts both for the JerichoData and the JerichoFaces is an instance of advocating such a design pattern. What I don't trust is the page based controller. Jack >Perso

how to access oracle database on netwrk

2004-11-17 Thread Nishant
hello, i am using oracle 9i as my database in my application. My database is on anothere machine in network. my struts-config.xml is like now server is throwing an errors as cannot load JDBC driver called com.mysql.jdbc.Driver wht is wrong wiil i h

Fwd: [Validation] and local string insertion

2004-11-17 Thread Corey Scott
Sorry ... resend, I cant find the previous one in the mail archive and I am not sure why the first one disappeared -Corey -- Forwarded message -- From: Corey Scott <[EMAIL PROTECTED]> Date: Thu, 18 Nov 2004 01:36:54 +0800 Subject: [Validation] and local string insertion To: [EMAI

URL Customization

2004-11-17 Thread Richard
Hello Guys, I am not sure if this a Struts question. I think this is more of a general web devt thing. And since this is not a struts thing I am asking you guys to please help me or point me to a place where i can get help. thanks in advance im using struts 1.2.4 and tomcat 5.0.27. I need to rem

Re: Help with Exception handling

2004-11-17 Thread Bill Siggelkow
Wendy, Struts exception handling *does* work correctly when it comes to inheritance; and your configuration looks correct. First, check the FQN (fully-qualified name) of your exception -- if that's correct, I suggest you take out your handy-dandy debugger and set a breakpoint in the RequestProc

Re: where i can get jdbc driver for oracle

2004-11-17 Thread Peng Tuck
The Oracle Client cd should come with a suitable driver or simply browse oracle's website for one. Nishant wrote: hi, how can i use database in struts where i can get jdbc driver for oracle database Nishant Patil Software Engineer Cybage Software Pvt. Ltd. (A CMM Level 3 Company) West Avenue , Ka

Re: AW: AW: AW: using multiple action forms in one action. Best practice?

2004-11-17 Thread Bill Keese
Hi Martin, I see what you mean about the "wizard" metaphor being inappropriate for your case. Maybe "tabbed dialog box" is a closer analogy. But I guess that doesn't match exactly either, because the contents of tab B change according to the contents of tab A. Anyway, there are many ways to

Re: Help with Exception handling

2004-11-17 Thread Erik Weber
Sorry, I don't exactly know what you are doing wrong, but here is an example that shows what the "key" attribute is for: From a struts-config.xml: The "key" attribute to the "exception" element is a message resources key, in the bundle sp

RE: Help with Exception handling

2004-11-17 Thread David G. Friedman
Wendy, Damn, with a name like that it seemed like a resource or a Java code. I'm so used to the convention of starting a tiles definition with a period that you bluffed me. Now, on the JSP issues, since you're trading control over to JSP's, can't you list the exception in your web.xml configurat

Re: Help with Exception handling

2004-11-17 Thread Wendy Smoak
From: "David G. Friedman" <[EMAIL PROTECTED]> > This looks interesting. What is 'den.login.success'? Is it a key in a > resource file or a java class or just a flat file with a dot-notation name? It's a Tiles definition. I'm sure I initially tried a Tiles def in the path attribute of the tag,

RE: Help with Exception handling

2004-11-17 Thread David G. Friedman
Wendy, This looks interesting. What is 'den.login.success'? Is it a key in a resource file or a java class or just a flat file with a dot-notation name? Regards, David -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 17, 2004 6:32 PM To: Struts U

Help with Exception handling

2004-11-17 Thread Wendy Smoak
I know I've tried this before, but so far I haven't gotten all the pieces properly arranged so it works. :/ I currently have code like this in an Action: try { benId = loginDAO.getBenId( asurite ); } catch ( TermsAcceptanceException ex ) { retu

RE: tiles and redirect (non-struts application)

2004-11-17 Thread David G. Friedman
Saravanan, This point has been discussed in the last 30 days. It usually came down to the idea that tiles has already started writing to the output stream so the headers are already committed, and often sent already. If you want do perform business conditions like that, I recommend you put them

Re: [OT] secure jsp in web application

2004-11-17 Thread Saravanan Veerappan
If you don't want to expose your jsp's by url, place your files under /WEB-INF directory of your web application. You do not need to declare in web descriptor. Ashish Kulkarni <[EMAIL PROTECTED]> wrote: Hi I dont want anyone to access them, still do i have to add auth-constraint in web.xml file??

Re: using JSTL with struts (stupid question?)

2004-11-17 Thread Guillaume Cottenceau
"Gareth Meyrick" writes: > hi, > > Guillaume Cottenceau wrote: > > > > Any place to check where this feature could be turned off > > inadvertandly? > > try inserting the page directive > > <%@ page isELIgnored="false" %> > > before any expression language (EL) stuff. > > hope this helps..

Re: [OT] secure jsp in web application

2004-11-17 Thread Ashish Kulkarni
Hi I dont want anyone to access them, still do i have to add auth-constraint in web.xml file?? if yes how do i add them with no user?? Ashish --- Saravanan Veerappan <[EMAIL PROTECTED]> wrote: > Can you post the entire web descriptor? i don't see > auth-constraint specified in the snippet. You n

Re: using JSTL with struts (stupid question?)

2004-11-17 Thread Guillaume Cottenceau
Guillaume Cottenceau writes: > Wendy Smoak writes: > > > From: "Neil Erdwien" <[EMAIL PROTECTED]> > > > The ability to use "${expr}" in the text of a JSP page is new to JSP > > > 2.0. Does your container support JSP 2.0? Tomcat 5 does, Tomcat 4 > > doesn't. > > > > And if you're not on JSP 2

Re: [OT] secure jsp in web application

2004-11-17 Thread Saravanan Veerappan
Can you post the entire web descriptor? i don't see auth-constraint specified in the snippet. You need to apply authorization constraint to protect your pages/ Ashish Kulkarni <[EMAIL PROTECTED]> wrote:Hi I want to secure all my jsp in my web application, I added following security constraint i

Re: using JSTL with struts (stupid question?)

2004-11-17 Thread Gareth Meyrick
hi, Guillaume Cottenceau wrote: > > Any place to check where this feature could be turned off > inadvertandly? try inserting the page directive <%@ page isELIgnored="false" %> before any expression language (EL) stuff. hope this helps.. -gm

[OT] secure jsp in web application

2004-11-17 Thread Ashish Kulkarni
Hi I want to secure all my jsp in my web application, I added following security constraint in my web.xml file, but some how seems it does not work Block Access to jsp files This is to block access to all jsp files *.jsp POST GET what may be the reason?? Ashi

tiles and redirect (non-struts application)

2004-11-17 Thread Saravanan Veerappan
I have a existing application (non-struts) and i would like to utilize tiles to take advantage of templates for layout. When i inlude redirect in the tiles body the redirection doesn't work saying response has been already comitted. Any suggestions? Here is my sample code

Re: using JSTL with struts (stupid question?)

2004-11-17 Thread Guillaume Cottenceau
Wendy Smoak writes: > From: "Neil Erdwien" <[EMAIL PROTECTED]> > > The ability to use "${expr}" in the text of a JSP page is new to JSP > > 2.0. Does your container support JSP 2.0? Tomcat 5 does, Tomcat 4 > doesn't. > > And if you're not on JSP 2.0, then try: > > (Assuming the 'user' objec

Re: using JSTL with struts (stupid question?)

2004-11-17 Thread Guillaume Cottenceau
Neil Erdwien writes: > The ability to use "${expr}" in the text of a JSP page is new to > JSP 2.0. Does your container support JSP 2.0? Tomcat 5 does, > Tomcat 4 doesn't. Ah. My container tomcat-5.0.27 so I guess it should.. -- Guillaume Cottenceau - http://zarb.org/~gc/ ---

Re: using JSTL with struts (stupid question?)

2004-11-17 Thread Wendy Smoak
From: "Neil Erdwien" <[EMAIL PROTECTED]> > The ability to use "${expr}" in the text of a JSP page is new to JSP > 2.0. Does your container support JSP 2.0? Tomcat 5 does, Tomcat 4 doesn't. And if you're not on JSP 2.0, then try: (Assuming the 'user' object has a 'getLogin' method.) -- Wendy

Re: Using commons HttpUtils to call an Action, but it doesn't work.

2004-11-17 Thread Guillaume Cottenceau
Morgan writes: > I'm using the following code in an initialization routine to call an Action. > This occurs the first time a user hits the application. This was all working > on > WebSphere 4.0.4, but we upgraded to WS 5.1.0.5 and now it doesn't work. No > error, no logs, no exception. Just l

Re: using JSTL with struts (stupid question?)

2004-11-17 Thread Neil Erdwien
The ability to use "${expr}" in the text of a JSP page is new to JSP 2.0. Does your container support JSP 2.0? Tomcat 5 does, Tomcat 4 doesn't. Guillaume Cottenceau wrote: Hi, I hope this is not gonna sound too stupid.. My problem is the inability to use ${expression..} in the JSP pages I use w

Indexed properties

2004-11-17 Thread David McReynolds
I am getting the nested beans out of my form ok but saving gives no joy. I am trying to use the "2.1 Hand Cranking lazy List in the ActionForm" from http://wiki.apache.org/struts/StrutsCatalogLazyList. However, I never see my log messages from the indexed getter methods for any of the nested beans.

using JSTL with struts (stupid question?)

2004-11-17 Thread Guillaume Cottenceau
Hi, I hope this is not gonna sound too stupid.. My problem is the inability to use ${expression..} in the JSP pages I use with struts. I have tried to look for information but failed to fix the problem myself, unfortunately. I have followed instructions here: http://jakarta.apache.org/taglibs/d

RE: Problem with null value

2004-11-17 Thread Mauro Morales M.
El mar, 16-11-2004 a las 14:09 -0600, Apte, Dhanashree (Noblestar) escribió: > If you are trying to do different processing in your action based on > different buttons clicked in the form, you can use > the Struts LookupDispatchAction instead of the normal Action class. I resolved this problem do

Re: LazyForm

2004-11-17 Thread Mark Lowe
I haven't used lazyform but i imagine it should work as follows. if you really want you could use a logic:iterate rather than c:forEach The html:text will render to You wont need to search request parameters although if you like that sort of thing you could. LazyDynaForm theForm

LazyForm

2004-11-17 Thread Seaman, Sloan
Is there anyway to use a LazyForm to do a something like: Not the best example, but exactly what I need to do :) Otherwise I'm stuck with: And then searching through the request.getParamaterNames() or something like that... Thanks... -- Sloan

RE: Using commons HttpUtils to call an Action, but it doesn't wor k.

2004-11-17 Thread Fogleson, Allen
Might seem silly but have you checked the firewall rules for the production server? I have seen lots of times where the firewalls or routers are set up in such a way that you cannot hit your own site(s)/boxes from within the firewall, or even resolve the DNS name (easily fixed with a etc/hosts en

Re: Struts 1.2.4 validator is not working

2004-11-17 Thread Matt Bathje
Yadav, Ganesh wrote: Thanks Niall, That helped me to resolve those mentioned errors. But seems like I cannot get validWhen rule working? It doesn't even generate a JavaScript validation method "validateValidWhen()" Following is the code snippet

RE: Struts 1.2.4 validator is not working

2004-11-17 Thread Yadav, Ganesh
Thanks Niall, That helped me to resolve those mentioned errors. But seems like I cannot get validWhen rule working? It doesn't even generate a JavaScript validation method "validateValidWhen()" Following is the code snippet test

Using commons HttpUtils to call an Action, but it doesn't work.

2004-11-17 Thread Morgan
I'm using the following code in an initialization routine to call an Action. This occurs the first time a user hits the application. This was all working on WebSphere 4.0.4, but we upgraded to WS 5.1.0.5 and now it doesn't work. No error, no logs, no exception. Just like it doesn't get called. O

Re: Using constants for form property names.

2004-11-17 Thread Bill Siggelkow
I believe this is documented in the JSP spec. Daffin, Miles (Company IT) wrote: Paul, Thanks. This worked. Where is this fact documented? -Miles -Original Message- From: Paul McCulloch [mailto:[EMAIL PROTECTED] Sent: 17 November 2004 17:16 To: 'Struts Users Mailing List' Subject: RE: Us

Re: Web Site vs Web Application

2004-11-17 Thread Joe Germuska
Allen: We use a practice somewhat like what you describe when roughing out prototype sites, or when a site has a pretty high amount of "static content." We've written a "TilesSmartForwardingAction" which we plug in as the "unknown" (default) action, and it parses the request path and converts

Re: [OT] User Preference System Design

2004-11-17 Thread Michael Klaene
I don't know of any resources like this, but I'm sure there are database books which detail the use of tables to help configure code. Like I said, I based my own tables off of what I've seen Oracle do, but there's probably a lot of variations on the same concept. Mike Julian <[EMAIL PROTECTE

Re: [OT] User Preference System Design

2004-11-17 Thread Julian
Hey Michael, Thanks for the input, you've offered me some great insight. I was wondering if you may know a good resource that discusses database design patterns like the codelist or a line table? Otherwise, afaik I have stored XML in the database and it's great if you just transform it to an out

RE: Web Site vs Web Application

2004-11-17 Thread David G. Friedman
Allan, If you are simply selecting the body while the whole site has the same wrapper, why use SiteMesh? It is a filter which wraps anything matching specific patterns (could be *.jsp, *.html, or even /someSection/* which needs it's own look such as a cross site agreement) and kicks it out with i

Re: [OT] User Preference System Design

2004-11-17 Thread Michael Klaene
I'd like to learn more about storing XML in the database myself. I really haven't had much experience there so I couldn't say if it is beneficial or not. I started out as a database developer so I tend to rely heavily on the database for a number of things, system prefs being one of those thin

Web Site vs Web Application

2004-11-17 Thread Tait, Allen
I'm interested in implementing the Struts and Tiles frameworks for a web site (moving slowly toward web application). Is it possible, or even recommended to design something similar to the following for the static portions of a web site. Assume Tiles have been defined to provide a common site w

RE: Using constants for form property names.

2004-11-17 Thread Daffin, Miles (Company IT)
Paul, Thanks. This worked. Where is this fact documented? -Miles > -Original Message- > From: Paul McCulloch [mailto:[EMAIL PROTECTED] > Sent: 17 November 2004 17:16 > To: 'Struts Users Mailing List' > Subject: RE: Using constants for form property names. > > When using RT expression

Re: [OT] User Preference System Design

2004-11-17 Thread Julian
I forgot to mention: 1) I cannot use Xindice since I do not feel it is viable. 2) I expect to have thousands of users with a moderate load. 3) I am leaning towards Michael's suggestion: http://www.developer.com/db/print.php/10920_3413151_1 Comment appreciated :) Thanks again, Julian

Re: [OT] User Preference System Design

2004-11-17 Thread Julian
Comments inline: --- Dakota Jack <[EMAIL PROTECTED]> wrote: > You received several answers about security, but > that is not what you > want, right? You want to be able to set and to > deliver user > preferences. Exactly. >As part of any suggestion about how > you should do this, > one would

Re: Struts 1.2.4 validator is not working

2004-11-17 Thread Niall Pemberton
Check out the upgrade notes here... http://wiki.apache.org/struts/StrutsUpgradeNotes11to124 My guess is you used to have your messages resources configured through the web.xml - this was considered deprecated in Struts 1.1 and has been removed from Struts 1.2.x You need to configure them int th

Re: Validation resources in another bundle

2004-11-17 Thread Niall Pemberton
This has already been raised as an issue in the following bugzilla ticket: http://issues.apache.org/bugzilla/show_bug.cgi?id=21760 Currently the bundle attribute on both the Arg and Msg elements in the validator dtd are ignored, as well as the "resource" property on the Msg element. The reason fo

Struts 1.2.4 validator is not working

2004-11-17 Thread Yadav, Ganesh
Can somebody let me know any workaround for the following error? Latest struts download version 1.2.4 validator has following error This error is thrown on following line in JSP. I am using latest download so that I can use "ValidWhen" functionality. Am I the only one who is getting this erro

RE: [OT] User Preference System Design

2004-11-17 Thread David G. Friedman
Why not do both and use XML database like Apache Xindice? http://xml.apache.org/xindice/ Regards, David -Original Message- From: Dakota Jack [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 17, 2004 12:33 PM To: Struts Users Mailing List Subject: Re: [OT] User Preference System Design

Re: [OT] User Preference System Design

2004-11-17 Thread Dakota Jack
You received several answers about security, but that is not what you want, right? You want to be able to set and to deliver user preferences. As part of any suggestion about how you should do this, one would need to know what the app is all about. Different solutions for different problems is k

Re: [OT] User Preference System Design

2004-11-17 Thread Dakota Jack
Why don't you just use a database? Am I missing something? Why XML, properties files, etc.? Jack On Wed, 17 Nov 2004 10:44:04 +, Adam Hardy <[EMAIL PROTECTED]> wrote: > Hi Julian, > > you should take a look at CMS (container-managed security) as this is > probably the most effective solut

Re: Nested properties with javascript

2004-11-17 Thread Mark Lowe
In fact.. Looks like you may want to do this wrote: > The form propert will be whatever is rendered in the name attribute. Try this. > > function fillSelect(myform) { > theSelect = myform.elements['userForm.agencyId']; > > > > > On Wed, 17 Nov 2004 11:24:36 -0600, Apte, Dhanashree (Noblest

Re: Nested properties with javascript

2004-11-17 Thread Mark Lowe
The form propert will be whatever is rendered in the name attribute. Try this. function fillSelect(myform) { theSelect = myform.elements['userForm.agencyId']; On Wed, 17 Nov 2004 11:24:36 -0600, Apte, Dhanashree (Noblestar) <[EMAIL PROTECTED]> wrote: > Hi, > > In my jsp, i am using nested

Nested properties with javascript

2004-11-17 Thread Apte, Dhanashree (Noblestar)
Hi, In my jsp, i am using nested properties of a form. RoleForm has UserForm which has agencies, agencyName and agencyId within it. The agencies and divisions need to be displayed in dropdown boxes. I got this to display correctly on my jsp using: However, in the javascript for t

Re: RequestProcessor processRoles question!

2004-11-17 Thread Craig McClanahan
Among other reasons, sending SC_UNAUTHORIZED would trigger the popup dialog for basic authentication -- that's not what we really want to have happen, since we know who the user is; she's just not allowed to access this particular action. Craig On Wed, 17 Nov 2004 16:58:33 +, João Vieira da

Re: Pre-populate form

2004-11-17 Thread Dakota Jack
The ActionForm you specified in your ActionMapping in struts-config.xml under the name attribute, e.g. "logonForm", is available to you in the execute method. Just cast your ActionForm parameter to the particular form you used with the Action, e.g., if you have public ActionForward execute(Action

RE: Using constants for form property names.

2004-11-17 Thread Paul McCulloch
When using RT expressions as attribute values the whole attribute must be a single RT: > N/A Paul > -Original Message- > From: Daffin, Miles (Company IT) > [mailto:[EMAIL PROTECTED] > Sent: 17 November 2004 17:03 > To: [EMAIL PROTECTED] > Subject: Using constants for form property nam

RE: [OT] User Preference System Design

2004-11-17 Thread Julian
Michael, Very informative article. What are your thoughts on storing user preferences as xml in a user preferences table? I think your approach would work well, but I alreay have code for parsing XML files. Ultimately, I would like the benefits of storing this data in a database (security, scal

Using constants for form property names.

2004-11-17 Thread Daffin, Miles (Company IT)
Hi All, I have found all sorts of ways to use constants for messages in struts, but no one seems to address the issue of property names. A simple example will make it clearer. I want to use constants for my property names. In my jsp I have the following code: N/A The above jsp code do

RequestProcessor processRoles question!

2004-11-17 Thread João Vieira da Luz
For the first time, in struts application development I'm using roles attribute from action-mapping. I found something weird in method processRoles on the class RequestProcessor: response.sendError(HttpServletResponse.SC_BAD_REQUEST, getInternal().getMessage("not

RE: Question regarding filters in html-tags

2004-11-17 Thread David G. Friedman
René, By +1, I meant I would vote to add filter="true/false" to the html:text and html:textarea tags as well. So, when you write you are using regular html tags, are you using a tag with bean write, like this: " /> Regards, David -Original Message- From: René Thol [mailto:[EMAIL PROTECT

Localised validation

2004-11-17 Thread dave
Hi, I am trying to write a multi-language system which will accept localised input in one of 2 countries, namely Austria and England (and later Italy). The problem is that of trying to validate and also to convert input. I would like to be able to validate dates and numbers using the built-in stan

Re: Installation Getting Started Question

2004-11-17 Thread Erik Weber
http://wiki.apache.org/struts/StrutsArticles The second site ("Struttin' With Struts") is one of my favorites because it gets right into the examples. Erik Scott Purcell wrote: I am wanting to see how Struts may help in my J2EE development. I have purchased the O'Reilly book "Jakarta Struts" and

RE: Error running CactusStrutsTest case with an ExtendedActionServlet instead of ActionServlet

2004-11-17 Thread Mick.Knutson
But it is there because we are running this app in production already as a EAR. But now when I introduced cactus, it breaks just on the tests. Not actually running the application. Mick Knutson Wells Fargo Business Direct (415) 222-1020 "This message may contain confidentia

Re: [OT] User Preference System Design

2004-11-17 Thread atta-ur rehman
if JDK 1.4 is an option you might want to take a look at: java.util.prefs.* HTH. ATTA On Tue, 16 Nov 2004 19:09:55 -0800 (PST), Julian <[EMAIL PROTECTED]> wrote: > Hi, I am a Struts Newbie and would appreciate if > anyone could give me some pointers on a user > preferences/ configuration syste

RE: [OT] User Preference System Design

2004-11-17 Thread Michael Klaene
I would say that 'system' level configurations(applying to all users) could easily be handled with XML files or properties files. User preferences, since they are tied to a specific user, IMO belong in the database, probably in a user preferences table. I know XML is a popular choice - you cou

Validation resources in another bundle

2004-11-17 Thread aris
Hi all, I'm trying to use an alternative message resource to display errors after the validate process. I set in the validation.xml the following element: It doesn't work and I have the suspect that the bundle attribute is completely ignored. Can anyone help me? Thanks aris. -

Re: Pre-populate form

2004-11-17 Thread Wendy Smoak
From: "Roland Carlsson" <[EMAIL PROTECTED]> > When you say that the newinsurance.jsp "just see it" where do you store > "it"? In request.setAttribute() with some key? Session? You don't have to store it anywhere... it's already there. In the 'execute' method signature, you are given a _reference_

RE: Installation Getting Started Question

2004-11-17 Thread Amin Lalji
Hey Scott, In practice, the Struts Distribution works like any other Servlet bases Web-App... Download struts and deploy the examples to tomcat (you do not necessarily require Apache, since struts is Servlet based technology)... in other words you really only need a Servlet Container... Good Luc

Re: free struts boook

2004-11-17 Thread M. Onur Tokan
Check out www.theserverside.com On Wed, 17 Nov 2004 20:21:20 +0530, Nishant <[EMAIL PROTECTED]> wrote: > where do i get struts free book except strutslive > > Nishant Patil > Software Engineer > Cybage Software Pvt. Ltd. (A CMM Level 3 Company) > West Avenue , Kalyani Nagar, > Pune - 411 006 > T

RE: free struts boook

2004-11-17 Thread Amin Lalji
http://www.theserverside.com/books/sourcebeat/JakartaStrutsLive/index.tss Google is your friend :) /A -Original Message- From: Nishant [mailto:[EMAIL PROTECTED] Sent: November 17, 2004 9:51 AM To: Struts Users Mailing List Subject: free struts boook where do i get struts free book exc

Re: Installation Getting Started Question

2004-11-17 Thread john . chesher
1) Not sure if apache required. 2) Google for "struts tutorial". You will find many simple apps to get you started and your configuration verified. 3) I started with the same book. You have to get through I think 3 chapters before you actual start writing an App! There might be some stuff

RE: Installation Getting Started Question

2004-11-17 Thread Daniel Perry
> I am wanting to see how Struts may help in my J2EE development. I > have purchased the O'Reilly book "Jakarta Struts" and want to get > started with some examples. > > 1) I am currently running Tomcat 4.1.31 as a standalone. > Can struts be installed with Tomcat as standalone? I saw > somewhe

Installation Getting Started Question

2004-11-17 Thread Scott Purcell
I am wanting to see how Struts may help in my J2EE development. I have purchased the O'Reilly book "Jakarta Struts" and want to get started with some examples. 1) I am currently running Tomcat 4.1.31 as a standalone. Can struts be installed with Tomcat as standalone? I saw somewhere in th

Re: Can we use multiple Controllers in a single web-application?

2004-11-17 Thread Joe Germuska
1)Is it possible to have Multiple Controllers in a single web-applicaion? (both these controllers are extended from the ActionServlet) Struts was not designed to support two ActionServlets in a single webapp. There are many places where resources would be initialized by the first webapp and then

free struts boook

2004-11-17 Thread Nishant
where do i get struts free book except strutslive Nishant Patil Software Engineer Cybage Software Pvt. Ltd. (A CMM Level 3 Company) West Avenue , Kalyani Nagar, Pune - 411 006 Tel: 91-20-4041700 -355 Email: [EMAIL PROTECTED] Website: www.cybage.com There's a difference between knowing the path, a

RE: [OT] User Preference System Design

2004-11-17 Thread Daniel Perry
The most common way to store more than one element in a properties file is to have more than one entry like the following: colour.count=3 colour.0=red colour.1=green colour.2=blue So your code loads the property for colour.count and loops through the other properties. Not very elegant, but it wo

Re: [OT] User Preference System Design

2004-11-17 Thread Julian
Hi, Thanks for the input. The Properties object is more inline with what I was thinking. The problem with it however, is that there can only be one key/value pair. I see no ability to have one key with multiple pairs other than doing comma delimitation. This is why XML was chosen originally.

Re: where i can get jdbc driver for oracle

2004-11-17 Thread Erik Weber
Nishant wrote: hi, how can i use database in struts Consult your Servlet container's JDBC documentation. Nothing special required for Struts. where i can get jdbc driver for oracle database http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html Erik Nishant Patil Softwar

Re: [OT] User Preference System Design

2004-11-17 Thread Erik Weber
I like java.util.Properties, or, if Strings aren't good enough, another wrapper for a Map that allows put/get of Objects but that uses a hierarchical default system like Properties does. Properties has built in load/save methods that you can use to store your properties on disk until you move t

RE: Prepopulate a DynaForm

2004-11-17 Thread Robert Taylor
You need to use the form which is passed in from the execute() method signature. DynaForm dForm = (DynaForm) form; dForm.set("author", "test"); return mapping.findForward("success"); This assumes you are using the same form for your setup and processing action and you are forwarding to the page

where i can get jdbc driver for oracle

2004-11-17 Thread Nishant
hi, how can i use database in struts where i can get jdbc driver for oracle database Nishant Patil Software Engineer Cybage Software Pvt. Ltd. (A CMM Level 3 Company) West Avenue , Kalyani Nagar, Pune - 411 006 Tel: 91-20-4041700 -355 Email: [EMAIL PROTECTED] Website: www.cybage.com There's a dif

Can we use multiple Controllers in a single web-application?

2004-11-17 Thread Amith M
hi, i have a requirement where we need to use two Controllers (one for each module) in our project. my web.xml looks like this.. http://java.sun.com/dtd/web-app_2_3.dtd";> controller1 com.test.struts.Controller1 config /WEB-INF/config1.xml debug 2 detail 2 2 controller2 com

RE: [OT] GMail Invite

2004-11-17 Thread Marco Mistroni
Hello peter, I got still 6.. i sent you one already.. Regards Marco -Original Message- From: Pilgrim, Peter [mailto:[EMAIL PROTECTED] Sent: 17 November 2004 11:57 To: Struts User Apache (E-mail) Subject: [OT] GMail Invite Anyone got a spare GMAIL invite pending. I subscr

Re: [OT] GMail Invite

2004-11-17 Thread Joe Germuska
At 11:56 AM + 11/17/04, Pilgrim, Peter wrote: Anyone got a spare GMAIL invite pending. I gave all mine to the iSnoop spooler: http://isnoop.net/gmailomatic.php Go there and request an account. I think the turn around is pretty quick. Joe -- Joe Germuska [EMAIL PROTECTED] http://b

Re: Reload the MessageResources ???

2004-11-17 Thread Joe Germuska
At 12:29 PM +0800 11/17/04, Eric Chow wrote: Hello, I implement a EJBMessageResource that extends Struts' MessageResources. How can I reload the MessageResources after the application starts ??? Struts stores its MessageResources object in the ServletContext under whatever key is specified using t

[OT] GMail Invite

2004-11-17 Thread Pilgrim, Peter
Anyone got a spare GMAIL invite pending. I subscribed to the flaming thing a couple of months, but I forgot both my gmail username and password log. I invented some security noshbit that is unfathable or gmail admin have locked the account. (I wanted check out some javascrpt that google have i

Prepopulate a DynaForm

2004-11-17 Thread Alexander Czernay
I'm trying to prepopulate a DynaForm with some values - right now just hard-coded, later should be taken from a DB. For that I'm using a SetupAction, that is called to prepopulate the form, insert it into the request and after that forward to the actual action for presenting the form to the use

Re: [OT] User Preference System Design

2004-11-17 Thread bryan
If you have a good learner and familiar with Dependancy injection/IOC I would recomend you look at acegi. It has a steep initial learning curve but there is no need that it doesn't satisfy, I think it is the most flexible and advanced security system/framework I've ever seen, providing security al

Re: [OT] User Preference System Design

2004-11-17 Thread Adam Hardy
Hi Julian, you should take a look at CMS (container-managed security) as this is probably the most effective solution - integrated, portable, widespread etc. Try either tomcat's website for documentation there, or even look in the servlet spec from Sun, or in your appserver's docs, to see if i

RE: talking about paradigms

2004-11-17 Thread Pilgrim, Peter
> -Original Message- > From: Don Brown [mailto:[EMAIL PROTECTED] ==== > > > Now, now, Peter, you can't quite say that since you met me at the > Struts user group at JavaOne. :) I've used stxx, an XML > transformation Struts extension, for a production app and have been > pretty happ

AW: AW: AW: using multiple action forms in one action. Best practice?

2004-11-17 Thread Martin Kindler
Bill, you seem to understand my application quite well. The metaphor of region/shops is excellent. What adds a bit of complexity is that the "shop"-module is just one of several. There might be an additional "people"-module, a "statistical data"-module, etc. Thus serializing the editing process i

  1   2   >