Thats sadly not quite true... saveToken() is fillig the
Globals.TRANSACTION_TOKEN_KEY attribute.
You can find the operation in the tokenProcessor.class.
And thats why im still stuck with the old problem :(
-Ursprüngliche Nachricht-
Von: Paul Benedict [mailto:[EMAIL PROTECTED] Im
Hello,
I want to open another page when user click on a link. Lets say, i have a
link Open Page on main.jsp and i want to open child.jsp when user clicks on
the link.
How can i do it?
thanks
-
To unsubscribe, e-mail: [EMAIL
Hi,
You can use window.open() if you like to open this page in a popup
window, or else use a href= to open this page.
Thanks,
Nuwan
Cenk wrote:
Hello,
I want to open another page when user click on a link. Lets say, i have a
link Open Page on main.jsp and i want to open child.jsp when
I have a problem in displaying the Linked HashMap
my linked haskmap looks like this
LinkedHashMapInteger,ArrayListSlotVO
i am trying to display attributes of slotvVO in the jsp but cannot see the
results
help me in achieving this
--
View this message in context:
Hello,
I want to use struts-tiles for templating in following environment.
Struts-1.3.8
Trinidad-1.0.1
Tomahawk-1.1.6
Sun RI-1.2
JBoss 4.2
When I start jboss-4.2 the last protocol line shown is:
[Action Servlet] Loading action chain from jar-file
JBoss itself never finishes starting.
What have
Hello,
I have a problem to get connection.It keeps catching exception? Any ideas?
String driverClass = ResourceManager.getString(database.driver);
String dbUrl = ResourceManager.getString(database.url);
String dbUser = ResourceManager.getString(database.user);
String dbPassword =
Why are you using direct JDBC accesss instead of ConnectionPool
offered by Application Server?
However, rewrite your try block like this:
try {
DriverManager.registerDriver(new com.ibm.as400.access.AS400JDBCDriver());
con = DriverManager.getConnection(dbUrl,dbUser,dbPassword);
}
Try this:
s:select
name=frmColour
label=colour
list=colourList
listValue=%{getText('myColor.'+toString())}
/
and in you resources file:
myColor.WHITE=Blanc
myColor.RED=Rouge
myColor.BLACK=Noir
sarat.pediredla wrote:
I have a s:select form element in my JSP
Hello All,
I get the following error, when I try downloading files through the File
download Struts2 application. I have given the Configuration detail and the
Action class. Could someone take a look and let me know where this breaks?
Thank you,
Senthil
javax.servlet.ServletException:
Sorry for the driver I used copypaste from an old class I developed,
obviously use your driver class COM.ibm.db2.jdbc.app.DB2Driver for
registration...
On 8/28/07, Simone Piva [EMAIL PROTECTED] wrote:
Why are you using direct JDBC accesss instead of ConnectionPool
offered by Application Server?
Hello All,
I get the following error, when I try downloading files through the File
download Struts2 application. I have given the Configuration detail and the
Action class. Could someone take a look and let me know where this breaks?
Thank you,
Senthil
javax.servlet.ServletException:
Hi,
Im using the struts-Validator AND the transaction Token. Both work
perfectly - BUT if I use them in combination I'm in trouble...
If the validator detects wrong data and returns me to the input-form it
still starts the actionclass of the submit button - and its executing
isTokenValid() .
Hi,
I got two struts modules. I want to integrate them and make
them as one application. I had an idea that we should write two
struts-config files. But its not working . can any body tell me how to
configure second struts-config file.
--
Regards,
Venu madhav.Yelamanchili
Re Spring IOC, I agree. The back end of the application operates using IOC, I
just haven't got round to finding out what I need to do to Struts to get it
to inject into an Action class, yet.
Anyway, I have got to the bottom of the problem which was that despite
earlier assurances, I hadn't
Hello,
I tried to use client side validation on my portal (portlet) with struts 2.
It seems to me, that struts 2 just failed to generate client side validation
JavaScript. My question is, is this a known bug, known defect or it should not
work anyway?
It seems just the JavaScript from the end
Client side validation is not currently supported in portlets. You
might get it to work, but there are unresolved issues with
escaping/namespaces etc of javascript function names and variables.
You can register it as a JIRA issue, and hopefully we'll be able to
resolve it in a future release.
Thanks Laurie,
I have found the answer.
It was due to a miss from my end to add conversion properties.
Anyways, Thanks for the reply.
Regards,
sanjeeev
Laurie Harper [EMAIL PROTECTED] wrote:
kukreja sanjeev wrote:
Hi Guys,
I am facing problem related to setting up the Indexed
Thanks Laurie,
I have found the answer.
It was due to a miss from my end to add conversion properties.
Anyways, Thanks for the reply.
Regards,
sanjeeev
Laurie Harper [EMAIL PROTECTED] wrote:
kukreja sanjeev wrote:
Hi Guys,
I am facing problem related to setting up the Indexed
Hi!
I wrote an article on AJAX tables with Struts 2:
http://www.javaworld.com/javaworld/jw-08-2007/jw-08-ajaxtables.html
Should a module be created based on that concept?
Oleg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
--- Mark Rollins [EMAIL PROTECTED] wrote:
I just haven't got round to finding out what I need
to do to Struts to get it to inject into an Action
class, yet.
Set the object factory as Spring, provide a setter in
the action class, and name the Spring bean the same
name as the setter, so
Hi,
I'm using Websphere and am still stuck with using Ajax for validations ;
since i'm not able to install the right patch etc.
The performance tuning tip says copy the static content from the Struts 2
jar when using the Ajax theme . Can someone please give me the steps to do
this ? . I need to
j alex wrote:
I'm using Websphere and am still stuck with using Ajax for validations ;
since i'm not able to install the right patch etc.
The performance tuning tip says copy the static content from the Struts 2
jar when using the Ajax theme . Can someone please give me the steps to do
this ? .
I understand your pt. abt performance, but my problem is howto get Ajax
working in the first place. The primary reason i need to copy the static
files is because i need to customize them in terms of the error message
presentation ; and also because i'm using Websphere which is not resolving
the
j alex wrote:
i need to customize them in terms of the error message
presentation ; and also because i'm using Websphere which is not resolving
the references from the JAR directly.
Concerning customization - you don't need to edit anything,
you can just introduce your own JavaScript function
Hi all !
I'm trying to use pretty correctly Locale with Struts (1.2.8).
I want to display for exemple a Date in current user Locale. Currently I
use this method :
bean:write name=localizationForm property=date
formatKey=format.date.short/
with the adequate formatKey in my localized
Weblogic 9+ includes struts with weblogic, so you may not be running 1.2.6
unless you have taken care to preferr your applications classes over the
standard version. To read more, look at
http://e-docs.bea.com/wls/docs90/programming/classloading.html#1082452
While there isn't 10 specific
Does this help?
http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpSessionAttributeListener.html
d.
--- Jason Mayer [EMAIL PROTECTED] wrote:
Hi,
After doing countless google searches and looking
through the API, I
decided it was time to ask the mailing list. This
is
j alex wrote:
How can i get some insight into the js functions invoked for Ajax
validation? ; unless i know what they are i cannot override them :-) .
Looking at the example showcase, i only see the s:head theme=ajax/ and
seems it does all the magic
It does, but to customize it you have to
Hi,
After doing countless google searches and looking through the API, I
decided it was time to ask the mailing list. This is my first post to
the Struts mailing list, so I apologize in advance if I'm asking a
question already answered somewhere (although again, google didn't
help me).
I wrote
How can i get some insight into the js functions invoked for Ajax
validation? ; unless i know what they are i cannot override them :-) .
Looking at the example showcase, i only see the s:head theme=ajax/ and
seems it does all the magic
On 8/28/07, Oleg Mikheev [EMAIL PROTECTED] wrote:
j alex
On 8/28/07, Dave Newton [EMAIL PROTECTED] wrote:
Does this help?
http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpSessionAttributeListener.html
Thanks for the quick response Dave. That's what I used for the
session listener. It may be that I'm showing my struts
--- Jason Mayer [EMAIL PROTECTED] wrote:
http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpSessionAttributeListener.html
That's what I used for the session listener.
That's not a session listener, that's a session
attribute listener: they're different things. Session
On 7/20/07, Nicolás Pace [EMAIL PROTECTED] wrote:
Hello list!
I'm having the next problem:
I'm using a s:datepicker type=time for picking time :P
the problem is that when i submit the form, apache throws
Jul 20, 2007 10:42:37 AM org.apache.tomcat.util.http.Parameters
processParameters
Hello everyone,
I have a quick question. When the user session expires and they try
to submit a form to the server through an open window, I'm finding my
array in my action form is not being populated through the setter
method. In fact I'm getting the following exception
Hello everyone,
I have a quick question. When the user session expires and they try
to submit a form to the server through an open window, I'm finding my
array in my action form is not being populated through the setter
method. In fact I'm getting the following exception
Hi
This is an existing application, which was running on websphere and tomcat,
and now have to installed on weblogic 10.0
So what is the work around, to get this application installed and running on
weblogic,
I got the error when installing this application on weblogic
Ashish
On 8/28/07, John
Hi Pavel.
Do you use the contextCleanup in your web.xml?
org.apache.struts2.dispatcher.ActionContextCleanUp
I had very strange behaviours until I added the contextCleanup filter.
Hope that helps.
Pavel Sapozhnikov wrote:
Hey guys I am not sure if uh if this is tiles problem or what not but
Hey guys I am not sure if uh if this is tiles problem or what not but here's
my problem:
So I am on a page X lets say I hit a button the button goes to another
action does something and basically I return to the same tile with an action
error message. My tiles are using the s2 plugin and
Does anyone know what the release date for 2.0.11 is? This bug is now
scheduled to be fixed in that release.
Kind regards,
Martin
-Original Message-
From: Petzsch, Martin
Sent: 14 August 2007 16:53
To: Struts Users Mailing List
Subject: RE: [s2] @ConversionErrorFieldValidator and
[EMAIL PROTECTED] wrote:
Hi,
Im having some trouble implementing the Transaction Token into my
Application.
Ive checked the Data that is being written - and it seems one of the
session-keys isnt being written.
HttpSession session1 = req.getSession(false);
String saved1 =
Robert could you tell me how to use that..how to put it in web.xml
On 8/28/07, Roberto Nunnari [EMAIL PROTECTED] wrote:
Hi Pavel.
Do you use the contextCleanup in your web.xml?
org.apache.struts2.dispatcher.ActionContextCleanUp
I had very strange behaviours until I added the contextCleanup
Laurie is correct.
Globals.TRANSACTION_TOKEN_KEY = the value of the token stored in the session
Globals.TOKEN_KEY = the name of the request parameter which will be
submitted back with the token.
If the named parameter (it's not Globals.TOKEN_KEY but the value of the
constant) does not contain
Riccardo Mollame wrote:
Does anybody know about any fix or workaround to the
mentioned bug?
Did you see James Holmes' comment? [1] By the sound of it, there's no
problem with the s:url tag itself, it's a question of how you
subsequently use the value it produces. How are you using it?
L.
Ashish Kulkarni wrote:
Hi
Does anyone have an exmple of using log4j for logging struts messages,
I have an web application where i use log4j for logging, i have a
mapslog4j.xml file in WEB-INF folder and load this log file using
DOMConfigurator in a servlet.
This servlet is loaded before struts
Pavel Sapozhnikov wrote:
Hi I have this code in my jsp in s1 application I want to get the equivalent
for s2. I think it has something to do with s:select and s:optgroup. Could
anyone help maybe?
html:select property=activeAgencyID
html:option value=- Select an Agency -/html:option
[edit: include the URL for James' post]
Riccardo Mollame wrote:
Does anybody know about any fix or workaround to the
mentioned bug?
Did you see James Holmes' comment? [1] By the sound of it, there's no
problem with the s:url tag itself, it's a question of how you
subsequently use the value it
Hi Pavel
here's what I have in my web.xml the order of the filter-mapping is
important!
filter
filter-namecontextCleanup/filter-name
filter-class
org.apache.struts2.dispatcher.ActionContextCleanUp
/filter-class
/filter
filter
I don't specify anything at all, here's one of my actions:
action name=user-add class=com.company.controller.UserAddAction/
(*Chris*)
On 8/28/07, John Cartwright [EMAIL PROTECTED] wrote:
Thanks for your reply Chris. Are you specifying a result type of
plaintext in struts.xml or any
Roberto thanks...that doesn't help something else is really wrong here. I
wish I could maybe post a picture here or something I could take a screen
shot I am not sure if I am allowed to attach things in this email list but
here's my tiles.xml
?xml version=1.0 encoding=UTF-8?
!DOCTYPE
Hello everyone,
I have a quick question. When the user session expires and they try
to submit a form to the server through an open window, I'm finding my
array in my action form is not being populated through the setter
method. In fact I'm getting the following exception
I am experimenting with the wait page and I have a situation. When my
wait.jsp includes
head
titlePlease wait/title
meta http-equiv=refresh content=5;url=s:url includeParams=all
//
/head
everything is fine! When I take it out (to avoid the annoying flicker) it
just sits on the wait
In addition to keeping config files confined to the
specific problem at hand it's nice when you find a
solution on your own that you follow up stating what
the problem was.
d.
--- Pavel Sapozhnikov [EMAIL PROTECTED]
wrote:
Hey guys I think I have figured it out nevermind lol
On 8/28/07,
Hey,
I defined my TokenInterceptor but show this error:
* No result defined for action example.ExampleAction and result
invalid.token
When I delete the line interceptor-ref name=token/interceptor-ref
everything works fine
!DOCTYPE struts PUBLIC
-//Apache Software
Hi
It seems that weblogic console application may have error installing
application developed using struts, i was able to deploy the application
using command on dos
Ashish
On 8/28/07, Ashish Kulkarni [EMAIL PROTECTED] wrote:
Hi
This is an existing application, which was running on websphere
Hello
I have 2 screens that use the same form. The form class has a validate
function. To distinguish which screen(jsp file) is using the form I do the
following in jsp files:
% session.setAttribute(page, add) %
% session.setAttribute(page, add_2) %
Then in the form class I grab that value and
Anna Simbirtsev wrote:
Hello
I have 2 screens that use the same form. The form class has a validate
function. To distinguish which screen(jsp file) is using the form I do the
following in jsp files:
% session.setAttribute(page, add) %
% session.setAttribute(page, add_2) %
Then in the form
I will answer myself in case someone else has the same issue.
I think since freemarker 2.3.1 or something if the session is not set
from the servlet it is not initialized in the template. Thus a check for
the Session object has to precede the check for the session property i.e.
#if
Thanks Oleg ; i am able to override the validation js functions on the
showcase example in Tomcat.
Since i cannot use the Ajax/XHTML theme due to UI layout issues , i'm having
a custom theme that extends simple ; i wanted to know if this validation
really depends on having theme=ajax
I replaced
On Tomorrow at 12:09am, LP=Leonidas Papadakis [EMAIL PROTECTED] wrote:
LP I will answer myself in case someone else has the same issue.
LP
LP I think since freemarker 2.3.1 or something if the session is not set
LP from the servlet it is not initialized in the template. Thus a check
LP for the
Can you paste in the line of the JSP that is erring?
On 8/28/07, Ashish Kulkarni [EMAIL PROTECTED] wrote:
Hi
It seems that weblogic console application may have error installing
application developed using struts, i was able to deploy the application
using command on dos
Ashish
On
Sounds like you want a dynamic property file :-) That's the only thing I can
think of.
On 8/28/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi all !
I'm trying to use pretty correctly Locale with Struts (1.2.8).
I want to display for exemple a Date in current user Locale. Currently I
On 8/28/07, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
If the validator detects wrong data and returns me to the input-form it
still starts the actionclass of the submit button - and its executing
isTokenValid() .
This can't be true. If you're using automatic validation, the action will
not
Hi.all.
i want to modify a record on the same page, I do that like follows:
when a record is seleced,a js function is invoked, I use ajax to return a
json object ,and a div(contains several form tags) to store the
data.thediv contains a s:datetimepicker/ ,but i cannot set its value
in
j alex wrote:
Since i cannot use the Ajax/XHTML theme due to UI layout issues , i'm having
a custom theme that extends simple ; i wanted to know if this validation
really depends on having theme=ajax
I replaced s:head theme=ajax / with the equivalent javascript includes,
and it seems to work
Hi all,
I posted this many times but still i don't have any response.
I am not asking solution what is the possible problem only.
My problem struts2 ajax based tags are not working in my application.
application was deployed on jboss.
regards
Vamsi
try to add s:head theme=ajax/ between head/ tags.
2007/8/29, vamsi [EMAIL PROTECTED]:
Hi all,
I posted this many times but still i don't have any response.
I am not asking solution what is the possible problem only.
My problem struts2 ajax based tags are not working in my application.
66 matches
Mail list logo