RE: [S2] ActionMessages and redirects

2007-06-04 Thread Dave Newton
--- Al Sutton <[EMAIL PROTECTED]> wrote: > at the moment there appears to be a bug in that if > you use addActionError, the message store > Interceptor, and you have the validation interceptor > enabled you will get redirected to the input result > of the action after the redirect :( I'm not s

Re: How does one use lazy loading in Struts 2 with container managed persistence?

2007-06-04 Thread Dave Newton
--- Caine Lai <[EMAIL PROTECTED]> wrote: > But without framework support for JPA (built in), how > can Struts 2 ever be taken seriously? Isn't EJB3 and > JPA the current standard spec? What would "built-in support" for JPA and EJB3 look like? Seems to me that Hibernate is the current ad-hoc sta

[S2] dynamic forms

2007-06-04 Thread Julien Leonard
Hello all I have a Jsp which in there is a form with a list of elements. If we click on a element of the list, another list is deployed (in ajax) with checkboxes. If I submit the form, the values in the checkbox added by ajax, aren't send with the form. How can I resolve this? Julien

Re: [S2] ActionMessages and redirects

2007-06-04 Thread Al Sutton
Dave, The problem is that if your action uses addActionError and returns INPUT to get a redirect to another action the validation also uses teh input result of the action you've been redirected to. I agree that upon an error you want to go back to the input page, but if your error is added i

Re: How does one use lazy loading in Struts 2 with container managed persistence?

2007-06-04 Thread Al Sutton
I'd also add that Struts2 can be taken seriously because a large number of webapps are deployed to servlet engines that don't support EJBs such as Tomcat and Jetty and don't get deployed to full J2EE containers. Therefore requiring EJB support would most likley make Struts2 less likely to be a

Struts 2 Application Approach.

2007-06-04 Thread MBP . EDMS
Hi, I am a newbie to struts2. I am planning to use Struts2 and hibernate in my project. Below is my application flow. .jsp --> Action.java(POJO) --> Helper.java --> HibernateUtil.java --> DB Wherein Action.java will do the delegation to Helper class. Helper.java will contai

[S2] questions

2007-06-04 Thread meeboo
Hey all Is there a way to set a default value for a s:textfield? I am trying something like this: but am receiving a TLD error. I also discovered that a doesn't capture values from disabled input fields, now I know that there's already been a bug reported on s:textfield not being able to hand

Re: [S2] questions

2007-06-04 Thread Jeromy Evans
meeboo wrote: Hey all Is there a way to set a default value for a s:textfield? See http://struts.apache.org/2.x/docs/tag-syntax.html I am trying something like this: but am receiving a TLD error. is the equivalent of what you have tried, but the approach above is better I also di

Re: How does one use lazy loading in Struts 2 with container managed persistence?

2007-06-04 Thread Jeromy Evans
To investigate this further I created an S2 webapp deployed within a JBoss 4.2.0 container using EJB3 stateless session beans and JPA entity beans. First of all though, if you use JPA in standalone mode you can use the open session in view pattern as discussed in prior emails. This question

RE: Struts 2 Application Approach.

2007-06-04 Thread Al Sutton
My recommendation would be to keep the separation, that way if you wish to add further front-ends (such as SOAP, Message Queues, etc., etc.) you can construct the necessary equivalents to the Action objects for those front ends and still re-use the business logic in the Helper classes. -Origin

s2 logging

2007-06-04 Thread bob
This is clearly a newbie question but i can find no info. Sorry to be dumb. Does S2 support logging? Of course, I now that I can use other logging myself, but I tried to find ways in which S2 provides direct support for logging. I was thinking there would be an interceptor or something.

Re: NullPointerException with Struts and Struts2 plus Sitemesh

2007-06-04 Thread Dave Newton
--- panpan <[EMAIL PROTECTED]> wrote: > They're served throught S1 and S2 since I'm in the > middle for migration from S1 to S2. It is not clear to me that an S2 tag would function under an S1 mapping because there won't be a value stack, which is what the stack trace implies. The WW response cla

[OT] recommendations on workflow engines..

2007-06-04 Thread אלחנן מעין
hi.. we have a homegrown web framework and we would like to integrate it into one of the open source engine out there, things like jbpm or osworks, our enviorment are jboss 3.2.5 (for development) , hibernate 2.1.7c, and websphere 5 (for production) are there any comparison articles or reco

Re: s2 logging

2007-06-04 Thread Dave Newton
--- bob <[EMAIL PROTECTED]> wrote: > Does S2 support logging? What do you mean by "logging"? I just use Log4J (generally through commons-logging). What support do you believe it's lacking? d. Be a be

Re: NullPointerException with Struts and Struts2 plus Sitemesh

2007-06-04 Thread panpan
They're served throught S1 and S2 since I'm in the middle of migrating from S1 to S2. I got a replay from WebWork forum: Hi Newuser, >From the stack trace it looks like FilterDispatcher is never being applied to the request resulting ValueStack being null, hence NPE. How does the mapping of w

Getting the path attribute of tag inside Action class

2007-06-04 Thread prabath
Hi, I like to get the path attribute of action tag declared in struts-config.xml inside my Action class. Is there any way? The reason I want is, I have declared different action mappings(in struts-config.xml) for the same Action class. Now I want to get the name of the action mappings in

Re: NullPointerException with Struts and Struts2 plus Sitemesh

2007-06-04 Thread panpan
Hi Dave, Thanks for your reply and time. In the web.xml, I have both S1 and S2 configuration inside. So S1 and S2 tag should function together well. I have other page which has mixed s1 tag nad s2 tag and works very well. The reason is like what WW response mentioned: FilterDispatcher is never b

Re: NullPointerException with Struts and Struts2 plus Sitemesh

2007-06-04 Thread panpan
Hi Dave. I found the problem is because this logon page has been configured externally for jboss server. The jboss server dosn't know the S2. Thanks, Yan panpan wrote: > > Hi Dave, > > Thanks for your reply and time. > In the web.xml, I have both S1 and S2 configuration inside. So S1 and S2

Re: Getting the path attribute of tag inside Action class

2007-06-04 Thread Nuwan Chandrasoma
hi, you can getting from the ActionMapping object that is available from the action. Thanks, Nuwan - Original Message - From: "prabath" <[EMAIL PROTECTED]> To: Sent: Monday, June 04, 2007 1:06 PM Subject: Getting the path attribute of tag inside Action class Hi, I like to

Re: [S2] Freemarker vs struts taglibs

2007-06-04 Thread Jeromy Evans
Jordi, I took your freemarker and JSP code below and implemented it in three equivalent S2 actions that generated a list of 20 Offers. I then took some basic performance measurements with JMeter Test settings: Http get request directly to the action url Thread Group: 50 threads, 1 second ram

Re: Struts 2 Application Approach.

2007-06-04 Thread Josh Vickery
Where do your domain classes fit into your structure? I suggest thinking about whether you need those "helper" classes (I'm assuming this is something like a Service Layer) or whether the logic that you are planning on putting in the "helper" classes would be better placed in your domain classes.

Re: [OT] recommendations on workflow engines..

2007-06-04 Thread Rahul Akolkar
On 6/4/07, אלחנן מעין <[EMAIL PROTECTED]> wrote: hi.. we have a homegrown web framework and we would like to integrate it into one of the open source engine out there, things like jbpm or osworks, our enviorment are jboss 3.2.5 (for development) , hibernate 2.1.7c, and websphere 5 (for productio

parameters interceptor and multipart/form-data

2007-06-04 Thread Joshua Szmajda
Hi all, Whenever I set the enctype on my form to multipart/form-data (in order to handle some file uploads), it sporadically will stop the parameters interceptor from receiving any data at all. When this happens, the log shows: 12:47:23,999 [http-8080-Processor24] DEBUG erceptor.ParametersIn

Retrieving HTTP query string

2007-06-04 Thread yitzle
If I got a URL with a parameter embedded in it, how do I check what the query string is? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Interceptor - method init and destroy

2007-06-04 Thread Luiz Henrique Rossetti
When trying to execute the method "init" and "destroy", it´s doesn´t execute. Somebody has some example of the Interceptor class that implements "open" and "close" jdbc connections? Thanks

RE: Retrieving HTTP query string

2007-06-04 Thread animesh.saxena
--- Begin Message --- Its as simple as using the Request object. Request.QueryString Maybe I am getting the question wrong. Can you explain the scenario in which you are using this? From: [EMAIL PROTECTED] on behalf of yitzle Sent: Mon 6/4/2007 11:00 PM To: St

Handeling org.apache.struts.chain.commands.InvalidPathException

2007-06-04 Thread Nathan Hook
We have recently upgraded to struts 1.3.8 and have been running into the org.apache.struts.chain.commands.InvalidPathException when a user types in a url that doesn't map correctly. I am hoping to instead of show the user the tomcat exception page, I wanted to show a 404 error page. How do I g

Struts 2 + Sitemesh

2007-06-04 Thread Nunes
Hi My name's Mauricio, today I'm trying to use struts 2 with sitemesh but i having a problem when I mapping my actions. How I applying other decorator in my results pages? Thank you. -- View this message in context: http://www.nabble.com/Struts-2-%2B-Sitemesh-tf3866742.html#a10954711 Sent from

Re: Retrieving HTTP query string

2007-06-04 Thread yitzle
Its as simple as using the Request object. Request.QueryString Maybe I am getting the question wrong. Can you explain the scenario in which you are using this? How do I get the Request object? Implementing RequestAware gets me a map... There's a sun.misc.Request object, but that doesn't look rig

Outlook like notification window

2007-06-04 Thread Zhang, Larry \(L.\)
I am looking for a J2EE or AJAX solution for Outlook like notification (small window on the right bottom corner of the computer screen), can some one point out a tutorial like information? Thanks. Larry - To unsubscribe, e-mail

Re: Retrieving HTTP query string

2007-06-04 Thread Dave Newton
--- yitzle <[EMAIL PROTECTED]> wrote: > If I got a URL with a parameter embedded in it, how > do I check what the query string is? Struts version? d. The fish are biting. Get more visitors on your site usin

Re: Retrieving HTTP query string

2007-06-04 Thread yitzle
On 6/4/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- yitzle <[EMAIL PROTECTED]> wrote: > If I got a URL with a parameter embedded in it, how > do I check what the query string is? Struts version? d. Sorry. Struts 2 - To uns

Re: Retrieving HTTP query string

2007-06-04 Thread Dave Newton
--- yitzle <[EMAIL PROTECTED]> wrote: > How do I get the Request object? Struts version? S1: It's passed in to Action.execute(...) S2: Implement ServletRequestAware http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/interceptor/ServletRequestAware.html I have no idea why you w

RE: Retrieving HTTP query string

2007-06-04 Thread animesh.saxena
--- Begin Message --- I guess you are missing the cast.. public String intercept(ActionInvocation invocation) throws Exception { HttpServletRequest request = (HttpServletRequest) invocation .getInvocationContext().get(StrutsStatics.HTTP_REQUEST); // // //crap...

RE: Interceptor - method init and destroy

2007-06-04 Thread Al Sutton
Init and destroy are only called when the interceptor is initialised when the servlet engine starts, and destroyed when the servlet engine is stopped. You should do all your jdbc connection work in the intercept method. -Original Message- From: Luiz Henrique Rossetti [mailto:[EMAIL PROTE

Re: Outlook like notification window

2007-06-04 Thread Musachy Barroso
Do you mean a popup window in the browser? musachy On 6/4/07, Zhang, Larry (L.) <[EMAIL PROTECTED]> wrote: I am looking for a J2EE or AJAX solution for Outlook like notification (small window on the right bottom corner of the computer screen), can some one point out a tutorial like information

Struts 2 tags within tag files

2007-06-04 Thread makhno
Hello, I have a tag file used by my JSP's, in that tag file I have Struts 2 tags(textfield, radio, etc) The tags work OK, they output HTML controls and submit data, but the resulting page does not display the label (set in tag's attribute) and fieldErrors set by the validator. Is there any way t

Re: Retrieving HTTP query string

2007-06-04 Thread Musachy Barroso
what are these empty emails? musachy On 6/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged

Re: Retrieving HTTP query string

2007-06-04 Thread yitzle
On 6/4/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- yitzle <[EMAIL PROTECTED]> wrote: > How do I get the Request object? Struts version? S1: It's passed in to Action.execute(...) S2: Implement ServletRequestAware http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/intercepto

Re: Empty emails [was Retrieving HTTP query string]

2007-06-04 Thread yitzle
Not sure why, but the body of the emails is in the attachment. On 6/4/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: what are these empty emails? musachy On 6/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > The information contained in this electronic message and any attachments > to

Re: Retrieving HTTP query string

2007-06-04 Thread Dave Newton
--- Musachy Barroso <[EMAIL PROTECTED]> wrote: > what are these empty emails? They're your email client :) For whatever reason the actual msg is in the fwd'ed attachment. d. > > musachy > > On 6/4/07, [EMAIL PROTECTED] > <[EMAIL PROTECTED]> wrote: > > > > > > The information contained in this

Re: Interceptor - method init and destroy

2007-06-04 Thread Luiz Henrique Rossetti
Ok!!! Now, the prepare() method in the Preparable interface executes before the call of the method intercept()? I have some troubles in calling these methods. When my action classes implement the Preparable interface, the prepare() method is always called before intercept() method. How can I solve

Re: Struts 2 + Sitemesh

2007-06-04 Thread Guilherme
Mauricio, post here your configuration. I have Sitemesh running in my pet project. 2007/6/4, Nunes <[EMAIL PROTECTED]>: Hi My name's Mauricio, today I'm trying to use struts 2 with sitemesh but i having a problem when I mapping my actions. How I applying other decorator in my results pages? Tha

RE: Outlook like notification window

2007-06-04 Thread Zhang, Larry \(L.\)
(small window on the right bottom corner of the computer screen) - not in the browser. -Original Message- From: Musachy Barroso [mailto:[EMAIL PROTECTED] Sent: Monday, June 04, 2007 2:07 PM To: Struts Users Mailing List Subject: Re: Outlook like notification window Do you mean a popup w

Re: Interceptor - method init and destroy

2007-06-04 Thread Luiz Henrique Rossetti
I solved this problem changing the order of the declaration of the interceptors in struts.xml :D On 6/4/07, Luiz Henrique Rossetti <[EMAIL PROTECTED]> wrote: Ok!!! Now, the prepare() method in the Preparable interface executes before the call of the method intercept()? I have some troubles in c

Re: [OT] Outlook like notification window

2007-06-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Larry, Zhang, Larry (L.) wrote: > I am looking for a J2EE or AJAX solution for Outlook like notification > (small window on the right bottom corner of the computer screen), can > some one point out a tutorial like information? Unless you can get the

Actions, Beans and Spring

2007-06-04 Thread stanlick
I changed my action mapping class name to the bean id in my spring file and I am not getting a new action created for each request! The correct action is being invoked, but it is not being created anew for each request. I was sure to set the scope=prototype" in the bean mapping, yet the logging

Re: [OT] Outlook like notification window

2007-06-04 Thread Neil Erdwien
Yahoo's Widgets, http://widget.yahoo.com/, are cross-platform and look good to me. The development learning curve isn't too large either -- it is all mostly-standard JavaScript. I built my first widget yesterday. Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Larr

Re: Using a tag as an attribute value

2007-06-04 Thread yitzle
Shouldn't that be jsp:attribute rather than jsp:param?... L. Erm... Maybe? I got it working -> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Struts 2 tags within tag files

2007-06-04 Thread Laurie Harper
makhno wrote: Hello, I have a tag file used by my JSP's, in that tag file I have Struts 2 tags(textfield, radio, etc) The tags work OK, they output HTML controls and submit data, but the resulting page does not display the label (set in tag's attribute) and fieldErrors set by the validator. Is

Re: Using a tag as an attribute value

2007-06-04 Thread Laurie Harper
yitzle wrote: I got a linkIf.tag file that's working well. It checks the test and either creates a link the the url with the body as the link content (ie < a href="<%=url%>" >) or just shows the body sans link. I want to set the test attribute to be , and that's where I run into trouble.

Re: [OT] recommendations on workflow engines..

2007-06-04 Thread אלחנן מעין
thanks but i'm looking for something that could process bpel as well... From: "Rahul Akolkar" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: "Struts Users Mailing List" Subject: Re: [OT] recommendations on workflow engines.. Date: Mon, 4 Jun 2007 12:33:26 -0400 On 6/4/07, אל

[S2] Accessing URL encoded GET data (bug found?)

2007-06-04 Thread yitzle
I am implementing the ParamterAware interface to get to the parameter. The interface has a setParameters(Map parameters) that I'm supposed to be able to use to access the GET data encoded in the URL. From the JavaDoc API: "Note that all parameter values for a given name will be returned, so the

[S2] File Upload Question

2007-06-04 Thread Hoying, Ken
As I am reading up and looking into the file upload support in S2, it appears that files are uploaded to a temporary area and then deleted when control is returned from the action. It would seem then that if I wanted to keep the file, that I then need to copy it again to somewhere else. Is this u

RE: [S2] Accessing URL encoded GET data (bug found?)

2007-06-04 Thread animesh.saxena
--- Begin Message --- You are tryin to cast a string array to string. parameters are passed as key/value pairs of Strings to the web server, so the we assume that the generics mapping for parameters is . In fact, compilers will allow you to use this generic: Map parameters = request.getParamete

Re: [S2] Accessing URL encoded GET data (bug found?)

2007-06-04 Thread yitzle
As per your advice, I tried explicitly casting the map to a Map public void setParameters (Map map) { Map myMap = map; Object m = myMap.get("criteria"); message = m.toString(); } No difference. message gets set to [Ljava.lan

RE: [S2] Accessing URL encoded GET data (bug found?)

2007-06-04 Thread animesh.saxena
--- Begin Message --- I meant cast it to Map The second one is String[] (String array) Try again , it wil work. Animesh From: [EMAIL PROTECTED] on behalf of yitzle Sent: Tue 6/5/2007 1:57 AM To: Struts Users Mailing List Subject: Re: [S2] Accessing URL enc

RE: [S2] Accessing URL encoded GET data (bug found?)

2007-06-04 Thread animesh.saxena
--- Begin Message --- Also it should be myMap.get("criteria")[0]; Animesh From: [EMAIL PROTECTED] on behalf of yitzle Sent: Tue 6/5/2007 1:57 AM To: Struts Users Mailing List Subject: Re: [S2] Accessing URL encoded GET data (bug found?) As per your advice

[OT] Re: [S2] Accessing URL encoded GET data (bug found?)

2007-06-04 Thread Dave Newton
--- yitzle <[EMAIL PROTECTED]> wrote: > "Note that all parameter values for a given name > will be returned, so the type of the objects in the > map is java.lang.String[]." > > When I try reading data from the Map and converting > to a String, I get a casting error: > java.lang.ClassCastException

Re: [OT] Re: [S2] Accessing URL encoded GET data (bug found?)

2007-06-04 Thread yitzle
All working. I've been doing well at making a perfect fool of myself... I appreciate you taking the time to point out my obvious mistakes. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

Re: [OT] Re: [S2] Accessing URL encoded GET data (bug found?)

2007-06-04 Thread Dave Newton
--- yitzle <[EMAIL PROTECTED]> wrote: > I appreciate you taking the time to point out my > obvious mistakes. They're only obvious *after* you see them! I spent 10 minutes wondering why: if ("bar" == foo) didn't work. Turns out Java's fundamentally broken. d.

Testing error after adding DateConverter

2007-06-04 Thread mraible
I recently added a DateConverter to my project (Struts 2.0.6, Maven 2) and now I'm getting NPEs when running tests. xwork-conversion.properties: java.util.Date=org.appfuse.webapp.action.DateConverter DateConverter.java: public class DateConverter extends StrutsTypeConverter { public Objec

Re: [OT] Outlook like notification window

2007-06-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Neil, Neil Erdwien wrote: > Yahoo's Widgets, http://widget.yahoo.com/, are cross-platform and look > good to me. The development learning curve isn't too large either -- it > is all mostly-standard JavaScript. I had never heard of Yahoo! widgets...

RE: [OT] Outlook like notification window

2007-06-04 Thread animesh.saxena
--- Begin Message --- Yahoo Widget still are not supported on linux. Don't know how cm u callin dem multiplatform. Supports only mac and windows Animesh http://inlovewithlinux.blogspot.com From: Christopher Sch

Re: [OT] Re: [S2] Accessing URL encoded GET data (bug found?)

2007-06-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, Dave Newton wrote: > --- yitzle <[EMAIL PROTECTED]> wrote: >> I appreciate you taking the time to point out my >> obvious mistakes. > > They're only obvious *after* you see them! > > I spent 10 minutes wondering why: > > if ("bar" == foo)

RE: [OT] Re: [S2] Accessing URL encoded GET data (bug found?)

2007-06-04 Thread animesh.saxena
--- Begin Message --- hahahaha Apply the same concept to windows operating system, and i guess the true answer wil be fundamentally broken OS. Animesh http://inlovewithlinux.blogspot.com From: Christopher Schultz [

RE: [OT] Outlook like notification window

2007-06-04 Thread Nathan Hook
http://www.prototypejs.org/ We're going to use this framework for all our ajax/javascripting needs. Seems to work on all operating systems. _ PC Magazine’s 2007 editors’ choice for best Web mail—award-winning Windows Live Hotmai

Re: [double OT] Re: [S2] Accessing URL encoded GET data (bug found?)

2007-06-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Animesh, [EMAIL PROTECTED] wrote: Christopher Schultz wrote: >> That depends on your perspective: >> >> if("10" != 10) >> >> doesn't even compile. Some people would say that makes Java broken. :( > > hahahaha > > Apply the

Re: How does one use lazy loading in Struts 2 with container managed persistence?

2007-06-04 Thread Caine Lai
Thanks Jeromy, This was exactly what I was looking for. Very helpful. I was able to create a transaction in the web tier using a JNDI lookup of the UserTransaction. The transaction spans the entire request as needed. It still troubles me that any problems with the transaction commit will not

Re: [OT] Re: [S2] Accessing URL encoded GET data (bug found?)

2007-06-04 Thread yitzle
That's why I prefer Perl ;) On 6/4/07, Christopher Schultz <[EMAIL PROTECTED]> wrote: That depends on your perspective: if("10" != 10) doesn't even compile. Some people would say that makes Java broken. :( - -chris - To u

Re: Struts 2 tags within tag files

2007-06-04 Thread makhno
Thank you very much, it fixed my problem Laurie Harper wrote: > > makhno wrote: >> Hello, I have a tag file used by my JSP's, in that tag file I have Struts >> 2 >> tags(textfield, radio, etc) >> >> The tags work OK, they output HTML controls and submit data, but the >> resulting page does not

Re: Struts2 Dynamic Checkboxes

2007-06-04 Thread Torsten Römer
Ah, I am such a dingbat... the beans in my list contained a property with the same name as I used for the Collection property in the backing bean. So when the tag was checking if the option was there or not it was looking at some boolean property of that bean instead into the Collection. Not befor

Re: Disable label & re-select tab

2007-06-04 Thread Torsten Römer
The "selectedTab" attribute of course does the trick. Is there also an easy way to know which tab was selected when the form was submitted? Torsten Musachy Barroso schrieb: > To select the tab, use the "selectedTab" attribute on tabbedPannel. For > your > label question check this FAQ: > > http

email field validation in struts-2

2007-06-04 Thread Leena Borle
Hi, I have just started learning Struts-2. I am using sruts2-blank application on Tomcat server. I added email field in login file. Problem I have is validation is failing. Even if I put email address in email field, framework comes back with the error message from my validation.XML file(Email fi

Re: email field validation in struts-2

2007-06-04 Thread Jeromy Evans
Property names are case sensitive. Your property name is "userEmail" not useremail public void setUserEmail(String userEmail) (wrong) The params interceptor will try to call setUseremail(String). As this doesn't exist userEmail is null. (wrong) The validator will be calling

Re: email field validation in struts-2

2007-06-04 Thread Martin Gainty
variable names are case sensitive so useremail != userEmail EITHER change userEmail to useremail in your java source OR change useremail to userEmail in Login-validation.xml and Login.jsp rebuild the project redeploy to tomcat M This email message and any files transmitted with it contain conf

setAttribute

2007-06-04 Thread Chris Pat
Hello When an object is saved to the session is it persisted anywhere or only in memory? Even transiently, is it never persisted. Now I understand how the OS may page the entire memory space, however that is beyond the level that the programmer of tool can control and is monolithic. I assume

Re: setAttribute

2007-06-04 Thread Oguz Kologlu
That's an implementation detail for each servlet container/ configuration. It is really very specific to each implementation as to what happens when you save something to session so you'd have to look at the doco's of the servlet container you're using Oz On 05/06/2007, at 10:41 AM, Chris

Re: [S2] File Upload Question

2007-06-04 Thread Jeromy Evans
Ken, Yes, the interface to your action is a File. The default implementation uses the ServletFileUpload servlet from apache-commons-fileupload which does create a temporary file. You can switch to other implementations or configurations by changing some struts2 properties but the fileupload i

DateTimePicket takes the whole page

2007-06-04 Thread Mansour
Hello every one: I faced this problem and posted it, and never get any thing back. I have a page that displays dateTimePicker. When the dateTimePicker pops up it spans the whole page and is displayed in a newpage with header, footer and navigation bar ! This issue appears sometimes then it disa

Re: DateTimePicket takes the whole page

2007-06-04 Thread Jeromy Evans
I can't even begin to image what you're describing. However, install the firefox web developer plugin [1] and have a look at the DOM to see what's really being created. The dojo datepicker uses an html template in struts/dojo/src/widget/templates/DatePicker.html and a css file at the sample lo

Re: DateTimePicket takes the whole page

2007-06-04 Thread Mansour
Where can I find this folder struts/dojo/src/widget/templates/DatePicker.html ? In tomcat work ? In /tmp ?? I searched the wholefile system to check where does it come from and couldn't find any thing. I understand it come in the jar files, but before tomcat serves this contents they have to go

Re: DateTimePicket takes the whole page

2007-06-04 Thread Mansour
Jeromy Evans wrote: Mansour wrote: Where can I find this folder struts/dojo/src/widget/templates/DatePicker.html ? In tomcat work ? In /tmp ?? I searched the wholefile system to check where does it come from and couldn't find any thing. I understand it come in the jar files, but before tomcat

Re: DateTimePicket takes the whole page

2007-06-04 Thread Jeromy Evans
Mansour wrote: Where can I find this folder struts/dojo/src/widget/templates/DatePicker.html ? In tomcat work ? In /tmp ?? I searched the wholefile system to check where does it come from and couldn't find any thing. I understand it come in the jar files, but before tomcat serves this contents