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
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
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
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]
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
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
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!
--
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?
--
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
---
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
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
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]
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
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.
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
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
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?
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
18 matches
Mail list logo