Chris Pratt wrote:
On Tue, Feb 26, 2008 at 10:49 PM, Sanjeewa Saman <[EMAIL PROTECTED]> wrote:
Hi all ,
Can some body please tell me a way to restrict the data that we can eneter
to a textfield in struts2.
What I wanted to do is , for the s:textfield , I need to enter only values
these valu
On Tue, Feb 26, 2008 at 11:12 PM, Sanjeewa Saman <[EMAIL PROTECTED]> wrote:
> Yes Chris , that can be done using JS , But I thought that there should be a
> way in struts2 to that.
> May be some one have an idea of doing it.If so pls give ur idea to us.
>
I'm not sure what you think Struts can do
Yes Chris , that can be done using JS , But I thought that there should be a
way in struts2 to that.
May be some one have an idea of doing it.If so pls give ur idea to us.
Tnx sanjeewa
-Original Message-
From: Chris Pratt [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 27, 2008 12:
On Tue, Feb 26, 2008 at 10:49 PM, Sanjeewa Saman <[EMAIL PROTECTED]> wrote:
> Hi all ,
> Can some body please tell me a way to restrict the data that we can eneter
> to a textfield in struts2.
>
> What I wanted to do is , for the s:textfield , I need to enter only values
> these values {1-10 ,
Hi all ,
Can some body please tell me a way to restrict the data that we can eneter
to a textfield in struts2.
What I wanted to do is , for the s:textfield , I need to enter only values
these values {1-10 , +,-,.} .
Thank you.
sanjeewa
Jeromy Evans wrote:
You're following the right approach.
If you don't intend to have your application's package extend the
package defined in your plugin (which doesn't scale to multiple
plugins), what's the benefit of having this be a plugin as opposed to
just a .jar file?
-Dale
Grish wrote:
I'm using the ajax theme with my struts tags, based on the struts 2
tutorial, to implement ajax functionality. Where can I define my code to
catch the result and perform a redirect? I apologize for my inexperience.
I'm a little unclear on how to
hmm...ok, this is using Dojo 0.
Thanks for the reply!
I'm a little unclear about using the header result and the javascript
callback.
So I define a specific result for ajax actions and use the header type where
I define my own status code. Which will then be processed on the client
side.
I'm using the ajax theme with my stru
Grish wrote:
Is there a way to intercept these ajax actions and properly direct my users
to the login page? Or is my approach fundamentally wrong? Any suggestions?
You can only force the redirect to a login page from the client-side.
There's a couple of ways you can do this:
- the intercep
In my attempt to learn about interceptors, I tried creating a login
interceptor using Mark Menard's awesome cookbook. So I managed to make my
own login interceptor and everything is working fine.
I realized though that I will encounter a problem when I intercept ajax
actions and direct the user
Hi,
I am having struts2 application,whenever i am doing action redirect i am
getting new context instead of old one ?
../authentication/login.action
or
login
And context log looks like ...
com.opensymphony.xwork2.ActionContext.getContext()
--
View this message in context:
http://www.
hi
Thanks for your help but finally i have found the solution and it is
following
I have just put the before my login
interceptor and it works fine.
Laurie Harper wrote:
>
> It still seems like the most likely cause is the login interceptor
> invoking navigation (esp. via a redirect) befo
Hi all,
Can any one suggest me a good article that describes adding a custom
validator and how to configure. Sample code along with required
configurations is also appreciated.
Thanks In Advance.
Mano
-
To unsubscribe, e-mai
The page is not disappearing after i click submit button. Actually my ajax
call is made by onchange event of the text box named "totalDemand". Whenever
the textbox value is changed, the ajax call is made. When my page loads for
the first time the header and footer disappears. After doing a debug i
Am Mittwoch, 27. Februar 2008 01:59:36 schrieb Jeromy Evans:
> You're following the right approach.
> ..
> In any case, the approach works so you probably just have a minor config
> error. Post your config (struts-plugin.xml and struts.xml) if the
> statement above doesn't help.
Thank you, that he
If you're thinking of using DWR for UI
using the Lucene search engine which keyword searches on metatags based on
Proprietary TTS engine
with a MySQL DB
then take a look at..
http://www.everyzing.com
M--
- Original Message -
Wrom: IDREXCAXZOWCONEUQZAAFXISHJEXXIMQZUIVOTQNQEMSFDULH
To: "Stru
Dave Newton wrote:
--- Jeromy Evans <[EMAIL PROTECTED]> wrote:
Before the sarcastic replies arrive [...]
Hey!
Dave
rofl. You can still have your fun!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional com
--- Jeromy Evans <[EMAIL PROTECTED]> wrote:
> Before the sarcastic replies arrive [...]
Hey!
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
selvaraju wrote:
We have educational application, from that we need to call new application
likely to be YouTube ,
This applcation should allow registered user to play,download and to
comments the video,
How we can implement in Java/J2ee technology, Which tools and framework is
required,
how we c
We have educational application, from that we need to call new application
likely to be YouTube ,
This applcation should allow registered user to play,download and to
comments the video,
How we can implement in Java/J2ee technology, Which tools and framework is
required,
how we can upload videos a
No no, I mean that even if you're not modifying the map you can get a
concurrent modification exception by accessing the map via OGNL's []
notation, just in an tag.
Dave
--- Eduardo Dela Rosa <[EMAIL PROTECTED]> wrote:
> You are right there. And I guess the best way to rid this exception then i
Petzsch, Martin wrote:
How is it possible to enforce that the textfield should show the date as
dd/mm/?
See this page:
http://struts.apache.org/2.x/docs/formatting-dates-and-numbers.html
It also applies to 2.0.x
-
To
You're following the right approach.
Is the interceptor defined in your package?
Normally either the plugin defines a package in struts-plugin.xml and
your application extends that package, or your application needs to
define the interceptor with an . Also don't
forget you need an intercepto
Hello,
I am trying to write an authentication plugin for struts2. Goal is to reuse it
across several projects so a plugin seems the way to go..
There is an Interceptor defined in struts-plugin.xml, lets call it
AuthenticationInterceptor. Problem is that I am not able to use it in my main
strut
Or just use a Vector instead of an ArrayList, which is synchronized.
Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications
> From: Eduardo Dela Rosa <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List
> Date: Wed, 27 Feb 2008 09:59:25 +1100
> To: Struts Users Mailing
You are right there. And I guess the best way to rid this exception then is
to have the code part in synchronized block, i.e., synchronizing on the list
object itself + get the iterator + invoke either "add" or "remove" inside
the block. This will hurt the performance a bit BUT will preserve the
in
javaskull wrote:
I have a misbehaving tag. This works:
property="selectedComponentBeans" indexId="ctr"
id="selectedComponentBean" type="SelectedComponentBean">
This doesn't:
property="selectedComponentBean.ctr.label" />
Is there some non-nasty way of getting the same effect without the
--- Eduardo Dela Rosa <[EMAIL PROTECTED]> wrote:
> Also, you must be removing or updating object directly inside your list
> object which is why you're getting this error. Try to get a reference to
> Iterator from your ArrayList object and invoke "remove" or "add" methods
> via the Iterator to get
You stick to your code. However, update your code part such that when
create your ArrayList, do it as Collections.synchronizedList(new
ArrayList(...)).
Also, you must be removing or updating object directly inside your list
object which is why you're getting this error. Try to get a reference to
I dont have that but I was trying to describe the concept Im going for.
Thoughts appreciated.
> Date: Tue, 26 Feb 2008 14:11:53 -0800> From: [EMAIL PROTECTED]> Subject: RE:
> [struts] [OT] Re: Multiple / Nested Forms> To: user@struts.apache.org> > ---
> Andy <[EMAIL PROTECTED]> wrote:> > In
--- Andy <[EMAIL PROTECTED]> wrote:
> In the example below, it would be nice to submit the inner form and then in
> the inner action class have available the inner form and the outer form,
> and to do so without having to manually copy over each field. Any creative
> ideas? :)
>
> So if I have:
I didn't catch this original post but I was actually wondering how to manage
embedded forms with Struts1.
In the example below, it would be nice to submit the inner form and then in the
inner action class have available the inner form and the outer form, and to do
so without having to manual
Serge Bornow wrote:
Hello All,
Thanks for any ideas.
My Action class has a get/set homeid
How can i invoke from JSP to set the value of that variable to a
dynamic value
I'm not quite sure what you're trying to do. If you're just try to set
a property at the time of posting to your action the
Cheers guys,
I'm trying to submit two forms but one of the forms requires calculated
values from the second so was wondering if it was possible to put one form
within the other.
Thanks Dale, I'll go with the javascript option of copying the required
fields as hidden fields for the initial form.
Suzy Fynes <[EMAIL PROTECTED]> wrote:
nested forms
What is it that you're trying to achieve?
If you have some inputs you want to appear in several forms the two
simplest solutions would be 1> to have multiple forms and add javascript
to copy values from one into hidden fields in the other ju
Are you trying to submit to different urls with different submit buttons?
musachy
On Tue, Feb 26, 2008 at 4:20 PM, Dave Newton <[EMAIL PROTECTED]> wrote:
> --- Suzy Fynes <[EMAIL PROTECTED]> wrote:
> > Does anyone know if its possible to have nested forms on a JSP? Essentially
> > have a html f
--- Suzy Fynes <[EMAIL PROTECTED]> wrote:
> Does anyone know if its possible to have nested forms on a JSP? Essentially
> have a html form, then another form within it.
AFAIK that would be invalid HTML (and wouldn't make any sense anyway).
Dave
On Tue, Feb 26, 2008 at 2:11 PM, Suzy Fynes
<[EMAIL PROTECTED]> wrote:
> Does anyone know if its possible to have nested forms on a JSP? Essentially
> have a html form, then another form within it.
Unless something changed while I wasn't looking, nested forms are not
allowed in HTML.
http://ww
Hi,
Does anyone know if its possible to have nested forms on a JSP? Essentially
have a html form, then another form within it.
Thanks,
Suzy
Is there a reason the namespace attribute does not require a "/" prefix if
specified? I chased a friends bug around too long this morning before
realizing they had :super::super:fubar-ed the namespace!
--
View this message in context:
http://www.nabble.com/package-namespace-tp15699954p1569995
> From: Richard Sayre <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List
> Date: Tue, 26 Feb 2008 15:32:56 -0330
> To: Struts Users Mailing List
> Subject: Re: Struts 2 and SOA
>
> Ok. All of my actions call my DAOs for their logic. Most of my
> actions look like this:
>
>
> public S
I have a misbehaving tag. This works:
This doesn't:
Is there some non-nasty way of getting the same effect without the
scriptlet?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTEC
Hello All,
Thanks for any ideas.
My Action class has a get/set homeid
How can i invoke from JSP to set the value of that variable to a dynamic
value
A suggestion was this:
But i need to pass a variable and property tag doesnt allow expression.
Any work arounds.
I spent 5 hours trying all k
Correst! How on earty did you find out that was the problem? I was
pulling my hair out.
:>
-G
--- In [EMAIL PROTECTED], Laurie Harper <[EMAIL PROTECTED]> wrote:
>
> Your root element should be
>
> http://java.sun.com/xml/ns/j2ee";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instanc
Many thanks for your response.
To clarify, our exact problem is as follows. We have multiple fields where
we are displaying a date in an editable textfield, this date has come from
some service, not necessarily from a db. When the date comes up from the
service layer it is the correct date; e.g
Ok. All of my actions call my DAOs for their logic. Most of my
actions look like this:
public String myActionMethod() {
myDAO.getARecord();
//populate the action with record fields (will be displayed on a
form or table etc)
if (someField = Status.EDIT && user.hasFullAccess() ) {
--- Othon Reyes Sanchez <[EMAIL PROTECTED]> wrote:
> do you know a collection that is thread safe?
Look in the JavaDocs: not only are there thread-safe collections but there
are utility methods to create them from non-thread-safe collections.
As I said in your JIRA post you should post the action
Hi,
It is too complex to answer in one post ;-), but you almost answer all
your questions ;-)
I don't know all the details about your system (will it be base on
some J2EE App server?), but for example:
- you can implement all your core business logic as simple POJO's base
on Spring, it will allow
do you know a collection that is thread safe?
On Tue, Feb 26, 2008 at 12:42 PM, Randy Burgess <[EMAIL PROTECTED]> wrote:
> I believe this exception occurs when you try and modify an ArrayList while
> iterating over said list. ArrayList is not thread safe.
>
> Regards,
> Randy Burgess
> Sr. Web A
I believe this exception occurs when you try and modify an ArrayList while
iterating over said list. ArrayList is not thread safe.
Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications
> From: Othon Reyes Sanchez <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List
>
Just set the "href" on each submit to the url that it needs to submit
to, and it should work.
regards
musachy
On Tue, Feb 26, 2008 at 1:39 PM, Richard Sayre <[EMAIL PROTECTED]> wrote:
> If I understand you correctly, You could write you own submit
> function(s) that does its own ajax with dojo
>
Sorry this posted too early... I updated the code so it submits the
form fields with the ajax request:
let me know if it helps.
Rich
> function submitFunctionA() {
>
> var kw = {
> url:'',
> load:function(type, data, evt) {
>
I get the following exception when i do some stress test with jmeter.
> java.util.ConcurrentModificationException
> at java.util.AbstractList$Itr.checkForComodification(Unknown Source)
> at java.util.AbstractList$Itr.next(Unknown Source)
> at org.apache.struts2.components.Iterator
If I understand you correctly, You could write you own submit
function(s) that does its own ajax with dojo
function submitFunctionA() {
var kw = {
url:'',
load:function(type, data, evt) {
//up to you what happens here
> From: Richard Sayre <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List
> Date: Tue, 26 Feb 2008 14:08:18 -0330
> To: Struts Users Mailing List
> Subject: Re: Struts 2 and SOA
>
> Could you elaborate a bit. Would the POJO contain the Business logic
> for calling My DAO and other classes
I have a form which contains a number of different submit buttons, each
using the action attribute on the submit tag to control which action
this called, this work fine.
I want this form to load dynamically into a DIV on another page and then
using the AJAX theme and targets attributes on the s
> > I dont see any need for .NET interoperability in the
> > future, but it would hurt to have that option.
>
> I like your typo more than what you actually meant ;)
Ha ha, that is quite funny.
> Another thing to look at is the RESTful plugin. It allows the same action to
> serve back data
Spring isn't required where CXF is concerned, but since CXF has Spring
integration you can expose Spring "beans" as web services quite easily. CXF
has standard SOAP web service support, JSON and REST capabilities although I
have no experience with their REST or JSON implementation.
http://cwiki.ap
When is you page disappearing? After you click "Submit"? You submit
is not using Ajax. If you want to update your div when you submit the
form then you could write a function that notifies your listen topic
rather than submitting the form.
Rich
On Tue, Feb 26, 2008 at 7:22 AM, Prashant Khana
--- Richard Sayre <[EMAIL PROTECTED]> wrote:
> I dont see any need for .NET interoperability in the
> future, but it would hurt to have that option.
I like your typo more than what you actually meant ;)
> After talking briefly with a more experienced analyst, he mentioned
> that SOA might be wort
I'm not sure if I understand you correctly but...
> I want to display editable dates in textfields.
This should be as simple as using a textfield (input type=text) as
your date field
>I cannot use JavaScript, so
> datetimepicker isn't an option.
So the user will have to manually enter the da
I am not using Spring yet. We currently just finished migrating our
application to struts 2. We have not had a chance to look into Spring
yet but it was recommended by the person who started the struts
migration. If this is part of the solution to getting our struts app
to share it functionality
Could you elaborate a bit. Would the POJO contain the Business logic
for calling My DAO and other classes? Would the POJO replace the
action functionality? Then my action would use a POJO to do all of
the work? So any logic in MyAction.save() would go into POJO.save()
which would then be called
Especially if you are using Spring then it will be very simple using CXF to
expose your business logic as a web service.
Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications
> From: Richard Sayre <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List
> Date: Tue, 26 Fe
2008/2/26, santosh gokak <[EMAIL PROTECTED]>:
>
> 1) since you are using JSF and not Struts, migrate to Tiles 2 (best option
> IMHO);
>
> >>I am using struts 1.2.9.Is it possible to move to tiles 2 with this
> version?
Uh! I am very sorry, I don't know where I read that you use JSF :-O
Anyway, y
1) since you are using JSF and not Struts, migrate to Tiles 2 (best option
IMHO);
>>I am using struts 1.2.9.Is it possible to move to tiles 2 with this version?
2) create a patch (I don't know how to fix it, download the source from the
svn trunk);
>>Need to findn time for this.
3) stick with the
Hi,
I think, it will be better if try to use XFire / CXF or Axis2, you can
create simple POJO and expose it as WebService and from the other side
you can use such POJO in your Struts2 actions. And of course you can
use Spring to initialize it and inject to your actions ;-)
If you want to have bett
If I have a struts application, is it posssible to expose some of the
functionality as a Web Service? After reading some SOA documents on
the Sun website, it is possible to expose servlets as web services.
Is this possible with Strus and J2EE? Is there a document that I can
read on it? Are there
If I remember correctly, the checkbox expects a get/set even though the POJO
std for a boolean is typically is/set.
Scott
On Tue, Feb 26, 2008 at 2:11 AM, Laurie Harper <[EMAIL PROTECTED]> wrote:
> Tanmay Waikar wrote:
> >
> > Hi,
> >
> > I am iterating my form bean values using logic:iterate ta
Hello all,
Somehow my header and footer provided by my decorator page disappears after
ajax call. My jsp page that makes ajax call is shown below:
<%@ include file="/common/taglibs.jsp"%>
Demand Plan
Sequence:
The page that is comes as an ajax response is:
<%@ inc
Hi,
I want to display editable dates in textfields. I cannot use JavaScript, so
datetimepicker isn't an option. Currently the date is displayed as dd/mm/yy
if there is a value. How can I change this to be dd/mm/?
Many thanks,
Martin
Capgemini is a trading name used by the Capgem
Antonio Petrelli wrote:
2008/2/25, struts <[EMAIL PROTECTED]>:
myProprty0
myPorperty1
myProperty2
...
Is there a way to do this?
Mmm.. let me see:
Oh, well that's a lot simpler than what I was thinking if it works :-)
L.
---
struts wrote:
Hi,
I'm using Struts 1
I have a set of indexed error properties :
myProprty0
myPorperty1
myProperty2
and so on
I'd like to be able to pass the relevant name in to
Is there a way to do this?
Not really; it *might* be possible to do some funky EL manipulation like:
Tanmay Waikar wrote:
Hi,
I am iterating my form bean values using logic:iterate tag. I have a
html:checkbox which will simultaneously get iterated with the values.
My requirement is to fetch the selected values of the grid on press of
submit button in the action class.
What problem are
sathish kumar wrote:
and another doubt is...
how can i override the theme
i mean, by default use ajax theme
what should i do if i need to change it...
You can't use a different theme, since that tag is only implemented /
supported in the Ajax theme. However, you can customize that the
It still seems like the most likely cause is the login interceptor
invoking navigation (esp. via a redirect) before the locale switch can
happen.
Have you tried (temporarily) commenting out the login interceptor from
your defaultinterceptor stack? What about moving it down the stack (i.e.
aft
76 matches
Mail list logo