Bhaarat Sharma wrote:
I am doing this but not working
imi.welcome = Hello {0}
Unless you have a property named "World", it won't. You probably mean to
send an immediate string, the OGNL for which is %{'World'}.
Dave
-
To
Qunhuan Mei wrote:
When implementing file upload, it is required to specify an absolute
directory in struts.xml such as following:
But this might be difficult to achieve, say when the project war is deployed
in a external shared server and we do not have much idea about the directory
structure
I am doing this but not working
imi.welcome = Hello {0}
On Wed, Jun 3, 2009 at 7:16 PM, Dave Newton wrote:
> Bhaarat Sharma wrote:
>
>> is there a way in struts2 to create a locale in the properties file and
>> then
>> substitue values to it?
>> For example:
>> in properties file:
>> myApp.Wel
Bhaarat Sharma wrote:
is there a way in struts2 to create a locale in the properties file and then
substitue values to it?
For example:
in properties file:
myApp.Welcome = "Hello ?"
then when we call this locale we can pass in some value for '?'
This would print:
Hello World
Hello John
Yo
Martin Gainty wrote:
i said the Servlet specification DTD is specified on web.xml
i do NOT suggest you change the DTD in web.xml to a different spec (as previous
poster stated)
No, I stated that what you posted was irrelevant to the OP's question,
and had no bearing on whether or not S2.1 wo
is there a way in struts2 to create a locale in the properties file and then
substitue values to it?
For example:
in properties file:
myApp.Welcome = "Hello ?"
then when we call this locale we can pass in some value for '?'
This would print:
Hello World
Hello John
Thanks
-bhaarat
Wes,
That was an interesting exercise. I changed my welcome-file to be
"index.action", added the zero-byte file "/webapp/index.action", and defined
the following action:
/index.html
This worked the same on Tomcat 5.5 as it did when my welcome-file was just
"index.html." Unfortunately,
dave-
i've had my head buried in dojo for last 2 years and did'nt see the jquery
solution
I'm thinking struts will need a jquery-plugin to get this operational
open to any/all suggestions and or advice?
Thanks for the links and explanation..this is very helpful and informative!
Martin Gainty
_
Wes,
Boy do I wish the client would just use Tomcat! I'll try going down the action
route. I'm actually using index.html now, which is a real file that I can
access if I type the whole URL: http://myserver/mycontext/index.html. If I
understand what you are asking me to try, I will create a ze
I am running Websphere 6.1.0.23 and Basic authentication works for me with the
following two properties set:
com.ibm.ws.webcontainer.assumefiltersuccessonsecurityerror = true
com.ibm.ws.webcontainer.invokefilterscompatibility = true
Can you apply fixpack 23 and test? I had two PMRs clo
On Wednesday 03 June 2009 16:16:03 Dave Newton wrote:
> Wes Wannemacher wrote:
> > I think you have action and result confused... Instead of using
> > @Action, try to add a @Result that configures a result for the string
> > returned by the getDetails() call.
>
> I think he's saying that he was sur
I'll check it out, I just wanted to improve what we had because it's
currently impossible to do things like an AJAX upload with accurate
progress bar. After I get the plugin (1.0-SNAPSHOT, which is the maven
way of saying beta) committed to the sandbox, I'll whip up a quick
example of how to do an
That's great Wes. I am using the file upload but only sparingly (and hacked)
due to some existing glitches.
I read how the Stripes framework does file upload:
http://www.stripesframework.org/display/stripes/File+Uploads
Thought you might find it interesting/useful..
Andy
> Date
On Wed, Jun 3, 2009 at 4:54 PM, Mitchell, Steven
wrote:
[...]
>
> Error 404: SRVE0190E: File not found: /secure/MySecureAction.action
[...]
I don't know about all of the problems, but one thing that might help
you understand this a little bit... This 404 might not be WAS' fault.
In the Spec (
I'm down to two issues:
BROKEN WELCOME-FILE
WebSphere 6.1.0.19 fails to return the welcome-file from the web.xml
when presented with the root URL http://myServer/myContext/ of the
project. Instead, the request falls through to the Struts2 filter which
returns a 404:
Error 404: There is no
I don't know if I would suggest it, but you might be able to call -
Dispatcher.getInstance().setMultipartSaveDir(String path)
Now, I can't remember if there is one dispatcher per thread, so you
might have to call it in an interceptor.
However, I would strongly suggest against doing that.
I am w
It defaults but I think he's wondering how he can set the dir programatically.
> Date: Wed, 3 Jun 2009 15:35:33 -0500
> Subject: Re: About the "struts.multipart.saveDir" for file upload
> From: burtonrho...@gmail.com
> To: user@struts.apache.org
>
> I wasn't aware that it was required. If you
I wasn't aware that it was required. If you don't specify doesn't it
default to the 'work' directory?
On 6/3/09, Qunhuan Mei wrote:
>
> Hi,
>
> When implementing file upload, it is required to specify an absolute
> directory in struts.xml such as following:
>
> />
>
> But this might be diffi
Assuming you are requesting information associated with the
Modal div implementation:
Technologies to use:
I wouldn't recommend one over another because it's javascript.
It depends on what the coder is familiar with. I for one prefer
jquery, and not as an integrated struts component -- I find th
Hi,
When implementing file upload, it is required to specify an absolute
directory in struts.xml such as following:
But this might be difficult to achieve, say when the project war is deployed
in a external shared server and we do not have much idea about the directory
structure of the ta
i am glad that can migrate my cimande to use 100% Convetion plugins
anyone can help review my code...
http://sf.net/projects/cimande
F
On Wed, Jun 3, 2009 at 7:46 PM, Martin Gainty wrote:
>
> a few considerations:
> using convention plugin to create/determine action name
> http://struts.apach
>> How can I use the popup window to call a div of the parent form
The window.open function returns a reference to the opened window.
You can change your
window.open (url... )
To read
var newWin = window.open(url... )
newWin.opener = window;
Then you'd have an "opener" attribute in your
Hi,
I am sorry to hijack this thread but I have a similar question. I have a
parent form and upon clicking a link, it opens up a popup window to add
some form fields. When the user saves this form in the popup, a part of
parent window should get updated. How can I use the popup window to call
> Can you explain why index.html would work and index.jsp would not? I got
> index.html to work
Quite frankly, I do not know. I never had this problem when I was using struts
1. I could do something like this in my welcome file [which would invoke an
action instead]:
index.do
and entering htt
Struts Two,
Two steps forward, three steps back. Switching from index.jsp to
index.html required some JavaScript to replace <%=
request.getContextPath %>, and it behaved differently on WebSphere than
Tomcat so I had to check whether the page name was returned. Below is
the JavaScript I came up w
That's why it is called "convention". If you want to modified the
"conventional" behavior, use the annotations (@Result, @Action etc
etc)
musachy
On Wed, Jun 3, 2009 at 6:16 AM, Dave Newton wrote:
> Wes Wannemacher wrote:
>>
>> I think you have action and result confused... Instead of using
>> @
Hi all,
I've got this webapp running on a machine that has a locale that is
not en_US. However, I'd like the webapp to run under en_US. I tried
setting the locale in struts with:
Unfortunately, dates I try to format with are still formatted
using the server's locale. Is this expected behaviour?
On Wed, Jun 3, 2009 at 9:42 AM, Scott Nesbitt wrote:
>
>
> I am migrating from Struts 2.0.11.1 to 2.1.6 and have read the
> migration guide but am running into trouble. I changed my web.xml to
>
>
> struts2
>
> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
>
I am migrating from Struts 2.0.11.1 to 2.1.6 and have read the
migration guide but am running into trouble. I changed my web.xml to
struts2
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
struts2
*.action
struts2
i said the Servlet specification DTD is specified on web.xml
i do NOT suggest you change the DTD in web.xml to a different spec (as previous
poster stated)
http://cwiki.apache.org/WW/using-struts-and-xwork-with-jsp-20-and-jstl-11.html
we see jstl 11 and jsp20 is implemented for Struts 2.x so th
Wes Wannemacher wrote:
I think you have action and result confused... Instead of using
@Action, try to add a @Result that configures a result for the string
returned by the getDetails() call.
I think he's saying that he was surprised that using the @Action
annotation also meant the expected vi
On Wed, Jun 3, 2009 at 8:55 AM, Givler, Eric wrote:
> I think the problem with the 2.1.6 release I have is that even if rewrite the
> TLD file as a 1.2 version, any of the UI Tags that are based on
> org.apache.struts2.views.jsp.ui.AbstractUITag which implements
> javax.servlet.jsp.tagext.Dynam
I think the problem with the 2.1.6 release I have is that even if rewrite the
TLD file as a 1.2 version, any of the UI Tags that are based on
org.apache.struts2.views.jsp.ui.AbstractUITag which implements
javax.servlet.jsp.tagext.DynamicAttributes will cause an issue.
In an older IDE (JDEV 10.1
a few considerations:
using convention plugin to create/determine action name
http://struts.apache.org/2.x/docs/convention-plugin.html
1)
Action name overrides using annotations as in the example @Action("FOO-BAR")
"FOO-BAR" is action name
2)
struts.convention.action.name.lowercase=false "foo-
I think you have action and result confused... Instead of using
@Action, try to add a @Result that configures a result for the string
returned by the getDetails() call.
-Wes
On Wed, Jun 3, 2009 at 4:03 AM, RogerV wrote:
>
> Hi
>
> I'm returning to Struts after a long absence and I'm confused by
Alee:
I just checked the link to the PDFs and they are working fine. If you
still
cannot get them to open, email me at phillips1021 at hotmail dot com and I
will send the PDFs
to you. The PDFs have the link to the source code and explain how to
build the projects.
Struts 2 has a plug-i
@ philips
i have downloaded the pdf's from your site. thanks. i am going through it
and i guess those are pretty helpful. still have not started implementing
those
Quick Question:
integrating spring in struts through spring plugin, does not mean that you
have struts as your base framework and then
Hi
I'm returning to Struts after a long absence and I'm confused by the
behaviour of the convention plugin. I have a class named IndexAction with a
two methods, the standard "execute()" method and my own getDetails() method
which was being called using dynamicMethodInvocation. The getDetails()
me
Thanks pawel,this does reduce my work on defining each pages. :clap:
Paweł Wielgus wrote:
>
> Hi Kate,
> i'm doing it like this, in action i'm forwarding to a simple jsp (not
> Tiles) and inside a jsp i have:
>
> jsp start
> < % @page contentType="text/html;charset=utf-8" lang
39 matches
Mail list logo