Hi,
I think the best solution is to implement SessionAware interface and
setSession() method, then you will either add or remove values from
map. Like below:
public class IndexAction implements Action, SessionAware {
private MapString,Object session;
public void
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 :
s:form name=myForm
Hi Mukul,
Here is sample code. I had mentioned incorrect steps in my previous email.
table width=100% border=0 cellpadding=0 cellspacing=0
tr
td
table id=tableHeader border=0 class=PRODGRID cellspacing=1
cellpadding=0
tr
th class =GRID width=14%bean:message key=label1 //th
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
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
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
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
__
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
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
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 :
s:form name=myForm theme=simple
s:select list=allItem listKey=id listValue=desc
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
What do you mean by 'No ajax use'? s:autocomplete is an Ajax tag... Do
you have s:head theme=ajax/ 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
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 user@struts.apache.org
Date: Tue, 10 Jun 2008 08:05:13 -0700 (PDT)
To:
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
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
I've found it !
In myproject / .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
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
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
--- 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
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
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
struts-config.xml
action-mappings
!-- Default admin action --
!-- Forwards to com.schpro.action.AdminAction --
action path=/admin type=com.schpro.action.AdminAction
forward name=configure path=/jsp/admin.jsp /
forward name=projectsearch
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
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,
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.Interceptor
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:
!DOCTYPE struts PUBLIC -//Apache Software
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
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:
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:
filter
filter-namestruts-cleanup/filter-name
filter-class
org.apache.struts2.dispatcher.ActionContextCleanUp
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
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 get
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 user@struts.apache.org
Sent: Tuesday, June 10, 2008 12:15 PM
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
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 something
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
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
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/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
--
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: Struts
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
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
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.
tiles:insertDefinition
--- On Tue, 6/10/08, Gamble, Wesley (WG10) [EMAIL PROTECTED] wrote:
tiles:insertDefinition name=${#session.companyId}_compensation /
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
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
--- 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
Then again you could just use:
tiles:insertDefinition name=${companyId}_compensation / or
tiles:insertDefinition name=${session.companyId}_compensation/
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
46 matches
Mail list logo