--- On Fri, 7/25/08, holod <[EMAIL PROTECTED]> wrote:
> I've seen tag, but I didn't understand how can
> I invoke request to action manually (by mouse click for example)
>?
>http://struts.apache.org/2.x/docs/dojo-anchor.html
>Note that if you're using S2.0 you'll need to look at the docs at:
--- On Sun, 7/27/08, Dave Newton <[EMAIL PROTECTED]> wrote:
> (That being said, as this question seems to come up rather
> frequently, maybe the include tag should add its params to
> the request used for the include, if that's possible?)
It already does; not sure what I was thinking there. (I do
Now, I have another problem:
My iterator generates some content
I want to give id="bla-bla" to my generated raws of table.
For example iterator makes 5 iterations, I get 5 rows (some
content), but I want to set id attribute for them:
some content
some content
some content
some content
some conten
Hi,
I use this code:
"/>
some content
For this I usually do something like (untested):
...
Btw, you can't use OGNL expression in non-struts tags (you tried to use
it in tr).
There's a tabletags taglib for struts2, which might be useful for you.
Hope
--- On Mon, 7/28/08, holod <[EMAIL PROTECTED]> wrote:
> [...] but I want to set id attribute for them:
> some content
> [...]
>
> I use this code:
>
> value="attachedMainDocRow value="document.index"/>"/>
That's not valid JSP; you can't nest tags like that.
> Any suggestions, please, can'
That's not valid JSP; you can't nest tags like that.
> Any suggestions, please, can't understand mistake.
That's not what is for; it's for parameterizing other tags.
">bar
You could use to create the ID if you don't want to create it
on-the-fly.
">
Some content
When I inspect source of g
">
works fine. It just starts from 1, not from 0
Why? I can't understand what has happened to index.
count is not so bad, thanks for you help and cooperation!
--
View this message in context:
http://www.nabble.com/Problem-accessing-iterated-object-%28%3Cs%3Aiterator%29-tp18614028p18686074.html
I use tag.
It has attribute targets=""
My targets generated inside It means they have distinguish
Id's:
someContent
someContent
someContent
I make id attribute of with this expression:
">
It works fine.
Each generated has it's own
I want each use it's own as targets
This is my code:
clic
targets[]
works fine,
http://www.nabble.com/Compose-String-value-and-stack-value-into-String%2C-set-result-as-property-value-of-struts2-tag-tp18686786p18687298.html
Sent from the Struts - User mailing list archive
--- On Mon, 7/28/08, holod <[EMAIL PROTECTED]> wrote:
> ">
> Some content
>
>
> Is there any issues with status of iterator?
None that I'm aware of; I use it all the time.
I'd strongly recommend not naming your status variable "document", since it's
not a document. It's a status.
It wouldn't
Hi,
This is my code:
Use something like targets="attachedMainDocRow%{#status.index}" .
Joachim
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I use tag (dojo-anchor)
This tag invokes action, which has result type="json" (I'm using JSON plugin
for struts2).
It returns values of all public get*() methods of invoked action in JSON.
I want to do this thing:
1.catch result, parse it and get value of only one public get*() method.
2.write i
--- On Mon, 7/28/08, holod <[EMAIL PROTECTED]> wrote:
> I want to do this thing:
> 1.catch result, parse it and get value of only one public
> get*() method.
> 2.write it (targets attribute is specified). Seems like I
> just need to
> override data accept functionality
> 3.Execute JS script. This s
Hi,
When I start my struts application in the same IE instance in 2 tabs I get
the same sessionid and when I disconnect from one the other is
systematically disconnected. I think there is an overlapping of session in
my application. The same problem occur using FireFox. Additionally, I don’t
hav
Hi Newton,
my first form doesn't redirect, it just send some data to action class and
updates targeting div in the page to show updated data from my class, so it
works fine, but it shouldn't redirect from page. But, this second form
should redirect and yes it doesn't have target specified, as I d
--- On Mon, 7/28/08, OTA_DZ <[EMAIL PROTECTED]> wrote:
> I think there is an overlapping of session in
> my application.
Technically it's an overlapping of sessions in the browser.
Different browsers handle these things differently; in general tabbed browsing
will share a single session. That's
--- On Mon, 7/28/08, Milan Milanovic <[EMAIL PROTECTED]> wrote:
> this second form should redirect and yes it doesn't have target
> specified, as I don't want to specify any part of the page, but
> I want to show (redirect to) completely new page. What can I do ?
Don't use Ajax?
Dave
-
Thanks! I've read manual you gave me and I've decided to use
documentTitle
I've excluded one property, the final result looks like:
{"resultOfAction":"Error appeared.Please call support service."}
I don't know how to put away "key" (resultOfAction), { and }, also I don't
need quotes a
Thanks! I've read manual you gave me and I've decided to use
documentTitle
I've excluded one property, the final result looks like:
{"resultOfAction":"Error appeared.Please call support service."}
I don't know how to put away "key" (resultOfAction), { and }, also I don't
need quotes a
--- On Mon, 7/28/08, holod <[EMAIL PROTECTED]> wrote:
> I've excluded one property, the final result looks
> like:
> {"resultOfAction":"Error appeared.Please
> call support service."}
>
> I don't know how to put away "key"
> (resultOfAction), { and }, also I don't
> need quotes and :.
What do you
Hi Dave,
well I don't understand what is the problem, I use ajax for my first form,
but not to second which should redirect ?
--
Thx, Milan
newton.dave wrote:
>
> --- On Mon, 7/28/08, Milan Milanovic <[EMAIL PROTECTED]> wrote:
>> this second form should redirect and yes it doesn't have target
--- On Mon, 7/28/08, Milan Milanovic <[EMAIL PROTECTED]> wrote:
> well I don't understand what is the problem, I use ajax
> for my first form, but not to second which should redirect?
...
Not reloading the entire page is one of the main points of Ajax.
If you want to reload the entire page (like
The version of IteratorStatus found in version 2.0.11 of the docs [1] has a
getIndex() method; has it subsequently been vaporized?
[1]
http://struts.apache.org/2.0.11/struts2-core/apidocs/index.html?org/apache/struts2/views/jsp/IteratorStatus.html
jk
On Mon, Jul 28, 2008 at 4:28 AM, holod <[EMAI
Dave Newton yahoo.com> writes:
> It already does; not sure what I was thinking there. (I do know; I was looking
at the wrong code.)
>
> I'm able to access parameters set via a nested using both
> and ${param.foo}.
>
> If the value is coming from the action then you shouldn't even need to set
I forgot to change theme from ajax to simple in my second form. Now it works,
sorry.
--
Milan
Milan Milanovic wrote:
>
> Hi Dave,
>
> well I don't understand what is the problem, I use ajax for my first form,
> but not to second which should redirect ?
>
> --
> Thx, Milan
>
>
> newton.dave
--- On Mon, 7/28/08, Eric Nielsen <[EMAIL PROTECTED]> wrote:
> Dave Newton yahoo.com> writes:
> > It already does; not sure what I was thinking there.
> (I do know; I was looking
> at the wrong code.)
> >
> > I'm able to access parameters set via a nested
> using both value="${param.foo}"/>
> >
Hi,
I am new to Struts2 and I am having a problem displaying content with IE. It
works fine in Firefox.
I am using Struts2, Acegi for login, Hibernate for ORM and struts2 ajax tags
for display
I have a parent tabbed panel and a child tabbed panel.
Once I login everything works fine however afte
I have a function that POSTs data to a third party HTTPS server: void
postData(String sURL, String sData);
I need to call this function as a background thread from an Action class, so
that the user doesn't have to wait on the connection to establish. How can
I safely call this function so that
I forgot to mention that I am using Struts 1.1.
dave.smith wrote:
>
> I have a function that POSTs data to a third party HTTPS server: void
> postData(String sURL, String sData);
>
> I need to call this function as a background thread from an Action class,
> so that the user doesn't have to w
You may want to add support for conversation scope to your application
so that objects stored in session scope doesn't get mixed up.
2008/7/28, Dave Newton <[EMAIL PROTECTED]>:
> --- On Mon, 7/28/08, OTA_DZ <[EMAIL PROTECTED]> wrote:
> > I think there is an overlapping of session in
> > my applica
Yes you can access them via JSTL, like Dave mentioned (using ${param.xx} ),
but not via OGNL.
If you want to access those params via OGNL use JSTL to set them into the
page scope, then use #attr to get them.
I hate JSTL's choose/otherwise tags, and prefer struts if/else tags, so I
use this a lot in
--- On Mon, 7/28/08, Becky.L.O'[EMAIL PROTECTED] wrote:
> If you want to access those params via OGNL use JSTL to set
> them into the page scope, then use #attr to get them.
Or in request scope, then you don't need to specify scope or #attr, IIRC.
Dave
--
All,
I have a usecase that I can't find any docs for in the usual places. Of
course, it may just be that I'm not looking hard enough. However, I wonder
if anyone else has done this kind of thing.
My problem is this...
I have a series of actions that map to distinct urls ... /Action1.action,
/Ac
Hi,
I am a newbie to struts 2. I have a question about the struts 2 select tag.
When I try to use a property defined in package.properties for the "list",
For Eg:
(project.names is defined in the package.properties)
i get an exception that states that the project.names is not a enumeration
or
please help ! SOS
dynamicd wrote:
>
> Hi,
>
> I am new to Struts2 and I am having a problem displaying content with IE.
> It works fine in Firefox.
> I am using Struts2, Acegi for login, Hibernate for ORM and struts2 ajax
> tags for display
>
> I have a parent tabbed panel and a child tabbed
I have a method that takes a string arg and returns a list. the object
is accessible from the action.
how can I pass a value accessible on my page to the method and use the
result in an iterator?
thanks,
james
On 7/28/08, dynamicd <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I am new to Struts2 and I
I know what you're thinking... web.xml has no action mapping, but it does!
http://java.sun.com/xml/ns/javaee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";>
Struts
The web.xml doesn't have anything to do with the error message; it thinks there
isn't an action configured at the URL you're requesting.
Impossible to help without more information.
Dave
--- On Mon, 7/28/08, John Moose <[EMAIL PROTECTED]> wrote:
> From: John Moose <[EMAIL PROTECTED]>
> Subject
Hi Dave,
I have the following snippet of DashbdController class that I am expecting
to hit with the following URL:
http:/localhost:8080/Dashbd
<---SNIPPET
package com.myeclipse.ozone;
import java.util.Collection;
import com.myeclipse.hibernate.*;
import org.hibernate.HibernateException;
impo
and I probably should have included this as well:
Struts Problem Report
Struts has detected an unhandled exception:
*Messages*:
There is no Action mapped for namespace / and action name dashbd.
--
Stacktraces *There is no Action mapped for namespace / and action nam
Hmm, I wonder if it was the same issue I was having with 2.1.3 a week or so ago
that I haven't had time to re-visit--so it actually could be the web.xml
(specifically the dispatcher being used) and I may have put my foot in my mouth
(again).
Somebody followed up saying the original FilterDispat
What's the correct way of writing a good 404 or action not found page? Does
s2 have something like a fallback action if nothing can be found?
Paul
On Mon, Jul 28, 2008 at 4:04 PM, Dave Newton <[EMAIL PROTECTED]> wrote:
> Hmm, I wonder if it was the same issue I was having with 2.1.3 a week or so
Given the same property specified in struts.xml and struts.properties, which
value will take precedence?
Paul
the one on struts.properties
musachy
On Mon, Jul 28, 2008 at 5:18 PM, Paul Benedict <[EMAIL PROTECTED]> wrote:
> Given the same property specified in struts.xml and struts.properties, which
> value will take precedence?
>
> Paul
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd
Hi Dave,
You can just create any class that extends the Thread object or implements the
runnable interface. The required method, run(), should abstract what u want to
do, (connect to the 3rd party server). Instantiate that class then call its
start() method from the Struts action that should tr
If you're using Java 1.5+, the standard concurrent package provides
everything you need.
http://java.sun.com/j2se/1.5.0/docs/api/java/util/concurrent/package-summary.html#package_description
There should be several tutorial available for it and it's well with
understanding the various approa
Hi,
I am sending an message for the successful submission of the form by using
actionMessage .In the struts xml file i have used the redirect action and
passed action message as parameter. In the display i am getting the message
.But the problem is the message is getting formatted by [] these c
If you don't have complex URL patterns, I'd continue down the JEE path.
It should work. Although I haven't tried it with websphere it's a
fundamental requirement of the container.
I'd temporarily switch to HTTP BASIC instead of LDAP to try isolate the
problem.
Yes, creating a custom Secur
holod wrote:
As I understood, I have to use dojo plugin (additional jar).
Please, tell me, is it possible to avoid usage of dojo plugin?
Seems like my problem can be solved:
if would not send request automatically, when page is loaded, but
only on user mouse click, I would be happy using it w
I'm running into an issue where a converter i've setup is failing (or
appears) to fail to execute. First, might I make the assumption that type
converters and validators can be represented as beans. Reason being is
because I need to be able to do dependency injection via spring.
So, my problem is
Hi,
insert instead select tag, it might
give You some more info.
Best greetings,
Pawel Wielgus.
On 28/07/2008, Deepika Appana <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am a newbie to struts 2. I have a question about the struts 2 select tag.
>
> When I try to use a property defined in package.proper
Hi,
have You tried ?
Best gretings,
Pawel Wielgus.
On 28/07/2008, James Carr <[EMAIL PROTECTED]> wrote:
> I have a method that takes a string arg and returns a list. the object
> is accessible from the action.
>
> how can I pass a value accessible on my page to the method and use the
> result in
Andy Law wrote:
e.g.
/foo/Action1.action runs action1 passing in 'foo' and /bar/Action1.action
runs the same action passing in 'bar'.
How should I code/configure/build this kind of thing.
In Struts 2.0.x, you may be able to use wildcards in the namespace
depending on how many variation
53 matches
Mail list logo