logic:notPresent tag doesn't work

2001-12-05 Thread Anthony Chater
In the Struts-example application the logic:notPresent tag is used in index.jsp to check whether the Application resources file was loaded. However I've tested this and it doesn't work. You still get a bunch of missing key error messages . Any suggestions -- To unsubscribe, e-mail:

Re: Connections Transactions

2001-12-05 Thread Jin Bal
I would say so, That is to say that if you call commit in the session bean then the operations carried out in the DAO will be committed and conversely if you roll back. HTH Jin - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, December 05, 2001 4:58 AM

RE: Hi

2001-12-05 Thread Tom Lister
Has anyone opened this or virus checked it. -Original Message- From: Scott Fitzgerald To: Struts-User Sent: 04/12/01 19:13 Subject: Hi How are you ? When I saw this screen saver, I immediately thought about you I am in a harry, I promise you will love it! gone.scr ATT04885.txt --

SV: Hi

2001-12-05 Thread Mikkel Bruun
do not open it... www.news.com -Oprindelig meddelelse- Fra: Tom Lister [mailto:[EMAIL PROTECTED]] Sendt: 5. december 2001 10:32 Til: 'Struts-User ' Emne: RE: Hi Has anyone opened this or virus checked it. -Original Message- From: Scott Fitzgerald To:

Re: The Future of JSP

2001-12-05 Thread Peter Pilgrim
1. JSP Since the introduction of JSP, back in 1999, it has made Java Servlet programming far easier. The introduction of custom tag actions in JSP 1.1 made live a lot easier. Jakarta Struts is an example of a solid action library among other. I think the future of JSP lies within custom action

Action an overkill ??

2001-12-05 Thread Abhishek Srivastava
Hello All, I render a table through my jsp page. The user can sort the table by clicking on each of the column headers. When the user clicks on the column header, an Action is invoked and the data that is used to render the table is sorted accordingly and placed back into the session. Now the

Problem forwarding to an action within another Action

2001-12-05 Thread Mohammed
Hi, In my action1 with path /action1 ( in the struts-conf.xml file) I am forwarding to Action2 with path /action2 as follow: return new ActionForwar(/action1); I am getting the the following error in the browser: Error status 404 request resource ( /action1) is not available thanks for

Re: Connections Transactions

2001-12-05 Thread aneesha . singh
Hi Thanks for the reply. But tell me, should not any connection made within a transaction, fall within the same transaction context?? Thanks again Aneesha

RE: Problem forwarding to an action within another Action

2001-12-05 Thread Robert Taylor
Mohammed, the code below comes from the ActionServlet.processActionForward() snip if (forward != null) { String path = forward.getPath(); if (forward.getRedirect()) { if (path.startsWith(/)) path = request.getContextPath() + path;

RE: Pb when using data-source

2001-12-05 Thread VIAUD Cédric
I didn't indicacte this in my post, but there was the data-sources /data-sources But, i have found the solution. The correct URL syntax for Oracle driver is not : set-property property=url value=jdbc:oracle:thin://thoth:1521/tolosa/ but : set-property property=url

RE: Action an overkill ??

2001-12-05 Thread Alexander Jesse
Hi, going through the action hides the presentation-implementation from the user's eyes. For example, the user will only see .../do/showTable (or .../showTable.do) in the browser's address line and therefor not be able to bookmark the jsp-file, when you use an action. The action also allows

Re: Problem forwarding to an action within another Action

2001-12-05 Thread Mohammed
Hi Robert, thank you , I found my error I musst do : return new ActioForward(/action1. staft, false) because I mapped my actionServlet to *.staft Mohammed - Original Message - From: Robert Taylor [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, December

RE: The Future of JSP

2001-12-05 Thread Alexander Jesse
1. JSP Since the introduction of JSP, back in 1999, it has made Java Servlet programming far easier. The introduction of custom tag actions in JSP 1.1 made live a lot easier. Jakarta Struts is an example of a solid action library among other. I think the future of JSP lies within custom

RE: Action an overkill ??

2001-12-05 Thread Abhishek Srivastava
Thanks for your reply, There is a debate in my team these days on the use of Jsp Tags versus Actions. Some jsp developers feel that ejbs should be accessed via tag libraries, databases should be accessed via tag libraries and for simple rendering things like sorting a table jsp tag libraries

Re: Action an overkill ??

2001-12-05 Thread Jin Bal
IMHO the DB should never be accessed by anything in the JSP itself, Tag or otherwise. I believe that one of the purposes of having actions is to enable delegation of things like DB access to specialised layers which can then be pluggable. Also, using actions allows processing to be wrapped

RE: Action an overkill ??

2001-12-05 Thread Alexander Jesse
You're welcome... Documents... - The archtectural papers for Struts (and other web-frameworks) - Ted's Catalog - the javaworld-article (have no url ready...) on Model 2 - Jason Hunters ranting against JSP - common sense (at least for a huge number of web-application programmers) all dictate

Re: struts action multiplexing

2001-12-05 Thread Peter Pilgrim
Solved the problem by having the target action intercept check for a request.getAttribute(important) before it checked for a request.getParameter(important). That way I can do something like this: request.setAttribute(important,make sure you visit http://java.sun.com/products/jsp; ); return

html:error

2001-12-05 Thread Mohammed
Hi, 1) In my jsp file I insert two error tags as follow: html:error property=registrationerror1 html:error property=registrationerror2 the registrationerror1 is added if the form validating of Action1 fails. and the reigstrationerror2 is added in action2 if inserting the new customer in the

RE: Action an overkill ??

2001-12-05 Thread Abhishek Srivastava
Ted's Catalog was useful in this regard as it clearly say no linking to jsps so no more sorting a table by jsp as it leads to a jsp making a hyperlink to itself rather than an action. Wish I could find something on the access of Ejbs via jsp-tags vs. Actions also. The feeling here is that

RE: Action an overkill ??

2001-12-05 Thread Alexander Jesse
In respect to ejb-access there have been thread's around in this mailing-list (search for ejb in the archive). And there is no difference between database-tables, corba-services and ejb's: they all belong to the applications backend. Therefor isolating them from the presentations layer is good

RE: html:error

2001-12-05 Thread Alexander Jesse
Hi, that's a little bug in the 1.0 struts-error-tags. I use the error-tags coming with David Winterfeldt's validation framework. The are compatible, allow for more flexible formatting and work. hope this helps Alexander Jesse -Original Message- From: Mohammed [mailto:[EMAIL PROTECTED]]

Best way to have truly dynamic templates?

2001-12-05 Thread Kenny Grimm
Hi, I'm currently working on a site in which I'd like every page accessed to follow the same template, as I'm sure most sites do. I am ending up with 2 files now for every different page on the site, 1 which states that I'd like to follow the template, and then the main jsp part of that page,

Re: Business objects as ActionForms

2001-12-05 Thread Ted Husted
This really only works if all your properties are Strings or booleans. Binary types can't be transmitted by HTTP, and so can't be represented to the user for correction. The ActionForm is a *buffer* to be used by the HTML tags. Once the data is validated, it can be converted and transferred to

Re: html:error

2001-12-05 Thread Mohammed
Hi Alexander, is there a new version of struts which fixes this bug Mohammed - Original Message - From: Alexander Jesse [EMAIL PROTECTED] To: struts-user [EMAIL PROTECTED] Sent: Wednesday, December 05, 2001 1:14 PM Subject: RE: html:error Hi, that's a little bug in the 1.0

RE: html:error

2001-12-05 Thread Alexander Jesse
Hi Mohammed, I do not know... The Winterfeldt tags also allow for more flexible formatting. That's why I use only them. And they work also, if you do not use David's Validation Framework... Alexander -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent:

Re: JDBCRealms

2001-12-05 Thread Martin Fekete
see sources ... list of roles is retrieved only when authenticate(...) is called. then roles are stored in list ... so when roles are changed in DB you wont see change in your application. that's the way which FORM authorization work. When using BASIC authorization the list of roles is populated

RE: Help with Html errors not showing errors

2001-12-05 Thread Keith Bacon
in applicationResources.properties you have errors.detail={0} when adding the error you have ActionError(error.detail,e.getCauseMessage())); is it just a simple spelling mistake? error.detail/errors.detail Keith. --- Strichartz, Beth [EMAIL PROTECTED] wrote: I am getting desperate on what

Re: html:error

2001-12-05 Thread Mohammed
Hi Alexander, I read the Doc of Winterfeldt package . The errot tag class has been deprecated. Mohammed - Original Message - From: Alexander Jesse [EMAIL PROTECTED] To: struts-user [EMAIL PROTECTED] Sent: Wednesday, December 05, 2001 2:09 PM Subject: RE: html:error Hi Mohammed, I

RE: html:error

2001-12-05 Thread Alexander Jesse
Hi Mohammed, well I still use Struts 1.0 with David's Framework in the July-version. If you use Struts 1.0.1 or a nightly build, it can be that David's tags have been moved either into Struts or into the Apache commons-project. For the newer versions of Struts I cannot give you a final

RE: radio button

2001-12-05 Thread Tom Klaasen (TeleRelay)
I think (but am not sure) you should do logic:iterate id=element . html:radio name=element property=reviewer value=id / /logic:iterate tomK -Original Message- From: Henrik Chua [mailto:[EMAIL PROTECTED]] Sent: maandag 3 december 2001 6:59 To: Struts Users Mailing List

RE: iterate tag problems (sorry !!)

2001-12-05 Thread Tom Klaasen (TeleRelay)
After a quick look, I think you forgot the setParameter(int index, YourClass object) method. This enables struts to update the form with the new values. hth, tomK -Original Message- From: Eddie Fung [mailto:[EMAIL PROTECTED]] Sent: dinsdag 4 december 2001 12:40 To: [EMAIL

RE: Can a form submit to a vector?

2001-12-05 Thread Tom Klaasen (TeleRelay)
One cool (although for the OO purists not entirely koosjer): in your ActionForm, add the method setAddChargingObject(String dummy) in the jsp, construct the button like this: html:submit property=addChargingObjectAdd/html:submit When the button is pressed, the method is called, and there you

RE: logic:notPresent tag doesn't work

2001-12-05 Thread Stephen Owens
I've used this tag successfully so I know it works. Any chance you're missing the tag library definition for the struts logic tags in the jsp file? Stephen Owens Corner Software -Original Message- From: Anthony Chater [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 05, 2001 3:36 AM

RE: Connections Transactions

2001-12-05 Thread Jon.Ridgway
HI Aneesha, I think it depends on if you are using declarative transactions within your stateless bean. If you are and set your transaction attribute to start a new transaction, then the answer is yes. If you are not using declarative transactions then it will be up to you to start a new

RE: ActionError Header/Foorters - can Global vs Non-Global be differentiated

2001-12-05 Thread Jon.Ridgway
Hi Greg, You could try using the standard Struts ActionError's mechanism for validation errors. Use the standard J2EE exception handling mechanism errors. To do this add error-page entries to your web.xml; one for exceptions and another for warnings. Then through two types of corresponding

RE: Can a form submit to a vector?

2001-12-05 Thread Jon.Ridgway
Hi Alex, Have a look at the struts-example web-app. This contains an example of what you are trying to do. So yes it's possible. Jon. -Original Message- From: Alex Colic [mailto:[EMAIL PROTECTED]] Sent: 03 December 2001 17:41 To: Struts Subject: Can a form submit to a vector? Hi, I

RE: Test application.resources file

2001-12-05 Thread Stephen Owens
Beth, You could test for the load of the application.resources file using a bean:message key=message.hello/ in a jsp file, where message.hello is a valid key in your application.resources file. -Original Message- From: Strichartz, Beth [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December

Re: Action an overkill ??

2001-12-05 Thread Ted Husted
It's my personal opinion that presentation pages should be as dumb as possible. It should not have to think about the data, just render it as it has been given. Conversely, the business layer should be as smart as possible, and provide whatever alternatives the rest of the application needs to

RE: Test application.resources file

2001-12-05 Thread Keith Bacon
you could have a message like 'application.resources.changed=application resources change 20 Nov 01 10:30' display it on some page - manually changing that message when updating app resources(yuk!). I have no time to do it but I'd like to create a file object on the app resources file call

RE: First visit to a form

2001-12-05 Thread Alexander Jesse
Hi, sending them to an action first hides the JSP-detail and lets you prepopulate the form (if ever need arises). Also there has been a thread on problems when the user wanders off and returns to your form, if you pass by the action you can reset the form when entering... Especially the

Filling fiels in a form after validinf error?

2001-12-05 Thread Mohammed
Hi, How can a let the form hold the old user inputs when a validing Error occurs and the form is sent by the ActionServlet again to the Browser? Mohammed -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: Action an overkill ??

2001-12-05 Thread Jon.Ridgway
Hi Abhishek, As you have suggested, you can access your EJB via a Taglib or an Action. Both are valid options. You should however access the EJB via a Business Delegate, ie a standard JavaBean that hides the EJB lookup. The Business Delegate can then be use by an Action or a TagLib. A rule of

Re: Hi

2001-12-05 Thread William Willis
Thanks for the virus From: Scott Fitzgerald [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts-User [EMAIL PROTECTED] Subject: Hi Date: Tue, 4 Dec 2001 15:43:43 -0330 How are you ? When I saw this screen saver, I immediately thought about you I am in a harry, I

object sharing

2001-12-05 Thread Luca Biolcati
Hello, I would like to share a generic object between an Action class and a JSP. It seemed obvious putting it in the session or in the request scope but in both ways I can't see them on the JSP side. The HttpSession and HttpServletRequest objects are different. I've also tried putting it in

RE: Connections Transactions

2001-12-05 Thread Cakalic, James P.
This may, in part, depend on how your session bean acquires the connection. On my project we are using WebSphere (currently 3.5.x) and Oracle 8i. When the project started, Oracle's JDBC drivers were not fully JTA compliant so WebSphere could not use them in two phase commit operations. As the

RE: Action an overkill ??

2001-12-05 Thread Jon.Ridgway
Hi Abhishek, My previous answer was a bit vague as it depends on the specific context. If for example you whished to check that the users details had been fetched before accessing a page then a taglib that uses a business delegate to access an ejb would be a good choice. If however you wanted

Re: Connections Transactions

2001-12-05 Thread Kyle Brown
Yes. That's the way EJB transaction swork. They are thread based. If a transaction is associated with a particular thread it doesn't matter where (in which object) the connection is created or used -- it's enlisted in the transaction. Kyle --- Kyle Brown

RE: object sharing

2001-12-05 Thread Jon.Ridgway
Hi Luca, What you are trying to do is standard stuff that works. If it is not working you must be doing something wrong. Post the Java code that puts the object on the request/session and the JSP snippet that tries to access the object. Jon. -Original Message- From: Luca Biolcati

using String[] for an ActionForm value

2001-12-05 Thread Andras Balogh
Hi Struts users, I have a from in wich i generate with logic:iterate textfields with the same name, let say 'desc'. In the corresponding ActionForm i have created a String array and two methods public void setDesc(String d[]) { desc=d; } public String[] getDesc() { return desc; } Struts

RE: Action an overkill ??

2001-12-05 Thread Sobkowski, Andrej
Hello, two comments/questions: - in my opinion, sorting data is somehow business processing. Suppose that you have a long list of results that is paged (ie. retrieved in chunks from the data store). Sorting the data using a different criteria may involve re-accessing the data store to retrieve a

Re: Action an overkill ??

2001-12-05 Thread Ted Husted
Jon.Ridgway wrote: Some choices are not so clear cut. Sorting a table for instance could be handled by a taglib or a repost to an action that sorts and forwards back to the jsp. I guess I would favor the taglib option here, as I might (heaven forbid) use a framework other than struts in the

Sending the actionformbean to the next JSP page

2001-12-05 Thread wbchmura
Someone please tell me if this is bad. I have a form, when the action suceeds it stores the actionform bean in the session. It then goes to the next JSP page that tries to retrieve it and print out things that were submitted. Basically the flow is: Form Page - Review Page - if you find a

Access application resource bundle from an ActionForm

2001-12-05 Thread Silvert, Stan
I need to access the Struts application resource bundle from an ActionForm. Here is why: During validation, I want to check for a required field such as email address. In my system, Email Address is always referred to from a resource bundle so that I can localize properly. So, my English

RE: Sending the actionformbean to the next JSP page

2001-12-05 Thread Sobkowski, Andrej
Hi, are you sure it's jsp:getProperty name=thisCr property=getModel.title/ and not (note the change getModel - model) jsp:getProperty name=thisCr property=model.title/ I guess you want to call yourBean.getModel.setTitle(..). My 2c.. HTH Andrej -Original Message- From: [EMAIL

RE: Action an overkill ??

2001-12-05 Thread Jon.Ridgway
Hi Ted, Yes, very good point. It would indeed be the best place to sort Jon. -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED]] Sent: 05 December 2001 15:36 To: Struts Users Mailing List Subject: Re: Action an overkill ?? Jon.Ridgway wrote: Some choices are not so

RE: Action an overkill ??

2001-12-05 Thread Jon.Ridgway
Hi Andrej, Point one below, you a right. I don't think the suggestion is to sort in the JSP, Taglib or Action. The sorting should be delegated via a taglib or jsp to a business class. Point two, the Business Delegate pattern suggests that you should use a simple JavaBean to access all services,

Re: object sharing

2001-12-05 Thread Chris Opacki
Are you're JSPs in a different JVM than your Action class? --- Luca Biolcati [EMAIL PROTECTED] wrote: Hello, I would like to share a generic object between an Action class and a JSP. It seemed obvious putting it in the session or in the request scope but in both ways I can't see them on

Global Forwards

2001-12-05 Thread Dave J Dandeneau
Can a global forward point to a file in the WEB-INF directory? Thanks, dave

Cannot find ActionMappings or ActionFormBeans collection

2001-12-05 Thread Chappell, Simon P
I have battled this for a week and searched the Internet high and low for answers. After checking the syntax and correctness of web.xml and struts-config.xml and receiving no errors when I compile and making certain that my classes and JAR files are in the correct directories and that I don't

html:link href to external URL in a

2001-12-05 Thread Rob Breeds
Hi This may be in the FAQ/archive but I can't find it! If I have a dynamically generated external URL available in the request/session object, e.g. http://www.banana.com;, how do I write a html:link href tag such that the link takes the user to that external URL? (Without using scriptlets?) I

RE: Cannot find ActionMappings or ActionFormBeans collection

2001-12-05 Thread Stephen Owens
Simon, Do you see the action mappings messages when you start the server? Things of the form: Call org.apache.struts.action.ActionMapping.addForward(ActionForward[send]) If not it really sounds like the action servlet isn't finding the struts-config.xml file, or isn't parsing it. Perhaps if

RE: Access application resource bundle from an ActionForm

2001-12-05 Thread Jon.Ridgway
Hi Silvert, You could try the org.apache.struts.util.RequestUtils.message method(s). Jon. -Original Message- From: Silvert, Stan [mailto:[EMAIL PROTECTED]] Sent: 05 December 2001 15:39 To: Struts Users Mailing List (E-mail) Subject: Access application resource bundle from an

RE: html:link href to external URL in a

2001-12-05 Thread Siggelkow, Bill
You can do this by just coding the link in with an HTML anchor tag as folows: a href=bean:write name=abcd property =xyz/ bean:write name=abcd property=xyz/ /a or use an expression html:link href=%=abcd.getXyz()% bean:write name=abcd property=xyz/ /html:link -Original

RE: Access application resource bundle from an ActionForm

2001-12-05 Thread Silvert, Stan
Thanks for the suggestion, but unfortunately the RequestUtils.message methods need a PageContext. I don't have access to a PageContext during ActionForm validation. Stan -Original Message- From: Jon.Ridgway [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 05, 2001 11:10 AM To:

Form beans in tag library

2001-12-05 Thread Anthony Chater
Can I get a handle on my form beans in my own tag library? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: HELP with accessing indexed, nested properties in Action

2001-12-05 Thread John Kowalik
Dave, I still can't get this to work. I'm not sure which code on that page I should be using? Can you send me your source files from this example? I would REALLY appreciate it. No matter what I seem to do, whenever I sumit the form, the Action can get all the 'normal' properties out of

RE: Cannot find ActionMappings or ActionFormBeans collection

2001-12-05 Thread Chappell, Simon P
Well bless my cotton socks. After your suggestions, I stopped Tomcat, removed all the log files, removed everything except the shipped examples and restarted Tomcat. I observed the log files and not a sign of an error (that's good in shipping code I suspect :-) I added my application WAR file

Multiple Parameters for html:link

2001-12-05 Thread Volker Krebs
Hello, I've read about a custom tag where I can pass multiple Parameters to the html:link tag without using HashMap. http://www.mail-archive.com/struts-dev@jakarta.apache.org/msg01695.html Are there any plans including it in struts ? I think its quite usefull. Is there a newer version which

Alternate Query String Arrangement

2001-12-05 Thread Phase Communcations
Has anyone succefully swapped out the ? and the in a querystring with another symbol , such as /. A problem with various search engine spiders (not all, but, several) is that they will not move past a ?. It would be advantagous to allow for the use of a more compatible querystring (a way around)

Tomcat 3.2.3+mod_jk

2001-12-05 Thread Daiju Kato
Hello all, Would you give me some advice? I try to use struts 1.0 under tomcat 3.2.3 + mod_jk. I modified mod_jk.conf to add 'JkMount /*.do ajp13'. But .do files are not found. I tried Tomcat 3.3 but result was same. Please let me know how to set up struts with mod_jk. Regards. Daiju Kato

Re: Cannot find ActionMappings or ActionFormBeans collection

2001-12-05 Thread Keith Bacon
Simon, A wild shot but best I can suggest When I've recompiled classes, instead of the new class loading automatically I start getting struts messages (things not found). Restarting Tomcat fixes them - but I'm sure you've tried that a million times. Please - experts hear this persons plea - I

RE: Passing several parameters in a html link

2001-12-05 Thread Jon.Ridgway
Hi Frederic, You will need to add a Map to the html:link. You might also consider using a custom taglib. I believe the struts-example app has such a taglib. Jon. -Original Message- From: Frédéric Houbie - ABSIS-GROUP [mailto:[EMAIL PROTECTED]] Sent: 04 December 2001 08:42 To:

RE: HELP with accessing indexed, nested properties in Action

2001-12-05 Thread dhay
Hi John, Sorry - the code on the page is misleading - the attachment I posted is right at the bottom, but I am attaching it here again. Things I would check: - form bean in session scope - correct getters / setters, including the getObjectFromList(index i) - carefully check all naming,

RE: Indexed tags iterate tag problems

2001-12-05 Thread dhay
See working example I just posted, and things to check. Others have had this problem in the archives. It needs carefully checking! cheers, Dave Mike Ashamalla [EMAIL PROTECTED] on 12/04/2001 03:39:25 PM Please respond to Struts Users Mailing List [EMAIL PROTECTED]; Please

RE: Indexed tags iterate tag problems

2001-12-05 Thread dhay
Taking a closer look at your code - first thing to check is capitalization of your EmploymentInfoField - it must have a small 'e' - lots of messages about bean naming scheme in list, eg http://www.mail-archive.com/struts-user@jakarta.apache.org/msg04762.html. Cheers, Dave Mike

RE: Tomcat 3.2.3+mod_jk

2001-12-05 Thread Phase Communcations
Do you have ajp13 activeated/installed? Try using ajp12 to test it out. Also, where are you placing your JkMount directive? -Original Message- From: Daiju Kato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 05, 2001 9:56 AM To: [EMAIL PROTECTED] Subject: Tomcat 3.2.3+mod_jk Hello

RE: iterate tag problems (sorry !!)

2001-12-05 Thread dhay
Struts doesn't require this. Dave Tom Klaasen (TeleRelay) [EMAIL PROTECTED] on 12/05/2001 08:16:34 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc:(bcc: David Hay/Lex/Lexmark) Subject: RE: iterate tag

Re: iterate tag problems (sorry !!)

2001-12-05 Thread dhay
Hi Eddie, BTW Dave Hay how does Struts match up the getMyObject method with the myObjectArray ?? When Struts attempts to populate the form from the request, it takes the name of the element in the request - in your case say myObject[0].beanSelected and translates this into a call on the form

Re: Access application resource bundle from an ActionForm

2001-12-05 Thread Bruce Geerdes
Try: MessageResources resources = getServlet().getResources(); resources.getMessage(emailAddressLabel); If your bundle is localized, you'll have to get the locale separately and pass that on to the getMessage. Locale loc = (Locale)request.getSession().getAttribute(

RE: Cannot find ActionMappings or ActionFormBeans collection

2001-12-05 Thread Chappell, Simon P
I not only stop and restart Tomcat, but I blow away the deployed version of the app and redeploy. Anyway, it now looks like my problem are with the struts-config.xml and/or the web.xml files. I agree that struts either needs to be friendlier with it's error messages or much more tolerant of new

Re: Tomcat 3.2.3+mod_jk

2001-12-05 Thread Martin Samm
have you amended the mod_jk.conf-auto file (after tomcat has started) to include the .do mapping: Change the first JkMount block from JkMount /*.jsp ajp12 JkMount /servlet/* ajp12 to JkMount /*.jsp ajp12 JkMount /*.do ajp12 JkMount /servlet/* ajp12 On Wednesday 05 Dec 2001 4:56 pm, you

Application root in javascript

2001-12-05 Thread Thinh Doan
In my app., I have a link (a... tag) to call a javascript to open a child window: function openit(myjsp) { winprops = 'scrollbars,resizable,menubar'; win = window.open(myjsp, 'childwin', winprops); } The problem I have is window.open takes myjsp from its current path, eventhough

RE: HELP with accessing indexed, nested properties in Action

2001-12-05 Thread Tom Klaasen (TeleRelay)
Hi John, I think you'll like http://www.keyboardmonkey.com/struts: a set of taglibs for struts that allows better access to indexed and mapped properties. hth, tomK -Original Message- From: John Kowalik [mailto:[EMAIL PROTECTED]] Sent: woensdag 5 december 2001 17:30 To: Struts

action chaining without resetting action forms

2001-12-05 Thread Joe Faith
Hi, I want to 'chain' actions, by setting the forward of one to be 'my_action.do' The problem is that this resets the action form before calling the next action. Is there anyway to prevent this, or am I chaining actions in the wrong way? thanks -- Joe Faith http://www.runtime-collective.com T:

RE: html:link href to external URL in a

2001-12-05 Thread Rob Breeds
No way to do this with purely Struts tags? Thanks Rob Breeds Siggelkow, Bill

RE: Business objects as ActionForms

2001-12-05 Thread Jeff Martin
On a similar topic, what is the recommended way to move data from the form beans [subclass of ActionForm] to my business objects. Is it: A) in each getter and setter, such as: No member variables public String getFirstName() { return customer.getFirstName(); } public void setFirstName(String

RE: Indexed tags iterate tag problems

2001-12-05 Thread Mike Ashamalla
Dave, Thank you very much for the help!! That seems to have done the trick. I won't make that mistake again. I think the hard part was that Struts never generated an error when it couldn't find the appropriate setter. The sample code really helped as well. Thanks again! Thank You, Mike

Writing to the ActionServlet response

2001-12-05 Thread Firmin David
Hi All, I'm keen to be able to write out a dynamically generated file to the client. Is there a way I can write it straight to the ActionServlet response from the Struts Action.perform() method I'm in, or is there a better way? I know I have access to the response in the perform method, but

RE: Writing to the ActionServlet response

2001-12-05 Thread Greg Lehane
Dave, Not sure if this is what you mean, but you can do something like this: File fileToExport = new File(some text); response.setContentType(...); response.setHeader(...,...); PrintWriter out = response.getWriter(); out.println(exportFile);

RE: Indexed tags iterate tag problems

2001-12-05 Thread Jeff Martin
Along those lines, is there a struts debug var (in the servlet's config params for example) that will print/log messages when it gets a request param that it can't map to an ActionForm setter? It seems this would be very helpful when developing pages. Optimally, output could look something like:

Populating form in the action

2001-12-05 Thread John Ng
Hi, I have some questions about how to populate the form in the action. For instance, I create a ActionForm in the perform method of the Action class, and then forward the control to a jsp page. How does the JSP page know that the form that it gets is the form that just get populated in the

Tiles component Verify Error!!!!

2001-12-05 Thread iT meDic
Hi, I have come across a very peculiar error. I have built an application on my computer using Struts/Tiles and it works like a charm , however when i move it to another computer i get a very strange error message. My computer is Windows 2000 Professional, running resin v2.0.2. When i move

RE: Populating form in the action

2001-12-05 Thread Siggelkow, Bill
It knows because you access the form via the html:form tag. -Original Message- From: John Ng [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 05, 2001 2:25 PM To: Struts Users Mailing List Subject: Populating form in the action Hi, I have some questions about how to populate the

setting a default bean for logic tags

2001-12-05 Thread Mike Hoeffner
Is it possible to set a default bean for logic tags like it is for form tags so that they don't have to be named in each logic tag? If I don't specify the name in an html:text tag, the name from the parent form and its corresponding action tag will be used. For example, in the below html:text

Re: RE: Populating form in the action

2001-12-05 Thread Joey Gibson
For instance, I create a ActionForm in the perform method of the Action class, and then forward the control to a jsp page. How does the JSP page know that the form that it gets is the form that just get populated in the Action before? Don't create an instance of the form, use the one

RE: setting a default bean for logic tags

2001-12-05 Thread Siggelkow, Bill
I believe that the name attribute can take a request-time expression that you could use for this purpose. -Original Message- From: Mike Hoeffner [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 05, 2001 2:49 PM To: [EMAIL PROTECTED] Subject: setting a default bean for logic tags

Struts Simple - Ted Husted

2001-12-05 Thread iT meDic
Hello All, I am utilizing Ted Husted's struts simple example. I have a specific question for the activity1.java file. I am trying to write the values collected to a text file. i have managed to do that with relative ease however, what i really want to do is to write the values to the text

JSPs past WEB-INF --- Please Help!

2001-12-05 Thread Dave J Dandeneau
I have been trying to figure this out for a while now, but have had no luck. Any help would be s greatly appreciated. Here it is: If you place your jsps past the WEB-INF and do not hit them directly then what is the easiest way to implement a first-visit. i.e. the first time you go to a page

Re: JSPs past WEB-INF --- Please Help!

2001-12-05 Thread Matt Raible
Here is what I did: http://www.mail-archive.com/struts-user@jakarta.apache.org/msg12014.html --- Dave J Dandeneau [EMAIL PROTECTED] wrote: I have been trying to figure this out for a while now, but have had no luck. Any help would be s greatly appreciated. Here it is: If you place your

RE: Can a form submit to a vector?

2001-12-05 Thread dhay
Hey Alex, Not sure if I understand your setup. If I were doing this, I would just have the iterate at the top of the page, and a form at the bottom. When the form is submitted, the action adds the entry to the vector used in the top of the page, and goes back to the same page. Am I

  1   2   >