Hi,
I have query regarding OGNL Expression.
Can the "#name" kind of expression be used anywhere? Or are they
applicable only in certain attributes of struts tags
Till now I was using the %{name} expression and that too in the some
attribute of a tag
I tried using #name expression but it d
Hi all,
I have a requirement where I need to assign a Objects to a list.
I tried the example given in showcase there is working (in the site).
But It is not assigning to that list
I am also attaching code for your refernce.
---Vamsi
/*
* $Id: PersonAction.java 471756 2006-11-06 15:01:4
hi,
We have two pages a.jsp and b.jsp developed with the action class mehods
Ac.a() & Ac.b() that render these pages. Now we need to develop a new page
c.jsp which is combination of both a & b.jsps.
i can include the jsps into the c.jsp. But what abt the action class behind?
can they not get aut
akash agrawal-2 wrote:
>
> Hi,
>
> Is this possible to do selective validation using validation.xml? What I
> meant by this is that calling a different set of validation on
> each(different) invocation of same action and same method.
>
> Quite possible: in that case u would write valildation
I am using the struts version 1.2.4
Antonio Petrelli-3 wrote:
>
> 2008/3/13, kannan_307 <[EMAIL PROTECTED]>:
>>
>>
>> When I deploying my War file in Weblogic 8.1, I am getting the following
>> error:
>>
>> Error in using tag library uri='/WEB-INF/tlds/struts-html.tld'
>> prefix='html': The T
thx all,
i solve my problem with quartz, i used it with spring
thx so much
- Original Message
From: "Peters, John" <[EMAIL PROTECTED]>
To: Struts Users Mailing List
Sent: Wednesday, March 12, 2008 10:14:18 PM
Subject: RE: Struts 2 scheduler
Depends on the implementation.
If you only nee
Hi Frank,
Have a read of Martin Fowler's article on deciding which option best
suits you:
http://martinfowler.com/articles/injection.html
As Dave described you have many possibilities, but the common techniques
are (not in order of preference):
a. Use a ServletContextListener to to setup you
--- Frank Fischer <[EMAIL PROTECTED]> wrote:
> I just read a bit regarding Spring. As far as i understand its focus is on
> J2EE appllications. I guess for what i want to do in a first step (my
> simple chat app) it would be overkill to use Spring. Do i get that right?
Not really.
IMO Spring is a
Hi Randy
Hi all
I just read a bit regarding Spring. As far as i understand its focus is on
J2EE appllications. I guess for what i want to do in a first step (my simple
chat app) it would be overkill to use Spring. Do i get that right?
I would prefere to go the most simple way if possible. So, ju
The current usage of Annotating methods seems broken.
Its still applying all the validation rules to all methods despite methods
having different validation requirements.
The Struts "Zero Config/Annotation/Auto Config needs help"
Hopefully, a http://jira.opensymphony.com/browse/XW-603 sprink
For a POJO you can use dependency injection such as Spring or Guice or you
can instantiate the object the normal way
BusinessServiceObject bso = new BusinessServiceObject();
in your action class. There is nothing special about accessing your BSO's in
Struts.
Regards,
Randy Burgess
Sr. Web Applic
Musachy,
That seems to work. I now see the proper response when I call
response[0].name. Thanks.
-Ryan
-Original Message-
From: Musachy Barroso [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 13, 2008 3:45 PM
To: Struts Users Mailing List
Subject: Re: [struts] JSON plugin
If re
Hi All,
I took the current quickstart application and added sitemesh to the
pom.xml and added all the necessary files for sitemesh, the dojo that listed
the Persons broke. The decorator works but the ajax failed with "Error loading
'/quickstart/list.action' (200 OK)" Is there any special
If response[i] is a char then the response is a text, not an object.
If I don't remember wrong dojo builds the object for you when the
mimetype is "application/json", but I am not sure right now. Use the
"eval" function to turn the text into an object.
musachy
On Thu, Mar 13, 2008 at 5:31 PM, Sta
Hi all
i'm just starting with struts2 (even with struts at all). Of course i first
read some how-to-starts. But there is one thing i don't understand.
I'm trying to create a simple little chat app. I have two action classes,
one for the normal chat user, one for the moderators. Both classes nee
Dale,
I am using dojo, so here is the snippet that handles the
request/response:
var kw = {
url: url,
mimetype: "text/json",
method: "POST",
load: function(responseObject, ioArgs) {
console.debug(responseObject[0].name); // Dump it to the
console
Stanley, Eric wrote:
I tried just printing out responseObject[i]
How in your javascript code do you convert the text of the response into
responseObject?
-Dale
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comm
Martin,
Im not sure I catch what your saying. I understood it was the
json plugin that determined the format of the json response. I am not
using an autocompleter either.
-Ryan
-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 13, 2008 4:15 PM
I really like the treatment the JQuery
http://jquery.bassistance.de/validate/demo/ validation plugin (not struts
plugin), gives for a user experience. I would really like the rules to come
from back end rules and decorate the form fields the same way if the back
end bounces a validation error.
Laurie Harper, email-me please. I think I have help to you.
An emabrace
[EMAIL PROTECTED]
- Original Message -
From: "Laurie Harper" <[EMAIL PROTECTED]>
To:
Sent: Thursday, March 13, 2008 5:26 AM
Subject: Re: struts wml
Sean Chen wrote:
Dear all,
The latest struts wml tag li
Musachy,
I tried just printing out responseObject[i] where I was 1-10,
and it returns the actual characters of the response like it is an
array:
responseObject[0] = [
responseObject[1] = {
responseObject[2] = "
Is it a problem with converting my ArrayList into json?
-Ryan
-Original M
Musachy,
Thanks for the quick reply. I just added what you suggested and
tried it. This is the response:
undefined
What else can I check?
-Ryan
-Original Message-
From: Musachy Barroso [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 13, 2008 2:36 PM
To: Struts Users Mailing Li
you don't have a "projectList" field in the response, only an array of
objects. If you do:
responseObject[0].name
it will return "Alarming page".
musachy
On Thu, Mar 13, 2008 at 4:30 PM, Stanley, Eric <[EMAIL PROTECTED]> wrote:
> I am trying to use dojo and the JSON plugin, but I have hit a sna
I am trying to use dojo and the JSON plugin, but I have hit a snag. I am
using JSON to serialize: ArrayList projectList.
It seems to do this fine, as I can see the result in firebug. The
problem I am having is that the JSON response seems to be missing
something, and I cant figure out how to reme
Ok i found out what was going wrong.
I used the sun package to encode "new
sun.misc.BASE64Encoder().encodeBuffer(msg1)"
I replaced it with a class I got from http://iharder.net/base64 and it works
fine now. I did not know sun.* apis are not supposed to be used
dgv123 wrote:
>
> I am attac
Check if works.
I had the same issue with this on a UNIX environment(struts 2). When i
replaced the tag with the regular tag...it worked fine
Tarun Reddy wrote:
>
> Hi all,
> I'm using NTLM authentication to let the user in. After the user gets into
> the application, he'll be shown a jsp p
Thanks to your hint I found the mistake :-)
Dave Newton wrote:
I tried to get some debug information from the params interceptor and
put the following code into my struts.xml (inside the action):
true
DEBUG
Nate that when you use an interceptor-ref element inside an action
configurati
I am working on a piece of code where a single action services several
methods. It uses a wildcard mapping and the method attribute of the
tag is what drives the specific methods. I was unable to get
the validators to work and started debugging the
AnnotationValidationInterceptor to discover tha
I am attaching a WAR file which uses code to obtain the user id via NTLM.
This code works fine on Tomcat and Weblogic 9.2 on unix (if i do not use
in the Home.jsp - I do not know why that breaks
http://www.nabble.com/file/p16032835/NTLM1.war NTLM1.war )
This WAR does not work on Weblogic 9.2 Win
I actually thought you couldn't nest tags. You can nest them in
regular HTML tags because the JSP and the HTML are interpreted at
different steps, so from the separate perspectives of the two parsers
there's not really any nesting going on (the JSP parser on the server
only cares about JSP tags, a
Ha ha I was trying this and couldn;t get it to work. My mistake was
fullAccess = true, so readOnly="%{fullAccess}" was returning true, i
meant to say readOnly="%{!fullAccess}".
thanks
On Thu, Mar 13, 2008 at 1:01 PM, Rushikesh Thakkar
<[EMAIL PROTECTED]> wrote:
> I have done it.. It goes like t
I have done it.. It goes like this:
(1) The Action:
public class PrepareScreen extends ActionSupport {
private String yesOrNo;
public String execute() throws Exception {
yesOrNo = "true";
return SUCCESS;
}
public String getYesOrNo() {
return yesOrNo;
Thanks Dave. Thats the one I am using, but I was referring to
http://struts.apache.org/2.x/docs/submit.html
Bierb, can you tell me what does your code do? I might get an idea..
Does anybody have an Idea of when this error is thrown?
07.mar.2008 15:30:46 org.apache.tomcat.util.http.Parametersproce
Laurie Harper wrote:
Dave Newton wrote:
--- matthieu martin <[EMAIL PROTECTED]> wrote:
That's not valid XML; you can't nest tags like that. Off the top of my
head I
don't recall if the "id" attribute will eval OGNL or not.
To be pedantic, JSPs are not XML files
...unless you
Dave Newton wrote:
--- matthieu martin <[EMAIL PROTECTED]> wrote:
That's not valid XML; you can't nest tags like that. Off the top of my head I
don't recall if the "id" attribute will eval OGNL or not.
To be pedantic, JSPs are not XML files and thus don't have to be valid;
hence
--- Rushikesh Thakkar <[EMAIL PROTECTED]> wrote:
> Thanks anyways, but can you tell me what does it do? I didn't find any
> property as 'formFilter' in the documentation given for in the
> tag reference.
http://struts.apache.org/2.0.11.1/docs/dojo-submit.html
Dave
--
I tried it and Its Not Working !!
Thanks anyways, but can you tell me what does it do? I didn't find any
property as 'formFilter' in the documentation given for in the
tag reference.
On Thu, Mar 13, 2008 at 3:32 PM, bierb <[EMAIL PROTECTED]> wrote:
>
> Add parameter formFilter="formFilter" to y
2008/3/13, kannan_307 <[EMAIL PROTECTED]>:
>
>
> When I deploying my War file in Weblogic 8.1, I am getting the following
> error:
>
> Error in using tag library uri='/WEB-INF/tlds/struts-html.tld'
> prefix='html': The Tag class 'org.apache.struts.taglib.html.FormTag' has
> no
> setter method corre
Hi all !
I have a rather disturbing issue with a file upload.
I have the tag used along with a form. This works just fine, I get
my files on the server. In my action, I move my file where I want to, and I
create my entry in the database. I refresh my div containing my images.
The problem is thi
When I deploying my War file in Weblogic 8.1, I am getting the following
error:
Error in using tag library uri='/WEB-INF/tlds/struts-html.tld'
prefix='html': The Tag class 'org.apache.struts.taglib.html.FormTag' has no
setter method corresponding to TLD declared attribute 'acceptCharset', (JSP
1.
On Thu, Mar 13, 2008 at 3:26 PM, Richard Sayre <[EMAIL PROTECTED]>
wrote:
> try:
>
> targets="dataImageDiv%{id}"/>">Copy
>
>
> if id is on the stack, you can get it with OGNL
>
This works, thanks a lot. I haven't working for a long time with struts 2
and I still have some issues figuring out wha
Add parameter formFilter="formFilter" to your
and create Javascript function in head
function formFilter(element) {
return true;
}
it's funny but works! :-)
Rushikesh Thakkar wrote:
>
> Kindly help.. I have not been able to solve it yet.
>
> -- Forwarded message --
> Fr
--- matthieu martin <[EMAIL PROTECTED]> wrote:
>
That's not valid XML; you can't nest tags like that. Off the top of my head I
don't recall if the "id" attribute will eval OGNL or not.
Dave
-
To unsubscribe, e-mail:
try:
">Copy
if id is on the stack, you can get it with OGNL
On Thu, Mar 13, 2008 at 10:49 AM, matthieu martin <[EMAIL PROTECTED]> wrote:
> Hi all !
>
> I have a little issue and I find no clues on the web, so i'm turning myself
> to you.
>
> I have a piece of code like this :
>
>
>
>
>
I made a slight error
readonly="%{fullAccess}" with s:textfield does not work but
readonly="true" />
works.
On Thu, Mar 13, 2008 at 10:48 AM, Richard Sayre <[EMAIL PROTECTED]> wrote:
> If the disable attribute is present in a HTML tag it will be disable,
> no matter what the value of the attri
Hi all !
I have a little issue and I find no clues on the web, so i'm turning myself
to you.
I have a piece of code like this :
Edit
Move
Copy
this piece of code is placed in a loop, and creates a small menu for each
images I have in gallerie
If the disable attribute is present in a HTML tag it will be disable,
no matter what the value of the attribute is.
So if I have a s:select and I say disabled="false" it will be
disabled (renders disabled="disabled").
But if we have a text, and we set readonly="false" it will not be editable.
O
Thankssorry I missed it..inbox was cluttered
-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 13, 2008 9:27 AM
To: Struts Users Mailing List
Subject: RE: Struts get string and is boolean
--- "Peters, John" <[EMAIL PROTECTED]> wrote:
> Any idea
--- "Peters, John" <[EMAIL PROTECTED]> wrote:
> Any ideas?
I haven't seen any replies other than my own.
Dave
> From: Peters, John
>
> Is it possible to have multiple methods for the same value?
> Then have the jsp either load a text box or a check box For example
> Depending the circumstance
Any ideas?
-Original Message-
From: Peters, John
Sent: Friday, March 07, 2008 10:57 PM
To: 'Struts Users Mailing List'
Subject: Struts get string and is boolean
Is it possible to have multiple methods for the same value?
Then have the jsp either load a text box or a check box For exampl
--- Raghu varma bhupathiraju <[EMAIL PROTECTED]> wrote:
> Can any one tell me how to implement ajax in struts 1.1 with simple
> example. Can any one provide complete code for that.
...
You'd have to provide a somewhat less-nebulous requirement. There are dozens
of ways to "implement Ajax in Strut
--- udaykumar <[EMAIL PROTECTED]> wrote:
> I'm Trying to use ActionForm and Action class in my struts2. I Used the
> struts 1 plugin for this. I followed the procedure, which they given. Still
> i'm finding error in this.
It would be helpful if you'd tell us *what* error(s). Just saying "it doesn
--- Christoph Kepper <[EMAIL PROTECTED]> wrote:
>
>admin
>/WEB-INF/jsp/artikelForm.jsp
>
>
> My action class (ArtikelAction.java) contains the property "private
> Integer artnr" with the appropriate Getters and Setters.
As a sanity check, what are your getter and setters named?
> I tr
Hi Tauri,
I don't have time to try it myself right now, but what I meant was
create an additional default package that contains no actions. I'm not
sure if it will help though. The idea is that when the default action
mapper can't match the namespace, it falls back to an empty back.
Like th
Hi friends
Can any one tell me how to implement ajax in struts 1.1 with simple
example.Can any one provide complete code for that.
Thanks in advance
Raghu Varma Bhupathiraju
--
View this message in context:
http://www.nabble.com/How-to-implement-ajax-in-struts-1.1-tp16024761p16024761.html
Sent
Kindly help.. I have not been able to solve it yet.
-- Forwarded message --
From: Rushikesh Thakkar <[EMAIL PROTECTED]>
Date: Fri, Mar 7, 2008 at 3:40 PM
Subject: Parameters: Invalid chunk ignored (parameters not passed)
To: Struts Users Mailing List
I am facing a strange proble
Hi
I'm Trying to use ActionForm and Action class in my struts2. I Used the
struts 1 plugin for this. I followed the procedure, which they given. Still
i'm finding error in this.
I'm giving my entire application here.
strutslogin.jsp
---
<%@ taglib prefix="s" uri="/struts-t
Sean Chen wrote:
Dear all,
The latest struts wml tag library I found is struts-wml 1.1. Does
anyone know what I can work with wml tag with struts 1.3.x?
Thank you
Sean
Since I'd never heard of struts-wml I googled, and found the SourceForge
project page for it. It doesn't look like it's
Hi,
I am new to Struts and new to this list. I want to create a blog with
struts as a university project and have been wrestling with this
(obscenely) simple problem for two days without any progress. Maybe any
of you struts experts may help out here:
All I want to do is access a GET paramet
2008/3/13, Antonio Petrelli <[EMAIL PROTECTED]>:
>
> 2008/3/12, Griffith, Michael * <[EMAIL PROTECTED]>:
> >
> > if( getFlush() ){
> > LOG.debug("Flushing output stream");
> > out.close(); // ...and flush...
> > }
>
>
>
> Yup you're right! Ple
2008/3/12, Griffith, Michael * <[EMAIL PROTECTED]>:
>
> if( getFlush() ){
> LOG.debug("Flushing output stream");
> out.close(); // ...and flush...
> }
Yup you're right! Please open a JIRA issue:
https://issues.apache.org/struts/browse/WW
In
61 matches
Mail list logo