Re: How can I combine a result (tiles + xslt)?

2008-03-11 Thread Antonio Petrelli
2008/3/10, Griffith, Michael * [EMAIL PROTECTED]: I believe (maybe incorrectly so) that the problem is caused by the XSLTResult calling close/flush when processing the result. Mmm... It reminds me a thing. When processing an XML file via a XML parser, the parser closes the stream at the end!

RE [OT] Re: subfolder in JSP directory

2008-03-11 Thread thomas . perelle
I have a colleague that succeed using struts modules but I'm not, do you use struts modules too ? Else have you done something particular in struts-config.xml file ? Thanks for your advices. Thomas Perelle. [EMAIL PROTECTED] Tél : 02 47 88 82 63 CNAV DSINDS 15 Avenue Jouhanneau 37078 Tours

[s2] Question about Advanced Type Conversion/Collection and Map Support

2008-03-11 Thread Nandana Mihindukulasooriya
Hi, I want to use type conversion feature to convert set of values to a list in my action as mentioned in the type conversion documentation (Advanced Type Conversion/Collection and Map Support) [1]. I followed the steps but still no luck. I have few questions. (please excuse if these questions

Re: Clearing Action properties from ValueStack

2008-03-11 Thread Rushikesh Thakkar
Thanks a lot for giving me proper direction. I solved it by changing the bean scope from default 'singleton' to 'prototype' as suggested in the struts2-spring-jpa-ajax tutorial at http://struts.apache.org/2.0.11/docs/struts-2-spring-2-jpa-ajax.html Thanks again.. -Rushikesh On Mon, Mar 10, 2008

Re: RE [OT] Re: subfolder in JSP directory

2008-03-11 Thread Laurie Harper
You don't need to introduce modules to do this. Just create the sub-directory and move the JSP there, then update the reference to the JSP in your action mapping in struts-config.xml. It should be straight forward. If you still can't get it going, post more details -- the configuration

Re: Instanting Error, when Upgrade Velocity in S2 2.0.10

2008-03-11 Thread Jeromy Evans
Frans Thamura wrote: hi there i got this error, when try to upgrade from 2.0.6 to 2.0.11, and upgrade velocity to 1.5 anyone can help me out [ERROR] DefaultActionInvocation - There was an exception while instantiating the result of type org.apache.struts2.dispatcher.VelocityResult

RE: How can I combine a result (tiles + xslt)?

2008-03-11 Thread Griffith, Michael *
Antonio, Would you then agree this is a bug or enhancement that could be made to the XSLTResult? Maybe a flush parameter could be added to the configuration of the result? MG -Original Message- From: Antonio Petrelli [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 11, 2008 2:25 AM To:

Re: How can I combine a result (tiles + xslt)?

2008-03-11 Thread Antonio Petrelli
2008/3/11, Griffith, Michael * [EMAIL PROTECTED]: Would you then agree this is a bug or enhancement that could be made to the XSLTResult? Maybe a flush parameter could be added to the configuration of the result? I don't think it is a bug of XSLTResult, since it closes (not simply flushes)

Re: [s2] Question about Advanced Type Conversion/Collection and Map Support

2008-03-11 Thread Jeromy Evans
Nandana Mihindukulasooriya wrote: Hi, I want to use type conversion feature to convert set of values to a list in my action as mentioned in the type conversion documentation (Advanced Type Conversion/Collection and Map Support) [1]. I followed the steps but still no luck. I have few

Managing id's

2008-03-11 Thread stanlick
Strutters -- This is very preliminary, but I am considering the topic of automatic action/id mappings. The stateless requirements for passing, hiding and sending keys is a brittle process. Remembering to do it (everywhere), getting the names matched up, the whole deal. Before I stop, drop, and

Template in Jar

2008-03-11 Thread Frans Thamura
jerom, i try 2.0.8, not the 2.0.11, and using velocity 1.5 work well :) i just need add digister and velocity view i think the velocity 1.5 classpath using webapp resource loader. Frans

Re: Not Able to call Action

2008-03-11 Thread aum strut
Hi Dave, I am attaching all the files namely index.jsp HelloWorld.jsp TestAction.java struts.xml web.xml consoleError browser Message i hope this will help to find out the cause of the error.As its still giving the error.error message from the console attached namely consoleError when i am

Re: Not Able to call Action

2008-03-11 Thread Dave Newton
--- aum strut [EMAIL PROTECTED] wrote: i hope this will help to find out the cause of the error.As its still giving the error.error message from the console attached namely consoleError when i am adding the action extension to the action. Are you accessing the JSP directly (as opposed to

Re: Not Able to call Action

2008-03-11 Thread aum strut
well this time i am keen to answeryour questions. i am using two jsp pages here namely index.jsp for getting inputs HelloWorld.jsp--for displaying the results.. as indexs .jsp is being displayed on start up i have configuredit in web.xml helloWorld.jsp i have configured it in struts.xml like

Business object in the action form?

2008-03-11 Thread Zhang, Larry (L.)
I have a question regarding ActionForm... Is it a good idea to place the Business Object in the action form? In my project, I do put the Data transfer object into the action form, but I am not certain if this is a good idea to put the business object as well into the action form. See the following

Re: Not Able to call Action

2008-03-11 Thread Dave Newton
--- aum strut [EMAIL PROTECTED] wrote: i am using two jsp pages here namely index.jsp for getting inputs HelloWorld.jsp--for displaying the results.. as indexs .jsp is being displayed on start up i have configuredit in web.xml Okay, I've said like a million times that if you access the JSP

Re: Not Able to call Action

2008-03-11 Thread aum strut
thks dave for such an explanation. i got what you are saying..i was really nt aware of the fact.. about entering valida data i am inputting valid data aal the tme.. On 3/11/08, Dave Newton [EMAIL PROTECTED] wrote: --- aum strut [EMAIL PROTECTED] wrote: i am using two jsp pages here namely

Re: Not Able to call Action

2008-03-11 Thread Dave Newton
--- aum strut [EMAIL PROTECTED] wrote: about entering valida data i am inputting valid data aal the tme.. I'm skeptical. Turn devMode on and check your logs. It might also be related to the other issue, I suppose, but it's more likely that there is a conversion or validator error. Dave

Re: Not Able to call Action

2008-03-11 Thread aum strut
ok i will do like this.. lets see what will be the results... On 3/11/08, Dave Newton [EMAIL PROTECTED] wrote: --- aum strut [EMAIL PROTECTED] wrote: about entering valida data i am inputting valid data aal the tme.. I'm skeptical. Turn devMode on and check your logs. It might also be

HDIV 2.0.4 now supports Struts 2.0.11

2008-03-11 Thread Gorka Vicente
Hi all, We have released new version of HDIV project. --- New Features --- * Support for Struts 2.0.11 * improvement to prevent Cross-site Request Forgery (CSRF) attacks: a random token is included in all requests. You can have a look at: http://www.hdiv.org Struts 2 plugin:

Re: cannot find the tag library descriptor for dojo.

2008-03-11 Thread Dave Newton
--- xianwinwin [EMAIL PROTECTED] wrote: %@ taglib uri=/struts-dojo-tags prefix=sx % Are you using S2.1? /struts-dojo-tags is only for S2.1 and should be available if you have the Dojo plugin on your classpath. Dave - To

cannot find the tag library descriptor for dojo.

2008-03-11 Thread xianwinwin
Hi there, I'm trying to incorporate some the dojo in my application. for this I do: I have a file that look like this: %@ page contentType=text/html; charset=UTF-8 % %@ taglib uri=/struts-tags prefix=s % %@ taglib uri=/struts-dojo-tags prefix=sx % %@ taglib uri=/WEB-INF/displaytag-el-12.tld

How to write variable in a Struts 2 tag?

2008-03-11 Thread bugs_
I need rewrite jsp page from Struts 1 to Struts 2. In Strust 1 is in the page something like this: % String variable = ... % html:hidden property=foo value=%= variable %/ I tried to rewrite it in Struts 2: % String variable = ... % s:hidden name=foo value=%= variable % / but this doesn't work.

Re: How to write variable in a Struts 2 tag?

2008-03-11 Thread Musachy Barroso
http://answers.google.com/answers/threadview?id=371241 musachy On Tue, Mar 11, 2008 at 1:39 PM, bugs_ [EMAIL PROTECTED] wrote: I need rewrite jsp page from Struts 1 to Struts 2. In Strust 1 is in the page something like this: % String variable = ... % html:hidden property=foo value=%=

Re: How to write variable in a Struts 2 tag?

2008-03-11 Thread Dave Newton
--- Musachy Barroso [EMAIL PROTECTED] wrote: http://answers.google.com/answers/threadview?id=371241 Wow, you're like Meta-Google. Dave On Tue, Mar 11, 2008 at 1:39 PM, bugs_ [EMAIL PROTECTED] wrote: I need rewrite jsp page from Struts 1 to Struts 2. In Strust 1 is in the page

Re: How to write variable in a Struts 2 tag?

2008-03-11 Thread Musachy Barroso
I am trying to let people know about this new cool google thingy, that finds stuff for you :) musachy On Tue, Mar 11, 2008 at 2:35 PM, Dave Newton [EMAIL PROTECTED] wrote: --- Musachy Barroso [EMAIL PROTECTED] wrote: http://answers.google.com/answers/threadview?id=371241 Wow, you're like

Re: [S2] Load Testing and number of sessions

2008-03-11 Thread Skip Hollowell
Figured I would follow up, as I hadn't heard anything from others. OpenSTA (http://www.opensta.org/) falls in to the category of 'Open Source Partial LoadRunner clone', and has been serving me well for most of the last two days. Any other recommendations? Skip Hollowell wrote: Hey all,

Re: How to write variable in a Struts 2 tag?

2008-03-11 Thread Dave Newton
--- Musachy Barroso [EMAIL PROTECTED] wrote: I am trying to let people know about this new cool google thingy, that finds stuff for you :) Right. Even if it did it'll never catch on. Dave musachy On Tue, Mar 11, 2008 at 2:35 PM, Dave Newton [EMAIL PROTECTED] wrote: --- Musachy

Re: [S2] Load Testing and number of sessions

2008-03-11 Thread Dave Newton
Same stuff I said last time. --- Dave Newton [EMAIL PROTECTED] wrote: Date: Fri, 7 Mar 2008 09:00:03 -0800 (PST) From: Dave Newton [EMAIL PROTECTED] Subject: Re: [S2] Load Testing and number of sessions To: Struts Users Mailing List user@struts.apache.org --- Skip Hollowell [EMAIL

Re: validation with annotation

2008-03-11 Thread xianwinwin
Thanks Ealden, this was very helpful! I tried that and it works fine. Question, say I wish to check for a date, so far I've been doing it this way: example private Date delta; @TypeConversion(converter=com.utilities.conversion.DateTypeConversion) public void setDelta(Date

accessing path_info

2008-03-11 Thread Jim Kennedy
I am using a jboss/tomcat/struts 1.1 combination on a windows server. I have an action definition defined like so: action path=/search type=com.je.struts.action.SearchAction scope=session name=SearchForm input=/tmpl_gnmain.jsp?body=/results.jsp

stream result type

2008-03-11 Thread Euphreme Rinfrett
Hi all, I'm trying to use to stream result type to get some images to display within a portal. Based on the wiki page: http://struts.apache.org/2.x/docs/stream-result.html I did my own action that gets an image and puts it into a model. This is the struts configuration: action

Re: Business object in the action form?

2008-03-11 Thread Randy Burgess
I wouldn't put a DAO or a business object there. Here is a good example. http://struts.apache.org/1.x/faqs/actionForm.html Regards, Randy Burgess Sr. Web Applications Developer Nuvox Communications From: Zhang, Larry (L.) [EMAIL PROTECTED] Reply-To: Struts Users Mailing List

Quickstart Example

2008-03-11 Thread Doug Pham
Hi All, I am experimenting with the quickstart application from the struts 2 tutorial links (http://cwiki.apache.org/WW/struts-2-spring-2-jpa-ajax.html). I have updated the struts version to 2.0.11.1 and spring to 2.5.2. Everything works great but when I added sitemesh to the pom, I got

Re: [struts] stream result type

2008-03-11 Thread Dale Newfield
Euphreme Rinfrett wrote: I'm trying to use to stream result type to get some images to display within a portal. action name=displayExerciceImageAction class=displayExerciceAction result name=success type=stream param

Re: stream result type

2008-03-11 Thread Nils-Helge Garli Hegvik
I assume that you're talking about a Struts 2 portlet since you're saying within a portal? If not, just disregard my response. A (jsr168)portlet can't render binary content (some jsr168 portlet containers have proprietary extensions to do this, but it's not supported by the framework), so you

Re: [Bulk] Re: [struts] stream result type

2008-03-11 Thread Euphreme Rinfrett
Excellent, this is great and made everything work. Thank you very much for the quick response. - Pascal Dale Newfield wrote: Euphreme Rinfrett wrote: I'm trying to use to stream result type to get some images to display within a portal. action name=displayExerciceImageAction

Re: Quickstart Example

2008-03-11 Thread Doug Pham
I jumped the gun too quick on this one. I did get it to work, but it prevent the ajax portion to work. At least I know it works, I'll investigate on the struts ajax issue separately. Thank You, Doug Doug Pham [EMAIL PROTECTED] wrote: Hi All, I am experimenting with the quickstart

Re: How to write variable in a Struts 2 tag?

2008-03-11 Thread bugs_
But % // declare or construct your variable... String title=My page; // set the variable in the page context under the variable name title pageContext.setAttribute(title,title); % s:hidden name=foo value='${title}' / This return the same error. Could you write me here any simple working

populate form bean

2008-03-11 Thread Chris Pat
Hello Excuse my niavete, but I have never used a formbean for other than retrieving string data from a form. For output I have just used simple struts and jstl for output. Now I want to reverse it and would like to use more sophisticated struts tags with collections in the form bean. Simple

Re: How to write variable in a Struts 2 tag?

2008-03-11 Thread Laurie Harper
If you're using 2.0.11.1, Struts tags do not allow JSTL expressions. You need to use OGNL instead. I don't recall the OGNL syntax for accessing page-scope variables, but it's probably something like %{title}, or %{#title}. Check the OGNL documentation to be sure if someone else doesn't chime

Re: populate form bean

2008-03-11 Thread Dave Newton
--- Chris Pat [EMAIL PROTECTED] wrote: Can I from an Action populate a formbean, from a database, set it in the session and forward to a jsp that is configured to use that formbean as the encompassing formbean for the form? Sure, but you shouldn't need to set it in the session yourself; that

Re: How to write variable in a Struts 2 tag?

2008-03-11 Thread Dave Newton
#attr.title will search through the various scopes. --- Laurie Harper [EMAIL PROTECTED] wrote: If you're using 2.0.11.1, Struts tags do not allow JSTL expressions. You need to use OGNL instead. I don't recall the OGNL syntax for accessing page-scope variables, but it's probably something

Re: How to write variable in a Struts 2 tag?

2008-03-11 Thread bugs_
%{#attr.varName} works fine. Thank you everybody I am so happy :-D I must find some good tutorial for ognl newton.dave wrote: #attr.title will search through the various scopes. --- Laurie Harper [EMAIL PROTECTED] wrote: If you're using 2.0.11.1, Struts tags do not allow JSTL

Re: How to write variable in a Struts 2 tag?

2008-03-11 Thread Dave Newton
--- bugs_ [EMAIL PROTECTED] wrote: I must find some good tutorial for ognl http://struts.apache.org/2.x/docs/ognl.html http://struts.apache.org/2.x/docs/ognl-basics.html http://www.ognl.org/2.6.9/Documentation/html/LanguageGuide/index.html Dave

Struts 2 scheduler

2008-03-11 Thread alex xander
i used struts 2.0.6 i need to schedule a task i've read the documentation, and it use quartz to schedule but it don't tell how to implement quartz in struts 2. can someone help me, or there's another way to schedule a task in struts 2 thx

How to Populate jsp with values in the database ?

2008-03-11 Thread RajiR
-- View this message in context: http://www.nabble.com/How-to-Populate-jsp-with-values-in-the-database---tp15998376p15998376.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail:

Re: How to Populate jsp with values in the database ?

2008-03-11 Thread RajiR
HI, I have inserted some values(userId,password,email,address,phoneno and id as primary key with autoincrement) into database.After logging into the application,i have kept the userId in session and retrived remaining values by passing userId into database.And then,I have set these values to my