Hello Markus,
Can you please elucidate your mail with an example?
Actually my requirement is if i use a list of objects to populate on the
select element, how can i get the selected element as an object. For example
if i populate select element using list of Banner objects, how can i get
the sel
Hi,
Why dont you try putting UTF-8, i think this character set is not in
Linux may be.
Thanks,
Nuwan.
Raghuveer wrote:
This is regarding the damage of polish messages from struts application
deployed on Tomcat on Linux and Windows XP .
I get polish messages from SAP that to be displ
This is regarding the damage of polish messages from struts application
deployed on Tomcat on Linux and Windows XP .
I get polish messages from SAP that to be displayed in JSP page.
I have set ISO8859_2 in JSP page for charset.
<%@ page contentType="text/html;charset=ISO8859_2" %>
Have a look at the struts-showcase examples. There are lots of
s:select tags with Actions.
http://www.planetstruts.org/struts2-showcase/tags/ui/example!input.action
Regards
--
Markus Stauffer
On Wed, Feb 13, 2008 at 9:17 AM, Prashant Khanal
<[EMAIL PROTECTED]> wrote:
> Hello Markus,
>
> Can y
I want to release a database connection while reloading the context (using
Tomcat Manager web app) of a Struts2 Web Application. I am also using Spring
and hibernate. (Spring's HibernateTemplate, Spring SessionFactory and Apache
Commons-dbcp with HSql standalone-database)
As I am using HSql 'stand
hi,
My implementation is as follows:
I have a page that displays a datetimepicker provided by struts2(2.0.9).
When i tried to put the same into the YUI tabbed panel the timepicker
componetn is not being displayed.
The following is the code in the YUI:
Hi All,
We have a problem in using validations.
I have tried both xml based and annotation based validations.
But the problem is , The error messages don't get cleared once we get a
error message and it will repeat in the UI.
This will happen with the simple theme ,as if we don't us
Hallo everybody,
I use struts version 2.0.11 with spring 2.0.5.
I need to map all incomming urls to one and the same action.
This action works like a dispatcher - acctording to some data taken from the
data base, decides where to redirect the request.
I''ll appreciate any ideas!
Thanks!
> I need to map all incomming urls to one and the same action.
>
> This action works like a dispatcher - acctording to some data taken from
> the data base, decides where to redirect the request.
>
> I''ll appreciate any ideas!
I think an Interceptor would be a better solution for this:
http://str
Thank you, Piero!
The problem with the interseptors is that they come after the
ServletDispatcher. That means that i get an exception before I get to the
interseptors, because the mapping was not found :)
I think I have found a solution - custom ActionMapper. I extended the
DefaultActionMappe
--- Naveen Kumar M <[EMAIL PROTECTED]> wrote:
> Can any one suggest a way to change the "Browes" button to some thing
> called "Attach" button using Struts2 tag.
>
> I am using follwoing Struts2 tag which is generating the "Browes" button
> but requirment is to have "Attach" button
>
>
Why not use the YUI calendar component?
I'd be wary of mixing multiple JavaScript libraries simply because they may
do different DOM manipulations on load, have specific load order
requirements, and who knows what else.
Jeremy already explained some of the load/instantiation issues. I don't think
Hi Prashant,
For simple objects, the Type Conversion[1] feature is intended to
convert, say, a string value in into an object before its set in your
action.
In your case however, there's no automatic way for struts 2 to load the
selected Entity instance. At best, the key/id from the select
--- Prashant Khanal <[EMAIL PROTECTED]> wrote:
> Can you please elucidate your mail with an example?
> Actually my requirement is if i use a list of objects to populate
> on the select element, how can i get the selected element as an
> object. For example if i populate select element using list o
Hi,
I think in that case, I need to put a string text box and convert the
entered string value to Date by using java conversion on server submit.
Is it possible for me to avoid all this? i.e. on user entry from the
calendar component the date should come baack instead of converting and
then valida
--- Ravichandra C <[EMAIL PROTECTED]> wrote:
> I think in that case, I need to put a string text box and convert the
> entered string value to Date by using java conversion on server submit.
I'm not sure how using the YUI calendar component implies that, but okay.
> Is it possible for me to avoid
Hi,
Your issue is not clear. can you please tell.
what is the theme now your using?
are you using javascript validation?
what is the theme that didnt have this issue?
Thanks,
Nuwan
Sanjeewa Saman wrote:
Hi All,
We have a problem in using validations.
I have tried both xml based
HI nuwan,
We are using simple theme with struts2 here and the problem is repeating the
error message in the UI.
And do not use any java scripts for validation.
When we do not use a theme may be the default theme we do not have this
issue ,
but we have problem of the arrangement of the component
--- Sanjeewa Saman <[EMAIL PROTECTED]> wrote:
> We are using simple theme with struts2 here and the problem is repeating
> the error message in the UI.
The "simple" theme's UI components, IIRC, don't include the error messages.
> When we do not use a theme may be the default theme we do not have
Have you run "mvn eclipse:eclipse" in the project directory? Have you set
the web root for the project in Eclipse? I had to do both when creating a
Struts Maven project from the command line. This structure sounds like the
project that is created from the following which was discussed on the list
n
As to the multiple identical portlets on the same web page question, I think
most portals have a portlet id for each portlet or some other unique
identifier. It is a best practice to append the portlet identifier onto
function names, form names in the case of Struts 2 with client side
validation, e
I would imagine that it is portal specific. It is up to the developer with
AquaLogic.
Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications
> From: "Frank W. Zammetti" <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List
> Date: Wed, 13 Feb 2008 09:45:34 -0500
> To: S
Implement the ServletContextListener and configure it in web.xml - this
has the initialize and destroy methods you are looking for, and they are
called when the container loads and destroys your application.
/Ian
--
Ian Roughley
From Down & Around, Inc.
Consulting * Training / Mentoring * Ag
I would save the action name as a string in the users session and then
redirect to that location once auth is complete. That is the way I have done
it in the past.
Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications
> From: Dravid <[EMAIL PROTECTED]>
> Reply-To: Struts Us
I'm not sure how to get it with OGNL but you could make your action
implement ServletRequestAware, call request.getRequestURL() somewhere in
your action and set that value in an instance variable with a getter and
then call the getter in your action.
Regards,
Randy Burgess
Sr. Web Applications De
please some one help me
thanks in advance
Dravid wrote:
>
> Hi,
>
> After a successful login I don't want to redirect the user to a hardcodes
> page, but I want the user to be redirected where he wanted to go. E.g. if
> a user clicks on 'sell' he will be forced to log in and after login the
I had this problem, I don't think it's related to the theme. I'm new to
struts so this might not be the best solution, I made my action implements
Preparable and I clean up the errors in the prepare method.
On Feb 13, 2008 7:46 AM, Dave Newton <[EMAIL PROTECTED]> wrote:
> --- Sanjeewa Saman <[EMA
Hmm, in our case the single applications should not know it they are running
in a portal or somewhere else. They should just see their context, nothing
else.
Another question to hold the application in simple divs:
How does the action handling works if I include the applications in simple
divs? If
--- Martin Castellanos <[EMAIL PROTECTED]> wrote:
> I had this problem, I don't think it's related to the theme. I'm new to
> struts so this might not be the best solution, I made my action implements
> Preparable and I clean up the errors in the prepare method.
I believe you may be responding to
Marc Eckart wrote:
Hmm, in our case the single applications should not know it they are running
in a portal or somewhere else. They should just see their context, nothing
else.
In my experience, which I admit was a while back and fairly limited, a
portlet is specifically written as a portlet,
So that seems to say that it's left to the portlet developers to ensure
there are no naming conflicts, am I understanding that right?
Frank
Randy Burgess wrote:
As to the multiple identical portlets on the same web page question, I think
most portals have a portlet id for each portlet or some
Hi.
I have a few places in my web app where a URL goes to a page that is
more or less static. We still use JSPs for these static pages, since
we're looking to use Tiles to re-use header/footer code and so on.
Currently, though, my attempts to get Struts2 are just yielding no
response on the server
Randy already gave you an answer.
In the interceptor that checks for a logged-in user (or an action subclass,
but an interceptor is probably better) save the URL that was being requested.
After login check for the presence of this URL and if there redirect to it.
It's unlikely you'll get many ans
There is a good article on a login interceptor here:
http://www.vitarara.org/cms/struts_2_cookbook/creating_a_login_interceptor.
A question is posted further down the page on how to redirect to the
originally requested page after a successful login.
Regards,
Randy Burgess
Sr. Web Applications Deve
The most applications are hosted in the intra net. We have another subnet
with some Websphere servers secured by firewalls but they can all be
accessed within out domain. So I think I'm back with frames respectively
iframes :-)
Thank you all for your answers :-)
Best Regards,
Marc
2008/2/13, Fra
A portal implementation is typically quite an undertaking. Frames would be a
whole lot easier. :)
Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications
> From: Marc Eckart <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List
> Date: Wed, 13 Feb 2008 17:30:38 +0100
> T
paramsPrepareParamsStack is defined this way:
In AquaLogic there is a feature called In Place Refresh, which stops a
portlet from taking over the page due to a redirect or whatever. You can use
divs if you want but I have portlets without a single div. With AquaLogic
you can use JSR 168 portlets or not, if you don't want to. Since I have this
Now beging in strust 2 with Jdeveloper. Display error en screen all compile,
What is problem..?
The codigo is form is simple:
<%@ page contentType="text/html;charset=windows-1252"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
untitled
The error running is:
Error: java.lang.NoClassDefF
GF wrote:
do you think is there any issue adding also before the first in this way:
...
...
Almost. Really it should be the other way around, since you don't want
user-set parameters to override your
Hello,
this is OT and kind of html related but I have a printerfrinndly page
in which I am showing dynamic data while iterating over a collection
using
data is basically shown in 4 different columns. and ofcourse there are
4 different column headers before the tag.
the problem is that if there
Marc Eckart wrote:
The most applications are hosted in the intra net. We have another subnet
with some Websphere servers secured by firewalls but they can all be
accessed within out domain. So I think I'm back with frames respectively
iframes :-)
Sounds like it :) Yeah, I'd definitely think iF
Please reply to the struts-user mailing list.
--- Alvaro Ernesto Gomez Cerna <[EMAIL PROTECTED]> wrote:
> In directory web-inf\lib found
> freemarker-2.3.8.jar
> ognl-2.6.11.jar
> strust.jar
> strust2-core-2.0.11.jar
> xwork-2.0.4.jar
>
> Others directory web-inf
> strust-tags.tld
You need
Hello,
We are trying to use the datetimepicker tag to enter both a date and a time
independently. The date portion works fine. However, I find that when I
use the attribute type="time", my picker does not appear on the page.
My tag looks like this:
Can anyone tell me what I've left out in ord
NoClassDefFoundError is an Throwable which indicates that the container
does not find a class definition. Looks like your path does not
reference the libraries for xwork-xxx.jar. Please refer to the
documentation on JDeveloper (if you are using that IDE) or if you are
deploying your war/ear in
--- bhaarat Sharma <[EMAIL PROTECTED]> wrote:
> One way for me is to \'guesstimate\' how many records a page can
> display, say 20. Then i will keep a counter and when couter hits
> 20..again display the column headers. But this is really bad i think
> since the data is dynamic so my guess of how
--- Alvaro Ernesto Gomez Cerna <[EMAIL PROTECTED]> wrote:
> Now beging in strust 2 with Jdeveloper. Display error en screen all
> compile, What is problem..?
>
> The error running is:
> Error: java.lang.NoClassDefFoundError:
> com/opensymphony/xwork2/util/ValueStack
You don't have all the require
I am having an issue with s:url as well
I set s:url's encode="true"
I want to Data.asp?id=1&subId=2 to look like: Data%2Easp%3Fid%3D1%26subId%3D2
What I get instead is Data.asp?id=1&subId=2
Is this the expected behavior?
Don't know if this is the problem the original poster had.
Thanks
On Jan
Have you, in fact, added the struts2 filter to your web.xml?
If not, drop the following in:
struts2
org.apache.struts2.dispatcher.FilterDispatcher
struts2
/*
~Dan Allen
--
This message may contain conf
It's code page
<%@ taglib prefix="s" uri="/struts-tags" %>
Hello World!
-Mensaje original-
De: Dave Newton [mailto:[EMAIL PROTECTED]
Enviado el: MiƩrcoles, 13 de Febrero de 2008 12:54 p.m.
Para: [EMAIL PROTECTED]; Struts Users Mailing List
CC: C
It's compiling 0 errors, 0 warnings,
When running in explorer present next error:
500 Internal Server Error
The Struts dispatcher cannot be found. This is usually caused by using Struts
tags without the associated filter. Struts tags are only usable when the request
has passed through its servl
--- "Zheng, Xiahong" <[EMAIL PROTECTED]> wrote:
> My annotated validation doesn't happen. The following are the code
> snippets for action class and config files. When I leave the SSN field
> blank and hit submit my action's execute method is called hence fails
> instead of redisplay of the login p
Others problem is when attachemt objets in page jsp display en log next message:
---
Error exercising tag : s:form
The Struts dispatcher cannot be found. This is usually caused by using Struts
tags without the associated filter. Struts tags are only usable when the request
has passed through its s
That's the expected behaviour; s:url's encode attribute specifies that
each parameter should be encoded, not that the entire result should be.
If it gave what you're expecting, it wouldn't be giving back a valid URL.
What you need to do is store the url in a variable (using var="url"...) and th
That's indeed what I am missing. Thanks for your prompt help.
-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 13, 2008 2:48 PM
To: Struts Users Mailing List
Subject: Re: [S2] : Help with annotated validation
--- "Zheng, Xiahong" <[EMAIL PROTECTED
Raghuveer wrote:
This is regarding the damage of polish messages from struts application
deployed on Tomcat on Linux and Windows XP .
I get polish messages from SAP that to be displayed in JSP page.
I have set ISO8859_2 in JSP page for charset.
<%@ page contentType="text/html;charset=ISO8859_2
Thank ok, running sin problem.
You one example developing in jdeveloper for reference
-Mensaje original-
De: Allen, Daniel [mailto:[EMAIL PROTECTED]
Enviado el: MiƩrcoles, 13 de Febrero de 2008 01:21 p.m.
Para: Struts Users Mailing List; [EMAIL PROTECTED]
Asunto: RE: [OT] RE: Beging in
My annotated validation doesn't happen. The following are the code
snippets for action class and config files. When I leave the SSN field
blank and hit submit my action's execute method is called hence fails
instead of redisplay of the login page again with validation error
message. What am I missi
Is there any reason we shouldn't use the Logic tab library
(http://struts.apache.org/tags-logic) with Struts 2? If so, is there any
subsitute? I'm looking specifically for and
(along with the old )
~Dan Allen
-Original Message-
From: Zheng, Xiahong [mailto:[EMAIL PROTECTED]
Sent: Wedne
> (3) web.xml doesn't contain anything but struts2 filter declaration.
If that's the case, how is Spring getting initialized? Usually you would
configure one of Spring's context listeners, which will take care of
loading the Spring context on startup and destroying it when the
application is s
Keeping tags actually renders perfectly well for me right now
(no exceptions, no apparent problems with the resulting page), but with
peculiar results for the actual logic it's supposed to be doing, so I
wasn't sure whether that was a configuration issue making it not
evaluate correctly, or a Stru
That's probably the best approach if you want to map incoming requests
to different actions based on custom logic. If you really just want to
have every request handled by the same action, you can just use a
wildcard action mapping (name="/*") to achieve that with less configuration.
L.
Galia
--- "Allen, Daniel" <[EMAIL PROTECTED]> wrote:
> Is there any reason we shouldn't use the Logic tab library
> (http://struts.apache.org/tags-logic) with Struts 2?
Because it won't work.
> If so, is there any subsitute?
> I'm looking specifically for and
> (along with the old )
I thought I alr
--- "Allen, Daniel" <[EMAIL PROTECTED]> wrote:
> Keeping tags actually renders perfectly well for me right now
> (no exceptions, no apparent problems with the resulting page), but with
> peculiar results for the actual logic it's supposed to be doing, so I
> wasn't sure whether that was a configur
--- "Zheng, Xiahong" <[EMAIL PROTECTED]> wrote:
> Followup question: If I use the same action class to handle both the
> form rendering and submission, how do I avoid validation on the
> rendering phase? I use the HTTP method to tell whether it is a form
> submission or not. My problem is validatio
Hello,
I'm trying to use the datetimepicker tag to enter both a date and a time
independently. The date portion works fine. However, I find that when I
use the attribute type="time", my picker does not appear on the page.
My tag looks like this:
Can anyone tell me what I've left out in order
Hi there,
I have a list of items ordered on my jsp page with a radio buttons:
my question is how to have the list vertically? (I get it horizontally)
I tried to dig the info from
http://struts.apache.org/2.x/docs/radio.html
but couldn't get it right
thanks for any pointers!
--
View this
Followup question: If I use the same action class to handle both the
form rendering and submission, how do I avoid validation on the
rendering phase? I use the HTTP method to tell whether it is a form
submission or not. My problem is validation error shows up on the
initial form displaying. Do I ha
Your JSP below looks correct.
If the date picker is on the same page and is working, all I can think
of is an ID conflict or the time picker is using the wrong theme.
Have a look at the generated HTML to ensure the dojo tag is included and
looks right.
Ensure there's no ID conflict with the
It appears that planetstruts.org's demo pages suffer the same problem. See
anything wrong there with their examples?
http://www.planetstruts.org/struts2-showcase/tags/ui/timepicker/
I'll take a look in firebug too. Thanks -- I hadn't used that before.
View Source shows something sort of interes
Yep I've had the same problem and it has been registered in the Struts 2
jira.
https://issues.apache.org/struts/browse/WW-2362
Not sure how to work around it though.
Steve
Jason Dolinger wrote:
>
> Hi all,
>
> I'm new to Struts 2 (and Struts in general), and I'm having a hard time
> figurin
Why not use the method attribute of the tag? This allows you to "wire" a
button to a method on the action.
On Feb 13, 2008 6:47 PM, akinss <[EMAIL PROTECTED]> wrote:
>
> Yep I've had the same problem and it has been registered in the Struts 2
> jira.
>
> https://issues.apache.org/struts/browse/W
Have you tried using the "method" attribute (of the tag)?
akinss wrote:
Yep I've had the same problem and it has been registered in the Struts 2
jira.
https://issues.apache.org/struts/browse/WW-2362
Not sure how to work around it though.
Steve
Jason Dolinger wrote:
Hi all,
I'm new to Stru
StrutsTimePicker is an extension of the dropdowndatepicker included with
Struts2.
I found my test program that uses the Timepicker in Struts 2.0.8 and it still
works.
The JSP is below:
<%@ taglib prefix="s" uri="/struts-tags" %>
Hello World!
I d
I'm not sure what you mean by "no response from the server".
When you omit the class name on the action definition the default action
will be used (usually ActionSupport) to set up the value stack and
resources so you can use struts tags within the JSP.
Your tiles result looks fine.
If you do
Has anyone fixed this issue, or got an "easy" working implementation.
I've read
http://www.nabble.com/Struts-2-requires-input-result-on-failed-type-conversion-td11543906.html#a11543906
which seems to be ended rather abruptly when Martin did not get an answer.
--
View this message in context:
ht
Hi,
I'm trying to use a tile insert with dynamic attributes passed into the
tile from a model. These values were passed into the current tile and
I'm passing it to the child tile. I am trying to insert with the
tiles:put tag (struts-tiles.tld" prefix="tiles") with EL expression for
names and value
Hi,
I have a list of objects in my action. Each object in the list represents a
Company. I want to populate
my dropdown box, in my jsp, with company names. When a companyName is selected
in the dropdown
box, the companyID (which corresponds to the companyName) will be sent upon
form subm
Ned Collyer wrote:
Has anyone fixed this issue, or got an "easy" working implementation.
I've read
http://www.nabble.com/Struts-2-requires-input-result-on-failed-type-conversion-td11543906.html#a11543906
which seems to be ended rather abruptly when Martin did not get an answer.
The default t
Well I read this:
"package.properties (of the directory where class is located and every
parent directory all the way to the root directory)"
and tried moving around the package.properties around but findDefaultText
always returns null. My actions though are still able to retrieve the proper
te
Suppose you declare list of companies as:
private List companies = new ArrayList();
Now you got to have getter for this property as:
public List getCompanies(){
return companies;
}
You can prepopulate your companies list implementing Preparable interface in
your action. Upon implementing you
He Dave,
Thanks for the response.
Do to the performance penalty, with struts 2.0.x, I just would like to not
touch dojo again.
Off the bat, I was curious if client side validation could benefit from
writing out jquery validation rules
http://bassistance.de/2008/01/30/jquery-validation-plugin
Hello all,
I was able to validate simple input elements like textfield but could not
validate optiontransferselect element. Actually i want to show the
validation error when the selected list is empty. the code snippet is shown
below:
The code snippet of the corresponding action class is:
priva
Thanks :)
I'll give it a crack. Started looking at the BigDecimal validator -
org.apache.commons.validator.routines.BigDecimalValidator
Rgds
Ned
Jeromy Evans - Blue Sky Minds wrote:
>
> This should give you an idea. It's modified from existing code so I
> haven't tested it.
> I've decided
Spot on.
There are probably several other ways to do routing based on Button selects
too.
Using:
in the tag is another way of handling Buttons. You could then inject a
boolean value as an Action mapping parameter.
eg.
true
Thinking more on it, using booleans to define control/f
Ok this is my problem:
The first time I tried to add validation I made an
ActionName-methodname-validation.xml file, and added the validationWorkFlow
stack. The validation was executed and errors were detected but the action
just kept going, I asked and the problem was that my action needed to
imp
Thanks for the reply.
I was hoping for some code.
It's obviously been fixed before somewhere, so why do we need to all
implement it again on a per case basis.
I'll go hack something together - if its worthy i'll contrib back here.
I'm a bit sick of struts and its "quirks" tbh.
Jeromy Evans -
This should give you an idea. It's modified from existing code so I
haven't tested it.
I've decided to use a collection of NumberFormat's. You could use any
string -> decimal conversion technique you like.
This can be used to an action by created a
-conversion.properties will in the same dire
or use something like;
Map dropdownValues
then do a series of;
dropdownValues.put(companyId, companyName)
and then have
If you're not using a object-relation bridge of some kind (e.g. Hibernate),
it's usually more efficient to get just the IDs and names as opposed to
fetching all of the o
xianwinwin wrote:
Hi there,
I have a list of items ordered on my jsp page with a radio buttons:
my question is how to have the list vertically? (I get it horizontally)
I tried to dig the info from
http://struts.apache.org/2.x/docs/radio.html
but couldn't get it right
thanks for any poin
2008/2/14, Anup Chatterjee <[EMAIL PROTECTED]>:
>
> The above code in JSP doesn't work saying that the attribute I'm passing
> in the put is not found in the child tile's context.
Are you sure that you put every attributes present in your template page?
Question is - the JSR spec says EL can be
91 matches
Mail list logo