[S2] Autocompleter FATAL exception raised: [object Error]?

2007-04-26 Thread wolverine my
Hi! I have the following JSP with AJAX tag and the debug is true: <%@ taglib prefix="s" uri="/struts-tags" %> AJAX the struts.xml looks like the following: and here is my action class: package com.dummy.test.ajax; public class AjaxTest extends ActionS

Re: [S2] Autocompleter and JSON list

2007-04-26 Thread wolverine my
In my action class, what is the way to format my the values into JSON string? Do I need to construct the string in JSON format? On 4/26/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- wolverine my <[EMAIL PROTECTED]> wrote: > Now, to return the list dynamically (e.g. read from

Re: [S2] Should action class serializable?

2007-04-25 Thread wolverine my
I'm studying the org.apache.struts2.showcase.ajax.AjaxTestAction class and found that it is serializable. Why is this action class serializable? What is the special things we have with a serialized action class? On 4/26/07, Laurie Harper <[EMAIL PROTECTED]> wrote: wolverine my

[S2] Should action class serializable?

2007-04-25 Thread wolverine my
Hi! How to decide if an Action class should be serializable or not? Thank you! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[S2] Autocompleter and JSON list

2007-04-25 Thread wolverine my
Hi! Based on Struts showcase, I have tried the below AJAX tags: and the JSONList action simply return the hardcoded contents of /ajax/JSONList.js: [ ["Alabama","AL"], ["Alaska","AK"], ... ["Wyoming","WY"] ] Now, to return the list dynamically (e.g. read from the database

Re: [S2] Initializing Actions from Spring page not found

2007-04-25 Thread wolverine my
tp://cwiki.apache.org/S2PLUGINS/spring-plugin.html#SpringPlugin-InitializingActionsfromSpring wolverine my wrote: > Hi! > > The page is not found when we clicked on "Initializing Actions from > Spring" from > http://struts.apache.org/2.x/docs/why-would-we-want-to-create-action

[S2] Access DAOs in Spring actions

2007-04-24 Thread wolverine my
Hi! I have action classes configured in struts.xml and the DataSource, SessionFactory, DAO objects configured in Spring's applicationContext.xml. How can I reference the DAO objects in my action class? Please advise, thank you! --

[S2] Initializing Actions from Spring page not found

2007-04-24 Thread wolverine my
Hi! The page is not found when we clicked on "Initializing Actions from Spring" from http://struts.apache.org/2.x/docs/why-would-we-want-to-create-action-objects-from-the-spring-configuration.html Do you have any idea of what could be the problem? --

Re: [S2] Dispaly data in FreeMarker

2007-04-11 Thread wolverine my
Answer to one of the questions: Can the FreeMarker template access the request parameters directly without us adding the parameters into the session? It is described in http://struts.apache.org/2.0.6/docs/freemarker.html, ${Parameters.myParameter} /Struts newbie ---

[S2] Dispaly data in FreeMarker

2007-04-11 Thread wolverine my
I'm using Struts 2 and FreeMarker and I'm ready to move on from the HelloWorld example... I would like to create a page to display a list of accounts. Hence, the following is the action class, public class Search extends ActionSupport implements SessionAware { private Map session; public

Re: [s2] 404 - /struts2-mailreader/Tour.do

2006-11-16 Thread wolverine my
Hmmm... the same tutorial is dead again... :-) On 11/13/06, Ted Husted <[EMAIL PROTECTED]> wrote: It's up now. We're just trying to run too many example applications through this hosted account. -Ted. On 11/12/06, wolverine my <[EMAIL PROTECTED]> wrote: > Hi Wendy

[s2] Ajax template tutorial?

2006-11-16 Thread wolverine my
Hi! Any idea if there is any good Struts 2's Ajax tutorial that is similar to the Bootstrap step-by-step tutorial? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [s2] Loading FreeMarker template from Classpath?

2006-11-13 Thread wolverine my
asses and giving it a try. (*Chris*) On 11/13/06, wolverine my <[EMAIL PROTECTED]> wrote: > > Hi! > > In http://cwiki.apache.org/WW/freemarker.html, it explained that > Struts 2 looks for FreeMarker template in Web application followed by > the Class path. > > However

[s2] Loading FreeMarker template from Classpath?

2006-11-13 Thread wolverine my
Hi! In http://cwiki.apache.org/WW/freemarker.html, it explained that Struts 2 looks for FreeMarker template in Web application followed by the Class path. However, when I placed my FreeMarker template in webapps/dummy/WEB-INF/classes/com/dummy/test.ftl it caused the following exception: java.

Re: [s2] 404 - /struts2-mailreader/Tour.do

2006-11-12 Thread wolverine my
y Smoak <[EMAIL PROTECTED]> wrote: On 11/12/06, wolverine my <[EMAIL PROTECTED]> wrote: > When clicked on the MailReader Tour in Struts 2 tutorial, Where? Have you deployed it locally? What version? > it shows the following error: > > HTTP Status 404 - /struts2-mailreader/T

[s2] 404 - /struts2-mailreader/Tour.do

2006-11-12 Thread wolverine my
Hi! When clicked on the MailReader Tour in Struts 2 tutorial, it shows the following error: HTTP Status 404 - /struts2-mailreader/Tour.do type Status report message /struts2-mailreader/Tour.do description The requested resource (/struts2-mailreader/Tour.do) is not available. Do you know what c

Include oscore.jar in Struts 2 distribution?

2006-10-27 Thread wolverine my
Hi! http://cwiki.apache.org/WW/simple-setup.html listed the minimum set of libraries and configuration files. I can find almost all the libraries in struts-2.0.1-lib.zip except oscore.jar. Do you think we should bundle oscore.jar into Struts 2 distribution file as well?

Download Struts 2 distribution?

2006-10-27 Thread wolverine my
Hi! May I know where to download Struts 2 distribution? I'm having difficulty to download Struts 2. The Struts 2 tutorial points me to the download page at http://struts.apache.org/downloads.html. However, the page does not seem to have any link for Struts 2 (?) except the snapshot builds of Str