I dont directly specify any URL with the s:form tag - I use the s:form
tag with an action parameter as in s:form action=login...
I want the login action to be invoked via https.
For example, the s:url tag has a parameter called scheme, which can be be
set to https - I dont see anything similar
Laurie Harper wrote:
Eugen Stoianovici wrote:
I'm using struts 2.0.9.
Where do i read about action mappings and how to configure them?
In the Struts2 documentation of course ;-) These pointers may help:
http://struts.apache.org/2.x/docs/action-configuration.html
how do i get a handle to Session / Request from an action implementing
import com.opensymphony.xwork2.Preparable;?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
http://struts.apache.org/2.x/docs/how-do-we-get-access-to-the-session.html
http://struts.apache.org/2.x/docs/how-can-we-access-the-httpservletresponse.html
Thanks,
Nuwan
On 8/17/07, Eugen Stoianovici [EMAIL PROTECTED] wrote:
how do i get a handle to Session / Request from an action
If all you want to do is reload the div content, you can set it's href
to the url that returns the html, set it's listeninTopics to a topic
that you can publish, and the div will reload its content
automagically. (check showcase and documentation for examples)
musachy
On 8/16/07, Richard Sayre
AngeloChen wrote:
Hi,
New to Struts, I have a need like this:
If my LoginAction verify that the user is valid, it will retrieve a list of
emails addressed to him from model and send all of them to a yourEmail.jsp.
now as I understand from the doc that for every jsp you have to create a
Eugen Stoianovici wrote:
how do i get a handle to Session / Request from an action implementing
import com.opensymphony.xwork2.Preparable;?
http://struts.apache.org/2.x/docs/how-do-we-get-access-to-the-session.html
http://struts.apache.org/2.x/docs/how-can-we-access-the-httpservletrequest.html
Option 1.
Use s:form href=https://fqdn/context/myaction.action;
Option 2.
In struts.xml put your login form into a package with a different
namespace. eg /secure.
Then setup a security-constraint in web.xml so that access to resources
in that namespace (eg /secure/*) requires HTTPS (a
Hi,
I have an ActionForm like following, the setter got called while validate
method never, why?
public class MyForm extends ActionForm {
private String username;
private String password;
public String getUsername() {
return username;
}
public void
Your class have to extend ValidatorForm and not ActionForm.
BR
/Amleto
-Messaggio originale-
Da: AngeloChen [mailto:[EMAIL PROTECTED]
Inviato: venerdì 17 agosto 2007 11.53
A: user@struts.apache.org
Oggetto: validate never got called
Hi,
I have an ActionForm like following, the
Hello friends,
I am using struts 1.2.9. In my project, I have to navigate along the
five jsp pages. For each page I have one next button which updates the
data to the database. During that time I have to do only mask validation
and not required validation. In the fifth page I have one save
Laurie Harper wrote:
Eugen Stoianovici wrote:
how do i get a handle to Session / Request from an action
implementing import com.opensymphony.xwork2.Preparable;?
http://struts.apache.org/2.x/docs/how-do-we-get-access-to-the-session.html
Hi,
I have one form which submits data to one action. However there are different
s:submit-buttons in the form (Add Row, Back, Forward).
Full validation should only happen if Forward has been clicked. The other
buttons should only validate some non-required field formats
(Int-Validator, ...).
In my class, I want to read a constant in struts.xml.
I see some examples using @inject , somehow I cant make it work.
May someone help me? just wanna to get those constants in struts.xml
(don't want to use java properties file this time. I think it is easier to
maintain in struts.xml)
Thanks
Is there a struts support channel?(other than the one on
irc.freenode.net which only has 4 or 5 members)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Assuming that Add, Back , Fwd are different methods in the same
Action, you could use s:submit method=Add to post to Add method, and
define the validations for that method using annotation . I havent
tried if the non-field level validators get executed at this point
On 8/17/07, Sandro Giessl
Hi!
method=... is exactly what I have been looking for. Sorry for disturbing the
list, I didn't expect it to be that easy. :)
Thanks!
Sandro
On Friday 17 August 2007 14:22:57 j alex wrote:
Assuming that Add, Back , Fwd are different methods in the same
Action, you could use s:submit
There's always #funkycodemonkey on irc.darkmyst.org - often *way* OT,
but rarely boring.
Larry
On 8/17/07, Eugen Stoianovici [EMAIL PROTECTED] wrote:
Is there a struts support channel?(other than the one on
irc.freenode.net which only has 4 or 5 members)
I believe this should be handled by the s:form tag. There is already a ticket
open here:
https://issues.apache.org/struts/browse/WW-1990
I will work on this and get it taken care of. You should not have not have to
explicitly define the fully qualified URL to an action with the s:form
tag.
OK, that worked, in that the validators ran and error messages were
written to the log, however my execute method still executed and
nothing happened on the UI with the error message tags.
I guess the larger question here is, if I'm trying to learn Struts, is
the best strategy to dig into Struts
i have a tabbedpanel which displays several tabs one of which contains a
form. How do i turn back to that tab after i've pressed the submit
button on that form?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Hi!
method=... is exactly what I have been looking for. Sorry for disturbing the
list, I didn't expect it to be that easy. :)
Thanks!
Sandro
On Friday 17 August 2007 14:22:57 j alex wrote:
Assuming that Add, Back , Fwd are different methods in the same
Action, you could use s:submit
If I specify the entire URL with http:// (etc) it works fine, but that
causes other problems for testing and whatnot that I'd like to avoid by
using relative URLs. I haven't tried ../notation, but I'll try it as a
workaround.
It just seems like there should be a way to specify a URL in the
I have my div refreshing when an 'editQuestion' topic is published.
s:url id=loadQuestionDetails action=getQuestionDetails
s:param name=questionId value=492/
/s:url
s:div id=questionDetailsDiv theme=ajax
href=%{loadQuestionDetails} listenTopics=/editQuestion
/s:div
As you can
I think the problem you are seeing already has an open JIRA ticket:
https://issues.apache.org/struts/browse/WW-2073
James
On Fri Aug 17 10:33 , Sandro Giessl [EMAIL PROTECTED] sent:
Hi,
I'm doing file upload using the following interceptor:
6291456
You should be able to set the listenTopic attribute on the div for that
panel, and then notify the topic (I think this is on the s:submit tag,
but I could be mistaken). See
http://struts.apache.org/2.0.9/docs/tag-reference.html for more details.
This works if your theme ajax.
One thing I have
Hi,
I'm doing file upload using the following interceptor:
interceptor-ref name=fileUpload
param name=maximumSize6291456/param
/interceptor-ref
The parameter maximumSize works as expected when it's set below 2MByte. But
I'm not able to
hi,
putting the constant in strut.xls works fine ?
constant name=struts.multipart.maxSize value=2597152 /
Herrera
Sandro Giessl-2 wrote:
Hi,
I'm doing file upload using the following interceptor:
interceptor-ref name=fileUpload
To anyone who's interested in a workaround to my issue, I wound up
creating an action that does a redirect to a URL passed into the action,
and re-constructing the query string from the passed in parameters.
It's not an elegant solution, but it does work.
Steve Sether wrote:
If I specify the
Hi all,
I will explain my problem scenario.
I have a objects
s:iterator values=advisors
s:checkbox name=irs.a/
s:checkbox name=irs.b/
/s:iterator
in My action class there is I am declaring like this
Hi,
I've done the same using topics:
1) Publish on a topic after the request is executed (eg,
notifyTopics=/submit in the s:submit).
2) Register to the same topic in the s:div corresponding to the tab
(eg, listenTopics=/submit in the s:div).
Alvaro.
On 8/17/07, Clement, Steve [EMAIL
Rene,
It sounds you are are saying that there IS a way, using this
s:doubleselct Correct?
Rene Gielen wrote:
Indeed there is no way without Javascript. The s2 tag Skip is searching
for is
http://cwiki.apache.org/confluence/display/WW/doubleselect
Zoran Avtarovski schrieb:
Any solution has
you can specify a form to be sumitted when the div refreshes, using formId.
musachy
On 8/17/07, Richard Sayre [EMAIL PROTECTED] wrote:
I have my div refreshing when an 'editQuestion' topic is published.
s:url id=loadQuestionDetails action=getQuestionDetails
s:param
I produce XML from a jsp page. I'm iterating the results of a DAO. For each
result, I want to use another DAO and iterate over result from that. I'm
declaring the inner DAO using s:bean, but I can't access the loop variable
from inside s:param. If I change the nested DAO declaration to use
Hi all,
How to use s:include to include a dynamic jsp file?
For instance:
s:include value=%=filename % / does not work in struts 2: the value of
filename cannot be parsed.
Please help!!!
--
View this message in context:
I am trying to figure out the validator type=expression and not having
much success. Can someone tell me what is wrong with this?
field name=model.password
field-validator type=requiredstring
message key=requiredstring /
Hi, Im new to Struts too!
But i need to be very quickly come up with a login and log out part for my
application which im going to use the Struts, I need to retrieve the user
name and password from the Mysql database then check it with a form values,
would you send me a piece of code or something
Hi to everyone.
I have a problem with the session attributes in my struts app.
I have a login page that checks the username and the password and if it's all
right, it fills the session (in the action bean) with an attributte username
with the username introduced. The app redirects to another
Hello
I understand half how to process the token, however what is needed on the html
side to prevent re-submission of a form? If I use a struts form tag is it
handled automagically? Presently, without the struts protection, I keep the
url of the action in the address bar. So on refresh it
Redirection is the correct approach.
On 8/17/07, Chris Pat [EMAIL PROTECTED] wrote:
Hello
I understand half how to process the token, however what is needed on the
html side to prevent re-submission of a form? If I use a struts form tag is
it handled automagically? Presently, without the
If you switch domains or ports, you will lose your session. Sessions are
usually tied to cookies which have these restrictions.
On 8/17/07, Diego Ezquerro [EMAIL PROTECTED] wrote:
Hi to everyone.
I have a problem with the session attributes in my struts app.
I have a login page that checks
Hi Paul
Okay thanks. However for the other use cases can you answer it. Is there
special html tag that is needed or do I get that for free with the
struts:form tag?
Paul Benedict [EMAIL PROTECTED] wrote: Redirection is the correct approach.
The doubleselect tag provides easy to use encapsulation of your usecase,
with binding to the s2 based model. But in the very end, it's use will
render javascript code in the resulting html, and there is no way around
because of how html / http is designed.
Skip Hollowell schrieb:
Rene,
It
--- Chris Pat [EMAIL PROTECTED] wrote:
Is there special html tag that is needed or do I get
that for free with the struts:form tag?
IIRC the html:form.../ tag inserts it (if there's a
token present, of course).
You could just look and see, too.
d.
If the token is already present in the request, it will be automatically
included as a hidden field.
On 8/17/07, Dave Newton [EMAIL PROTECTED] wrote:
--- Chris Pat [EMAIL PROTECTED] wrote:
Is there special html tag that is needed or do I get
that for free with the struts:form tag?
IIRC
45 matches
Mail list logo