2008/6/10 Gamble, Wesley (WG10) <[EMAIL PROTECTED]>:
>
It does not work because Tiles (at the moment) does not support OGNL.
Notice that Tiles does not support JSP EL "directly". In fact, it is
the container that supports it.
In other words, *before* the tag is called, the EL expression is
eval
Then again you could just use:
or
And ignore OGNL completely. In the first line, since you seem to have
companyId in the session, and JSP EL searches through each scope to
find a value, it will find the value of companyId (unless it finds a
value in the page or request scopes first). The seco
--- On Tue, 6/10/08, Gamble, Wesley (WG10) <[EMAIL PROTECTED]> wrote:
> I'm not clear on the distinction between EL and OGNL.
OGNL is an EL, it's just not JSP EL.
> As a rule of thumb, would it be correct to say that OGNL is
> only valid within Struts tags, and I should never expect OGNL
> interp
Obviously, I'm not clear on the distinction between EL and OGNL.
As a rule of thumb, would it be correct to say that OGNL is only valid
within Struts tags, and I should never expect OGNL interpolation in any
other context?
I thought that OGNL allowed me to get session attributes via the
$(#sessio
--- On Tue, 6/10/08, Gamble, Wesley (WG10) <[EMAIL PROTECTED]> wrote:
>
You're still mixing JSP EL and OGNL. The link I supplied earlier might still be
handy (and I provided a direct link to your other question regarding
interceptor access to various servlet-oriented structures).
That aside, a
All,
Struts 2.0.11.1
Tiles 2.0.6
Is the following valid in a given JSP fragment/Tile?
I'm trying to use the "companyId" attribute of my session to help define
the name of a Tile definition.
Assuming that session has a "companyId" attribute, of course.
Thanks,
Wes
We are developing a large scale application using Spring, String 2, &
Tiles. They were very easy to wire together and have been performing
quite well under load. We have not yet needed the Ajax support, nor
any GWT/DWR/JSON libraries. Hope that helps.
(*Chris*)
On Tue, Jun 10, 2008 at 10:45 A
ravi_eze wrote:
hi,
I see that the previous valid int value is being populated when i enter null
in an integer text field. I want to show error in such a case. Any ideas how
to get this done.
The scenario is as follows:
1. When i enter no value in F1: i get validation error asking me to fill
So the answer to my problem was that I was using Annotation based
actions, and these do not pick up a custom interceptor-stack by default,
unless you place the @ParentPackage annotation on _each_ Action class,
like so:
@ParentPackage(value="ApplicantTracking")
where "ApplicantTracking" is the nam
IIRC it's not necessary to use the extension when defining actions. That'd
actually kind of defeat one of the purposes of having a definable extension.
--- On Tue, 6/10/08, Martin <[EMAIL PROTECTED]> wrote:
> From: Martin <[EMAIL PROTECTED]>
> Subject: Re: Websphere 6.1 and Struts 1.3
> To: "St
2008/6/10 Gamble, Wesley (WG10) <[EMAIL PROTECTED]>:
> Should ActionInvocation.getInvocationContext().getParameters() give me a
> Map of request parameters or do I need to pull the HttpServletRequest
> object in another way?
No, just use getParameters() to get raw parameters access
Regards
--
L
Should ActionInvocation.getInvocationContext().getParameters() give me a
Map of request parameters or do I need to pull the HttpServletRequest
object in another way?
I've seen some code online where the HttpServletRequest gets pulled.
Thanks,
Wes
-
2008/6/11 Lalchandra Rampersaud <[EMAIL PROTECTED]>:
> it's not for configuring struts, i just need something visual to design my
> pages.
As I know, you have to only configure MyEclipse to use Struts2 Tag
Library and then it will be available on component palette, but I
don't remmeber how to do
2008/6/10 Gamble, Wesley (WG10) <[EMAIL PROTECTED]>:
>
> But I want this to happen for every action - and it is dependent on the
> request data that comes in.
Then you should implement Interceptor and investigate
ActionInvocation.getInvocationContext() .getParameters()
Regards
--
Lukasz
http://w
yes, visual would be very nice.
If you really want visual editing, go with asp.net/visual studio or visual jsf.
struts was never really a view-level framework.
On Tue, Jun 10, 2008 at 6:45 PM, Lalchandra Rampersaud
<[EMAIL PROTECTED]> wrote:
> it's not for configuring struts, i just need somethi
But I want this to happen for every action - and it is dependent on the
request data that comes in.
Wes
-Original Message-
From: Lukasz Lenart [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 10, 2008 2:51 PM
To: Struts Users Mailing List
Subject: Re: How to set session data based on reques
it's not for configuring struts, i just need something visual to design my
pages.
Lalchandra Rampersaud
Carpe diem
- Original Message -
From: "Mike Jennings" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Tuesday, June 10, 2008 12:15 PM
Subject: Re: struts ed
Hello!
2008/6/10 Gamble, Wesley (WG10) <[EMAIL PROTECTED]>:
> 1) I would like to set some session key-value pairs in response to a
> request parameter so that I can count on these session variables
> throughtout my application. Should I use an interceptor for this? How
> does the interceptor g
If you don't understand how to use the configuration files, then all the
editor will do is get you in trouble.
Felipe Lorenz wrote:
I dont know.. exist one for NetBeans.. but is beta..
https://nbstruts2support.dev.java.net/
But, if you find one, PLEASE tell us...
On Tue, Jun 10, 2008 at 4:46
You don't have any action mappings (that I see), so there's nothing for
these interceptors to apply to. Add the following to your web.xml:
struts-cleanup
org.apache.struts2.dispatcher.ActionContextCleanUp
stru
I am using Annotation-based actions. I am starting to suspect that they
are not hooked up to the interceptor stack by default. Is that right?
Is there some annotation that I can use to get interceptors to fire?
-Original Message-
From: Lukasz Lenart [mailto:[EMAIL PROTECTED]
Sent: Tuesd
I started out implementing the interface and then when I couldn't get it
to work, I also extended the abstract class.
I assume that the interceptor needs a default constructor as well?
Wes
-Original Message-
From: Lukasz Lenart [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 10, 2008 2:00
I suspect that I don't have any interceptors firing at all. I can
change the value of "default-interceptor-ref" to "xxx" or anything and
nothing happens either on application startup or on action invocation.
Here is the entirety of my struts.xml file:
http://struts.apache.org/dtds/struts-2.0.dtd"
Hi,
2008/6/10 Gamble, Wesley (WG10) <[EMAIL PROTECTED]>:
> As far as I can tell from looking at _Struts 2 in Action_, I constructed
> my class correctly. It is named "CompanyIdentificationInterceptor".
>
The name is not important, did you implement
com.opensymphony.xwork2.interceptor.Intercepto
All,
I set up a custom interceptor, but it is not being invoked.
As far as I can tell from looking at _Struts 2 in Action_, I constructed
my class correctly. It is named "CompanyIdentificationInterceptor".
My struts.xml file now has this configuration in it to accommodate this
new interceptor:
hi,
I see that the previous valid int value is being populated when i enter null
in an integer text field. I want to show error in such a case. Any ideas how
to get this done.
The scenario is as follows:
1. When i enter no value in F1: i get validation error asking me to fill the
field
2. now
struts-config.xml
you have admin defined as path instead of 'admin.do'
Martin
- Original Message -
From: Sury Balasubramanian
To: user@struts.apache.org
Sent: Tuesday, June 10, 2008 1:30 PM
Subject: Websphere 6.1 and Str
Hi,
I want to create one framework(architecture) for our project in our company.
After reading through all the forums, i have decided to choose Struts 2.0,
Spring, Tiles.
Why i choosed that
Struts 2.0 has very good support of Ajax and even we can use GWT/DWR/JSON.
Lots and Lots of ad
I dont know.. exist one for NetBeans.. but is beta..
https://nbstruts2support.dev.java.net/
But, if you find one, PLEASE tell us...
On Tue, Jun 10, 2008 at 4:46 PM, Lalchandra Rampersaud <
[EMAIL PROTECTED]> wrote:
> hi,
> i am having a hard time creating my .jsp pages with struts components in
--- On Tue, 6/10/08, Gamble, Wesley (WG10) <[EMAIL PROTECTED]> wrote:
> Should I use an interceptor for this?
Depends.
> How does the interceptor get access to the request variables?
See the ServletConfigInterceptor source, also viewable online [1]. (The version
doesn't matter too much in this
Nuria-
If you load the Page (with Javascript) in firefox with firebug turned on
Look at all messages displayed in console
Look at Javascript js files to ensure all have been properly loaded
We'll need to see your JSP form
(specifically the tag attributes specifically called..)
nouInforme
aplicac
hi,
i am having a hard time creating my .jsp pages with struts components in
eclipse with myeclipse. is there a struts editor available that will make the
visual designing part easier?
Lalchandra Rampersaud
Carpe diem
I've found it !
In / .settings / org.eclipse.wst.common.component file i had two
different paths for the source code directory, I've deleted the one which
was wrong and now it works !
so happy :)
thank you very much !
piltrafeta wrote:
>
> I've chequed the problems view and i have nothing ref
Hi all,
I have this problem: the result of form submission (with s:file) is Object
HTMLDocument] in firefox and [object] in IE7 in my s:div. I have been
looking to have the action response in my div and not in the iframe DOJO is
creating. I am working with struts 2.0.11.1. i thing solution has be
I've chequed the problems view and i have nothing referring to the
classpath...
It's quite strange all of this, now the only way to make it work i've found
i to create a new project and copy everything from the old one.
piltrafeta wrote:
>
> It must be something like this.. but i've tried delet
I believe it defaults to the bottom middle pane, on the left most tab of
that pane.
Regards,
Randy Burgess
Sr. Software Architect
D5 Systems, LLC
> From: piltrafeta <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List
> Date: Tue, 10 Jun 2008 08:05:13 -0700 (PDT)
> To:
> Subject: Re: [OT]
It must be something like this.. but i've tried deleting the sources and
coping again and stil doesn't works..
Actually, when I open Properties->Web Project Settings, i only have a filed
named "Context Root". How i can see the problems view ?
Musachy Barroso wrote:
>
> I have noticed that when
I have any errors and i use the s:head theme="ajax"/> in my head section a
the auto search work fine
I juste want to add a onchange event whitch submit my form. Before usind the
autocompleter tag i have :
onchange="javascript:document.getElementById('myForm').submit;" doen't work
with autoc
What do you mean by 'No ajax use'? s:autocomplete is an Ajax tag... Do
you have in the head section of your page? Do you
get any Javascript errors when you load the page, or when you interact
with the autocompleter control?
L.
Craftyman wrote:
Hi,
I'm using a s:autocompleter with a local l
The native2ascii tool should run the same anywhere. Make sure you
specify both the input and the output encoding, and that the input
encoding you specify really matches the encoding you've saved the
properties file in.
L.
Raghuveer wrote:
Hi,
Native2ascii has generated Unicode characters on
Hi,
Native2ascii has generated Unicode characters on polish windows system.
But could not generate Unicode characters on Windows English Operating
System.
Thanks a lot to Lukasz and Laurie
-Original Message-
From: Laurie Harper [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 10, 2008 2:24
Good Morning Michael-
Have you notoiced this error manifested in either eclipse maven plugin or
eclipse ant plugin ?
In which version of eclipse and plugin do you see these errors?
Is there a jira entry for these errors?
Thanks,
Martin Gainty
__
Dis
I have noticed that when I generate an eclipse a project with
maven(with wtp support), sometimes the application context is not set,
in which case tomcat will not deploy the app. To set it right-click on
your project Properties->Web Project Settings. Check the Problems view
and see if you have any
I've had a similar problem in the past where a co-worker pulling the project
from source control would see action mapping not found errors -- which
baffled me because I didn't get them. On deleting my target folder and
re-warring, tomcat then picked up the errors. This was because eclipse
project=>
Hello !
I'm having a similar problem...
I had a eclipse project with struts2 and hibernate. It was working fine but
one day stop parsing the struts.xml file, and when i execute it says tha my
actions are not mapped, even if I modify something in struts.xml file
eclipse is not compiling it...
So do
Hi Mukul,
Here is sample code. I had mentioned incorrect steps in my previous email.
In second table wherein you will display data, I have set *title = ""*.
Hope this will solve your problem.
On 6/9/08, mukul.obj
Hi,
I'm using a s:autocompleter with a local list (No ajax use - Struts 2.0.9).
The auto seach work fine but the onChange event doesn't run.
Indeed, I want to submit myForm when the user select a right value (Ie a
value present in my select).
Here my configuration :
I'm try the notifyTopic
47 matches
Mail list logo