Thank you!! This is a really detailed document. I finally got this
problem solved.
But now I noticed that the javascript creates html nodes to display
error message dynamically. If I changed the layout then it does not work
well.
For example, if I have 4 columns in the table to display two fields.
Hi,
I think you missed something struts.action.extension=action,, leads to not
actions without ".action" but to the actions with
(action-name suffix(.)).
e.g
http://localhost:8080/email (tends to 404 page not found) but
http://localhost:8080/email. (with suffix (.) works as ,, ).
Jeromy Evans
Hi,
struts.action.extension=
it works.. but there is no longer I can access the files with extension.
like .js, .css.. etc,
I get :
There is no Action mapped for action name struts/xhtml/styles.css. -
[unknown location]
for each url
Mirbek Nosinov wrote:
>
> thanks. it works
> i tried just
>
hi,
I have an old struts1 application. Now, I want to use struts 2 for a new part
of them (ajax configurator). With the struts 2.0.11 version it work's fine, but
If I upgrade to struts 2.1.0 snapshot, I will get many errors, especially
NullPointerExceptions.
Is it possible to use struts1 wit
hi,
i solved the same problem this
way:http://java-x.blogspot.com/2006/11/struts-2-validation.html Its ajax
based validation.
hope it helps.
cheers,
ravi
Mei Wei wrote:
>
> Thanks, I looked at this document. I think it is more referring to 2.1
> which does not have a stable release yet.
>
hi,
We have Action class with Employee Object with setters and getters. The
Typeconverter was configured to be called when is
called by the jsp page. We found that convertFromString of type converter is
being called but convertToString is never called. Any idea why this is
happening? The details
Thanks, I looked at this document. I think it is more referring to 2.1
which does not have a stable release yet.
We prefer to use 2.0.11 since it is the latest stable release.
I was thinking about something like in the showcase example (quiz-ajax).
That we need to write a javascript function to li
Hi all,
I have a servlet that I want to include the result of a struts2 action
in the
response. I have a method that's called from my servlet's doGet method,
which does something along the lines of
.
RequestDispatcher requestDisp =
getServletContext().getRequestDispatcher("/
Thanks,
I have a question about how to encode the data when sumbit data by YUI.
Like below,
var postData = "username=anonymous&userid=0";
function makeRequest(){
var request = YAHOO.util.Connect.asyncRequest('POST', sUrl, callback,
postData);
}
How can I encode the postData?
--
On Jan 23, 2008 8:20 AM, Musachy Barroso <[EMAIL PROTECTED]> wrote:
> You don't need to use the json interceptor to populate the params in
> the action. Struts will do that for you.
>
> musachy
musachy,
when will ur json 1.0 stable?
F
You don't need to use the json interceptor to populate the params in
the action. Struts will do that for you.
musachy
On Jan 22, 2008 7:55 PM, Tony Zhang <[EMAIL PROTECTED]> wrote:
>
> I want to write a demo using S2+YUI+JSON. And I got an issue about async call
> struts2 action.
>
> In my jsp fi
take a look at
http://struts.apache.org/2.x/docs/dojo-submit.html
for attributes validate
and
ajaxValidation
M
- Original Message -
From: "Wei, Mei" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Tuesday, January 22, 2008 7:15 PM
Subject: how to validate field right after th
I want to write a demo using S2+YUI+JSON. And I got an issue about async call
struts2 action.
In my jsp file, there is call struts action. I want to submit same data to
sever and the server return the json result. But I fount the json plugin
can't populate the parameter form request to action.
Hi,
We want to validate the field data right after the data is entered. So
that the user can fix the error right away instead of waiting until the
whole form is submitted.
We thought that struts2 and ajax can help us on that. But what would be
the best way to do?
Any helps or guidance are
Thanks for the info Laurie.
It was really helpful.
-Shan
On Jan 21, 2008 9:14 PM, Laurie Harper <[EMAIL PROTECTED]> wrote:
> Shantur Rathore wrote:
> > Hello Everyone,
> >
> > I am new to Struts2. I am trying to work with Quartz and integrate it in
> my
> > Struts2 WebApp.
> > I found some info
Hard to say without seeing some code... Try to change the given example step
by step, approaching your final result, until you find the relevant
difference. Do you have an empty constructor for your bean?
Regards.
On Jan 22, 2008 3:10 PM, Alceu Medeiros <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm b
Thanks Wong, yeah, I will try to implement your suggestion..
On Jan 22, 2008 12:07 AM, WongTseng <[EMAIL PROTECTED]> wrote:
> since the request is sent via ajax, so the browser side redirect can
> not work. i suggest you don't redirect you user directly, instead you
> send back a piece of js, let
this is struts 1.3.9 not 2.x, it can be done over json plugin for struts 2.x,
or can it?
jmitchell wrote:
>
> Take a look at this page:
> http://cwiki.apache.org/S2PLUGINS/json-plugin.html
>
> (Specifically "Root Object")
>
> It should match your result type name
>
>
>
> On Jan 22, 2008 4:
Doh! Sorry.
On Jan 22, 2008 4:21 PM, Dale Newfield <[EMAIL PROTECTED]> wrote:
> James Mitchell wrote:
> > Take a look at this page:
> > http://cwiki.apache.org/S2PLUGINS/json-plugin.html
>
> The OP specified struts1 in the subject.
>
> -Dale
>
>
>
James Mitchell wrote:
Take a look at this page:
http://cwiki.apache.org/S2PLUGINS/json-plugin.html
The OP specified struts1 in the subject.
-Dale
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [
Setting an attribute on the request object makes it available to JAVA
code, i.e., in a JSP, but ExtJS is Javascript running on the client. I
believe, without knowing the specifics of what ExtJS expects, that what
you really want to do is write to the response stream the serialization of
your JSONO
Take a look at this page:
http://cwiki.apache.org/S2PLUGINS/json-plugin.html
(Specifically "Root Object")
It should match your result type name
On Jan 22, 2008 4:09 PM, auz <[EMAIL PROTECTED]> wrote:
>
> i have a problem with struts action form execute and json. im using ext js as
> mu ajax l
i have a problem with struts action form execute and json. im using ext js as
mu ajax lib on client side and i need to retrive some departmentID and name
depenting on a combo box, the problem is i dont know how to put JSonObect so
that ext can see it here's my code any help is apritiated
on jsp p
Hi David,
the OutOfMemoryError was solved using %{#stat.index} in the inputs, as
suggested by Laurie Harper.
You're right about the web server heap space, but the cause of the error was
obviously my wrong
ognl expression.
Does this stack trace begin with a java.lang.OutOfMemoryError as well?
The "driverClassName" uses reflection to load the driver appropriately,
so this sounds like a classloading issue. I'm going to guess that you
are not including the dbcp jar files (you shouldn't be doing this
anyway), thus the Tomcat classloader is always looking for the jdbc
driver in the CATAL
Michael, in Tiles 2 there is the TilesDecorationFilter:
http://tiles.apache.org/framework/apidocs/index.html
Ciao
Antonio
2008/1/22, Moynihan, Michael A <[EMAIL PROTECTED]>:
> Hi All,
>
> From my research into tiles it looks like the recommended way to use
> tiles with a Struts app is to create a
Hi All,
>From my research into tiles it looks like the recommended way to use
tiles with a Struts app is to create an action as follows
This specifies the forward path to "login.layout" which will then be
looked up in the tiles-def.xml In this file the definition can extend
from a mo
Hi Friends,
I'm using Struts 1.2.7, Tomcat 5.5.25. I'm trying to create a datasource for
my struts application.
This is my struts-config.xml file
Hi totojack-
I think you're right that the key property is useless now that you're using
the positional index to access your list elements.
Also, the type conversion page says that using the unique id indexed
approach won't allow for automatic creation of instances. The docs say the
following
Does this stack trace begin with a java.lang.OutOfMemoryError as well?
Have you tried increasing the heap space size for your Web Server?
Just a thought . . .
Regards,
David Hernandez
-Original Message-
From: totojack [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 22, 2008 11:35 AM
I'm not sure how difficult it would be to have the tags look for a
type converter first, but if you can come up with a working patch, I'd
be happy to review it.
HTH, Ted
On Jan 22, 2008 9:41 AM, jimski <[EMAIL PROTECTED]> wrote:
>
> I recently ran into an issue where I noticed that a custom type
Hi,
after upgrading maven to an other version now it works.
Thanks
Alex
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
The problem of songs list size is solved using #stat.index. But not the
parameters error.
The list size now is 1, but the element inside is null.
So, it can't create song beans and put it into the list.
In the conversion props file the Element_songs is correctly set to the Song
bean class.
The Key
On Tue, January 22, 2008 10:56 am, enthucoder wrote:
>
> Can you give some pointers on how do i contruct a HTTP POST Message in my
> Action and redirect the page to remote resource (non J2EE App)..?
You wouldn't, in all probability, want to construct your own HTTP
requests... take a look at HTTP
Can you give some pointers on how do i contruct a HTTP POST Message in my
Action and redirect the page to remote resource (non J2EE App)..?
Laurie Harper wrote:
>
> enthucoder wrote:
>> Hi,
>>
>> Please bear with me, incase this turns out to be a dumb question.
>>
>> I want to transfer contr
Thank you for your reply. I am setting up test applications as we speak.
Can you name off some features that you like about Struts 2?
Laurie Harper wrote:
>
> hoffmandirt wrote:
>> What are the pros and cons, in your opinion, when choosing Struts 2 over
>> Spring or Spring over Struts 2? I a
Maybe you didn't read my question. I am asking for pros and cons of both
Spring 2.5 and Struts 2 to make an educated decision on a framework to use.
So no I am not kidding. Instead of saying it provides what you need, tell me
what it is that you look for in the a good framework and how Struts pro
As Dave pointed out, there has not been a release of Struts 2.1.x as
yet. As such you'll need to work either directly with the source,
compiling Struts yourself, or work with 'snapshot' test builds. Either
way, you should probably keep an eye on the dev list so you're aware of
any issues with t
You are kidding ... right?
Have you even downloaded and tried the top 5 web frameworks? What are
you looking for in a web framework? What matters to you? I can
promise you that Struts provides what *I* need and that's why *I* am
here. However, you will find people with EXACTLY the same opinion
hoffmandirt wrote:
What are the pros and cons, in your opinion, when choosing Struts 2 over
Spring or Spring over Struts 2? I am trying to determine which framework to
select and the last one I used was Spring 1.x and I liked it a lot. So I am
a little biased and I want to jump the gun and use Sp
The 2.0.11 archetype is available, but not in the default Maven
repository. You have to tell Maven where to look for it. The following
(thanks Nuwan!) works for me:
mvn archetype:create -DgroupId=com.s2.anu -DartifactId=s2proj \
-DarchetypeGroupId=org.apache.struts \
-DarchetypeArtifa
The problem looks to be that you're using the song ID as a list index:
If the value of SongId for the first item in the list is 658, on submit
Struts will try and put that song's data at index 658 in the list...!
What you probably want is:
Hi. I'm having probl
Hans Hedung wrote:
In my frombean I have the values
String reportName = "";
String reportDescription = "";
With approiate getters and setter
Im populating the reportName value in my formbean through the following in my jsp (dropdown)
<%
java.util.ArrayList reportList = new ArrayL
akshi gupta wrote:
Can anybody tell me the best way of handling i18n in struts2.
The problem is everyone is using their own properties files for
internationalization due to which messages are conflicting with each
others properties file even i only have 4 properties files and my own
messages
Why?
jmitchell wrote:
>
> The fact is that Struts 2 is your best choice if you are limited to
> Java Web Frameworks.
>
>
> On Jan 22, 2008 8:26 AM, hoffmandirt <[EMAIL PROTECTED]> wrote:
>>
>> What are the pros and cons, in your opinion, when choosing Struts 2 over
>> Spring or Spring over St
I recently ran into an issue where I noticed that a custom type converter was
being called when parameters were being applied to a model object but not
when that model was being rendered out to a result via the s:select tag.
The issue is probably summed up by Jasper Rosenberg's previous bug repor
Ah, good call Nuwan, I forgot to check the nightly builds repo.
Confirmed working for me.
L.
nuwan chandrasoma wrote:
Hi,
mvn archetype:create -DgroupId=com.s2.anu -DartifactId=s2proj
-DarchetypeGroupId=org.apache.struts-DarchetypeArtifactId=struts2-archetype-starter
-DarchetypeVersion=
2.0.1
Again, it's a JSP syntax issue. onchange="update('<%=i%>')" should be
onchange='<%="update("+i+")"%>' instead. RT expressions can't be mixed
with plain text.
On the other hand, JSTL expressions *can* be used that way. This would
also work (assuming you have JSTL configured/available):
onchang
where can I find the source? I have no experience with maven.
-Ursprüngliche Nachricht-
Von: Dave Newton [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 22. Januar 2008 15:12
An: Struts Users Mailing List
Betreff: Re: struts 2.1: dojo plugin
--- "Otto, Frank" <[EMAIL PROTECTED]> wrote:
>
--- "Otto, Frank" <[EMAIL PROTECTED]> wrote:
> where can I find the dojo plugin für struts 2.1?
Use Maven and build from source. It's not released as a library at this
point.
d.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For a
Hi,
I'm beginner and I'm trying to make a basic CRUD app following this
tutorial:
http://cwiki.apache.org/S2WIKI/struts-2-spring-2-jpa-ajax.html
In this example, I'm trying to do something similar to the Person's save()
function, but when I submit a form my pojo in Action class isn't populated,
i
The fact is that Struts 2 is your best choice if you are limited to
Java Web Frameworks.
On Jan 22, 2008 8:26 AM, hoffmandirt <[EMAIL PROTECTED]> wrote:
>
> What are the pros and cons, in your opinion, when choosing Struts 2 over
> Spring or Spring over Struts 2? I am trying to determine which fr
Thank you John. But How can I manage with the proprty file?
2008/1/22, John Koutros <[EMAIL PROTECTED]>:
>
> You can use the s:text struts tag.
>
>
>
> Where
>
> format.money = {0,number,#,##0.00} in a property file
>
>
> -Original Message-
> From: Pascal SEREMES-DAMAL [mailto:[EMAIL PROT
I also thought 2.0.11-SNAPSHOT was available, but no so (unless you
install it locally yourself)
Instead, use the maven command on this page:
http://struts.apache.org/2.x/docs/ready-set-go.html
On Jan 22, 2008 7:10 AM, Alexander Jede <[EMAIL PROTECTED]> wrote:
> Hi list,
> I tried to create
2008/1/22 Alceu Medeiros <[EMAIL PROTECTED]>:
> Anybody know how is the Struts 2' IRC Channel address? Is that at
> irc.feenode.net?
#struts on chat.freenode.net
--
Wendy
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additi
Hi,
Anybody know how is the Struts 2' IRC Channel address? Is that at
irc.feenode.net?
[]'s
--
"Realize buscando o melhor, mas planeje esperando o pior."
__
Alceu Medeiros
http://www.inf.ufsc.br/~alceu
hi,
where can I find the dojo plugin für struts 2.1?
kind regards,
Frank
What are the pros and cons, in your opinion, when choosing Struts 2 over
Spring or Spring over Struts 2? I am trying to determine which framework to
select and the last one I used was Spring 1.x and I liked it a lot. So I am
a little biased and I want to jump the gun and use Spring, but I want to
neha bhatt wrote:
I am facing same problem.
I had tried :
eg.
struts.action.extension=action,,
In such case I am getting Http Status 404.
As mentioned in the related post titled "Blank action extension in root
namespace causing 302 in Tomcat" (no link at time of posting), try a
non-root n
Hallo Nils
Am Dienstag, den 22.01.2008, 13:29 +0100 schrieb Nils-Helge Garli
Hegvik:
> Is that the exact command you typed? On one line? The command works
> just fine with me (except that the archetype version does not exist, I
> think the latest is 2.0.9-SNAPSHOT). I only get the same error as yo
Is that the exact command you typed? On one line? The command works
just fine with me (except that the archetype version does not exist, I
think the latest is 2.0.9-SNAPSHOT). I only get the same error as you
if I type the 'mvn' command without the plugin and goal. Please try
again and make sure th
Hi list,
I tried to create a new project with maven. That for I entered:
mvn archetype:create -DgroupId=com.myCompany.mySystem \
-DartifactId=myWebApp \
-DarchetypeGroupId=org.apache.struts \
-DarchetypeArtifactId=struts2-archety
I am facing same problem.
I had tried :
eg.
struts.action.extension=action,,
In such case I am getting Http Status 404.
where as if I use,
eg.
struts.action.extension=
All files with extenstion like: javascript , css and images not loading.
Randy Burgess-3 wrote:
>
> What about the filter
Hi. I'm having problem in submitting a dynamic form created with a list of
beans.
I'm able to build the jsp with the form and (it seems...) to pass parameters
to action,
but I'm not able to get the correct list of beans after submitting the form.
I've tried with a list of 2 beans. Something reall
Hi,
When S2 is configured with BLANK action extensions and an action is
defined in the root namespace, Tomcat is returning a 302 redirect
instead of executing the action.
When the same S2 action is defined in a non-root namespace with the same
settings as above, Tomcat executes the action corre
In my frombean I have the values
String reportName = "";
String reportDescription = "";
With approiate getters and setter
Im populating the reportName value in my formbean through the following in my
jsp (dropdown)
<%
java.util.ArrayList reportList = new ArrayList();
reportList.add
You can use the s:text struts tag.
Where
format.money = {0,number,#,##0.00} in a property file
-Original Message-
From: Pascal SEREMES-DAMAL [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 22, 2008 3:12 AM
To: Struts Users Mailing List
Subject: [Formatting data] - Format a number a
Hello Manos,
I'm with Mark - Rome is the de facto standard since informa is indeed quite
dead. If you choose Rome, then you can use the Rome RSS/Atom plugin for
Struts 2 - makes it all just a tiny bit easier, but this is for outputting
feeds only - not parsing them. It cannot be too hard to creat
Hi Jignesh,
You're right. It doesn't work in the root namespace (only). It works in
other namespaces. (I was testing in /test/)
The reason is that when you GET http://host:8080/email tomcat responds
with a 302 Redirect to http://host:8080/email/
Your browser then does a GET to http://host:80
I'd use a breakpoint in to inspect the content of the data variable. Is
it a tree of Nodes or is it plain text/html? If the former it can be
appended/inserted directly into the DOM with the respective method. If
the latter the code below would be throwing a NPE and you can use
innerHTML=data.
Hi,
mvn archetype:create -DgroupId=com.s2.anu -DartifactId=s2proj
-DarchetypeGroupId=org.apache.struts-DarchetypeArtifactId=struts2-archetype-starter
-DarchetypeVersion=
2.0.11 -DremoteRepositories=
http://people.apache.org/builds/struts/m2-staging-repository
why dont you try this. i think this m
It would be nice of there was some way that OGNL could use the JSTL
functions. It would definitely make formatting data that needs to be
displayed in Struts forms easier.
(*Chris*)
On Jan 22, 2008 12:55 AM, Pascal SEREMES-DAMAL <[EMAIL PROTECTED]> wrote:
> Thanks to Martin for his answer.
>
> I
Thanks to Martin for his answer.
I had the idea of JSTL too Alberto. Thank you very much.
2008/1/22, Alberto A. Flores <[EMAIL PROTECTED]>:
>
> I'll recommend using using JSTL instead.
>
>
> On Jan 21, 2008 8:11 PM, Pascal SEREMES-DAMAL <[EMAIL PROTECTED]>
> wrote:
>
> > Hi everyone!!!
> >
> > I
Hi Manos,
I can't speak for Informa but I wouldn't take the inactivity of the
core ROME project in the last year as a sign of stagnation. ROME is
quite a mature product that copes with all the major syndication
formats (AFAIK no major new syndication formats surfaced last year and
if they did the
74 matches
Mail list logo