THANKS DUDE It works now
Regards,
I.HariKrishna | Software Engineer | Franklin Templeton International
Services (India) Pvt. Ltd. | Franklin Templeton Centre,1st Floor,
No.7,Third Cross Street, Kasturba Nagar, Adyar, Chennai 600020
| Tel: +91 44 24407000 | Extn: 17123 | Fax: +91 44 24453661 | Mobi
hi.. can anyone tell me where can i find a small sample (showcase is a
huge) of doubleselect being pupulated from an action form?
actually i took a look at source code and saw that the doubleList property
is actually a string, so how can it recieve a list?
___
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 wrote:
> Hi!
>
Yes, I think so. I just tried again with a small function and a test form.
Having a html:submit and also giving form.submit() from a method works fine
in firefox, meaning that it doesn't submit the form twice, but in IE, the
form does get submitted twice occasionally. I think the reason could be
th
But is this html:submit is the culprit here?? Do I really need to
replace this html:submit
Regards,
I.HariKrishna | Software Engineer | Franklin Templeton International
Services (India) Pvt. Ltd. | Franklin Templeton Centre,1st Floor,
No.7,Third Cross Street, Kasturba Nagar, Adyar, Chennai 600020
You can try replacing the html:submit with html:button and call your
populateAndSubmit() method from the button.
-Pushkar.
-Original Message-
From: Krishna, Hari (FTT-CInternet) [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 26, 2007 11:14 AM
To: Struts Users Mailing List
Cc: Amara,
Hi all,
I am facing a peculiar problem with form submission. In my jsp I am
using html:submit tag to create a submit button and calling a javascript
method populateAndSubmit() which will do a form submission with
document.ChallengeQuestionForm.submit();
Now the issue is this form is ge
wolverine my wrote:
Hi!
How to decide if an Action class should be serializable or not?
Thank you!
Action classes are instantiated per-request so, unless you're doing
anything special with the action instance in your own code, they don't
need to be serializable.
L.
-
What is the need for action class to be serialized? PLs let us know your
business requirement.
Regards,
I.HariKrishna | Software Engineer | Franklin Templeton International
Services (India) Pvt. Ltd. | Franklin Templeton Centre,1st Floor,
No.7,Third Cross Street, Kasturba Nagar, Adyar, Chennai 600
It's not clear to me what 'the external .jar' is, but in any case J2EE
makes no provision for what you're doing. There's no guarantee that any
given container will support referencing a class outside the WAR or EAR
files. This isn't a Struts issue, it's a deployment issue.
You probably need to
Felipe Rodrigues wrote:
Hi guys,
Can I somehow change the button (e.g. addAllToLeft) of a
Optiontransferselect to some image? I imagine it can be done by changing the
ftl, but I'd like some clues to do that.
For some documentation on themes and extending/customizing them, see here:
http://st
kursy003 wrote:
iam getting problem with tag in struts2. I am populating a list of
values into the drop down box from the database something like search.
In select box iam getting output as {null=null}.Please help me
You have a corrupted OG
I'm not sure what you mean by 'custom jar or war file' but it looks like
your filter class isn't included in the web application's class path
(i.e. it's not in the WAR file's WEB-INF/classes/org/sae/commons/filter
folder or in any of the JAR files in WEB-INF/lib.
L.
Vinit N wrote:
What I nee
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]
hardc0d3r wrote:
i have jdk 1.6 and tomcat 5.5 installed and i tried to run the examples of
struts by putting the war files in the webapps directory. when i try to run
the example i get a 404 error.. all the examples in tomcat are working fine.
can anyone please help me with this error?
Did yo
I have an action that has a property of type Person, which is an interface.
How can I tell Struts what implementation class to instantiate to satisfy a
null property?
I've read the Type Conversion page at:
http://struts.apache.org/2.x/docs/type-conversion.html
I don't quite see how this is d
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
Johngara wrote:
I've been wondering this for a while but is it possible to index an list
inside of a list?
ie.
You can have a 1 layer list-backed property via
public void setFoo(int key, Object value) {
foo.set(key, value);
}
public Object getFoo(int key) {
return foo.g
Did anyone get this error when moving from 2.0.5 to 2.0.6 ?
Unable to load bean: type: class:com.opensymphony.xwork2.ObjectFactory -
bean - jar:file:/home/harringf/install/jakarta-tomcat-5.0.28
/webapps/bh-fl-wp/WEB-INF/lib/struts2-
core-2.0.6.jar!/struts-default.xml:8:69
My stratus-default xml
Thanks for the input. This is a community based website. If you would
like to volunteer some changes, it would be greatly appreciated!!
Paul
[EMAIL PROTECTED] wrote:
Hi,
whoever is in charge of http://struts.apache.org/1.x/ - please fix the
site. It's broken. A lot. I'm really amazed that no
> What are the errors you are seeing?
>
ERROR [http-8080-1] - Unable to find parent package default
ERROR [http-8080-1] - Unable to find parent packages default
Apr 24, 2007 9:53:50 PM org.apache.catalina.core.StandardContext filterStart
SEVERE: Exception starting filter struts
Error building resu
Hi,
whoever is in charge of http://struts.apache.org/1.x/ - please fix the
site. It's broken. A lot. I'm really amazed that nobody seems to have
noticed this, or maybe I'm the only one who cares?
Examples:
http://struts.apache.org/1.x/struts-taglib/tagreference.html - contains
so much escaped
Lance,
Thanks for your help! I am now able to redirect the page except on
timeout it still opens right under the clicked tab instead of as a full
login page.
It seems even the redirected page gets displayed as an ajax content if
the original request was triggered by the ajax action.
Can you t
Can someone tell me why the optiontransferselect tag requires the
user to select all items in the right hand list before it will send
the values over as a parm? Is there some way to make this work as
described in the tag reference which says
"Will auto-select all its elements upon its
I've just about got everything worked out for using Freemarker to create
my Sitemesh templates and have it have access to all my Struts2
goodness. To do that I've got the following in my web.xml
sitemesh
org.apache.struts2.sitemesh.FreeMarkerPageFilter
sitemesh-f
Not in 2.0.6. On 2.1 the "head" tag (in the dojo plugin) has a
"baseRelativePath" attribute to configure dojo's baseRelativePath.
regards
musachy
On 4/25/07, Allen Gilliland <[EMAIL PROTECTED]> wrote:
is there a way to configure struts2 so that it doesn't use /struts/* as
the url prefix for al
that would be my vote, but of course I say that for selfish reasons ;)
-- Allen
Musachy Barroso wrote:
I could get it into 2.0.8, it is a simple fix after all.
musachy
On 4/25/07, Allen Gilliland <[EMAIL PROTECTED]> wrote:
I presume that 2.1 won't be released for a while? Any sort of tim
Thanks for the suggestions everyone. I decided to do this using
Freemarker after all.
Kertis, Dennis wrote:
You should probably just use Freemarker instead of making your own. It
will work no problem by placing the template files in with your source
code and references them by the directory s
I could get it into 2.0.8, it is a simple fix after all.
musachy
On 4/25/07, Allen Gilliland <[EMAIL PROTECTED]> wrote:
I presume that 2.1 won't be released for a while? Any sort of timeline
defined for when 2.1 would be released?
-- Allen
Musachy Barroso wrote:
> Not in 2.0.6. On 2.1 the
I presume that 2.1 won't be released for a while? Any sort of timeline
defined for when 2.1 would be released?
-- Allen
Musachy Barroso wrote:
Not in 2.0.6. On 2.1 the "head" tag (in the dojo plugin) has a
"baseRelativePath" attribute to configure dojo's baseRelativePath.
regards
musachy
O
hmm, it is set in the same manner but isn't available in the Form-Bean. For
testing I have printed out all Request-Attributes in the Form-Bean in this
way:
--
Enumeration e = request.getAttributeNames();
while (e.hasMoreElements()) {
System.out.p
Looks like that reference never went away, and is still invalid. Is there
any detailed tag documentation other than the one wiki page?
(*Chris*)
On 12/5/06, Wendy Smoak <[EMAIL PROTECTED]> wrote:
On 12/5/06, Sakari Isoniemi <[EMAIL PROTECTED]> wrote:
>
> Where detailed tag desc ( http://strut
is there a way to configure struts2 so that it doesn't use /struts/* as
the url prefix for all of its resources? i'd like to pick something
else that works better for my application.
-- Allen
-
To unsubscribe, e-mail: [EMAIL
I've been wondering this for a while but is it possible to index an list
inside of a list?
ie.
You can have a 1 layer list-backed property via
public void setFoo(int key, Object value) {
foo.set(key, value);
}
public Object getFoo(int key) {
return foo.get(key);
}
a
I've been wondering this for a while but is it possible to index an list
inside of a list?
ie.
You can have a 1 layer list-backed property via
public void setFoo(int key, Object value) {
foo.set(key, value);
}
public Object getFoo(int key) {
return foo.get(key);
}
a
Paul-
Sorry if that wasn't clear, we're actually using JAAS for authentication
so all the protected logic is in Java land, not the JSP (as it should
be). We figured out what the problem was - it was a rogue cookie
combined with some onload javascript functionality. Thanks.
--adam
Paul Ben
Thanks brother! That is what I was looking for.
Scott
On 4/24/07, Musachy Barroso <[EMAIL PROTECTED]> wrote:
If the name is null, and there is a key, it will be used as the name. So,
no, you don't need to duplicate it.
musachy
On 4/24/07, Harring Figueiredo <[EMAIL PROTECTED]> wrote:
>
> Th
Hi,
Set the userDetail as the same manner in validate as you set it in action.
-Original Message-
From: zuban [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 25, 2007 7:50 PM
To: user@struts.apache.org
Subject: RE: Newbie. validate Inputs. Request-Attribute lost
thanks for answer
I h
--- zuban <[EMAIL PROTECTED]> wrote:
> In the form-jsp-page a have put this scripplet:
> <% request.setAttribute("userDetail",
> request.getAttribute("userDetail"));
> %>
>
> Now, the form-bean shoult access the object
> "detailUser" in this way:
> request.getAttribute("userDetail");
> but the ret
thanks for answer
I have the same issue with another request-object and I' have done your
sugestion:
In the form-jsp-page a have put this scripplet:
<% request.setAttribute("userDetail", request.getAttribute("userDetail"));
%>
Now, the form-bean shoult access the object "detailUser" in this way
You should probably just use Freemarker instead of making your own. It
will work no problem by placing the template files in with your source
code and references them by the directory structure off the root of your
classpath.
-Original Message-
From: Frank W. Zammetti [mailto:[EMAIL PROT
Well, I *sort of* found a solution... I couldn't literally do what I
wanted, that seems all but impossible in a cross-container way (a
compiled JSP servlet won't work because its specific to the container
that compiled it, and writing to the file system won't work if run from
an EAR without kno
Hi,
Your previous request is finished and the request level optionsCollection
attribute also washed out. After the failure of validate method, you need to
set it again "optionsCollection" as request attribute if you don't want to
make is session level attribute.
Hafeez
-Original Message-
Hi,
I have in a form a list of Options (optionsCollection). The object (a
java.util.List) which holts the values for the optionsCollection is in the
request-scope.
When submitting the form and an error occurs in the validate-methode of the
Form-Bean, the form-jsp-page appears again (of course), bu
You define a plugin with a constant named "extensionId" that has some unique
name, inside that plugin you define your actions like
${extensionId}/MyJsp.jsp
where MyJsp.jsp is a jsp that will be in a subdir under "s2resources". I
have a context listener that searches the class path for the
What are the errors you are seeing?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
another cheap workaround i'm currently using, is to unpack the jsps
from jars in the ant script which builds the war file:
in this case the jar file was specially prepared previously, but you
can also tell unjar task to unjar the jsps only.
regards
Leon
On 4/25/07, Zoran Avtarovski <[EMAIL P
On 25/04/07, Zoran Avtarovski <[EMAIL PROTECTED]> wrote:
For what it's worth we use a combination of both JAAS and a custom
AuthInterceptor.
JAAS handles authentication and the AuthInterceptor manages authorisation.
This leverages off the strength of JAAS and has the flexibility required for
our
I'd be more likely to think that it can't find the
output path.
>
..\web-inf\classes\strutsEx\UserRegistrationAction.class
> (The system cannot find the path specified)
Make sure ..\WEB-INF\classes exists. Note that WEB-INF
is capitalized.
You may also want to consider re-thinking your
directory
Just an idea, but couldn't you use pre-compiled jsp pages. This way they're
available as servlets.
I remember looking at the Jrun admin console which uses precompiled jsps.
Z.
> Do you have anything on the forwarding to a JSP in a JAR file that you
> can tell us about? I'm running into the same
Whoops, hit 'send' too soon.
Until the change is propagated you can get to the page
by going to the regular spring plugin page:
http://struts.apache.org/2.x/docs/spring-plugin.html
d.
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spa
or use maven2 ;-)
from the given error message.
It seem like the struts jar files are not in your classpath.
Try set the classpath ;-)
Best regards,
Mk Tan
On 4/25/07, Lance <[EMAIL PROTECTED]> wrote:
I highly recommend using ant to manage your project including clean,
compile, deploy, javado
--- wolverine my <[EMAIL PROTECTED]> wrote:
> 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
I highly recommend using ant to manage your project including clean,
compile, deploy, javadoc, etc. etc.
http://supportweb.cs.bham.ac.uk/docs/tutorials/docsystem/build/tutorials/ant/ant.html
http://ant.apache.org/
srikanth_arr wrote:
i am new to struts when i compiling the my first struts app
i am new to struts when i compiling the my first struts app
iam getting a error
D:\Program Files\Apache Software Foundation\Tomcat
5.5\webapps\FirstApp>javac *.
java -d ..\web-inf\classes
UserRegistrationAction.java:8: error while writing
strutsEx.UserRegistrationActi
on: ..\web-inf\classes\strut
Hello,
I'm trying to setup the Restful2ActionMapper based on the struts2 tutorial
(helloworld).
The Restful2ActionMapper is expected to invoke "index" method on request for
"/helloworld".
From what I see in the code, the Restful2ActionMapper will only apply this
method for "/helloworld/" (with
Thanks Adam!
And when I'm in the "Spring Plugin" page, clicking on the "Spring
Session Components Workarounds" will display the login page to
Confluence (?).
On 4/25/07, Adam Ruggles <[EMAIL PROTECTED]> wrote:
Looks like this is where it is trying to go
http://cwiki.apache.org/S2PLUGINS/spring
true
Mike Baroukh wrote:
> You could use a reset button
>
It don't always work because it reset to the values that were
populated on page load.
The case it don't work is when you make a change on a form, post it
and there was errors. The form is loaded again with the wrong values
you previo
> You could use a reset button
>
It don't always work because it reset to the values that were populated
on page load.
The case it don't work is when you make a change on a form, post it and
there was errors. The form is loaded again with the wrong values you
previously typed and an error mes
The response is considered committed once you have written to the
outputstream (perhaps in a jsp).
Once a response has been comitted, you can not redirect or forward etc.
The best solution is to redirect before you write anything to the output
stream, sometimes this is not possible.
Another sli
You could use a reset button
Chaudhary, Harsh wrote:
Yea, that's what I was thinking too. I was just wondering if Struts (or
some other API) has a built-in caching mechanism. Thanks though,
Harsh.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Paul Be
I was doing this sort of dodgy thing at one stage, dynamically writing
jsp's to the filesystem
To get the real path of the webroot you can use the following code:
String webroot = pageContext.getServletContext().getRealPath("/");
if (!webroot.endsWith("/")) {
webroot += '/';
}
From memory thi
Looks like this is where it is trying to go
http://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-w
If you are using the spring plugin then all you should have to do is add
a setter to your action class and spring will handle it.
ie
public void setUserDAO(IUserDAO userDAO) {
this.userDAO = userDAO;
}
wolverine my wrote:
Hi!
I have action classes configured in struts.xml and the DataSour
Do you have anything on the forwarding to a JSP in a JAR file that you
can tell us about? I'm running into the same situation where I work
and can't figure out a solution. I had thought that maybe if I
forwarded to something like /struts/jsps/test.jsp and add the package
that jsps are contained i
65 matches
Mail list logo