Newbie :rendering hidden fields

2003-07-29 Thread Jitesh Sinha
How do you render an input hidden field inside a tag ..?? Actually here is what my code looks like : -- Here I want to put my hidden field like this--- I want the value of hidden field as another property of bean "mybean"(which is used in tag) suppose "anotherPropertyofmybean" .What to do?

RE: Struts Action in Welcome File List

2003-07-29 Thread Swaroop George
I got this problem sometime back.. But apparently it was a problem with one of the html tags- it wasn't properly closed. To detect it what I did was to Get a view Source on the blank page. Saved it as a .XML file. Opened the XML file in the browser. It showed exactly where the tag wasn't closed..

Re: Struts Action in Welcome File List

2003-07-29 Thread message message
Actually this blank page phenomenon happend to me a long time ago. I remember taking out the line content type. That was the only change I made and it worked. From: Jon Wynacht <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL P

Struts Error Handling Problem

2003-07-29 Thread Rodney Paul
Hi All, I am currently using the Struts framework to develop a wizard application. When using the Struts framework I notice that form data does not get re-displayed after issuing ActionErrors. Is there any reason for this? I use the following code structure for developing the wizard: Organisatio

Re: Struts Action in Welcome File List

2003-07-29 Thread Jon Wynacht
Didn't work for me. I'm stumped ;-( Jon On Tuesday, July 29, 2003, at 09:55 PM, Dan Tran wrote: This works for me <%@ page language="java" contentType="text/html;charset=utf-8" %> <% response.sendRedirect("./PMTAction.do"); %> -D - Original Message - From: "Jon Wynacht" <[EMAIL PRO

Re: Newbie - error Location

2003-07-29 Thread Stephan Wiesner
Hi Chirag, there are a number of possible reasons. The class file doesn't exist, for example. You need to be more specific here. Chirag Mehta wrote: Hello, I am following the Struts tutorial written by Stephan Wieser to create my own struts app. I reached the section on forms and am getting th

Re: Opening/reading a file from a Struts application...

2003-07-29 Thread Stephan Wiesner
You can load Properties files like this: java.io.InputStream in = baseClass.getResourceAsStream(fileName); Properties props = new Properties(); props.load(in); I use this with my base classes, as the have to work outside my Tomcat, too, that's what base classes for, after all. Have

Re: Problem in using Validator Framework with Struts

2003-07-29 Thread Stephan Wiesner
Hi Dirk, did you activate the plugin in struts-config? Maybe a typo? Struts 1.1 already contains the activated plugin and there is an example war where you might want to copy paste some lines. Dirk Behrendt wrote: Hello! I have a problem in using the Validator framework with Struts. I want t

Re: Struts Action in Welcome File List

2003-07-29 Thread Dan Tran
This works for me <%@ page language="java" contentType="text/html;charset=utf-8" %> <% response.sendRedirect("./PMTAction.do"); %> -D - Original Message - From: "Jon Wynacht" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, July 29, 2003 9:41 PM

Fwd: Openings in J2EE/Struts

2003-07-29 Thread Ajay Patil
Hello, I am forwarding information about openings in J2EE/Struts in our company (based in Pune, India). Please email to Viraj ([EMAIL PROTECTED]) if interested. Thanks, Ajay Dear Friends, We are looking for Senior Software professionals with experience in Advanced Java technology. The candid

Re: Struts Action in Welcome File List

2003-07-29 Thread Jon Wynacht
Hmmm...tried that but still blanks out after a while...I'm wondering if there's an issue with my use of sessions...would that come into play here? Jon On Tuesday, July 29, 2003, at 06:56 PM, John Cavacas wrote: Try, In your index.jsp page. Also, look at sruts-blank.war example application

Re: Transaction Token

2003-07-29 Thread manglu
The Trans token is fairly SImple Before a form is sent to the User in your action class make a saveToken(request) call. When the form is displayed on the client side there is a token attached which is sent along with the form on a submit by the Client When a call is received the token (sent b

Example : Search & Update Rows.

2003-07-29 Thread Ajay Patil
Hi Faisal, Here is an sample code for searching and updating rows for a table. This code only shows the basic structure for implementing this functionality. I hope there are not any major typos that I have done ;-) Trust this helps, Ajay struts-config.xml -- Search.

RE: Action Chaining and File Uploads

2003-07-29 Thread Andrew Hill
Ah... another entry to the "joys of action chaining" list. Action chaining is bad. You should avoid it like the plague because it will only ever end in tears... What I heard about filters was that it would be in struts 2.x - so quite a while yet I think :-( Hmm... lets see, 1.0.2 to 1.1.0 took ab

Fw: Unable to compile

2003-07-29 Thread send2rajesh
I am sorry for posting this question second time on this list. Earlier I posted this question before I subscribed to the list. So I am thinking that I may have missed if any one replied to this email. Now I am subscribed to the list. Thanks for help! - Original Message - From: <[EMA

Re: DB Write Access Problem with Tomcat JNDI

2003-07-29 Thread Craig R. McClanahan
On Tue, 29 Jul 2003 [EMAIL PROTECTED] wrote: > Date: Tue, 29 Jul 2003 17:51:42 -0700 > From: [EMAIL PROTECTED] > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: Struts Users Mailing List <[EMAIL PROTECTED]> > Subject: Re: DB Write Access Problem with Tomcat JNDI > > > Yes, write ac

passing parameter to a getter method

2003-07-29 Thread Richard Raquepo
help. how can i pass a parameter to a getter method using JSTL of Struts-EL? example in a java i can get values from my bean using ArrayList values = mybean.getSampleValues("id01"); now how can i do that in struts/jsp. using logic-el:iterate or for each. "Id01" is dynamic it will come

RE: Multiple modules - Please help

2003-07-29 Thread Ajay Patil
Dear Steve, Thanks for finding the problem in the configuration file. I had not realized it. ** sorry for the typo in bug report ** So, now I have an enhancement request.. :) Would it be possible to enhance ForwardAction so that it also requires a MODULE relative path ? It would be then very

RE: Struts Action in Welcome File List

2003-07-29 Thread John Cavacas
Try, In your index.jsp page. Also, look at sruts-blank.war example application for an easy to understand example of this. John > -Original Message- > From: Jon Wynacht [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 29, 2003 9:41 PM > To: [EMAIL PROTECTED] > Subject: Struts Action in W

Struts Action in Welcome File List

2003-07-29 Thread Jon Wynacht
Hi, I've been using Struts now for some time and enjoy it immensely! However, I've recently run into a problem that has me perplexed. Usually I can figure these things out and not bother the mail lists but this one requires your help ;-) I've pulled some info from the "Programming Jakarta Stru

RE: [ANNOUNCE] Struts Console v4.0.3

2003-07-29 Thread message message
I have taken out the rewrite attribute and replaced it with redirect=true. It doesn't seem to have had any impact on the application behaviour. the struts-logon.war with struts-config.xml file is probably incorrect. I have also checked the supported attributes for the element in the book I am us

Re: DB Write Access Problem with Tomcat JNDI

2003-07-29 Thread Doug_Hall
Yes, write access is controlled by the DB, but the user has full access and the app was writin' until I changed out the connection. In fact, when I revert back to the Struts BasicDataSource it works without a problem -- very peculiar. I switched over to the JNDI connection because I created a

Re: Transaction Token

2003-07-29 Thread Rob Leland
Joshua White wrote: I have heard the session token mentioned a few times. Does anyone have any examples on when/how to use it? Regards, Joshua Look in the struts 'example' program. I am sure it uses it. -- - Rob Leland (703-525-3580) Choose a job you love, and you will never have to wo

Re: Transaction Token

2003-07-29 Thread Dan Tran
Do a search on archive and look for transaction token. The struts-example in the distribution also uses transaction token as well -D - Original Message - From: "Joshua White" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 29, 2003 5:12 PM Subject: Transaction Token > I

Transaction Token

2003-07-29 Thread Joshua White
I have heard the session token mentioned a few times. Does anyone have any examples on when/how to use it? Regards, Joshua

Back Button Design Pattern?

2003-07-29 Thread Joshua White
I am having a problem with users using the back button as a rewind button. I am sure that this problem has been solved many times before. Anyone care to share any techniques for preventing users from using doing harm by using the back button?

RE: [ANNOUNCE] Struts Console v4.0.3

2003-07-29 Thread James Holmes
Struts' element does not have a "rewrite" attribute. It has a "redirect" attribute and Struts Console does support that attribute. Perhaps your config file is corrupt. -James http://www.jamesholmes.com/struts/ -Original Message- From: message message [mailto:[EMAIL PROTECTED] Sent: T

RE: example Templates for presentation layer

2003-07-29 Thread message message
You're right, I need to integrate Tiles to get the effect I want for my application. From: "Davidson, Glenn" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: 'Struts Users Mailing List' <[EMAIL PROTECTED]> Subject: RE: example Templates for presentation layer Date

Re: Receiving an AbstractMethodError while trying to use a PlugIn

2003-07-29 Thread Craig R. McClanahan
Sounds like you've got a bad combination of JAR files -- for the released version of Struts 1.1, use ***all*** the JARs from that "lib" directory, for both compilation and inclusion in your webapp. Craig On Tue, 29 Jul 2003, Donowho, Warren wrote: > Date: Tue, 29 Jul 2003 13:52:20 -0500 > From:

Re: DB Write Access Problem with Tomcat JNDI

2003-07-29 Thread Craig R. McClanahan
On Tue, 29 Jul 2003 [EMAIL PROTECTED] wrote: > Date: Tue, 29 Jul 2003 14:21:47 -0700 > From: [EMAIL PROTECTED] > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: DB Write Access Problem with Tomcat JNDI > > Has anyone run into a problem with acquiring wr

Re: Intercepting Action Filters

2003-07-29 Thread Jing Zhou
Hi, Steve, It is not clear to me why you say with a servlet filter you get control after Struts has already performed the action forward ... I have a architectural view (maybe we have the same) regarding to the servlet filter. The documents at http://www.netspread.com/tips2.html#mvc states that t

Re: ValidatorForm and validation.xml

2003-07-29 Thread Jim Bruno Goldberg
My action-mapping is the follows: Is that right, isn't? Thanks for help. "Raible, Matt" wrote: > > Make sure you have validate="true" on your action-mapping. > > -Original Message- > From: Jim Br

Re: ValidatorForm and validation.xml

2003-07-29 Thread Jim Bruno Goldberg
Ok, but I do that. My jsp page: (...) (...) (...) But I trying to validate it on server-side, before. : ..and does not work. Thanks meanwhile;) Suzette Daniel wrote: > > You just missed the last 2 steps,

RE: ValidatorForm and validation.xml

2003-07-29 Thread Suzette Daniel
You just missed the last 2 steps, you need to call the javascript on submit so the validation can be done and include the javascript validation. Example: 1- 2- Suzette H. Daniel -Original Message- From: Raible, Matt [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 6:07 PM To: 'St

RE: ValidatorForm and validation.xml

2003-07-29 Thread Raible, Matt
Make sure you have validate="true" on your action-mapping. -Original Message- From: Jim Bruno Goldberg [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 4:14 PM To: [EMAIL PROTECTED] Subject: ValidatorForm and validation.xml Hi, folks. I am trying to use validation.xml, but

ValidatorForm and validation.xml

2003-07-29 Thread Jim Bruno Goldberg
Hi, folks. I am trying to use validation.xml, but it does not working. Some info: my struts-config.xml: (...) (...) (...) my validation.xml: (...) (...) my Form Class: (...) public class PersonEspecieForm

Re: example Templates for presentation layer

2003-07-29 Thread message message
Ok - if you visit this page http://xml.apache.org/forrest/ You can see a header with the Apache logon and the forest logo. A side bar with a content list. It is has three tabs. When you select one of the options listed in the content the pertaining text appears in the body. I am looking for a te

RE: example Templates for presentation layer

2003-07-29 Thread Davidson, Glenn
Most of the examples show a presentation layer. I used the struts-tiles example and found it very helpful. Glenn -Original Message- From: Adam Levine [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 5:28 PM To: [EMAIL PROTECTED] Subject: Re: example Templates for presentation layer

check out struts-wildcard project!

2003-07-29 Thread Dan Tarkenton
Hello all. I've created a few struts applications with struts1.0 and struts 1.1rc. I've often found a need to update content on my applications. As in updating or adding new URLs. However, I could not execute live updates -- meaning I had to bring my application down, edit the struts-config

Re: example Templates for presentation layer

2003-07-29 Thread Adam Levine
I'm saying you're being vague. From: "message message" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Re: example Templates for presentation layer Date: Wed, 30 Jul 2003 01:24:02 +0400 Are you saying my requirement is in the example app

Re: example Templates for presentation layer

2003-07-29 Thread message message
Are you saying my requirement is in the example application. There is a possibility of more which are not in the example application. Which example application are you thinking of ? From: "Adam Levine" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: [EMAIL PROTE

DB Write Access Problem with Tomcat JNDI

2003-07-29 Thread Doug_Hall
Has anyone run into a problem with acquiring write access to a db using the jndi setup with tomcat 4.1.24. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html Everything works beautifully except that I can't write to my Oracle 9 db. I was able to write without a pro

Re: [ANNOUNCE] Struts Console v4.0.3

2003-07-29 Thread message message
I installed this latest version with Eclipse v2.1 but I think it's irrelevant, but I thought I mention it anyway , Justin Case told me to mention it :) After fas as I can see the plug-in is "write once Run anywhere" From: "message message" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List

Re: example Templates for presentation layer

2003-07-29 Thread Adam Levine
And I'm looking for source code and purple. Perhaps you'll find it if you dig through the example applications. From: "message message" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: example Templates for presentation layer Date: Wed,

example Templates for presentation layer

2003-07-29 Thread message message
I am looking for templates for the presentation layer. templates consisting of A header with tabs, footer, side bar and body. Thanks. _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/

Re: [ANNOUNCE] Struts Console v4.0.3

2003-07-29 Thread message message
CC [EMAIL PROTECTED] From: "message message" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Re: [ANNOUNCE] Struts Console v4.0.3 Date: Wed, 30 Jul 2003 01:09:23 +0400 f you use the struts console on struts-logon example. You will find i

Re: [ANNOUNCE] Struts Console v4.0.3

2003-07-29 Thread message message
f you use the struts console on struts-logon example. You will find it doesn't recognise the write attribute. This line From: "James Holmes" <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: <[EMAIL PROTECTED]> Subject: [ANNOUNCE] Struts Console v4.0.3 Date: Mon, 28 Jul 2003 15:45:13 -0400

Re: Problem in using Validator Framework with Struts

2003-07-29 Thread David Graham
Make sure your doctype is correct: http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";> David --- Dirk Behrendt <[EMAIL PROTECTED]> wrote: > Hello! > > I have a problem in using the Validator framework with Struts. > > I want to check textfields. > > When I start Tomcat, I got a lo

DB Write Access Problem with Tomcat JNDI

2003-07-29 Thread Doug_Hall
Has anyone run into a problem with acquiring write access to a db using the jndi setup with tomcat 4.1.24. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html Everything works beautifully except that I can't write to my Oracle 9 db. I was able to write without a pro

RES: logic:equal?

2003-07-29 Thread Cristiano Monteiro dos Santos
It worked like: []'s CMS -Mensagem original- De: David Graham [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 29 de julho de 2003 16:51 Para: Struts Users Mailing List Assunto: Re: logic:equal? --- Cristiano Monteiro dos Santos <[EMAIL PROTECTED]> wrote: > Hi there, guys. > > Is

RE: [OT]Limit of a servlet class file in Struts?

2003-07-29 Thread Hookom, Jacob
If you check the mail archives (for tomcat-user), Craig has responded to this one a couple times. Tomcat's new JSP compiling capabilities actually break up the JSP into multiple calls, because the limit isn't the file size, it's the method size. -Original Message- From: Yansheng Lin [mail

[OT]Limit of a servlet class file in Struts?

2003-07-29 Thread Yansheng Lin
I thought it was 60k at first, but apparently some of my files are bigger than that(which was quite a surprise, maybe because I used @include). I remember I learned it somewhere that there is a limit on the size of a java class file. So my question is: what's the limit, and who impose the limi

re: artimus data source issue - poolman.xml

2003-07-29 Thread aies22
If you are trying to change database settings for the artimus example application: Please note that there is a poolman.xml file in the commons-scaffod.jar!!! I've spent a day playing around with this, moving poolman.xml's around till I figured out where my trouble are.

RE: [OT] Is "jsessionid" specific to Tomcat or generic to all web containers?

2003-07-29 Thread Yansheng Lin
Sorry. I was confused:). -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] Sent: July 29, 2003 11:22 AM To: Struts Users Mailing List Subject: RE: [OT] Is "jsessionid" specific to Tomcat or generic to all web containers? On Tue, 29 Jul 2003, Yansheng Lin wrote: >

Problem in using Validator Framework with Struts

2003-07-29 Thread Dirk Behrendt
Hello! I have a problem in using the Validator framework with Struts. I want to check textfields. When I start Tomcat, I got a lot of parse erros like this: element type "plug-in" must be declared. org.xml.SAXParseException I looked at other validation examples, but I did the same like in thes

Re: logic:equal?

2003-07-29 Thread David Graham
--- Cristiano Monteiro dos Santos <[EMAIL PROTECTED]> wrote: > Hi there, guys. > > Is there a way to use the tag logic:equal to compare session or request > variables with a value? http://jakarta.apache.org/struts/userGuide/struts-logic.html#equal Although I recommend using the JSTL's tag inste

Action Chaining and File Uploads

2003-07-29 Thread Derek Richardson
Is there a way to make action chaining and file uploads play nice with each other? Currently it seems that the processing to access the form data is happening every time an action is invoked but, after the first time, the input stream is at EOF and none of the parameters can be accessed. The b

logic:equal?

2003-07-29 Thread Cristiano Monteiro dos Santos
Hi there, guys. Is there a way to use the tag logic:equal to compare session or request variables with a value? Thanks a lot! CMS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Problems with Struts 1.1, html-el, and weblogic 6.1

2003-07-29 Thread Jarrod M. Lugo
I have been running Struts 1.1 on WebLogic 6.1 with no problems (using both the html and html-el taglibs), until I tried to use the "precompile" option. If I have a page that uses the "html" taglib, the compilation works fine. But if I change the page to use the "html-el" taglib, I get this error.

RE: Opening/reading a file from a Struts application...

2003-07-29 Thread Vijay Balakrishnan
Check this class Resource.java created by Jason Hunter of servlets.com fame to locate a file on the classpath first and then class loader getResource(). Vijay -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 11:36 AM To: Struts Users M

RE: [newbie] Nested Beans

2003-07-29 Thread steph . kimbrough
This would work fine, I think, and makes sense because the properties of the iteration fields are in a sub-bean of the main formbean (where I have a get for the list). But now another question ... what's the best practice to find out exactly which of the buttons was pressed. I thought that putti

Re: DynaActionForm reset

2003-07-29 Thread Sloan Seaman
Yep.. that would do it... thanks! -- Sloan - Original Message - From: "Suzette Daniel" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Tuesday, July 29, 2003 2:33 PM Subject: RE: DynaActionForm reset > Be sure to set the scope on your action mapping to r

RE: Opening/reading a file from a Struts application...

2003-07-29 Thread Dolf Starreveld
At 12:23 -0600 7/29/03, Davide Bruzzone spoke thusly: Note that getRealPath("/WEB-INF/...") is allowed to fail (under the spec). I know for a fact that in several containers, if your deploy as a WAR file, it will indeed fail. Here are two alternatives that will always work to access files in /WEB-

Receiving an AbstractMethodError while trying to use a PlugIn

2003-07-29 Thread Donowho, Warren
I am trying to use a PlugIn to initialize an application. I have looked at the example supplied with Struts and I even looked at the ValidatorPlugIn. This looks like it should be a simple task, but I am getting a dump. I am running on Tomcat 4.1.24 and using Struts 1.1. I have implemented the in

RE: Intercepting Action Filters

2003-07-29 Thread Molitor, Stephen L
Yes, there's a lot of overlap between servlet filters and 'action filters'. But with a servlet filter you get control after Struts has already performed the action forward. With an 'action filter' you'd get control before the forward is performed, and you would have convenient access to the ma

Re: Random 405 Http Error

2003-07-29 Thread Brian Husted
>Would you by any chance be forwarding to a static resource in the case >where this fails, and a dynamic resource (or JSP page) when it succeeds? >If so, then the default servlet would indeed be an issue. If the request successful, I am forwarding to a jsp page in my Tiles Request Processor. How

Re: Opening/reading a file from a Struts application...

2003-07-29 Thread Craig R. McClanahan
On Tue, 29 Jul 2003, Davide Bruzzone wrote: > Date: Tue, 29 Jul 2003 11:57:41 -0600 > From: Davide Bruzzone <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: Struts Users Mailing List <[EMAIL PROTECTED]> > Subject: Opening/reading a file from a Struts applicatio

RE: DynaActionForm reset

2003-07-29 Thread Suzette Daniel
Be sure to set the scope on your action mapping to request, it is session scope by default. Suzette H. Daniel Java Developer/Web dept 770 416.9222 ex: 5041 -Original Message- From: Sloan Seaman [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 2:26 PM To: Struts Users Mailing List

RE: [OT] Is "jsessionid" specific to Tomcat or generic to all web containers?

2003-07-29 Thread Brian Husted
>Would you by any chance be forwarding to a static resource in the case >where this fails, and a dynamic resource (or JSP page) when it succeeds? >If so, then the default servlet would indeed be an issue. If the request successful, I am forwarding to a jsp page in my Tiles Request Processor. How

Re: Indexed Properties

2003-07-29 Thread atta-ur rehman
Bingo! The deceptive ActionForm.getBlock(int):Block was not there. Just added it and wow! This is opened up a whole paradigm for me. I can see how easy and manageable code becomes not to mention its reduced size! Its just what i've been looking for, for quite sometime! Learning new things pays, a

DynaActionForm reset

2003-07-29 Thread Sloan Seaman
I have an action that used a form bean (suggestion_form). When I go to my edit page, my code populates the bean and displays the page. Works great. If I go to my add page (which in the struts-config uses the same form bean) the page gets the values from the populated bean from the edit page ev

RE: Opening/reading a file from a Struts application...

2003-07-29 Thread Davide Bruzzone
Thank you... I'll give it a try... Cheers... Dave -Original Message- From: Jarnot Voytek Contr AU HQ/SC [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 12:02 PM To: 'Struts Users Mailing List' Subject: RE: Opening/reading a file from a Struts application... -Original Messa

Re: Indexed Properties

2003-07-29 Thread Nicholas L Mohler
Hi Atta Just to clatify: 1) You have a form that contains a "blocks" property which is a collection of "test.Block" objects. 2) The "test.Block" object has the following properties(get/set methods for each): id, name, and category 3) As we discussesed in our earlier emails, you have the ge

RE: FW: Memory consumption 1.1 b3 vs. 1.1 final

2003-07-29 Thread Maya Retzlaff
Hi, Excuse the crossposting, the discussion have been on both lists, and parties on both lists have replied so here it goes. We know the problem had to do with serializing, and deserializing. This is what happened: The source we downloaded (Friday) for struts-jakarta-b3 was modified later the

RE: Opening/reading a file from a Struts application...

2003-07-29 Thread Jarnot Voytek Contr AU HQ/SC
-Original Message- From: Jarnot Voytek Contr AU HQ/SC Sent: Friday, June 27, 2003 11:53 AM To: 'Struts Users Mailing List' Subject: RE: getting a file path to /WEB-INF from a HttpSession try request.getSession(false).getServletContext().getRealPath("/WEB-INF/...")) or, in an action yo

Re: Indexed Properties

2003-07-29 Thread atta-ur rehman
Okay. my form-bean definition looks like: while the action is: my form class extends ActionForm. any ideas? ATTA - Original Message - From: "Paananen, Tero" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Tuesday, July 29, 2003 10:43

Opening/reading a file from a Struts application...

2003-07-29 Thread Davide Bruzzone
Greetings all... I'm trying to load and read a text file (on the server's filesystem) from within a Struts application. I'd like to be able to put the file in the WEB-INF, or the WEB-INF/classes directory, but am having trouble finding the file (i.e. I'm having trouble obtaining the path that I ne

RE: Indexed Properties

2003-07-29 Thread Paananen, Tero
> so you are saying that ideally the the beans collection > in my ActionForm should be updated on form submission? The attribute values in the beans held in the collection should change on form submission, yes. -TPP - This e

Re: Indexed Properties

2003-07-29 Thread atta-ur rehman
so you are saying that ideally the the beans collection in my ActionForm should be updated on form submission? - Original Message - From: "Paananen, Tero" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Tuesday, July 29, 2003 10:30 AM Subject: RE: Indexed

Re: Reflecting Changes in a Form After data has been updated

2003-07-29 Thread Curtney Jacobs
Sovle it. Thanks for the replies Mike, it got my brain thinking. The problem and solution is listed below, just in case anyone else is having a similar problem. The problem was I was storing the prepopulated ActionForm in the session scope while the new updated ActionForm was stored in the c

RE: Form Bean Help?

2003-07-29 Thread Matt E
Wendy, > If you need to pre-populate the form, read the DTO > from the database and use > BeanUtils.copyProperties(...) to copy the DTO values > into the Form bean > before forwarding to the view. > > Take a look at the struts-example webapp, it works > the way you're > describing. Outstanding!

RE: Indexed Properties

2003-07-29 Thread Paananen, Tero
> but this code always prints the values that i set > the first time page was shown! Beats me...the code looked fine to me. Maybe something wrong with your action mappings and form bean configurations? Or the JSP the values are changed on. -TPP --

Re: newbie dynamic bean:message question

2003-07-29 Thread Jeff Kyser
Hey John, Consider using Tiles, and then you can incorporate something like: into your header. The value for 'title' would then come from your tiles-config.xml file for each different page you extended from your master layout page. -jeff On Tuesday, July 29, 2003, at 12:20 PM, John Boyes wro

RE: Memory consumption 1.1 b3 vs. 1.1 final

2003-07-29 Thread Brendan . Johnston
Is this an issue because the session is being serialized? Maybe the reference to the struts config needs to be declared transient and be restored if the object is deserialized. Brendan -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2003 1:2

Re: Random 405 Http Error

2003-07-29 Thread Craig R. McClanahan
Would you by any chance be forwarding to a static resource in the case where this fails, and a dynamic resource (or JSP page) when it succeeds? If so, then the default servlet would indeed be an issue. Craig On Tue, 29 Jul 2003, Brian Husted wrote: > Date: Tue, 29 Jul 2003 12:53:21 -0400 > From:

RE: [OT] Is "jsessionid" specific to Tomcat or generic to all webcontainers?

2003-07-29 Thread Craig R. McClanahan
On Tue, 29 Jul 2003, Yansheng Lin wrote: > Date: Tue, 29 Jul 2003 10:48:02 -0600 > From: Yansheng Lin <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: 'Struts Users Mailing List' <[EMAIL PROTECTED]> > Subject: RE: [OT] Is "jsessionid" specific to Tomcat or gene

[OT] Is there a way to set the pageContext request object in a JSP??

2003-07-29 Thread Bailey, Shane C.
Because JRun wraps the original request on all RequestDispatcher.forward() calls I put the original request in a request attribute in a subclass of ActionServlet. Reason: The original request will return a valid isUserInRole() and the JRun request won't. Now, because the ... tag consults

newbie dynamic bean:message question

2003-07-29 Thread John Boyes
I'm building my first Struts app with a standard header template which will apply to all pages. The contents of the header template will generally be identical save for a few items (e.g the page title and heading) which will be individual to each page used by the template. Ideally I would like

RE: Form Bean Help?

2003-07-29 Thread Mainguy, Mike
Whoops, I completely missed that, Red Herring alert! -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 12:56 PM To: 'Struts Users Mailing List' Subject: RE: Form Bean Help? Matt wrote: > I had been using the value property of the struts-html > ta

Re: Indexed Properties

2003-07-29 Thread atta-ur rehman
Thanks. you see my problem is i don't know how to get the updated values when the form is submitted? my beans collection is updated, my indexed getter/setter are not called? so where are the new values or even the same values when i submit without changing anything at all on the form? this is my

RE: Reflecting Changes in a Form After data has been updated

2003-07-29 Thread Mainguy, Mike
That seems odd. Are you sure you aren't somehow loading the old data somewhere before you actually do the update operation. Perhaps you are inadvertently doing a POST->LoadFromDB->SaveToDB->Respond. I had that particular problem at one point. On another note, there is another thread currently

RE: Indexed Properties

2003-07-29 Thread Paananen, Tero
> What i'm still missing what is updated when i submit the > form? where can i > get updated values from? my ActionForm has list attirbute > called "blocks" > each element in the list is a Block bean object. The > Block bean has getter/setters for id, name and category. Two strategies: 1. Updat

RE: Form Bean Help?

2003-07-29 Thread Mainguy, Mike
Ok, that's fine, but why are you loading data from the database when you are performing an update operation? I think you'd want to first determine what sort of operation you are doing before assuming that you want to overlay what is currently in the Form with what is stored in your database. I

Re: Reflecting Changes in a Form After data has been updated

2003-07-29 Thread Curtney Jacobs
No. The same form displays and update the data. When the user clicks on his/her name the form is populated with his/her profile information. The information can then be edited by the user. After editing the information the user clicks "update". The data is updated and the same form redisplays a

RE: Form Bean Help?

2003-07-29 Thread Wendy Smoak
Matt wrote: > I had been using the value property of the struts-html > tags to fill in the data, but I've noticed that when > the user hits submit, if there is a validation error, > they are pushed back to the page, and the data they > had enetered is replaced with what was in the DTO > (which is n

Random 405 Http Error

2003-07-29 Thread Brian Husted
Platform:Weblogic 8.1 Proxy: Apache Application: Struts Release 1-1 Issue: I am receiving an http 405 response on post attempts to a Struts 1-1 application. Here is the post that is causing the 405 (or http method not allowed) from the weblogic access log 192.168.2.21 - - [2

Re: Indexed Properties

2003-07-29 Thread atta-ur rehman
Hello again Nick. Well i've come a step forward in that i've been able to successfully show the jsp page using index="true" for all the rows and submit the form without any errors too: works like a charm! What i'm still mi

RE: Subject RE: Multiple modules - Please help

2003-07-29 Thread Steve Raeburn
Ajay, I've closed this bug. It seems to be a configuration problem... I'm assuming that your add.jsp and edit.jsp files are in the /admin directory. The problem is with your configuration. ForwardAction requires a CONTEXT relative path which, in this case would be: (Note also, you had your

RE: [OT] Is "jsessionid" specific to Tomcat or generic to all web containers?

2003-07-29 Thread Yansheng Lin
Isn't that for URL rewritting only? When you use a session through cookie, I think you can name it anything you want. -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] Sent: July 29, 2003 10:12 AM To: Struts Users Mailing List; Struts Users Mailing List Subject: R

RE: Form Bean Help?

2003-07-29 Thread Matt E
Mike, The bean is stored in the Session scope (the bean needs to be stored in the session scope, so that some other data for it which is valid for the life of the session stays around). Even if it was a request scoped bean, I'd still like a way to fill out the action form before hand, because the

  1   2   >