DOJO in struts2

2008-12-01 Thread Faraz Ali
Hi All, Whenever i used any of the struts2 UI tag (with theme=ajax), nothing is rendered on the browser. And when i looked into the view source, there is lot of javascript code which is referring DOJO. How to add DOJO support in struts2? What need to download? If i need to download DOJO toolkit,

Re: Struts2 Validations

2008-12-01 Thread Lukasz Lenart
Did you created validation files or added annotations? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Struts2 - After BD dataload app never starts

2008-12-01 Thread Lukasz Lenart
2008/11/28 David Canos [EMAIL PROTECTED]: While start the application the log says... ServletContext.log():Initializing Spring root WebApplicationContext We use: Glassfish V2 Struts 2.0.12 Spring (plugin 2.0.12) Hibernate 3.2 MySQL 5.0 It looks like a Spring / Hibernate issue, please try

Can't get definitions factory from context

2008-12-01 Thread Benjamin Dittwald
Hi everybody! I hope you can help me, I've found some solutions in the web to this problem, but nothing worked for me. I use tiles for the layout and nothing else from struts, the rest is myfaces. Tomcat 6.0.16 is the container. Struts jar version is 1.1. Same problem with version 1.29. I got

Re: Managing file attachment

2008-12-01 Thread Shazad
Hi Adam, Thanks for your reply, really appreciate it. I am using struts 1.3. The validation is via validation.xml and it kicks in even before the action class can read the file, persistence is later step. The problem is if the do store the file in session in action class and then invoke manual

Re: Struts2 - After BD dataload app never starts

2008-12-01 Thread David Canos
The problem is now fixed, the schemaExport was working with hibernate.hbm2ddl.auto = created. thanks for the answer lukasz Canós 2008/12/1 Lukasz Lenart [EMAIL PROTECTED] 2008/11/28 David Canos [EMAIL PROTECTED]: While start the application the log says...

About a simple test case on struts-showcase-2.0.12 and struts-blank-2.0.12

2008-12-01 Thread jingxuan liu
*Hi, Dear all:* ** *I wrote a simple test case which want to visit ** http://localhost:8080/struts2-blank-2.0.12/example/Menu.jsp*http://localhost:8080/struts2-blank-2.0.12/example/Menu.jsp * and

Re: DOJO in struts2

2008-12-01 Thread Lukasz Lenart
2008/12/1 Faraz Ali [EMAIL PROTECTED]: Whenever i used any of the struts2 UI tag (with theme=ajax), nothing is rendered on the browser. And when i looked into the view source, there is lot of javascript code which is referring DOJO. How to add DOJO support in struts2? What need to download? If

Re: Can't get definitions factory from context

2008-12-01 Thread Lukasz Lenart
2008/12/1 Benjamin Dittwald [EMAIL PROTECTED]: I hope you can help me, I've found some solutions in the web to this problem, but nothing worked for me. I use tiles for the layout and nothing else from struts, the rest is myfaces. Tomcat 6.0.16 is the container. Struts jar version is 1.1. Same

Validator with datetimepicker

2008-12-01 Thread curu
Hi, I encountered several problems using validators on a datetimepicker field form. Here is the html code : sx:datetimepicker key=startDate id=startDate toggleType=explode toggleDuration=500 required=true displayFormat=dd/MM// In my action there are the startDate field : private Date

Re: Manage Sessions in Struts

2008-12-01 Thread Paweł Wielgus
Hi all, by saying non web based i ment swing or swt. As for Spring WebFlow, Paul could You elaborate more about it, i was almost sure that it's impossible . Lets take my standard behavior, i open my page with default tab, then i click middle button (wheel) on a link and get a content in new tab,

Re: Manage Sessions in Struts

2008-12-01 Thread Dan
Paweł Wielgus escribió: Hi all, by saying non web based i ment swing or swt. As for Spring WebFlow, Paul could You elaborate more about it, i was almost sure that it's impossible . Lets take my standard behavior, i open my page with default tab, then i click middle button (wheel) on a link and

Re: Manage Sessions in Struts

2008-12-01 Thread Paul Benedict
Spring WebFlow includes Struts integration. I can't help you any further than point to the web site: http://www.springsource.org/webflow Note that SWF 1.x includes the Struts 1 support. I don't think 2.x does. Use 1.x and you can prevent exactly what you said. See the reference guide. Paul

Re: Manage Sessions in Struts

2008-12-01 Thread Struts Two
The following solutions will work: 1- On each request, you serialize your session object into an hidden field instead of ur session, but depending on size and number of your session objects, this can be very expensive as it needs to be submitted with every form and link to be deserialized if

Re: DOJO in struts2

2008-12-01 Thread Faraz Ali
yes, i added this. On Mon, Dec 1, 2008 at 7:23 PM, Lukasz Lenart [EMAIL PROTECTED]wrote: 2008/12/1 Faraz Ali [EMAIL PROTECTED]: Whenever i used any of the struts2 UI tag (with theme=ajax), nothing is rendered on the browser. And when i looked into the view source, there is lot of

Re: DOJO in struts2

2008-12-01 Thread Lukasz Lenart
2008/12/1 Faraz Ali [EMAIL PROTECTED]: yes, i added this. Struts 2 version? How did you map filter? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: Populating textfield with dynamic string, stop expression evaluation.

2008-12-01 Thread Fender963
Shameless bump. Any ideas? Fender963 wrote: Hey All, I've tried searching but either I dont' know what to search for, or it simply hasn't been asked yet. I have a textfield s:textfield required=true label=My Field name=myObject.name Works fine until the string gets returned

Re: Managing file attachment

2008-12-01 Thread Adam Ruggles
Instead of storing the file in the session, why don't you just store the file name and path. If the user doesn't resubmit the request, then check for the file when the session expires and remove the file. I agree storing the file itself is a bad idea, but a reference to the location should be

RE: Populating textfield with dynamic string, stop expression evaluation.

2008-12-01 Thread Kawczynski, David
s:textfield value=${'dont.evaluate'} / -Original Message- From: Fender963 [mailto:[EMAIL PROTECTED] Sent: Monday, December 01, 2008 12:22 PM To: user@struts.apache.org Subject: Re: Populating textfield with dynamic string, stop expression evaluation. Shameless bump. Any ideas?

RE: Populating textfield with dynamic string, stop expression evaluation.

2008-12-01 Thread Kawczynski, David
I was mistaken... If you wanted to render the exact text of ${dont.evaluate} You'll have to do something closer to this: s:textfield value=%{'\${dont.evaluate}\'} / Basic point is, place the escaped dynamic string in single quotes. -Original Message- From: Kawczynski, David Sent:

REST, response body for HTTP PUT

2008-12-01 Thread Alex Milanovic
Hi All, I want to return a response JSON for HTTP PUT requests using the REST plugin (2.1.3). Although the request succeeds (i.e. the DB is updated as expected) the model object does not get serialized to JSON. The same approach works well for HTTP POST and create() method. Is HTTP PUT supposed

Re: REST, response body for HTTP PUT

2008-12-01 Thread Dave Newton
--- On Mon, 12/1/08, Alex Milanovic [EMAIL PROTECTED] wrote: I want to return a response JSON for HTTP PUT requests using the REST plugin (2.1.3). Although the request succeeds (i.e. the DB is updated as expected) the model object does not get serialized to JSON. The same approach works well

Struts resources bundle question

2008-12-01 Thread riya
Hi, I am one month old to struts. I was curious to know if sth like below is possible: I know for sure that following is correct: label.xx.value = Selected xx product label.yy.value = Does your product need an accessory label.zz.value = Want to return it? Please notice that messages are

Re: DOJO in struts2

2008-12-01 Thread Faraz Ali
My struts version is struts 2.0.11.2. Below is my decorators.xml file: decorators defaultdir=/decorators excludes pattern/styles/*/pattern pattern/scripts/*/pattern pattern/images/*/pattern /excludes decorator name=layout page=layout.jsp pattern/*/pattern /decorator /decorators And below is my

RE: Struts2 Validations

2008-12-01 Thread Anshuman Nanda
Hi Lukasz I am using the Validation Files and not annotations. Regards Anshuman Nanda -Original Message- From: Lukasz Lenart [mailto:[EMAIL PROTECTED] Sent: Monday, December 01, 2008 2:18 PM To: Struts Users Mailing List Subject: Re: Struts2 Validations Did you created validation

RE: Struts2 Validations

2008-12-01 Thread esemba
Hi, I've faced this issue too. Try to migrate to latest Struts 2.0.14. Anshuman Nanda wrote: Hi Lukasz I am using the Validation Files and not annotations. Regards Anshuman Nanda -Original Message- From: Lukasz Lenart [mailto:[EMAIL PROTECTED] Sent: Monday, December

RE: Struts2 Validations

2008-12-01 Thread Anshuman Nanda
Thanks Esemba for the update. Can u please let me know what are the other dependencies (in terms of jar files) which i need to take care of when migrating from 2.0.8 to 2.0.14. Regards Anshuman Nanda -Original Message- From: esemba [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 02,

How can these query data be got?

2008-12-01 Thread KE LI
Hi All, I am quite confusing about this problem: Suppose this is an action: public class welcome implements Action { private String param1; private String param2; private List paramList; getters setters public String execute() throws

RE: Struts2 Validations

2008-12-01 Thread esemba
Hi, I has the same problem using Struts 2.0.12. In 2.0.14 there has been fixed a bug with accessing static content. Validation and dojo javascript files were somehow not generated. Upgrading to 2.0.14 has fixed the problem. I don't understand what do you mean by other dependencies. Just add all

.do and .jsp

2008-12-01 Thread hello_everyone
Hi, I am working on an application, which is developed with struts 1.2.9. I added a .jsp page and action against that page. Now the problem is: if in struts-config.xml, I specify the path of page with .jsp, it works. But with .do extension it doesn't work. Is there any other place in struts