i do not think it works.
Hi
I need to put value to an field in the own page jsp.
Thanks
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:
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
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
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
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
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
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
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
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.
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 ??
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.
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...
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
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
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
(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 '
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
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
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
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
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
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
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
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
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
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
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 ?
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
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
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
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
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
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
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
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
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';
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
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:
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
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
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
43 matches
Mail list logo