Re: calling method of a bean from JSP

2006-09-15 Thread Lixin Chu
i do not think it works.

set value to an html:hidden in jsp page

2006-09-15 Thread Heidy Gutiérrez Guzmán
Hi I need to put value to an field in the own page jsp. Thanks

RE: dependent drop down lists

2006-09-15 Thread Asthana, Rahul
Other option is 1-Store all the data in tokenized form in a hidden variable. something like this- a1|b1|[EMAIL PROTECTED]|b2|c2@ "|" and "@" are delimiters. 2-Use javascript split function on the onchange of first list and create the second list with javascript -Original Message- From:

RE: Redirect from tile controller

2006-09-15 Thread Gupta, Rahul
In general, the RequestProcessor calls processActionPerform() (that returns the ActionForward, say FORWARD1) and then last thing it calls is "processActionForward()". Is there a way to redirect the request to a different "ActionForward" if there is a problem with FORWARD1? -RG -Original Mess

Re: calling method of a bean from JSP

2006-09-15 Thread Laurie Harper
Lixin Chu wrote: What are you trying to achieve? Maybe you're trying to put logic in your JSPs that more properly belongs in an action. thanks. what i am trying to do is to get the value of a field. Say I get a list of items: class item { Set values; } The item has a set of Values: cl

RE: dependent drop down lists

2006-09-15 Thread Givler, Eric
You'd need to rebuild the second list on the posting of the form, i.e. 1. get value selected from first list 2. invoke method to refresh dependent list based on user prm from fist list 3. place that list into a request attribute to read on the page. Here's a code snippet. The prepareLOVs is call

Re: how to implement tokens

2006-09-15 Thread Daniel Chacón Sánchez
try this: boolean tokenValid = isTokenValid(request); if(tokenValid){ resetToken(request); return true; } else{ saveToken(request); return false; } i use it for control the user double click on botton

Re: Rediction, ActionForward and Internal Server Error

2006-09-15 Thread Michael Jouravlev
On 9/15/06, Alexis MAILLOT <[EMAIL PROTECTED]> wrote: I'm sending a rediction (with HttpServletResponse.sendRedirect or with a new ActionForward) : everything works fine except the http return code which is 500 (instead of 200 or 302)... The application is runing under Websphere Application Serve

Re: Out of topic, Oracle SEQUENCE

2006-09-15 Thread Daniel Chacón Sánchez
Well you where correct, this is the answer of a metalink user: user_seq.CURRVAL (with two R's) is the last number that was assigned in your session. Even if records are added in other sessions, your CURRVAL remains the same. Try it. Open two SQL*Plus windows (you can even use the same username) a

Re: Out of topic, Oracle SEQUENCE

2006-09-15 Thread Scott Van Wart
In PL/SQL: DECLARE new_user_id NUMBER; BEGIN INSERT INTO users ( user_id, user_name ) VALUES ( user_seq.NEXTVAL, 'userName' ) RETURNING user_id INTO new_user_id; END; So, similarly (though a little bit of a hack), in JDBC (since generatedKeys() or whatever they call it isn't supporte

Re: sslext -- anyone using it?

2006-09-15 Thread Michael Rush
I have been using the sslext library for some time. I have only used it with Struts 1.1 and 1.2 though, never with 1.3. As for your concerns regarding the custom controller/processor class, sslext comes with a SecureTilesRequestProcessor class. I have been using it with tiles without issue.

Re: Out of topic, Oracle SEQUENCE

2006-09-15 Thread Daniel Chacón Sánchez
Not Albert, but thanks, you have give me more solutions than in the metalink foro of oracle, thanks!! Another solution, to do only one sentence, I do´nt want to obtain the userCode of an insert sentence that occur between the insert and the select user_seq.curval from dual, any other solution ??

Re: sslext -- anyone using it?

2006-09-15 Thread Adam J Samere
I have been using the sslext library for some time. I have only used it with Struts 1.1 and 1.2 though, never with 1.3. As for your concerns regarding the custom controller/processor class, sslext comes with a SecureTilesRequestProcessor class. I have been using it with tiles without issue.

Re: Out of topic, Oracle SEQUENCE

2006-09-15 Thread Albert L. Sapp
Daniel, If you are by chance using iBatis, look at their selectKey command. It is the one that seems to be referred to most for this type of need on the iBatis list. If not, sorry. Al Brett Connor wrote: (In case my reply to completely the wrong post didn't get read!...) selecting max...

Problem with Struts on iPlanet 6.1 SP6

2006-09-15 Thread Prashant Shetty
Hi, I have my application deployed on Tomcat 5.5.17 successfully, using JDK 1.5. The application is mainly JSP and Struts. Now, when I port this application to iPlanet, the JSP/Servlet part of the application shows up well. But the struts part does not show up and is throwing exception. (Pasted be

Re: Struts2 - "BUILD FAILURE" - cannot find symbol

2006-09-15 Thread Ian Roughley
I just had this issue myself. Pat explained it as a bug with Maven2, the solution was to delete the struts and opensymphony directories from your m2 repo (usually under /Documents and Settings//.m2/repo. /Ian Arevalo, Cesar (GE Comm Fin, non-ge) wrote: Hi, I am new to struts2, I checked ou

Re: sslext -- anyone using it?

2006-09-15 Thread Brett Connor
Huh. Completely the wrong post to reply to. Sorry folks... this of course was meant for the "Oracle Sequence" question. Brett Quoting Brett Connor <[EMAIL PROTECTED]>: > selecting max... isn't a viable solution, because of other sessions as you > say. > Assuming you're at least using Java, you

Re: Out of topic, Oracle SEQUENCE

2006-09-15 Thread Brett Connor
(In case my reply to completely the wrong post didn't get read!...) selecting max... isn't a viable solution, because of other sessions as you say. Assuming you're at least using Java, you might want to look at java.sql.Statement.getGeneratedKeys() Oracle database returns generated keys in the '

Re: Out of topic, Oracle SEQUENCE

2006-09-15 Thread Daniel Chacón Sánchez
Thanks so, first: insert into users_values (user_seq .nextval, 'userName'); and then: select user_seq.curval from dual There is not a way to make only one sentence to do that? Like in SQL 2000: SET NOCOUNT ON INSERT INTO USER_VALUES (USER_NAME) VALUES

Re: sslext -- anyone using it?

2006-09-15 Thread Brett Connor
selecting max... isn't a viable solution, because of other sessions as you say. Assuming you're at least using Java, you might want to look at java.sql.Statement.getGeneratedKeys() Oracle database returns generated keys in the 'C' i/f, my memory's rusty for JDBC but I know there is a way somewher

sslext -- anyone using it?

2006-09-15 Thread Michael Rush
I'm looking into implementing something to force ssl for logins (and a few other pages) and then switching back to standard http once logged in. I found sslext at http://sslext.sourceforge.net/ but it looks like it hasn't been updated in a couple of years. I have a couple of concerns: * I

Re: Out of topic, Oracle SEQUENCE

2006-09-15 Thread Adam J Samere
Use curval to obtain the last selected value for the current oracle session. Note that you cannot access curval until nextval has been used at least once in the current oracle session. select user_seq.curval from dual Daniel Chacón Sánchez wrote: Hi I know this the struts mail list, but I have

Out of topic, Oracle SEQUENCE

2006-09-15 Thread Daniel Chacón Sánchez
Hi I know this the struts mail list, but I have a question and I hope that someone know the answer I'm using an oracle database, I have a sequence to obtain the nextval that will be the key of the row that I will insert, after the insert I need to know which is that value so I can tell the user w

RE: Struts2 - "BUILD FAILURE" - cannot find symbol

2006-09-15 Thread Arevalo, Cesar \(GE Comm Fin, non-ge\)
Ok, will do that and try to see if it works for me. Thanks a lot PS I never thought that Ted husted would answer back my very first mail post. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ted Husted Sent: Friday, September 15, 2006 11:03 AM To: Struts

Re: Struts2 - "BUILD FAILURE" - cannot find symbol

2006-09-15 Thread Ted Husted
Right now, we're still building against the XWork head, and a current XWork snapsnot may not be available. The best thing is to checkout XWork too. The simplest thing is to put it under "current", next to struts2. svn co https://svn.opensymphony.com/svn/xwork/trunk xwork We're building with

Struts2 - "BUILD FAILURE" - cannot find symbol

2006-09-15 Thread Arevalo, Cesar \(GE Comm Fin, non-ge\)
Hi, I am new to struts2, I checked out the repository from subversion and I am trying to compile everything, but for some reason I keep getting an error, my repository is in here: C:\cvs\struts2 And I run the following from the command line: C:\cvs\struts2\core>mvn -e install When I run the co

Re: struts issue...

2006-09-15 Thread Martin Gainty
Michael- Its sounds as if you have (at least) 2 possible submits most probably by the submit button as well as the form action parameter you have can solve using one of 2 solutions 1) either disable submit calling the function OR disable form action calling the function 2) have both submit and a

RE: struts issue...

2006-09-15 Thread Asthana, Rahul
The code posted by punit works.The only problem is that suppose the user clicks on submit and for some reason stops the form from submitting through the browser controls(it happened with me, some users did it apparently because it was taking a long time), then the form would never be submitted a

Rediction, ActionForward and Internal Server Error

2006-09-15 Thread Alexis MAILLOT
I'm sending a rediction (with HttpServletResponse.sendRedirect or with a new ActionForward) : everything works fine except the http return code which is 500 (instead of 200 or 302)... The application is runing under Websphere Application Server 6. Anyone can help me ?

Re: required if validation doesn'nt work

2006-09-15 Thread Niall Pemberton
You have configured your validator using the format for the "validwhen" validator - but specified the "requiredif" validator: For the "requiredif" validator you need to use the following type of configuration: http://struts.apache.org/1.2.x/userGuide/dev_validator.html#conditionals For the "val

Re: Redirect from tile controller

2006-09-15 Thread Adam Gordon
If you are using TilesRequestProcessor as your controller (and it's probably not limited to this class) you can extend it to add any methods you need to call from an Action's execute(...) method. The trick is getting an instance of the controller from within the action - and I don't know how t

Redirect from tile controller

2006-09-15 Thread Gupta, Rahul
Hi, I have a layout JSP (layout.jsp) with two tiles. I am using tile controllers to populate data to be displayed in each tile. Code is specified below. If an exception is thrown by 2nd tile controller, is there a way to redirect to a completely new JSP (say error.jsp), instead of displaying the

Re: required if validation doesn'nt work

2006-09-15 Thread Heidy Gutiérrez Guzmán
The validation always fails, i don't have any kind of exeption. The key in the application resources is ok for that kind of message. This is the code that i put in the validatir.xml

Validation

2006-09-15 Thread Chetan Pandey
I have two controls in a Form. Both of them are drop-down. One has multiple select enabled. I want to validate such that if User chooses something in "prerequisiteVO.prerequisiteCourseId" drop-down then he must also choose from drop-down "prerequisiteRole". However since "prerequisiteRole

Re: struts issue...

2006-09-15 Thread Matts
here's de code I use to disable de button and do submit. May be you can use it. function doSubmit(button){ button.disabled=true; button.form.submit(); } - Original Message - From: "Puneet Lakhina" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Friday, Septem

Re: struts issue...

2006-09-15 Thread Puneet Lakhina
On 9/15/06, Dean, Michael <[EMAIL PROTECTED]> wrote: Interesting problem... I have a submit button which includes a property = "method" with value="Save"...the enclosing form is submitted to a Struts DispatchAction sub-class which is configured to rely on the "method" parameter for delegation

Re: struts issue...

2006-09-15 Thread Puneet Lakhina
On 9/15/06, Dean, Michael <[EMAIL PROTECTED]> wrote: Interesting problem... I have a submit button which includes a property = "method" with value="Save"...the enclosing form is submitted to a Struts DispatchAction sub-class which is configured to rely on the "method" parameter for delegation

Validation framework problem?

2006-09-15 Thread Mallik
Hi friends i have stuckup in validation framework because my form will get fields dynamically on user request and i cannot predect how my fields it will have when posting the form i am creating Dynamic form fields using javascript like txt = document.createElement('input'); txt.type='text';

Re: required if validation doesn'nt work

2006-09-15 Thread Niall Pemberton
On 9/15/06, Heidy Gutiérrez Guzmán <[EMAIL PROTECTED]> wrote: I'm using " requiredif " validation from Validator Framework, but does'nt work. I have de rule in the validator-rules.xml and the method validateRequiredIf exists in org.apache.struts.validator.FieldChecks in the struts jar. I have r

Re: Configuring Struts Validator with Multiple Modules

2006-09-15 Thread Niall Pemberton
On 9/14/06, Scott Smith <[EMAIL PROTECTED]> wrote: I have a struts 1.2.9 app that has several modules (assume they are named "a" and "b"). In my struts-config-a.xml file, I have a form defined as followed: My validation.xml file looks like:

Re: [Struts 2] and tags adding unwanted HTML code

2006-09-15 Thread Ted Husted
Yes, if you prefer to code your own markup, then you can use the simple theme. To use the simple theme throughout an application, add this line to the struts.properties file. * struts.ui.theme=simple The struts.properties file can be placed under classes, next to the struts.xml file. The themes

Re: Struts with dynamically generated html:Text

2006-09-15 Thread Puneet Lakhina
On 9/15/06, Aftab Vhora <[EMAIL PROTECTED]> wrote: Hi, In my page I am generating text boxes dynamically(i.e. clicking on a button "Add more" will add a text box in my page.) Now I want to implement my ActionForm to capture the data entered in those dynamically generated text boxes. Is it poss

[Struts 2] and tags adding unwanted HTML code

2006-09-15 Thread Labey Sébastien
Hi, I was using Struts 1.2.8 and I'm now discovering Struts 2 and some new tags. I'm transforming an .html page designed with CSS only (no , , ) to an .jsp page with Struts tags and I'm surprised to see that the source code generated when using , and contains some html code with , , around