Re: Accessing List in JSP

2006-05-12 Thread Sunil_Sahu
Sonu, Make two changes in your code, it will definitely work.. 1. Add the following line in your Action Class: request.setAttribute(myForm,myForm); 2. Modify the JSP code logic:iterate id=test name=myForm property=myList bean:write name=test /

RE: use html:form to pass the a child window to a parent window

2006-05-12 Thread José María Tristán
Ok. Thank you very much. -Mensaje original- De: M Faizal [mailto:[EMAIL PROTECTED] Enviado el: viernes, 12 de mayo de 2006 5:32 Para: Struts Users Mailing List Asunto: RE: use html:form to pass the a child window to a parent window Add target attrib. in the form of your popup window

Reset a control of a form

2006-05-12 Thread José María Tristán
Hello: I have a form whith anything controls. One of it is a list. Por example: Numbers 1 2 3 4 When usert select a register, how can i reset this value select?.

how to deal with request attributes and validation?

2006-05-12 Thread dario
hello everybody, I'd like to know how do you deal with situations where you need to display some dynamic elements (menus, dropdowns...) on the page? putting those in the request scope in the action thus making them available to JSP, seems most naturally to me. problem is when form data does

RE: how to deal with request attributes and validation?

2006-05-12 Thread Shoukat, Faisal
R u using the validator framework -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of dario Sent: 12 May 2006 09:36 To: user@struts.apache.org Subject: how to deal with request attributes and validation? hello everybody, I'd like to know how do you deal with situations

displaying document in pop up window

2006-05-12 Thread Shoukat, Faisal
Hi All, I am wanting to know how to display an uploaded document from clicking on a link on my JSP. I have managed to save the document into the database, and I can load the document from the database. When I click to open the document I have to save it to my file system first then open it.

Re: how to deal with request attributes and validation?

2006-05-12 Thread Jorge Martín Cuervo
Thanks a lot, i'll try it El vie, 12 de 05 de 2006 a las 11:19, [EMAIL PROTECTED] escribió: Dario, In this situation, in the input attribute of action-mapping, you should provide the action-mapping which you want to execute to populate your drop-down in jsp. Usually we provide the JSP

UML diagrams of Struts

2006-05-12 Thread Vaneet Sharma
How can I get UML diagrams of Struts (specialy the class model diagram) ? I have also used EJB in my application. Regards Vaneet. Sharma CRISIL. Office- (91)-22-6644 4116 M- (91)-93223 39127 Disclaimer : This message and any attachments (hereinafter referred to as the Said Information) are

Comparison of two beans in jsp

2006-05-12 Thread Patil, Sheetal
Hello friends Can we compare values of two beans in jsp page by using any tag ( like logic etc...) Or is there any other method to compare values of two beans in jsp page Thanks in advance, Sp

Re: displaying document in pop up window

2006-05-12 Thread Avramucz István
Hello, maybe this helps: ... a target=_blank href=openfile.jsp?doc_id=1size=5origname=myfile.pdffile/a ... openfile.jsp: [EMAIL PROTECTED] import=java.io.*%% response.reset(); response.setContentType(request.getParameter(content_type));

RE: displaying document in pop up window

2006-05-12 Thread Shoukat, Faisal
In the below example did you send a request parameter through of name content_type too. With a value of pdf or msword etc??? -Original Message- From: Avramucz István [mailto:[EMAIL PROTECTED] Sent: 12 May 2006 13:34 To: Struts Users Mailing List Subject: Re: displaying document in pop up

Problem in saving file content in DB using BLOB

2006-05-12 Thread Srinivas Vakkalanka
Hi, I am using BLOB object through LOB package to save file content in oracle 9.2.0.1 I have created the blob object. But when I am writing data in to the blob it is giving the following error. Kindly help in this regard It gives the following Error: java.sql.SQLException: Must be logged

Re: Browser Back Button

2006-05-12 Thread temp temp
I am not clear using tokens How to use tokens to determine that user clicked on browser back button ? Thanks Regards Rob Manthey [EMAIL PROTECTED] wrote: And I'll be contrary and toss in a Yes, but ... (apol: Eric Berne) (as usual, corrections to my notes are welcome) Yes, but you have to

RE: [OT] Problem in saving file content in DB using BLOB

2006-05-12 Thread George.Dinwiddie
Srinivas, From the error, it sounds like you're not doing the OutputStream write in the context of an open database connection. You don't show enough code to know, however. You might find http://idiacomputing.com/moin/OracleLobs of interest. - George Dinwiddie -Original Message-

Re: Browser Back Button

2006-05-12 Thread Rauf Khan
Hi, For browser back button solution through javascript, please see this link. http://www.webdeveloper.com/forum/showthread.php?t=93935 Regards Rauf Khan On 5/12/06, temp temp [EMAIL PROTECTED] wrote: I am not clear using tokens How to use tokens to determine that user clicked on

Re: Interesting question (to me)... Perl app conversion to SUNWappserver/Java/Struts

2006-05-12 Thread Danny Lee
Use URL rewrite filter for this one. It's really a good stuff. https://urlrewrite.dev.java.net/ Cheers, Danny Alan Treece wrote: As the Subject: line states I'm in the middle of converting a larger Perl application to a Struts web-app running on the SUNWappserver. The question was posed

RE: Browser Back Button

2006-05-12 Thread George.Dinwiddie
I strongly recommend AGAINST that technique. 1. It's very narrow and easily circumvented (by turning off javascript, by opening an new window or tab instead of leaving the page you might want to come back to). 2. It's very user un-friendly. It's against W3C recommendations. It breaks the

[OT] Re: General error message from server : Field 'firstname' doesn't have a default value

2006-05-12 Thread Dave Newton
rajan pahuja wrote: java.sql.SQLException: General error message from server: Field 'firstname' doesn't have a default value Well, looks like you're trying to insert a null/blank value into a table that's not-null and specifies no default value, but I'm no MySQL/ConnectorJ guru. You might

Get request object

2006-05-12 Thread Chaudhary, Harsh
Hi, This is not exactly a struts question. But I am in a bind and short on time. So, maybe someone can help. I need to access the request object from a struts form. How do I do that? I mean how can I access the request object. I could have sworn there was a way to get either the ServletContext

Re: UML diagrams of Struts

2006-05-12 Thread David Durham
Vaneet Sharma wrote: How can I get UML diagrams of Struts (specialy the class model diagram) ? I have also used EJB in my application. Most UML tools have the ability to import classes (or source) and generate diagrams. -Dave

[shale] clay jsfid=void

2006-05-12 Thread Ryan Wynn
Hi, I'm have a little trouble with the clay void component which is supposed to remove the markup from the template at runtime. It works perfectly with this template html jsfid=void head jsfid=void allowBody=false titleMock Title/title /head body jsfid=void span

Re: Get request object

2006-05-12 Thread David Evans
Hello, I don't think you can get the request from the ActionForm. From within the ActionForm you can get the ServletContext this way: ServletContext context = this.getServlet().getServletContext(); But i don't think that helps. What is the scenario here? why do you need the request in the

RE: Get request object

2006-05-12 Thread Chaudhary, Harsh
I need to access the request as I have a session variable stored in a StateHolder class which I need to access (request.getSession()). Basically, the field in my form is a calculated field (age) which is calculated from a DOB field. I need it in the form as I need access to the age field for some

Re: how to deal with request attributes and validation?

2006-05-12 Thread David Evans
This page provides a good overview of the problem: http://wiki.apache.org/struts/DataEntryForm On Fri, 2006-05-12 at 10:35 +0200, dario wrote: hello everybody, I'd like to know how do you deal with situations where you need to display some dynamic elements (menus, dropdowns...) on the

Re: Get request object

2006-05-12 Thread Dave Newton
Chaudhary, Harsh wrote: I have solved my problem now. But I am still wondering if it is a good idea to have access to the request object from anywhere. If yes, then is there a way to do it. Any thoughts? Depending on the request adds a layer of dependency. This makes testing that much

Re: [shale] clay jsfid=void

2006-05-12 Thread Gary VanMatre
Hi, I'm have a little trouble with the clay void component which is supposed to remove the markup from the template at runtime. It works perfectly with this template html jsfid=void head jsfid=void allowBody=false titleMock Title/title /head body jsfid=void span jsfid=outputText

extending ValidationForm instead of ValidatorActionForm

2006-05-12 Thread josh t
When my form extends Strut's ValidationForm instead of ValidatorActionForm, I get the following exception when my form gets loaded for the first time. Any idea what this is? Also, I've copied my sample form here. Please let me know what I'm doing wrong. Many Thanks! MY Form (Do I need

RE: extending ValidationForm instead of ValidatorActionForm

2006-05-12 Thread Chaudhary, Harsh
Could you also include of you validation.xml and struts-config.xml? Harsh. -Original Message- From: josh t [mailto:[EMAIL PROTECTED] Sent: Friday, May 12, 2006 2:38 PM To: user@struts.apache.org Subject: extending ValidationForm instead of ValidatorActionForm When my form extends

Re: UML diagrams of Struts

2006-05-12 Thread Craig McClanahan
On 5/12/06, Vaneet Sharma [EMAIL PROTECTED] wrote: How can I get UML diagrams of Struts (specialy the class model diagram) ? There are class diagrams embedded in the package description javadocs for many of the packages that make up Struts ... for example see [1] for the classes in the

RE: Get request object

2006-05-12 Thread David Evans
I would suggest in that scenario that you could create a property on your ActionForm for the object that is stored in the session and set it in the action. then your getter could access that property. for this to work, you'd have to set validate=no in the config file for that action, and call and

RE: extending ValidationForm instead of ValidatorActionForm

2006-05-12 Thread josh t
Sure. Here is the relevent section of my validation.xml and struts-config.xml. Note that this error only happens when I use ValidationForm. And I have no clue what that excpetion is! Any thoughts? From struts-config.xml form-bean name=loginForm

RE: Get request object

2006-05-12 Thread Chaudhary, Harsh
That sounds like a solution. But using objects out of the session seems hard to me because of some design issues in our application. Basically, the presence of the MM-DD- field is not guaranteed in the form on every call to the form. But I have coded up a solution to this. Thanks for the

RE: extending ValidationForm instead of ValidatorActionForm

2006-05-12 Thread Chaudhary, Harsh
My first thought was that you might be using an action as you validation key i.e., in validation.xml, instead of: form name=loginForm you had: form name=/login But this is not the case. So, I can't really tell why this is happening. Harsh. -Original Message- From: josh t

RE: UML diagrams of Struts

2006-05-12 Thread Naijatek
If you use JDeveloper as your IDE, you can easily do this. -Original Message- From: Vaneet Sharma [mailto:[EMAIL PROTECTED] Sent: Friday, May 12, 2006 8:23 AM To: struts-user@jakarta.apache.org Subject: UML diagrams of Struts How can I get UML diagrams of Struts (specialy the class

RE: extending ValidationForm instead of ValidatorActionForm

2006-05-12 Thread josh t
So are you saying that the only thing that changes when you switch from extending ValidationForm to ValidatorActionForm is the value in form name=action vs. form ? Do I need to be implementing any other methos in my Form, or is what I have enough? Chaudhary, Harsh [EMAIL PROTECTED] wrote:

RE: extending ValidationForm instead of ValidatorActionForm

2006-05-12 Thread Chaudhary, Harsh
Seeing that you have set the validate attribute to true in struts-config.xml, you don't even need the validate method in the form. As far as I know, that is the only difference in using ValidationActionForm and ValidatorForm. However, I used the ValidatorActionForm as I had a need to do that.

RE: extending ValidationForm instead of ValidatorActionForm

2006-05-12 Thread Gary VanMatre
It sort of looks like you are missing a formal parameter type in the methodParams. The Validator, second to last param is missing. methodParams=java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field,

Declarative Excpetion Handling

2006-05-12 Thread Asad Habib
Has anyone successfully used declarative exception handling with Struts? For some reason, my application always forwards to the input attribute of the action element instead of the path element of the exception element as defined in my struts configuration file. I have confirmed that the error

RE: extending ValidationForm instead of ValidatorActionForm

2006-05-12 Thread josh t
Thanks Gary. So where should I be adding this method. I'm using struts 1.2.9. This probably has something to do with it, as Harsh noted in his response. Gary VanMatre [EMAIL PROTECTED] wrote: It sort of looks like you are missing a formal parameter type in the methodParams. The Validator,

RE: extending ValidationForm instead of ValidatorActionForm

2006-05-12 Thread josh t
I still get the same error with Struts 1.2.7. I get the error with both ValidationForm or when using ValidatorActionForm. josh t [EMAIL PROTECTED] wrote: Thanks Gary. So where should I be adding this method. I'm using struts 1.2.9. This probably has something to do with it, as Harsh noted

Validator - retrieving a different resource bundle

2006-05-12 Thread Jadeler
Im having difficulty trying to get a key from a different resource bundle instead of ApplicationResource in Struts. Pls advice on how I can retrieve different keys from different resource bundle in the Validator framework. I've upgraded to Validator 1.3.0 from 1.1.3. I've pasted my

Are my jar versions in Synch?

2006-05-12 Thread josh t
My commons-validator.jar Implementation-Version is 1.1.3 My struts.jar Implementation-Version is 1.2.8 Are these Compatible? They're under your jar's MANIFEST.MF file. - Love cheap thrills? Enjoy PC-to-Phone calls to 30+ countries for

Automatic bean introspection in jsp form

2006-05-12 Thread Williams, Kevin C
Forgive me if this is simple but so far I haven't figured out the proper way to do this. I have an object (of type java.io.Object) that can be one of many potential beans. If I know the specific bean class ahead of time, I can write a jsp page with a form that has fields that correspond to the