Re: Fw: Date problem

2007-08-17 Thread vamsi
Mikheev, But it is saying Paramtert interceptor unable to convert the java.lang.String to Date and giving an Illegalargumentexception any information why it is saying like that regards Vamsi - Original Message - From: "Oleg Mikheev" <[EMAIL PROTECTED]> To: "Struts

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 t

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 tag inserts it (if there's a token present, of course). You could just look and see, too. d. __

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 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: 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 ch

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

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-

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 p

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

S2 XML Validation

2007-08-17 Thread stanlick
I am trying to figure out the and not having much success. Can someone tell me what is wrong with this?

does not work

2007-08-17 Thread lupus
Hi all, How to use s:include to include a dynamic jsp file? For instance: does not work in struts 2: the value of filename cannot be parsed. Please help!!! -- View this message in context: http://www.nabble.com/%3Cs%3Ainclude-value%3D%22%3C-%3Dfilename--%3E%22--%3E-does-not-work-tf428772

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. > > > > > > href="%{loadQuestionDetails}" listenTopics="/editQuestion">

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 jsp:useB

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 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 to be javasc

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 PROTE

Autowiring multiple Items of same object

2007-08-17 Thread Vamsi
Hi all, I will explain my problem scenario. I have a objects in My action class there is I am declaring like this List irs; Can anybody provide solutions for this one or refer

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 e

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 ? Herrera Sandro Giessl-2 wrote: > > Hi, > > I'm doing file upload using the following interceptor: > > > 6291456 > > > The parameter maximumSize works as expected when it'

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: > > >629145

[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: 6291456 The parameter maximumSize works as expected when it's set below 2MByte. But I'm not able to configure it to accept bigger file uploads. I'm getting the mentioned message as

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

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 ac

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 meth

[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 command

Re: Tabbed Panel and Ajax

2007-08-17 Thread Richard Sayre
I have my div refreshing when an 'editQuestion' topic is published. As you can see I have the parameter questionId hard coded. When ever the div reloads itself I would like to be able to change the questionId parameter. Id there an example in the showcase that does this?

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 1

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

2007-08-17 Thread James Holmes
I believe this should be handled by the 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 tag. That makes you

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] 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 meth

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 <

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]

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 butt

[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

[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, ...).

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 http://struts.apache.org/2.x/docs/how-can-we-access-the-

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 sett

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 setUsername(Stri

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

2007-08-17 Thread Jeromy Evans
Option 1. Use 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 CONFIDENTIAL

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: 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 form-bea

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: [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 i