Hi Friends
i am new to the struts .
i have one form where user enter his family details
for this i create on row of fields (like name,relationtype,occupation) if
user want to add one more relation, he click on addmore button then i
provied one more row and user need more, click on addmore and i
Hi
My login jsp file contains only form which includes the username and
password text field nothing else.
Here i am pasting of my stack for Interceptor...
I have struts.xml file in that i have included my authentication.xml
the content of authentication.xml file is following...
JSF has a "ConversationScope" for extended series of requests/responses
dealing with the same topic, and usually the same data model. I'm thinking
of writing an interceptor to simulate ConversationScope, and I'm wondering
if this has not already been done, and if so, does anyone have details,
cod
--- Chris Pratt <[EMAIL PROTECTED]> wrote:
> It's returning an array of Strings (since this is a parameter). But
> if it's used one way it is treated as a single value, if it is used a
> slightly different way, it is treated as an array,
Guess so, although I have to admit I'd probably never use
--- [EMAIL PROTECTED] wrote:
> And he is buddying up with Microsoft!
I've offered to deploy a better browser on my client's 3-4k tablets; so far
they've declined.
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
And he is buddying up with Microsoft! Dave did you stop taking the pretty
little orange pills?
On Fri, Feb 22, 2008 at 6:24 PM, Dave Newton <[EMAIL PROTECTED]> wrote:
> --- Wes Wannemacher <[EMAIL PROTECTED]> wrote:
> > On 2/22/08, Dave Newton <[EMAIL PROTECTED]> wrote:
> > > --- "Hoying, Ken" <
It's returning an array of Strings (since this is a parameter). But
if it's used one way it is treated as a single value, if it is used a
slightly different way, it is treated as an array, that is not
developer friendly. In this case. If it is used as:
''
The value returned is 'dependent' whic
--- Chris Pratt <[EMAIL PROTECTED]> wrote:
> On Fri, Feb 22, 2008 at 4:10 PM, Dave Newton <[EMAIL PROTECTED]> wrote:
> > --- Chris Pratt <[EMAIL PROTECTED]> wrote:
> > > I am seeing the most unexplainable results imaginable. I have the
> > > following line of OGNL:
> > >
> > > '' == 'dependen
--- Wes Wannemacher <[EMAIL PROTECTED]> wrote:
> On 2/22/08, Dave Newton <[EMAIL PROTECTED]> wrote:
> > --- "Hoying, Ken" <[EMAIL PROTECTED]> wrote:
> > > I was able to resolve the issue by replacing the single backslash with
> > > a double backslash.
> > Any time you need advice completely unrelat
On Fri, Feb 22, 2008 at 4:10 PM, Dave Newton <[EMAIL PROTECTED]> wrote:
> --- Chris Pratt <[EMAIL PROTECTED]> wrote:
> > I am seeing the most unexplainable results imaginable. I have the
> > following line of OGNL:
> >
> > '' == 'dependent':
> >
> >
> > Which is outputting:
> >
> > 'dep
On 2/22/08, Dave Newton <[EMAIL PROTECTED]> wrote:
> --- "Hoying, Ken" <[EMAIL PROTECTED]> wrote:
>
> > I was able to resolve the issue by replacing the single backslash with a
> > double backslash.
> >
> > Thank you!
>
>
> Any time you need advice completely unrelated to how you solved the prob
--- Chris Pratt <[EMAIL PROTECTED]> wrote:
> I am seeing the most unexplainable results imaginable. I have the
> following line of OGNL:
>
> '' == 'dependent':
>
>
> Which is outputting:
>
> 'dependent' == 'dependent': false
>
> How is that even possible? I am writing out the value of the d
I am seeing the most unexplainable results imaginable. I have the
following line of OGNL:
'' == 'dependent':
Which is outputting:
'dependent' == 'dependent': false
How is that even possible? I am writing out the value of the display
request parameter and it's value is the string 'dependent'
I haven't tried it but I wonder if:
${nextPage}
would do the job.
(*Chris*)
On Fri, Feb 22, 2008 at 3:03 PM, Allen, Daniel <[EMAIL PROTECTED]>
wrote:
> Hi, all.
>
> I want to redirect a user somewhere based on a parameter that came in
> from a previous page's form. The basic flow should be:
>
Hi, all.
I want to redirect a user somewhere based on a parameter that came in
from a previous page's form. The basic flow should be:
1. StartPage.jsp, contains a form that points to an SomeAction, and that
form includes the parameter "NextPage"
2. SomeAction performs some work and then gives bac
--- "Allen, Daniel" <[EMAIL PROTECTED]> wrote:
>/>
>
> I guess I could manually call Spring from Java code to fill in the
> log-in checker class, but this way I can keep Spring entirely out of my
> code's [direct] dependencies [...] If there's a simpler way to tell Struts
> to use
You mean in JSPs, using the Struts taglib? There's an example that I
think is similar to what you're looking for at the bottom of the
page[1]. For large n, it would be sort of ugly, though, so
definitely look into like Dave said if you're going past
single-digit n.
~Dan Allen
[1] http://struts.
--- Jaarthy <[EMAIL PROTECTED]> wrote:
> Is there any way in Struts2 to display values from i=1 to n.
> Any help on this please?
Not in the same way you can with, say, JSTL's tag.
Which is why I'd consider using JSTL's tag.
Dave
---
Yeah, I know, my spelling is terrible in code. All I can say in my
defense is that I go back and fix it with Eclipse's refactoring tools at
the end, before anyone else at the company has to see it. That doesn't
save you poor souls on the user list who are subjected to my interim
incompetence, thoug
lets say you have some tag which has its base function called
updateReports()
assuming the div tag has theme="ajax" referencing
http://struts.apache.org/2.0.11/docs/ajax-div-template.html
function doit(){ document.login_form.hidden_id.value="01420";}
function updateReports(id) {
Our app context is "products", so URL for the app is
http://www.example.com/products
We want sub-directory like URL for each major feature, so we have package
for each section, like below
page.productDetails
So the path to this section is ==
http://www.example.com/products/sub_product/con
Hello,
Is there any way in Struts2 to display values from i=1 to n.
Any help on this please?
Thanks,
Aarthy
--
View this message in context:
http://www.nabble.com/Looping-in-Struts2-tp15641866p15641866.html
Sent from the Struts - User mailing list archive at Nabble.com.
-
--- "Allen, Daniel" <[EMAIL PROTECTED]> wrote:
> Is there a way to prevent the validation from firing unless the user is
> coming back to it after attempting to log in?
By default the validation interceptor won't check a set of action methods,
including the "input" method. The easiest thing, IMO,
I've set up a login page for my site, and I've used the ValidationAware
interface on LoginAction in order to display errors on the login form
when the user name or password is incorrect. However, this has one
unintended result: the first time the user navigates to
"server.com/webapp/login.action",
What does your filter mapping look like?
Dave
--- snehalkgandhi <[EMAIL PROTECTED]> wrote:
>
> Hi,
>I'm using the Struts2 and trying to integrate it with AJAX. I've given
> the following :
>
> MyJSP File :
>
>
> and when i submit my page, it gives me a javascript error saying dojo is
>
tnx Laurie it worked
Laurie Harper wrote:
>
> Your Department class doesn't initialize its 'program' member when the
> no-arg constructor is called so when BeanUtils tries to fill in the data
> from the request, program will be null. I suspect that is your problem.
> Two things to try:
>
> 1
Hi,
I'm using the Struts2 and trying to integrate it with AJAX. I've given
the following :
MyJSP File :
and when i submit my page, it gives me a javascript error saying dojo is
undefined. I tried to debug with Firebug and below is the error that i'm
getting. After the javascript errors the
Why not just put a redirect into a "normal" welcome file?
--- smart acer <[EMAIL PROTECTED]> wrote:
> I tried these and it is not working, it immediately brings up 404. I think
> I
> put something after URL (asd.action) then the wildcard logic kicks in.
> anyone using like below? help pls!
>
> T
I tried these and it is not working, it immediately brings up 404. I think I
put something after URL (asd.action) then the wildcard logic kicks in.
anyone using like below? help pls!
Thanks
VJ
On 2/22/08, Laurie Harper <[EMAIL PROTECTED]> wrote:
>
> smart acer wrote:
> > Our domain is http://www.
Hello everyone,
I have been researching on the web on how to call javascript from Struts
tag.
I am using struts 2 to develop JSP. Following is the piece of code in JSP,
which calls javascript
document.write(shortenTextLength('${defaultReturnReason}',
'${displayLength}'))
More details to my previous posting...
I am building an app with Struts 1.x, which is dynamically rendered at
runtime to create html form elements. Because of the applications dynamic
nature, I am using map backed struts action form to dynamically capture the
values in a HashMap.
Unfortunately,
Hi all,
In most web applications, it is unavoidable to have some codes/lookup
tables, for example, in a form we may need to display the country list. If
we were to hit the database per request to get this list for displaying in
the dropdown, it would be too expensive. If we load these values durin
smart acer wrote:
Our domain is http://www.example.com
Our app context is products, so URL for the app is
http://www.example.com/products
We have a package/namespace defined as follows,
page.productDetails
http://www.example.com/products -- works fine
http://www.example.com/products/sub_pro
mule_user wrote:
This is the scenario using Struts 1.1:
User Interface -> MyAction1 (input is Form1)-> MyAction 2 (input is Form2)
->User Interface
MyAction1 and MyAction2 are Action classes.
MyAction1 and MyAction1 are configured in struts-config.xmxl.
MyAction1 takes Form1 as input.
MyActi
--- Laurie Harper <[EMAIL PROTECTED]> wrote:
> Dave Newton wrote:
> > --- Sanjeewa Saman <[EMAIL PROTECTED]> wrote:
> >> I think it do not remove the data in the session after we invalidate it.
> >> So do you have any idea of removing the data in the session.
> >
> >> ((org.apache.struts2.dispatch
Still not enough information to say for sure, but:
> login otherwise redirect back that user to login page...
...
> i am passing request_locale paramter in url
you realize that a redirect will lose the request parameter, right?
If that isn't the clue you're looking for, post some configuration:
See the section "linking 2 autocompleters" here:
http://struts.apache.org/2.x/docs/ajax-and-javascript-recipes.html
Same example is in the Showcase application.
musachy
On Fri, Feb 22, 2008 at 11:56 AM, Dave Newton <[EMAIL PROTECTED]> wrote:
> --- "Stanley, Eric" <[EMAIL PROTECTED]> wrote:
>
Dave Newton wrote:
--- Sanjeewa Saman <[EMAIL PROTECTED]> wrote:
I think it do not remove the data in the session after we invalidate it.
So do you have any idea of removing the data in the session.
((org.apache.struts2.dispatcher.SessionMap)
ActionContext.getContext().getSession()).clear();
Oh, sorry.
--- David Loup <[EMAIL PROTECTED]> wrote:
> Thanks for your reply, but that's not exactly what I'm trying to do.
> I don't want to iterate over the map, but over another collection (my
> "allKeys", which is for example a List).
>
> For each value inside that list, I want to get the cor
Hi Dave,
Thanks for your reply, but that's not exactly what I'm trying to do.
I don't want to iterate over the map, but over another collection (my
"allKeys", which is for example a List).
For each value inside that list, I want to get the corresponding value
from the map.
E.g:
allKeys = {"Foo",
--- David Loup <[EMAIL PROTECTED]> wrote:
>
>
>
=>
or
=>
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I wrote a TypeConverter and configured S2 with xwork-conversion.properties to
use it so:
org.permacode.patternrepo.domain.Market=org.permacode.atomic.web.DomainObjectTypeConverter
as per the wiki.
However, from debugging it looks as though struts is completely ignoring the
TypeConverter and i
Hi,
I'm iterating over a collection of String, and for each of these String
I want to access the value inside a map with that String as a key.
I have tried:
And
And a few other things, but just can't seem to get it to work.
I've used up about three keyboard
--- "Stanley, Eric" <[EMAIL PROTECTED]> wrote:
> Anyone? I'd also like to see this example...
Using Dojo?
Are there really no examples of that on the Dojo site?
Dave
> -Original Message-
> From: thogau [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 21, 2008 10:39 AM
> To: user@st
--- [EMAIL PROTECTED] wrote:
> I need to perform database access for validation. Is the best place to do
> this in my ActionSupport-derived class?
Probably, depending on how your business logic is designed. It's fairly
common (AFAIK, anyway) to do "simple" validation via annotation- or
XML-config
Our domain is http://www.example.com
Our app context is products, so URL for the app is
http://www.example.com/products
We have a package/namespace defined as follows,
page.productDetails
http://www.example.com/products -- works fine
http://www.example.com/products/sub_product/content.action
http://www.google.com/search?hl=en&q=beanutils+copy+properties&btnG=Search
On Fri, Feb 22, 2008 at 11:05 AM, temp temp <[EMAIL PROTECTED]> wrote:
> Is it possible to copy nested properties from one bean to another using
> beanUtils?
>
>
>
>
> -
> Never miss a
Is it possible to copy nested properties from one bean to another using
beanUtils?
-
Never miss a thing. Make Yahoo your homepage.
hi,
As I said in the previous email. A straightforward way using displaytag
would be defining a one-column table and define a decorator that will
produce the free format you want to produce. If you configure displaytag
to not show borders (look in displaytag css) and also configure the
header
Hi Giovanni,
I want the results to be dislayed as they are in the Google Search results
page,not in a table form.Any help please?
Thanks,
Aarthy
Giovanni Azua-3 wrote:
>
> hi,
>
> I use displaytag (http://displaytag.sourceforge.net). If you can live
> without a natively AJAX-enabled paginat
Try this :
http://struts.apache.org/2.0.11/docs/localization.html
Julien
-Message d'origine-
De : VJ22 [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 22 février 2008 16:26
À : user@struts.apache.org
Objet : For s:textfield tag how to get value for title attribute from resource
bundle.
For s:textfield tag how to get value for title attribute from resource
bundle.
I tried using but seems the struts2 is not recognising this
inside the title tag and considering it as plain text.
Please let me know if there exists a way to do the same
For eg i tried
Here category.categoryNam
Anyone? I'd also like to see this example...
-Ryan
-Original Message-
From: thogau [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 21, 2008 10:39 AM
To: user@struts.apache.org
Subject: dependant updated with ajax : how?
Hi,
I know this has been asked several times on this list bu
Hi,
I need to perform database access for validation. Is the best place to do
this in my ActionSupport-derived class? If so, how can I mark which fields
have validation errors?
Thank you in advance for any advice.
*** IMPORTANT
NOTE* The opin
Using displaytag defining a 1-column table, no borders, and the right
Decorator implementation you get your table-less Google.
But OK then you would risk having a Decorator producing HTML, though
this could be avoided by using some template-based framework e.g. velocity.
regards,
Giovanni
Ad
Just thought it's worth pointing out that displaytag does tables, whereas google
search results are actually table-less.
I'd be very interested if anyone knows whether displaytag or any other project
is or will offer a table-less solution.
There are so many extras that would be nice to have f
--- "Hoying, Ken" <[EMAIL PROTECTED]> wrote:
> I was able to resolve the issue by replacing the single backslash with a
> double backslash.
>
> Thank you!
Any time you need advice completely unrelated to how you solved the problem
I'm your man!!!
Dave
--
--- "M.Liang Liu" <[EMAIL PROTECTED]> wrote:
> I would like to know how long it will last?
Do you mean you want to know when it will be released? That I don't know.
Dave
> newton.dave wrote:
> > --- Maria Lujan Salvadori <[EMAIL PROTECTED]> wrote:
> >> Hello, is it available the new version 2.1?
I was able to resolve the issue by replacing the single backslash with a
double backslash.
Thank you!
Ken
-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: Friday, February 22, 2008 8:41 AM
To: Struts Users Mailing List
Subject: Re: [S2] OGNL Syntax Question
--- "Hoy
I would like to know how long it will last?u guys works hard...
newton.dave wrote:
>
> --- Maria Lujan Salvadori <[EMAIL PROTECTED]> wrote:
>> Hello, is it available the new version 2.1? Where can I download it? We
>> want to migrate our project from 2.0.11 to 2.1 but we cannot find it
>
> 2.1
--- "Hoying, Ken" <[EMAIL PROTECTED]> wrote:
> I was using the following statement under Weblogic which worked
> perfectly:
>
>
>
> However, we have recenly changed out our appication server to Jboss
Is it JSP 2.1? It may be having an issue with the "#" character.
There are links to two threa
Why break up the value? plus, I think name is deprecated... Does this work -
-Wes
On 2/22/08, Hoying, Ken <[EMAIL PROTECTED]> wrote:
>
> I was using the following statement under Weblogic which worked
> perfectly:
>
>
>
> However, we have recenly changed out our appication server to Jboss
I was using the following statement under Weblogic which worked
perfectly:
However, we have recenly changed out our appication server to Jboss and
now this statement appears to be evaluating to null. I do not appear to
be getting any errors. It is simply just not evaluating. I believe it
is
hi,
There was also started a troubleshooting/migration guide from 2.0.x to 2.1.x
http://cwiki.apache.org/S2WIKI/troubleshooting-guide-migrating-from-struts-20x-to-21x.html
regards,
Giovanni
Piero Sartini wrote:
Am Donnerstag, 21. Februar 2008 20:21:33 schrieb Maria Lujan Salvadori:
Hello,
Am Donnerstag, 21. Februar 2008 20:21:33 schrieb Maria Lujan Salvadori:
> Hello, is it available the new version 2.1? Where can I download it? We
> want to migrate our project from 2.0.11 to 2.1 but we cannot find it
Be aware that there are a lot of incompatible changes between 2.0 and 2.1, so
mi
--- Sanjeewa Saman <[EMAIL PROTECTED]> wrote:
> I think it do not remove the data in the session after we invalidate it.
> So do you have any idea of removing the data in the session.
> ((org.apache.struts2.dispatcher.SessionMap)
> ActionContext.getContext().getSession()).clear();
It might have b
The specific problem is that your inline CSS occurs before your link to
tabs.css, so tabs.css overrides yours. Switch the order!
I don't think you should be importing tabs.css yourself - dojo will
import it for you (check in Firebug, it'll be listed twice if it's not
needed). I've never im
I have use your logic like this
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
.dojoTab {
position : relative;
float : left;
padding-left :
HI ,
I think it do not remove the data in the session after we invalidate it.
So do you have any idea of removing the data in the session.
Thank you
sanjeewa
-Original Message-
From: hardik_982 [mailto:[EMAIL PROTECTED]
Sent: Friday, February 22, 2008 12:28 PM
To: user@struts.apache.org
Yeah i know i am somewhere in the mid of chaos.Let me try..Thanks...
--
View this message in context:
http://www.nabble.com/Struts-basic-display-search-results-in-jsp-tp15631512p15632075.html
Sent from the Struts - User mailing list archive at Nabble.com.
--
great dude
i have installed firebug, its amazing!
thanks
--
View this message in context:
http://www.nabble.com/change-in-struts-tabbedpanel-style-tp15628786p15632074.html
Sent from the Struts - User mailing list archive at Nabble.com.
-
2008/2/22, shreya_2008 <[EMAIL PROTECTED]>:
>
> Below is what i wrote in action.
> Statement stmt=con.createStatement();
Err... a statement creation in an action? You'd better read some theory
before :-)
But the problem is I am not getting how to deal with multiple records.
> Of course we store
haii friends...
am using Struts framework
i have two forms..form1 and form2...both in jsp
the form2 has to be included in form1...
the problem is:
with corresponding to values from pop up box in form1, i want to populate
pop-ups in form2that means values in form2 is based on values from
form
Hii,
I am a beginner in struts..I want to retrieve few records from database
and display in jsp page.First i tried assuming only one record is returned
by the query..
Below is what i wrote in action.
Statement stmt=con.createStatement();
ResultSet rs=stmt.executeQuery(query);
if(rs.next())
{
sear
hi
you are right?
Let me describe the problem in detail.
i have one application in struts2.
I have made one interceptor that is called Login Interceptor in that i am
checking for whether user is valid or not If valid then i will allow them to
login otherwise redirect back that user to login pag
Just override the css by creating your own CSS file and including it in
your page.
Take a look at the showcase:
http://www.planetstruts.org/struts2-showcase/ajax/tabbedpanel/example2.jsp
If you view the generated source using the Firefox plugin I mentioned
before you'll see this html:
hi,
I use displaytag (http://displaytag.sourceforge.net). If you can live
without a natively AJAX-enabled pagination library, displaytag is
excellent. I like very much the concept of display Decorators, produces
a very clean design and perfect separation of concerns.
Workarounds exist to AJA
I USE STRUTS 2.0.11
I want to say
i am completely zero in dojo
i could not understand docs of it can nt achieve to change tab style
hey i find that there is complete source available of struts 2.0.11 in
directory
basically tabs.css contain in xwork.jar
and it is built from
\struts-2.0.11\src\core
--- sagarlotiya <[EMAIL PROTECTED]> wrote:
> When i will try to change locale without login it don't work.
>
> But once i will login in to the application i can change the locale.
>
> I am using Interceptor for login validation , does it creates any
problems.?
Hard to say.
You haven't really pr
Yuval Rotem wrote:
Hi,
Does the tag (in Struts 2.1) supports non-Ajax submit? In
other words, can it provide the functionality of the non-Ajax
tag?
(If I understand correctly it doesn't, just wanted to verify - maybe I'm
missing something here).
If the browser has javascript, then no. AF
hardik_982 wrote:
-->PS. The styles may be documented somewhere at www.dojotoolkit.org for
0.4.0 but I don't recall ever seeing it.
i think you tell about
http://dojotoolkit.org/book/dojo-book-0-9/part-2-dijit/themes-and-design/overriding-and-combining-themes
Yes, but that's for Dojo 0.9 whi
81 matches
Mail list logo