That looks fine. Do you have an action called index in the default
namespace? It's calling ActionSupport which is the default/fallback
action under some circumstances.
You may need to go back to the default interceptor stack to isolate
what's wrong. Or post the package from struts.xml here.
Hmmm ... my login.jsp now looks like this,
When the login button is pressed, the following exceptions are shown
in the console,
com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters
SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception
caught setting
how do u implement using js ..can u send me any link having more info ..
"bhaarat Sharma" <[EMAIL PROTECTED]>
02/05/2008 11:02 AM
Please respond to
"Struts Users Mailing List"
To
"Struts Users Mailing List"
cc
Subject
Re: How to add prinr option ?
CSS and JS are best for this
On Fe
It depends what your interceptor is trying to do...
At the moment, I still think params is trying to call
getButton().setLogin(val) on your ACTION (prior to execution of your
login interceptor).
I presume your interceptor is going to check the params or session and
redirect if not authenticated
The "button.login" is a key in i18n properties file, and it is suppose
to retrieve the label for a button.
I suspect this problem could be the interceptor statck I configured,
// my interceptor
CSS and JS are best for this
On Feb 5, 2008 12:21 AM, Kavita Mehta <[EMAIL PROTECTED]> wrote:
> Hi ,
> I have a web page implemented using Struts and I want to add a Printer
> button to it so that user can take print out of the same. Is there any
> option supported by struts to do this ?
>
>
> Tha
Hi ,
I have a web page implemented using Struts and I want to add a Printer
button to it so that user can take print out of the same. Is there any
option supported by struts to do this ?
Thanks in advance ,
Kavita
*DISCLAIMER**
Hi all,
Could i ask...? Any one please provide me any available website link where i
can get example-application develped with both struts1 and struts2 side by
side.
(As i required to migrate our existing project(with struts1.1) to struts2.).
I have read few of the migration tutorials, in that th
A param called "button.login" means the ParametersInterceptor has to
call getButton().setLogin(val).
If you don't have a getButton() method, or getButton() returns null, an
exception like this occurs while trying to set the parameter.
hezjing wrote:
Hi
I'm trying to create a login interce
Hi
I'm trying to create a login interceptor.
When a login form is submitted, I got the following exception:
com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters
SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception
caught setting 'button.login' on 'class
com.op
This isn't necessarily a struts question, but more of a general DHTML
question. That being said, I would suggest the easiest solution (IMO) to
be creating a position:absolute div and placing your login form within
it.
-Wes
On Tue, 2008-02-05 at 09:14 +0530, mohammed hussain wrote:
> hi
>In i
hi
In index .jsp i have an image ,the whole page is coverd with the same
image,i want to add login field in that page ,can anybody tell me how to add
login field in that page
thanx
Right on.
On Feb 4, 2008 6:45 PM, Griffith, Michael *
<[EMAIL PROTECTED]> wrote:
> Dave,
>
> I think the bigger problem is the JSON that is returned, while it may be
> valid, it not in the right structure expected. I should be generating
> JSON like this:
>
> {"questions":{"420":"Is your Java Appl
Dave,
I think the bigger problem is the JSON that is returned, while it may be
valid, it not in the right structure expected. I should be generating
JSON like this:
{"questions":{"420":"Is your Java Application a ME, SE or EE
application?","440":"If your Java Application is an SE application doe
Dave,
Check out this JSON parser: http://braincast.nl/samples/jsoneditor/
Paste in the snippet below and it parses fine. BTW, the brackets are
returned from the response. Without the brackets, the snippet doesn't
seem to be correct.
[{"questions":{"420":"Is your Java Application a ME, SE or EE
a
...
That's probably an issue.
--- "Griffith, Michael *" <[EMAIL PROTECTED]> wrote:
> Yea, I think so -- I copied and pasted this from the log file/console...
>
> From: Dave Newton [mailto:[EMAIL PROTECTED]
>
> Is it generating those brackets around your JSON?
>
> --- "Griffith, Michael *" <[E
Yea, I think so -- I copied and pasted this from the log file/console...
-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: Monday, February 04, 2008 5:02 PM
To: Struts Users Mailing List
Subject: RE: AjaxTag 1.3 support?
Is it generating those brackets around your JSO
Is it generating those brackets around your JSON?
Dave
--- "Griffith, Michael *" <[EMAIL PROTECTED]> wrote:
> Musachy,
>
> Thanks for your many replies... Does this JSON look like the right
> format? As far as I can tell, it matches your snippet below -- but I get
> the same dojo parting error
Hello,
You guys had this, happen when i deploy my war file to tomcat, the
application hangs seems waiting for
reply forever. I deployed it on jboss ok for a while, then again after a
while just hangs. Increasing memory
in tomcat to 512 did not help.
I got some params interceptor errors (setting
Musachy,
Thanks for your many replies... Does this JSON look like the right
format? As far as I can tell, it matches your snippet below -- but I get
the same dojo parting error.
[{"questions":{"420":"Is your Java Application a ME, SE or EE
application?"}},{"questions":{"440":"If your Java Applic
The rule to use a map (simplest one) was added on 2.1, on 2.0.x the
easiest way to generate the json is to have an object with a map field
that matches the name of "dataFieldName" in the autocompleter tag:
class QuestionJson {
private Map questions;
}
public QuestionJson getQuestionJson(
Musachy,
Ok, I had a parameter set in the JSON plugin, that I think was effecting
the serialization (root) ...
I removed it and now my JSON looks like this:
[JSON]{"question":[{"text":"Is your Java Application a ME, SE or EE
application?","id":"420"},{"text":"If your Java Application is an SE
a
Musachy,
I'm still not getting it...
I am now serializing a list of maps with the entity id and text I
want...
Map m= new HashMap();
Question q= ... [from my list]
m.put("id", q.getId().toString());
m.put("text", q.getText());
newList.add(m);
And my JSON result looks:
[JSON][{"text":"Is your
Take a look here:
http://cwiki.apache.org/S2PLUGINS/json-plugin.html
musachy
On Feb 4, 2008 3:43 PM, Griffith, Michael *
<[EMAIL PROTECTED]> wrote:
> So, if you have an array of Entity objects, in my case question:
>
> How can I produce?
> {
> "question" : [
> ["1","question 1 tex
So, if you have an array of Entity objects, in my case question:
How can I produce?
{
"question" : [
["1","question 1 text..."],
["2","question 2 text..."]
]
}
-Original Message-
From: Musachy Barroso [mailto:[EMAIL PROTECTED]
Sent: Monday, February 04, 2008
yes, but the output will depend on what you feed the JSON result.
musachy
On Feb 4, 2008 3:20 PM, Griffith, Michael *
<[EMAIL PROTECTED]> wrote:
> Musachy,
>
> I must have missed your point. Isn't the idea of using the JSON plug-in
> so you don't have to iterate and create the list? If I have an
Musachy,
I must have missed your point. Isn't the idea of using the JSON plug-in
so you don't have to iterate and create the list? If I have an array or
Entity objects or maps, isn't there a way that the plug-in will create
the JSON specified below?
MG
-Original Message-
From: Musachy Ba
Zhang, Larry (L.) wrote:
I have a user object whose data is from three resources: Db2, LDAP, and
other flat file. Per dao pattern, do you think I should have three daos
or one dao to encapsulate the data access implications?
Depends on what is easier for you. This will not effect your code if
to use the dataFIeldName, you have to return something like:
{
"state" : [
["Alabama","AL"],
["Alaska","AK"]
]
}
if you are using 2.1 check this link:
http://cwiki.apache.org/WW/ajax-and-javascript-recipes.html#AjaxandJavaScriptRecipes-Autocompleter
otherwise just an arr
Musachy
Here is the autocompleter tag and the JSON returned...
[JSON][{"id":420,"questionType":{"declaringClass":"class
gov.hhs.fda.datacall.model.QuestionType"},"text":"Is your Java
Application a ME, SE or EE
application?"},{"id":440,"questionType":{"declaringClass":"class
gov.hhs.fda.dat
2008/2/4, Zhang, Larry (L.) <[EMAIL PROTECTED]>:
> Sorry if this is not too on topic.
>
> I have a user object whose data is from three resources: Db2, LDAP, and
> other flat file. Per dao pattern, do you think I should have three daos
> or one dao to encapsulate the data access implications?
It d
Sorry if this is not too on topic.
I have a user object whose data is from three resources: Db2, LDAP, and
other flat file. Per dao pattern, do you think I should have three daos
or one dao to encapsulate the data access implications?
funny thing is that now I remember the code(duh!), it is in the struts
widget. It seems like the json is empty. Paste the section of your jsp
with the autocompleter and the json that your action is returning.
regards
musachy
On Feb 4, 2008 2:16 PM, Griffith, Michael *
<[EMAIL PROTECTED]> wrote:
>
Jeromy,
Thanks for your help. I was able to finally get the autocompleter to
work with the example you provided.
Strange behavior -- I can only get the autocompleter to work if the list
(array) is of the type String. If I try to return an array of my Entity
objects, or a Map I get the dojo erro
2008/2/4, Greg Reddin <[EMAIL PROTECTED]>:
> On Feb 4, 2008 4:47 AM, Antonio Petrelli <[EMAIL PROTECTED]> wrote:
> > I received an email scam in my apache.org email that is,
> > substantially, the first in this list:
> > http://www.scamorama.com/killer.html
> >
> > Did you receive such a letter?
>
Thanks for the insight Jeremy.
I totally agree that writing to the response is not an elegant solution. But
sometimes we choose quick solutions that work when a project deadline looms.
The reason I initially chose AjaxTags was that the example for the
autocompleter combo in Struts Showcase di
Doesn't that need to be theme="ajax"?
Serge Bornow wrote:
Hello Jeromy,
I do have :
Also, i use Netbeans to generate respective get/set method so they are
JavaBean std compliant.
The issue for me unfortunately is getting the value back , it seems to
lose it.
:(
Thanks for feedback thoug
i do see a shady construction truck outside my building
On 2/4/08, Greg Reddin <[EMAIL PROTECTED]> wrote:
That\'s awesome :-)
>
> On Feb 4, 2008 11:30 AM, Wes Wannemacher <[EMAIL PROTECTED]> wrote:
> > Sorry everyone, I guess I should take two lessons away from this -
> >
> > 1. No matter how
That's awesome :-)
On Feb 4, 2008 11:30 AM, Wes Wannemacher <[EMAIL PROTECTED]> wrote:
> Sorry everyone, I guess I should take two lessons away from this -
>
> 1. No matter how frustrated you get with a project, you should never
> take it out on other users.
>
> 2. I should do a bit more research
Actually, I thought I would post the entire debug message here, in case
that is helpful:
DEBUG: DEPRECATED: dojo.widget.Manager.getImplementationName Could not
locate widget implementation for "html" in "html.widget" registered to
namespace "html". Developers must specify correct namespaces for al
Musachy,
The error displays in the browser, true, but I believe this is because I
have: set to show debug.
So this is an ajax/dojo message...?
I don't have any code such as: "this.data[x][0].toLowerCase" anywhere in
the JSP or javascript sources.
Oh, and I have given up on AjaxTags -- it seem
Sorry everyone, I guess I should take two lessons away from this -
1. No matter how frustrated you get with a project, you should never
take it out on other users.
2. I should do a bit more research on the integrity of the hitmen I
hire before agreeing to a contract.
There is nothing to worry ab
Hi,
You can override method
public String getValidationKey(ActionMapping mapping,
HttpServletRequest request) {..}
>From your ValidatorForm (it doesn't matter if it is dyna or not)
And return different validation keys for each button pressed.
Validation key
Thanks this looks like what I was looking for. I will have to see how to
define a custom stack
and use the two together ...
regards,
Giovanni
Jeromy Evans wrote:
Will CodeBehind give what you need? I'm not sure with your use of
wildcards.
It gives "pages with no mapping": a default do-nothing
I think that error is coming from your jsp, not the JSON generation.
Do you have "this.data[x][0].toLowerCase" somewhere?
musachy
On Feb 4, 2008 11:57 AM, Griffith, Michael *
<[EMAIL PROTECTED]> wrote:
> Jeromy,
>
> Again, thanks for the reply. I appreciate your help!
>
> Following your example b
On Feb 4, 2008 11:00 AM, bhaarat Sharma <[EMAIL PROTECTED]> wrote:
> I didnt get it. or maybe i deleted it already.
>
> Anyone wana paste what it read?
Antonio's post had the link:
http://www.scamorama.com/killer.html
Maybe you should be worried if you didn't get one :-)
Greg
-
sorry to be late to this discussion. Dave and Jeromy are right on the
spot. I would advise not to use ajaxtags project and go with what
Struts 2 provides, or use YUI which will play nicely with JSON.
musachy
On Feb 4, 2008 11:57 AM, Griffith, Michael *
<[EMAIL PROTECTED]> wrote:
> Jeromy,
>
> Aga
I didnt get it. or maybe i deleted it already.
Anyone wana paste what it read?
On 2/4/08, Greg Reddin <[EMAIL PROTECTED]> wrote:
On Feb 4, 2008 4:47 AM, Antonio Petrelli <[EMAIL PROTECTED]> wrote:
> > I received an email scam in my apache.org email that is,
> > substantially, the first in this li
Jeromy,
Again, thanks for the reply. I appreciate your help!
Following your example below, I can see the JSON result in the app
server console when the action called, but I get the following error in
the browser:
FATAL exception raised: TypeError: Value undefined (result of expression
this.dat
On Feb 4, 2008 4:47 AM, Antonio Petrelli <[EMAIL PROTECTED]> wrote:
> I received an email scam in my apache.org email that is,
> substantially, the first in this list:
> http://www.scamorama.com/killer.html
>
> Did you receive such a letter?
Yep, I got one. Somebody don't like Tiles I guess :-)
G
Will CodeBehind give what you need? I'm not sure with your use of
wildcards.
It gives "pages with no mapping": a default do-nothing action that
provides access to s2 tags & resources...but not to a default tile AFAIK
http://struts.apache.org/2.0.11/docs/codebehind-plugin.html
Giovanni Azua wr
Hi,
We are using struts2 with the struts 1 plugin. I have been getting this error
when posting to an action. I really am not sure where to start looking, any
ideas?
[91000] [/].[action] Servlet.service() for servlet action threw exception
javax.servlet.ServletException: Cannot find catalog 'str
oh I was just reading it. Struts 2 team, you are going down! :)
musachy
On Feb 4, 2008 7:06 AM, Dave Newton <[EMAIL PROTECTED]> wrote:
> --- Antonio Petrelli <[EMAIL PROTECTED]> wrote:
> > I received an email scam in my apache.org email that is,
> > substantially, the first in this list:
> > http
hi,
Suppose you have a struts.xml mapping that looks like:
class="com.sag.optimizer.ui.web.action.form.Form{1}Action">
webui.form{1}
webui.failed
In several cases I will probably want to provide a valid non empty
implementation of a corresponding Form{1}Action.class but in some ca
i've a strange problem
my application is done with struts, working local with JDeveloper IDE which
has OC4J embedded server
when i change locale to french local the labels are read correctly
but when i deploy on tomcat labels from resource bundle are read in english
though labels are retrieved fr
Here is an example where I use it successfully:
but in this specific case defaultAnswerDate, startDate and
incomingAnswer are all String properties whose values are in RFC3339
format ("-MM-dd").
This doesn't account for the blank error you're experiencing. As Dave
mentioned, the most li
Hello Jeromy,
I do have :
Also, i use Netbeans to generate respective get/set method so they are
JavaBean std compliant.
The issue for me unfortunately is getting the value back , it seems to
lose it.
:(
Thanks for feedback though.
Serge
Jeromy Evans wrote:
Hi Serge,
You'll find many
--- Antonio Petrelli <[EMAIL PROTECTED]> wrote:
> I received an email scam in my apache.org email that is,
> substantially, the first in this list:
> http://www.scamorama.com/killer.html
>
> Did you receive such a letter?
I got one this morning.
Of course, I'm a pretty skilled knife- and stick-f
Aw, I just thought I was special, and was so excited - my first death threat! :)
Don
On Feb 4, 2008 9:54 PM, Jeromy Evans <[EMAIL PROTECTED]> wrote:
> Hi Antonio, I received that spam for the first time today too on my
> address used on this list. I guess it just went wild.
>
>
> Antonio Petrell
Hi Antonio, I received that spam for the first time today too on my
address used on this list. I guess it just went wild.
Antonio Petrelli wrote:
I received an email scam in my apache.org email that is,
substantially, the first in this list:
http://www.scamorama.com/killer.html
Did you receiv
Hi,
I found the DTD for tiles configuration at
http://struts.apache.org/struts-sandbox/tiles/tiles-core/dtddoc/index.html.
What I want to do is extend the BasicPreparerFactory and configure the
struts 2 application to use my class. The application uses the spring plugin
but tiles 2 is sandbox an
I received an email scam in my apache.org email that is,
substantially, the first in this list:
http://www.scamorama.com/killer.html
Did you receive such a letter?
Antonio
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addition
62 matches
Mail list logo