Re: [S2] How to use https on form submissions?

2007-08-17 Thread Srinivas.N.
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

Re: action mappings help

2007-08-17 Thread Eugen Stoianovici
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

[S2] session question

2007-08-17 Thread Eugen Stoianovici
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]

Re: [S2] session question

2007-08-17 Thread nuwan chandrasoma
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

Re: Tabbed Panel and Ajax

2007-08-17 Thread Musachy Barroso
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

Re: newbie's question

2007-08-17 Thread Laurie Harper
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

Re: [S2] session question

2007-08-17 Thread Laurie Harper
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

Re: [S2] How to use https on form submissions?

2007-08-17 Thread Jeromy Evans
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

validate never got called

2007-08-17 Thread AngeloChen
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

R: validate never got called

2007-08-17 Thread Amleto DI SALLE
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

validation issues

2007-08-17 Thread Sivaswamynatha K
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

Re: [S2] session question

2007-08-17 Thread Eugen Stoianovici
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

[S2] Validation depending on which submit button was pressed

2007-08-17 Thread Sandro Giessl
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, ...).

[S2] how to get the constants in struts.xml programmatically?

2007-08-17 Thread Joe Lam
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

struts irc channel?

2007-08-17 Thread Eugen Stoianovici
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]

Re: [S2] Validation depending on which submit button was pressed

2007-08-17 Thread j alex
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

Re: [S2] Validation depending on which submit button was pressed

2007-08-17 Thread 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

Re: struts irc channel?

2007-08-17 Thread Larry Meadors
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)

Re: [S2] How to use https on form submissions?

2007-08-17 Thread James Holmes
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.

Re: Struts2 Annotation Based Validation

2007-08-17 Thread David Copeland
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

[S2][Tabbed panel] posting data from one tab

2007-08-17 Thread Eugen Stoianovici
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

Re: [S2] Validation depending on which submit button was pressed

2007-08-17 Thread 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

Re: [S2] (action on form outside of struts2)

2007-08-17 Thread Steve Sether
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

Re: Tabbed Panel and Ajax

2007-08-17 Thread Richard Sayre
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

Re: [S2] File Upload: 'the request was rejected because its size (...) exceeds the configured maximum (2097152)'

2007-08-17 Thread James Holmes
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

RE: [S2][Tabbed panel] posting data from one tab

2007-08-17 Thread Clement, Steve
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

[S2] File Upload: the request was rejected because its size (...) exceeds the configured maximum (2097152)

2007-08-17 Thread Sandro Giessl
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

Re: [S2] File Upload: the request was rejected because its size (...) exceeds the configured maximum (2097152)

2007-08-17 Thread Pedro Herrera
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

Re: [S2] (action on form outside of struts2)

2007-08-17 Thread Steve Sether
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

Autowiring multiple Items of same object

2007-08-17 Thread Vamsi
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

Re: [S2][Tabbed panel] posting data from one tab

2007-08-17 Thread Alvaro Sanchez-Mariscal
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

Re: [S2] 2 Select Boxes, one based on the other

2007-08-17 Thread Skip Hollowell
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

Re: Tabbed Panel and Ajax

2007-08-17 Thread Musachy Barroso
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

s:bean with s:param inside s:bean doesn't work, jsp:useBean does

2007-08-17 Thread Timo Kinnunen
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

s:include value=%=filename % / does not work

2007-08-17 Thread lupus
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:

S2 XML Validation

2007-08-17 Thread stanlick
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 /

Re: newbie's question

2007-08-17 Thread meisam sarabadani
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

Losing Session attributes

2007-08-17 Thread Diego Ezquerro
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

token html

2007-08-17 Thread Chris Pat
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

Re: token html

2007-08-17 Thread Paul Benedict
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

Re: Losing Session attributes

2007-08-17 Thread Paul Benedict
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

Re: token html

2007-08-17 Thread Chris Pat
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.

Re: [S2] 2 Select Boxes, one based on the other

2007-08-17 Thread Rene Gielen
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

Re: token html

2007-08-17 Thread Dave Newton
--- 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.

Re: token html

2007-08-17 Thread Paul Benedict
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