You can store objects as request attributes, which lives as long as
the request. If you need an object to live between requests, use the
session.
Nils-H
On Wed, Mar 5, 2008 at 8:24 AM, Arpan Debroy <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Instead of sending string name and values, I want to send the
Hi,
Instead of sending string name and values, I want to send the whole object,
which comprises of some fields, from one jsp to another one.
I am using struts2.
Can anyone tell me if it's possible to pass an object rather than strings
through request object.
Thanks
Cheng Wei Lee wrote:
I know I can get the values of the request parameters in the action class
and then use them to instantiate an object. Read from the API for
ParameterAware interface, "One common use for this is to have the action
propagate parameters to internally instantiated data objects.".
Could any expert tell me how to upload file if use struts 1.x? any example will
be greatly appreciate.
tks in advance
john
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
Gabriel Belingueres wrote:
I thought that a possible explanation would be to keep the view (JSP)
pages unaware of the scope of the variables it uses but honesty I'm
not fully convinced of the gain I can achieve with this practice.
I've developed a conversation scope interceptor I'm using in my
p
Should I be implementing ParameterAware interface instead since the
RequestAware gives me attributes instead of parameters from the form?
On Wed, Mar 5, 2008 at 1:15 AM, Ian Roughley <[EMAIL PROTECTED]> wrote:
> If you implement the RequestAware interface, the map will contain all
> the form valu
Thanks!
On Wed, Mar 5, 2008 at 2:08 AM, Dave Newton <[EMAIL PROTECTED]> wrote:
> --- Cheng Wei Lee <[EMAIL PROTECTED]> wrote:
> > What I was thinking of doing, is to prefix the components at the JSP
> such
> > that I can pick them up at action classes by iterating. Suppose I've 5
> > textfields t
Thanks!
On Wed, Mar 5, 2008 at 11:19 AM, Dave Newton <[EMAIL PROTECTED]> wrote:
> --- Kimberly Begley <[EMAIL PROTECTED]> wrote:
> > javac -d . HelloWorldTest.java
> > --
> > 1. ERROR in HelloWorldTest.java (at line 9)
> > HelloWorld hello_world = new HelloWorld();
> > ^^^
--- Kimberly Begley <[EMAIL PROTECTED]> wrote:
> javac -d . HelloWorldTest.java
> --
> 1. ERROR in HelloWorldTest.java (at line 9)
> HelloWorld hello_world = new HelloWorld();
> ^^
> HelloWorld cannot be resolved to a type
> --
> 2. ERROR in HelloWorldTest.ja
Hello,
I'm going through the struts2 bootstrap/HelloWorld tutorial and am having
some problems.
When I compile HelloWorld. java I get the this warning:
javac -d . HelloWorld.java
--
1. WARNING in HelloWorld.java (at line 3)
public class HelloWorld extends ActionSupport {
Thanks Wes --
I have a dozen (or so) namespaces that each extend a base name. My base
package does some "standard" tasks, one of which is establishing a custom
interceptor stack that is designated as the default. A newly added
sub-package was failing to behave and it extended the base AND also a
Note that the "index.jsp" at the root of the webapp looks like this:
<% response.sendRedirect("index.action"); %>
The action that this refers to is:
/jsp/index.jsp
For some reason, instead of going to "/jsp/index.jsp", it appears to be
trying to serve "/index.jsp", which seems
I don't think you can even do it that way. It's easier to just access
the parameter map from the ActionInvocation and ActionContext in the
interceptor.
http://www.opensymphony.com/xwork/api/com/opensymphony/xwork2/interceptor/Interceptor.html#intercept(com.opensymphony.xwork2.ActionInvocation)
htt
first and foremost read the doc available at
http://struts.apache.org/2.x/docs/package-configuration.html
note that packages define groupings of actions, results, result types,
interceptors, and interceptor-stacks
and yes one package can extend another package by specifying
extends="base_package"
N
Scott, I looked on the wiki, and it doesn't get real specific. I would
load up config-browser as well as looking through the XWork2 code to
see how it should work. If you get it figured out, let me know, or
leave a comment on the wiki so that we can update the docs in case
someone else finds themse
I'm trying to piece together the app described in chapter 2 from the
Practical Apache Struts book (just from the soure code zip). I have
Struts2.0.11 and Tomcat 6.0.14.
After I got to the point where it appeared to deploy without errors,
when I execute the URL, the browser returns "The page isn't
Does anyone know what the expectations are given this scenario? All I hear
are crickets...
On Mon, Mar 3, 2008 at 8:12 PM, <[EMAIL PROTECTED]> wrote:
> config-browser doesn't deserve to be exposed to the binary mess I have
> created! I have refactored this Struts 2 application into oblivion. I
dumb question, but does that return the locale of the user or the locale
of the server on which the web app is running? if the former, how does
it determine the user's locale? thanks.
--adam
aj2r wrote:
slideharmony wrote:
Hello,
anybody knows how can I get the client machine's Locale f
Hi all,
I'm trying to create an AuthorizationInterceptor.
consider the following scenario: The user clicks on any link and the the
link has resourceID
eg: doSomthig_update.do?resourceID=44
I would like to transfer the resouceID to my interceptor in order to verify
if the user is entitle to
2008/3/4, Martin Gainty <[EMAIL PROTECTED]>:
> anything in particular you're looking for help on?
Probably he/she typed:
struts --help
and strangely the last part of the command finished in an e-mail :-)
Antonio
-
To unsubscribe
Yes.. that's probably where my confusion/misunderstanding came from.
Thank you both and best regards.
--
Robi
Dave Newton wrote:
--- Martin Gainty <[EMAIL PROTECTED]> wrote:
looking at the doc for ModelDriven
http://www.opensymphony.com/xwork/api/com/opensymphony/xwork/ModelDriven.htm
l
--- Cheng Wei Lee <[EMAIL PROTECTED]> wrote:
> What I was thinking of doing, is to prefix the components at the JSP such
> that I can pick them up at action classes by iterating. Suppose I've 5
> textfields that makes up a Person object, and the user dynamically adds 5
> Persons at the JSP and subm
--- Martin Gainty <[EMAIL PROTECTED]> wrote:
> looking at the doc for ModelDriven
>
http://www.opensymphony.com/xwork/api/com/opensymphony/xwork/ModelDriven.htm
> l
> we see the method
> Object getModel()
> Returns:
> the model to be pushed onto the ValueStack instead of the Action itself
What I was thinking of doing, is to prefix the components at the JSP such
that I can pick them up at action classes by iterating. Suppose I've 5
textfields that makes up a Person object, and the user dynamically adds 5
Persons at the JSP and submits, what I would do at my action class is to
loop th
looking at the doc for ModelDriven
http://www.opensymphony.com/xwork/api/com/opensymphony/xwork/ModelDriven.htm
l
we see the method
Object getModel()
Returns:
the model to be pushed onto the ValueStack instead of the Action itself
we can now use OGNL to access the model object -without
I know I can get the values of the request parameters in the action class
and then use them to instantiate an object. Read from the API for
ParameterAware interface, "One common use for this is to have the action
propagate parameters to internally instantiated data objects.". Does this
means that S
--- Cheng Wei Lee <[EMAIL PROTECTED]> wrote:
> Suppose I use JavaScript to allow user to dynamically adds the number of
> textboxes in the form, then submit. Would implementing RequestAware help?
> Do I have to create the variables and getters/setters in advance at the
> action class?
You may als
AFAIK the model is pushed onto the stack *in addition* to the action.
I don't know of anywhere in the docs where it states that the action would be
unavailable.
Dave
--- Roberto Nunnari <[EMAIL PROTECTED]> wrote:
> Hi.
>
> About the ModelDriven interface.. I believe I'd read somewhere
> that w
Hi all,
We've released a plug-in that lets you run Struts apps within Grails. The
announcement is here:
http://docs.codehaus.org/display/GRAILS/2008/03/04/Struts+1+Plug-in+for+Grails+Released
Further info here: http://docs.codehaus.org/display/GRAILS/Struts+1+Plugin
The advantage for struts d
Ok, silly me, the setRequest method would set all request parameters into
the map, which I could then extract and use the values. Thanks for pointing
out this. Should have read the APIs more carefully.
On Wed, Mar 5, 2008 at 1:22 AM, Cheng Wei Lee <[EMAIL PROTECTED]> wrote:
> Suppose I use JavaSc
Suppose I use JavaScript to allow user to dynamically adds the number of
textboxes in the form, then submit. Would implementing RequestAware help? Do
I have to create the variables and getters/setters in advance at the action
class?
On Wed, Mar 5, 2008 at 1:15 AM, Ian Roughley <[EMAIL PROTECTED]>
If you implement the RequestAware interface, the map will contain all
the form values.
/Ian
--
Ian Roughley
From Down & Around, Inc.
Consulting * Agile Process * Open Source
Advanced Struts2 Workshop, April 28-30, Sunnyvale CA
web: http://www.fdar.com - email: [EMAIL PROTECTED]
Cheng Wei L
anything in particular you're looking for help on?
Martin--
- Original Message -
From: "Randall Svancara" <[EMAIL PROTECTED]>
To:
Sent: Tuesday, March 04, 2008 11:12 AM
Subject: --help
>
> --
> Randall Svancara
> Systems Administrator
> 509-335-7093
>
>
> --
Hi.
About the ModelDriven interface.. I believe I'd read somewhere
that when you implement it, your view looses access to the action..
..but using it I found out that if the method/property is not
found in the model, then at some point the action is searched
for it.. so with that in mind, you ca
In Struts 1, we could use map-backed form beans to deal with dynamic forms,
is there something equal in Struts 2?
Hi,
take a look at this plug-in and code, it may be helpful to you.
http://code.google.com/p/struts2-ssl-plugin/
Thanks,
Nuwan
David Loup wrote:
Hi,
I'm trying to have Struts 2 redirect over HTTPS protocol.
On submit of a form calling editPerson.action (on a page already on
HTTPS),
S2.0 doesn't have interceptor ref annotations [1]. This functionality may
have been added in S2.1; I don't recall at the moment.
Dave
[1] http://struts.apache.org/2.x/docs/annotations.html
--- [EMAIL PROTECTED] wrote:
>
> Hi all,
>
> I'm trying to build an application by applying ZERO configu
Well at this point I'm not proposing nothing in particular, just
trying to understand the rationale behind this relation between
conversation scope and model driven, which is not clear to me why it
is designed this way.
I thought that a possible explanation would be to keep the view (JSP)
pages un
I don't know if struts 2 provides functionality for that but I've used acegi
for a scenario such as the one you described.
Oscar
On Tue, Mar 4, 2008 at 12:25 PM, David Loup <[EMAIL PROTECTED]>
wrote:
> Hi,
>
>
>
> I'm trying to have Struts 2 redirect over HTTPS protocol.
>
>
>
> On submit of a f
--
Randall Svancara
Systems Administrator
509-335-7093
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi all,
I'm trying to build an application by applying ZERO configuration (only
annotation) pattern.
I have some actions that have some interceptors defined inside just like
below:.
/login.jsp
I would like to know if there is an action annotation feature covering
t
The problem with this is that checkboxes only exist when they are
checked. If the box is not checked, nothing is sent to the form for
that box. Thus you are seeing information in your pre-populated data
for those boxes that were checked when the form was submitted. It's not
an easy fix, and
thks for the rply..
really silly i m even knowing this i did this mistake.
:)
On 3/4/08, Lukasz Lenart <[EMAIL PROTECTED]> wrote:
>
> > *class* StrutsExample {
>
> Your class should extend ActionSupport or return Action.SUCCESS (not
> SUCCESS)
>
>
> Regards
> --
> Lukasz
>
> http://www.linkedin
> *class* StrutsExample {
Your class should extend ActionSupport or return Action.SUCCESS (not SUCCESS)
Regards
--
Lukasz
http://www.linkedin.com/in/lukaszlenart
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional com
hi all,
i am using MyEclipse for developing struts2 based example everything is
working fine
but in my execute method when i am trying to return the SUCCESS it is giving
the error that it can not resolved error.
below is the code i have written
*
package* aum.struts.tester;
*
import* java.sql.D
Hi Gabriel-
are your proposing an enhancement to s:head as i think this concept is
already covered by s:head which sets up global attributes?
http://struts.apache.org/2.0.6/docs/head.html
or a separate "s:conversation" tag ?
M-
- Original Message -
From: "Gabriel Belingueres" <[EMAIL PRO
Hi All,
I have a login page with userId and password as its fields and its
corresponding ActionClass-validation.xml file to validate the page.After
logging in i have provided a link called "updateProfile" inorder to update
the details provided by user during the time of registration by forwarding
Why model-driven? I don't fully get it.
I've done several S2 apps by now and never fell the time to use the
model driven interface before (for me this is syntax sugar.)
Now why is this important for supporting conversation scope?
Is it for not writing code like
${conversationsMap[conversationId].m
--- hns <[EMAIL PROTECTED]> wrote:
> result type error undefined
>
> try {
> JasperCompileManager.compileReportToFile(
> "jasper/our_jasper_template.jrxml",
> "jasper/our_compiled_template.jasper");
> } catch (Exception e) {
> e.printStackTrace();
> return
--- hns <[EMAIL PROTECTED]> wrote:
> i have already download and see all examples
> but it can show my type example
> how can i achieve it
You can ask on a YUI forum; this forum is for Struts.
Dave
-
To unsubscribe, e-mail:
thanks
i have already download and see all examples
but it can show my type example
how can i achieve it
--
View this message in context:
http://www.nabble.com/about-yui-tp15821595p15826283.html
Sent from the Struts - User mailing list archive at Nabble.com.
---
ooops
extremely thankful to you
its my mistake
--
View this message in context:
http://www.nabble.com/sitemesh-problem-tp15759026p15826155.html
Sent from the Struts - User mailing list archive at Nabble.com.
-
To unsubscribe,
yes after understanding my mistake i have added
all commons-* .jar and got another error at
result type error undefined
because
i have
try {
JasperCompileManager.compileReportToFile(
"jasper/our_jasper_template.jrxml",
--- mteccles <[EMAIL PROTECTED]> wrote:
> Now i just thought the action is wired by spring as a singleton, and the
> fielderrors are a property of this object... maybe forms should not be
> singletons. still like to know thoughts
Actions are assumed to be created per-request. If it's a singleton I
--- hns <[EMAIL PROTECTED]> wrote:
> This problem solved using done
>
>
>
>
> /jasper/our_compiled_template.jasper
> myList
> PDF
>
>
>
--- hns <[EMAIL PROTECTED]> wrote:
> now i want something like that when yui widget highlight on the screen
> other area of my page will be shows in dark shadow ,it means remain
> unactive how i can achieve it
http://developer.yahoo.com/yui/
Dave
-
hns wrote:
>
> ...
> input.button {
> margin: 0;
> font: bolder 12px Arial, Sans-serif;
> border: 1px solid #CCC;
> padding: 2px 3px;
> background: #FFF;
> color: #88ac0b;
> }
>
>
Your fail is here. You write input.button, but this is wrong, replac
thanks
my refresh.css
-
/
HTML ELEMENTS
/
/* Top Elements */
* { margin: 0; padding: 0; }
body {
background: #CC;
font: 70%/1.5em Verdana, Tahoma, arial, sans-serif;
This problem solved using done
/jasper/our_compiled_template.jasper
myList
PDF
--
Its seems correct too. I only think that you must have a mistake in your
Refresh.css
hns wrote:
>
> my generated html file excluding class button from sendmessage.jsp ,it
> gives problem as i explained earlier
>
>
>
>
> http://www.w3.org/1999/
my generated html file excluding class button from sendmessage.jsp ,it gives
problem as i explained earlier
http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
label
{
Can you put here generated source (html received by browser) of
sendMessage.jsp?
In other hand, in css file you should specify class names with an initial
dot, ie: .button not button
hns wrote:
>
> now this is actual flow
> index.jsp redirected to welcome.jsp(welcome.do)
>
> my welcome.jsp sh
Hi all,
I'm trying to make some code run for a project in the company. For every
action we have a prepare action.
The project build but when I try to access the action I get an
application error, probably from struts. No
exception is thrown in the server log (oc4j 10.1.2 btw). Also I can see
th
Hi,
I'm trying to have Struts 2 redirect over HTTPS protocol.
On submit of a form calling editPerson.action (on a page already on
HTTPS), the following redirects to HTTP.
listPersons
/pages/viewPerson.jsp
Is there any configur
now this is actual flow
index.jsp redirected to welcome.jsp(welcome.do)
my welcome.jsp shows perfectly---
welcome.jsp
-
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/page
Now i just thought the action is wired by spring as a singleton, and the
fielderrors are a property of this object... maybe forms should not be
singletons. still like to know thoughts
mteccles wrote:
>
> Hi,
>
> I developed a form that does some validation. I included validation and
> workflo
Hi,
I developed a form that does some validation. I included validation and
workflow interceptor in the actions stack.
The validation is very simple, it makes sure one field is a minimum length.
It works fine except for the following scenario:
1) submit invalid form (input is returned with fiel
It seems correct too :-/
Can tou put here (one more time :-P) the generated html of a page of the
/webmail namespace?
--
View this message in context:
http://www.nabble.com/sitemesh-problem-tp15759026p15824174.html
Sent from the Struts - User mailing list archive at Nabble.com.
---
i am trying to use jasper report functionality from document of strtus
2.0.11
after creating person.java at com.mevipro.test
and com.mevipro.test.action.JasperAction and
our_jasper_template.jrxml
i have write in strtus.xml
/jaspe
thnaks for showing interest
main.jsp
<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator";
prefix="decorator" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/page"; prefix="pages"%>
http://www.w3.org/1999/xhtml"; xml:lang="e
It seems correct. Can you put here main.jsp too?
--
View this message in context:
http://www.nabble.com/sitemesh-problem-tp15759026p15823935.html
Sent from the Struts - User mailing list archive at Nabble.com.
-
To unsubscrib
2008/3/4, Jerry Gustanski <[EMAIL PROTECTED]>:
>
> Does that go in the Web.xml? It doesn't seem to recognize tag
What version of servlet are you using?
The fragment that I posted was for servlet 2.4. If you are using 2.3, simply
avoid the element (or upgrade to servlet 2.4 :-) ).
Antonio
Does that go in the Web.xml? It doesn't seem to recognize tag
- Original Message -
From: "Antonio Petrelli" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Tuesday, March 04, 2008 1:24 AM
Subject: Re: Rad 6.0
2008/3/4, Jerry Gustanski <[EMAIL PROTECTED]>:
Hey! I put them
--
View this message in context:
http://www.nabble.com/Jfree-chart-tp15823524p15823524.html
Sent from the Struts - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
Hi All,
I have a jsp where we list down some dynamic checkboxes.
for this we use s:checkbox tag inside a s:iterator ,
in my action class I have a string[] named fullMarket and all the required
getters and setters are provided there. Everything happens successfully,
when we submit the
2008/3/4, Jerry Gustanski <[EMAIL PROTECTED]>:
>
> Hey! I put them there and it worked. I thinked that solved the problems I
> was having last night too. I don't know how to set up the referenece in
> web.xml. Can you tel me hoe to do that?
http://struts.apache.org/tags-html
/styles/*
/scripts/*
/images/*
/index.html
/Error.jsp
/CSS/*
/struts/*
/dojo/*
/struts/ajax/*
/js/yui/*
/*
Hey! I put them there and it worked. I thinked that solved the problems I
was having last night too. I don't know how to set up the referenece in
web.xml. Can you tel me hoe to do that?
BTW, what part of the world do you live in?
Thank you very much for the help so far.
Jerry
- Original M
hns wrote:
>
>
>
> aj2r wrote:
>>
>>
>> Can you put here your decorators.xml?
>>
> i have putted decoraters.xml at web-inf folder
>
Can you put HERE your decorators.xml?
--
View this message in context:
http://www.nabble.com/sitemesh-problem-tp15759026p15823087.html
Sent from the Struts
Hi,
Thank you for your quick reply. I tried your suggested syntax and didn't
work either.
However, I like a lot more your last proposal so I will give it a shot.
Thanks!
Oscar
On Tue, Mar 4, 2008 at 1:05 AM, Jeromy Evans <
[EMAIL PROTECTED]> wrote:
> oscar perez wrote:
> >
> >
> >
> >
> >
> I s
2008/3/4, Jerry Gustanski <[EMAIL PROTECTED]>:
>
> Here's the error:
>
> JSP Processing Error
> HTTP Error Code: 500
>
>
> Error Message:
> JSPG0047E: Unable to locate tag library for uri
> http://struts.apache.org/tags-html
Did you put the JAR containing the tag libraries in your
81 matches
Mail list logo