n
2007/2/26, Michael Jouravlev <[EMAIL PROTECTED]>:
I have no idea, but does it work without Javascript assigned to the
button?
On 2/25/07, Strachan, Paul <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I realise this is probably not a struts problem and I feel a bit silly
posting this question but he
Dear All,
Thanks very much for useful help.
Just fight with this for 24 hours and get some improvement.
I want to apology first because I am so stupid. Last evening I do a
profiling again. The OGNL is not the main bottleneck, but it is still a
problem.
My previous page loading is around 3-5 se
try with html tag may be ?
2007/2/27, Romu <[EMAIL PROTECTED]>:
2007/2/26, Michael Jouravlev <[EMAIL PROTECTED]>:
>
> I have no idea, but does it work without Javascript assigned to the
> button?
>
> On 2/25/07, Strachan, Paul <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I realise this
Hi,
I have a scenario where my form can contain large number of rows say 100
(or even more ) and each row contains some fields. There is a save
operation that needs to be done on this data which basically puts as 100
records in database . Since there is only going to be one formbean for a
form how
How to make the file to download when clicking on a link using JSP...
Please send me the code...
follow the below steps
For HttpServletResponse set the
response.setContentType(".") ;
response.setHeader("Content-Disposition","attachment;filename=\"" + s2
+ "\"")
//s2-- is file
if required set Pragma & cache-control in header.
name
response.setContentLength() //file leng
I have a FormBean derived from ValidatorActionForm. I define validation
rules for certain properties in validation.xml.
No I like to add some additional validations which depend on user input.
I thought, I can handle this in the validate(..) method but it gets
never called!
I implemented som
upgraded to 2.0.6 - now the error below is thrown when accessing an Action
with validators.
dont know if it is important, but ajax-validation is enabled and the
annotation looks like this:
--- code ---
@RequiredStringValidator(message = "Login is required", key
= "error.loginname.missing")
Hello
I can not load MessageResources from my custom file path. I can load for
taglib, but how can I do with ?
For example, here is my Struts action snippet:
URL[] urls = new URL[1];
try
{
urls[0] = new URL("file:c:/my_dir/messages/");
}
catch (MalformedURLException e)
{
log.err
In case of error in
--- Tom Bednarz <[EMAIL PROTECTED]> wrote:
> I still do not feel very comfortable with writing
> that many actions around 'CRUDing' an object.
I generally use a single action for CRUD. You may want
to look at DispatchAction (or something like that,
it's been awhile) and consider the GET/POST divi
Hi.
I actually have a bug on 2.0.6 related to this ticket that is marked
fixed in 2.0.7.
(I tried select.ftl and ContainUtil.java from trunk and it works ... no
more exception from freemaker)
For now, I included the fix in my project but, will it be reported on
2.0.6 branch (2.0.6.1 ???) ?
If you are using the "autocompleter" tag, this is done already, and there is
an example on showcase. If not, you will have to do everything my hand, for
which I would recommend using a framework that already has it, like
AjaxTags, not sure if Java Web Parts has something like this also, Frank?
re
i dont think struts2 provides any specific support for this. DWR (not part of
struts2) is very good at doing what you describe if you need to go to the
server to get the States list each time you change the Country.
siva-2 wrote:
>
> Hi,
>
> I am new to Struts 2. I have following requirement
I guess when I was working with 1.2.4 a while back, I did things like
document.form.element.name.submit, etc. Not using the dom.
I was trying to convert to 1.2.9 and I guess I ended up with xhtml type.
Makes sense, thanks for the info.
On 2/26/07, Laurie Harper <[EMAIL PROTECTED]> wrote:
Jim
JWP doesn't offer ready-made components such as this (yet!!), but it
*does* make developing them very simple (and without you having to code
Javascript usually)... this particular case is actually one of our
cookbook examples, so I suppose you could in fact say it offer this
particular item :)
Hi allI'm using struts 1.3.5 and I defined a struts sub module (a new
struts-config-mymodule.xml), when I try to call an action of the mymodule
module to upload a file I get "Corrupt form data: premature ending" . If I
define the action inside the default module it works.There is a bug somewhere
Dear All,
Still do research on the debug log and try to get performance improvement,
because I try to beat another .net system on speed(it can shows all the
pages in 0.5 second,sigh).
One more thing I just find out, if the log does not cheat me:)
Although I have enabled the property template_up
One more thing, this only happens on template/xhtml/hidden.ftl.
Should I report this as a bug?
On 2/27/07, Shuai Zheng <[EMAIL PROTECTED]> wrote:
Dear All,
Still do research on the debug log and try to get performance improvement,
because I try to beat another .net system on speed(it can show
I'm having some difficulty passing along params from my action forms with
Struts 2. I have a basic jsp form declared as follows:
executeLogin is correctly mapped to my LoginAction action class which looks
something like the following:
public class LoginAction extends ActionSupport {
In Struts 1.2.8 we have DownloadAction
write a class that extends extends DownloadAction
implement folloing meyhod
-
import org.apache.struts.actions.DownloadAction;
public class TestDownloadAction extends DownloadAction {
protected StreamInfo getStreamInfo(A
Sorry to disturb again.
This issue is because default the s:hidden tag will use xhtml as theme, but
actually in the distribution, there is no template/xhtml/hidden.ftl. It
always get from template/simple/hidden.ftl. But the cache does not know it.
Then this template is recompiled again and again.
This is not a bug per se. The xhtml theme extends the simple theme.
If a template doesn't exist in the xhtml theme it will fall back the
simple theme. From a performance perspective, you simple need to copy
the simple theme hidden.ftl to the xhtml directory. This will allow
freemarker to cache
GOT IT!! -- the problem was due to incompatibility between struts modules and
common Oreilly servlet (cos). -- No problems using MultipartRequestHandler! --
bye --> Hi allI'm using struts 1.3.5 and I defined a struts sub module (a new
struts-config-mymodule.xml), when I try to call an action of
I believe the Parameters Interceptor will call your setUserName() method. I
would check that that interceptor is in the stack used for LoginAction.
-Gabe
On 2/27/07, Paul Saumets | Merge <[EMAIL PROTECTED]> wrote:
I'm having some difficulty passing along params from my action forms with
Strut
Could we explain this good example then?
http://cwiki.apache.org/S2WIKI/struts-2-spring-2-jpa-ajax.html
Here we can see there is a form (index.jsp) calling the save() action on the
PersonAction class.
The first call on the save action is the service.save(person).
Where does the Person person o
Hi,
can we see your struts.xml?
Thanks,
Nuwan.
- Original Message -
From: "Paul Saumets | Merge" <[EMAIL PROTECTED]>
To:
Sent: Tuesday, February 27, 2007 2:50 PM
Subject: Struts 2 Action Classes (HELP!)
I'm having some difficulty passing along params from my action forms with
St
We've upgraded to struts 2.0.6 and we can't make spring-plugin work.
The spring factory isn't being called and we are getting
ClassNotFoundException for the beans that reference spring.
This is working with struts 2.0.1.
What changed?
Thanks a lot,
João
Perhaps obvious question but,
Do you have
set inside your struts.xml?
-Original Message-
From: João Vieira da Luz [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 27, 2007 12:42 PM
To: user@struts.apache.org
Subject: Problems using spring plugin and struts 2.0.6
We've upgraded to str
We use that property struts.properties:
struts.objectFactory = spring
This same configuration works well on struts 2.0.1.
A part of the stacktrace:
[2007-56-27 05:56:27] ERROR (XWorkConverter.java:645) Conversion
registration error
java.lang.ClassNotFoundException: enumTypeConverter
at
I'm trying to get file upload working (struts 2.0.5).
It seems that FilterDispatcher.prepareAndWrapRequest is not creating
the MultiPartRequestWrapper as required by FileUploadInterceptor.
prepareAndWrapRequest is just skipping the wrapping.
Is this a configuration issue ?
-
My code:
The code within the ->>> and <<<- is not working. I think it
might be due to the way the tag is parsed in the JSP but does anyone
know of a way to do this.
Basically, I would like to have id='BLA1', id='BLA2' .. in the
rendered HTML.
Harsh.
Anybody use a good profiling tool with Struts/ Web Application?
This is a repeat question. Is this not the forum for these kind of
questions?
-RP
hi,
try this code.
<%=indexVal.intValue()%>
Regards,
Nuwan.
- Original Message -
From: "Chaudhary, Harsh" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Tuesday, February 27, 2007 6:22 PM
Subject: Scriptlets in Struts tag
My code:
indexId="indexVal">
maxlength="35"
That example is using the null property handling feature of the XW
type-conversion system :
http://struts.apache.org/2.x/docs/type-conversion.html
Basically, when xw/ognl sees ( evaluates ) person.firstName, it calls
getPerson() , which returns null.
XW goes to work and creates an empty Perso
Technically, this isn't necessary when you have the struts-spring-plugin.jar
in your WEB-INF/lib
since it's already specified by the struts-plugin.xml file
I think, however, seeing a more complete stack trace for the CNFE would be
helpful since I have 2.0.6 with the spring plugin just fine.
P
I tried that. But in the HTML rendered, the id attribute is rendered as:
id='BLABLA<%=indexVal.intValue()%>'
Harsh.
-Original Message-
From: Nuwan Chandrasoma [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 27, 2007 6:09 PM
To: Struts Users Mailing List
Subject: Re: Scriptlets in Stru
I see errors like that on occasion ( mine is with the JSONResult type and the
location property ), but they've always been warnings.
Is yours logged at the ERROR level?
Piero Sartini-3 wrote:
>
> upgraded to 2.0.6 - now the error below is thrown when accessing an Action
> with validators.
>
I believe your running into something I ran into the other day, something
I didn't know... if you have an attribute:
someAttribute="123<%=someVar%>"
...the value of someVar isn't inserted. However, if you do:
<% someVar = "123" + someVar %>
someAttribute="<%=someVar%>"
...that works. The comb
Well we've made progresses. The problem is on registering converters
on XWorkConverter.
We are trying to register converters using spring.
On application-context.xml we have this,
and on xwork-conversion.properties,
domain.security.PermissionType = enumTypeConverter
Probably is a problem fr
Works like a charm. Thanks a lot.
My guess is that my problem could be due to the fact that anything
within attributes like styleid etc. are just parsed as a string.
Harsh.
-Original Message-
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 27, 2007 12:50 PM
To:
I don't think so... if that was true you'd expect it to work as you first
wrote it... it seems to be the specific combination of static content in
the attribute value PLUS a scriplet (actually, I guess that's an
expression, I always forget the difference). In any case, glad that
worked :) I know
I'm not sure type converters are instantiated via the ObjectFactory
mechanism, but you can just as easily say :
domain.security.PermissionType = presentation.converter.EnumTypeConverter
You will probably need to refactor some code if your EnumTypeConverter
expects to be in a Spring context.
J
Ok, that's a solution. We were trying to avoid to do that...
Hope somebody could help us on this.
Thanks again,
João
On 2/27/07, cilquirm <[EMAIL PROTECTED]> wrote:
I'm not sure type converters are instantiated via the ObjectFactory
mechanism, but you can just as easily say :
domain.secur
I'm using *.html as my default extension, which causes a whole host of issues
with Dojo. Regardless, I want to fight through it and see if I can come up
with a solution.
I noticed that FilterDispatcher allows you to serve up static files from the
classpath. Is it possible to configure this same
Quoting the doc: "
Common static content that is needed by the framework (JavaScript and CSS
files, etc.) is served automatically by the FilterDispatcher filter. Any
request starting with "/struts/" denotes that static content is required,
and then mapping the value after "/struts/" to common pac
Is there a FAQ for S2 somewhere?
musachy
On 2/27/07, Musachy Barroso <[EMAIL PROTECTED]> wrote:
Quoting the doc: "
Common static content that is needed by the framework (JavaScript and CSS
files, etc.) is served automatically by the FilterDispatcher filter. Any
request starting with "/struts/
Right, it can serve up static content from the classpath, but I want to do it
from the webapp.
Matt
Musachy Barroso wrote:
>
> Quoting the doc: "
>
> Common static content that is needed by the framework (JavaScript and CSS
> files, etc.) is served automatically by the FilterDispatcher filter
mraible raibledesigns.com> writes:
> I'm using *.html as my default extension, which causes a whole host of issues
> with Dojo. Regardless, I want to fight through it and see if I can come up
> with a solution.
Hi Matt,
I'm not sure about your specific FilterDispatcher question, but we also use
Congratulations !!
Pedro Herrera wrote:
>
> Congratulations to Struts team for this release!!
>
> Best Regards
>
> Pedo Herrera
>
>
>
> husted wrote:
>>
>> The Apache Struts group is pleased to announce that Struts 2.0.6 is
>> available as a "General Availability" release. The GA de
Anyone has any idea ?
I have to call a jnlp file to download some app specific files upon proper
logon of the users. So, if a user logs in, if its a valid user, then jnlp file
has to be downloaded and the user's result page should appear simultaneously..
Any help thoughts, appreacite
Just to follow up on this for the archives, there is now an even easier
way: annotate methods for which no validation should fire with
@SkipValidation. I believe (?) that annotation is new with 2.0.6, or at
least it's a recent addition. Anyway, it works very well.
L.
Don Brown wrote:
Nah, th
I have alreasy start my project with 2.0.1 and it is working well.
However, I'd like to upgrade to 2.0.6.
Can someone explain me how to do it ?
thanks
--
View this message in context:
http://www.nabble.com/-s2--how-to-upgrade-to-2.0.6-tf3304713.html#a9192617
Sent from the Struts - User mailing
Well,
For each previous release I've just created a brand new user library (I use
Eclipse) and imported the latest libraries from the build.
Eg.
I'll have various folders where I have unarchived the latest builds
Struts-2.0.1
Struts-2.0.4
Struts-2.0.6
In Eclipse I just create a user library for
AcceptTentativeDeclineCalendar
AcceptTentativeDeclineCalendar
Hey,
Looking for feedback on best way to implement a login action mechanism using
Struts2/Spring/JPA
Initially I had declared u
thanks,
When you say "library", are you talkin about the set of jars in web-inf/lib
?
If I understand well, you create a project each time ??!
Or do you always work on your "old" project and just update the jars ? If
so, could you please be more precise about other things that has to be
upgrad
Is there any @SkipX annotation to skip populating a property by the
ParamsInterceptor?
musachy
On 2/27/07, Laurie Harper <[EMAIL PROTECTED]> wrote:
Just to follow up on this for the archives, there is now an even easier
way: annotate methods for which no validation should fire with
@SkipValida
Yup, that's the way the spec says it should work :-) An attribute can be
*either* a static String *or* a Runtime Expression. You can't mix both,
so you have to make the any static text part of the RT as you showed.
L.
Frank W. Zammetti wrote:
I don't think so... if that was true you'd expect
Are you working on this "for fun" or you are really intending to do this
on an production environment?
If you are considering a "real world" solution, maybe it would be
interesting to use web-container-based authorization: I use this
throughout my intranet site and I like it very much, because
no.
when I say library I mean all the struts2 related libraries found in the /lib
folder of any distribution you download.
If you go and download the latest struts-2.0-6-all.zip file you should find a
/lib folder there.
In Eclipse if you right click on one of your projects go to Properties - Ja
Ok thank you very much for this concrete explaination. I got it.
The only think I'm still wondering, is if what you describe is enough to
upgrade because this looks (too) easy...
Of course I know you can not figure all the possible problems that can
happen, but if you or somebody could give other
Praveen, Galagali (IE10) wrote:
Hi,
I have a scenario where my form can contain large number of rows say 100
(or even more ) and each row contains some fields. There is a save
operation that needs to be done on this data which basically puts as 100
records in database . Since there is only going
This should be an easy one.
When putting a single quote in a package.properties resource bundle
entry, by default, the quote get's removed and none of the variables
in the entry get loaded.
1. What's the best way to have an entry with a single quote?
Using ' with
works, but is this the o
Tom Bednarz wrote:
I have a FormBean derived from ValidatorActionForm. I define validation
rules for certain properties in validation.xml.
No I like to add some additional validations which depend on user input.
I thought, I can handle this in the validate(..) method but it gets
never called!
It really is, Eric.
package.properties is nothing more than a standard java.util.Properties
file. See the javadoc for this class and you get this question answered,
and will see many more "interesting" things ;-)
Alexander
Eric Rank <[EMAIL PROTECTED]>
27/02/2007 19:32
Please respond to
"
The ususal way to expose resource bundles for use with Struts1 is to
include the properties files in the webapp's classpath, configure them
in struts-config.xml and let Struts deal with loading them. Is there a
reason you need to store the files external to the webapp and load them
manually?
Mike Baroukh wrote:
Hi.
I actually have a bug on 2.0.6 related to this ticket that is marked
fixed in 2.0.7.
(I tried select.ftl and ContainUtil.java from trunk and it works ... no
more exception from freemaker)
For now, I included the fix in my project but, will it be reported on
2.0.6 br
See the release notes for detailed info on what's changed between
releases. That should tell you what, if anything, needs to change in
your project:
http://struts.apache.org/2.x/docs/release-notes-202.html
http://struts.apache.org/2.x/docs/release-notes-203.html
http://struts.apache.org/2.x/doc
On 2/27/07, Shuai Zheng <[EMAIL PROTECTED]> wrote:
First of all, when I saw Vlad's email, I copy out the template and delete
the original from struts-core.jar.
You shouldn't have to delete the one in the JAR. The one under WEB-INF
is earlier on the classpath, and it's "first come first served".
Doesn't look like it, though I'd mostly want to apply such an annotation
to properties I *don't* have, so I wouldn't get all those OGNL warnings
logged with huge stack traces! ;-)
Musachy Barroso wrote:
Is there any @SkipX annotation to skip populating a property by the
ParamsInterceptor?
mus
Thanks Alexander,
I still think I'm missing something though. From the Javadoc:
http://java.sun.com/j2se/1.5.0/docs/api/java/util/Properties.html
Escapes are not necessary for single and double quotes; however, by
the rule above, single and double quote characters preceded by a
backslash st
Hi,
I would like to know if it is possible to call validWhen on the client
side?
I didn't find validWhen.js is it possible to find it somewhere?
Thanks,
Regards, Jean-Marie.
I could use it for security reasons, like populating an object model
directly, but making sure that nobody sets the "id" property for example. I
know I can do it using ParameterNameAware, but having an annotation would be
nicer.
musachy
On 2/27/07, Laurie Harper <[EMAIL PROTECTED]> wrote:
Does
No its server-side only.
Niall
On 2/27/07, jmpdev <[EMAIL PROTECTED]> wrote:
Hi,
I would like to know if it is possible to call validWhen on the client
side?
I didn't find validWhen.js is it possible to find it somewhere?
Thanks,
Regards, Jean-Marie.
--
I came up with a StaticFilter (from http://issues.appfuse.org/browse/APF-431)
that seems to work (see code below). However, it causes another issue for
me. In my SiteMesh decorator, I'm including a messages.jsp that has calls to
the valueStack:
<%-- ActionError Messages - usually set in Actions
Hi all,
I have this piece of struts html:logic code
where
I have problem to upload a file using strut2 in an jboss server, version
4.0.5
In the jsp page I have:
enctype="multipart/form-data">
accept="application/vnd.ms-powerpoint"/>
In the strut xml file I have:
class="dk.frojonck.action.FileUploadAc
Help required to load values in properties file(MessageResources) without
restarting/reloading the server.
Kindly give your suggestions.
The ususal way to expose resource bundles for use with Struts1 is to include
the properties files in the webapp's classpath, configure them in
struts-config.xml and let Struts deal with loading them. Is there a reason
you need to store the files external to the webapp and load them manually?
Thanx
Hi,
I hope every one is fine. Iam forwarding a 'login.do' to another path
like this
PROBLEM: when i see the jsp file the url in address bar contain login.do
at the end, but i want defaultPage.do instead of login.do... The lesson i
get from this is that struts does not consider
80 matches
Mail list logo