I have a strange problem. I am using Struts taglib version 1.3.5, but I
notice for LinkTag, FormTag, ReWriteTag the parameters in the querystring
are being appended with the ampersand unencoded - this is leading to a
validation error for HTML 4.01
for example : I have
I am having problems defining a bean with a Session Object value.
I want to retrieve the Object within the JSP and display navigation depending
on the values within the session
Any ideas?
I can only get it working when I check directly in JSP for the the session
within the logic:present tag. I
Ted,
Appreciate your suggestion.
But on selection of language Options,It is not reflecting in Label
fields.Obliged to receive early response.Refined Codes:
s:form action=Login
s:i18n name=/package path../
s:combobox label=%{getText('language')} name=language
There a lot of different ways, simplest one:
var val = document.getElementById(some_id).value;
or dojo.byId(id).value, if you are using Dojo, or $F(id) is you are
using Prototype.
regards
musachy
On 2/7/07, Jeevan Kumar Kade [EMAIL PROTECTED] wrote:
Hi musachy,
Thanks a lot for your
Reported bug:
https://issues.apache.org/struts/browse/TILES-104
Let's continue any further conversation on the [EMAIL PROTECTED] mailing list.
Joe Germuska wrote:
OK, a few more notes:
just to be clear,
I have specified struts.i18n.encoding=UTF-8.
This is not used to directly
--- Dale Newfield [EMAIL PROTECTED] wrote:
Dave Newton wrote:
http://cwiki.apache.org/WW/submit.html
Submit takes both action and method parameters;
perhaps that's what you're looking for?
The example makes me think that the method attribute
enables the ability to specify get vs. post
Yes, you're right that the form submit was causing the system to forward to
whatever the action said, which in my case was the blank page. You'll see from
the later emails in the thread yesterday that I solved that by forwarding to
the action which populated the original page.
I need the
--- manoj sinha [EMAIL PROTECTED] wrote:
Oh Yes!! Label should reflect changes as per
Language Selection
list={'English','French','Italian'}
value=English
label=%{getText('loginlang.loginid')}
name=username/
[...]
Ah. Hmm. That's not really how it works...
You're
--- Laurie Harper [EMAIL PROTECTED] wrote:
What do I need to do to make @Result annotations on
my action methods work?
What doesn't work/what are the symptoms? I had it
working under 2.0.4 (w/ the 2.0.4 jars, anyway) until
it seemed I wouldn't be able to use it because of an
apparent conflict
Like I said before you can use Ajax to submit the form, and the page won't
refresh, how to do it depends on what JS framework you are using, if any.
regards
musachy
On 2/8/07, Christopher Loschen [EMAIL PROTECTED] wrote:
Yes, you're right that the form submit was causing the system to forward
The solution Christopher and Dave discuss above can be handled with this in
the Apache httpd.conf file:
RewriteRule ^(.*);jsessionid=.*$ $1
This strips the session ID from anything that the HTTPD server is handling,
although it should still get passed through the proxy. To be honest, our
Do you have the web.xml init-param actionPackages listing the package
that the action is in?
/Ian
Dave Newton wrote:
--- Laurie Harper [EMAIL PROTECTED] wrote:
What do I need to do to make @Result annotations on
my action methods work?
What doesn't work/what are the symptoms? I
Its alright since you have forwarded to the action which populated the
original page to solve the blank page problem. There are no other ways
beside submitting form to allow your java code to recieve the parameter
values passed from the jsp to action.
From: Christopher Loschen [EMAIL
I'm not all that familiar with JS, to be honest, and I've never had the
chance to use Ajax (but want to learn). What I have now is working, but
I'd be happy to learn how to do it without refreshing the page -- that
does seem like a more elegant solution to me. What do you suggest? We do
use JS for
class FormBean() {
private String xxx;
public String getXXX() {
return this.xxx;
}
public void setXXX(String xxx) {
this.xxx = xxx;
}
}
session.setAttribute(formbean,new FormBean().setXXX());
FormBean oFormeBean = (FormBean)session.getAttribute(formbean);
String xxx =
Hi guys,
I have been trying to solve this error for a while now.
The issue, when the user click on a link or click on submit button
quickly twice consecutively.
HTTP Status 500 -
type Exception report
message
--- Uday Karrothi [EMAIL PROTECTED] wrote:
Is this an error in my code?
Is
[...]
root cause
java.lang.NullPointerException at
com.nsc.tpms.action.pgEcnDisplayAction.execute(pgEcnDisplayAction.java:219)
[...]
your code?
d.
Check Prototype out, here is a good tutorial:
http://www.sergiopereira.com/articles/prototype.js.html, basically what
you need is something like:
|**var myAjax = new Ajax.Request(
url,
{
method: 'get',
parameters: Form.serialize(formid),
onComplete: function() {
Hi all:
From a page in my struts application, I need to open a popup window with some
fields to pick up some values. I created an ActionForm with the filed's
properties and an Action asociated to it. The problem is that when I try to
open the popup the following exception is raised:
Cannot
There needs to be an element in your struts-config.xml action
path=/criteriosOferta name=yourFormBeanName type=... etc.
Whenever you use an html:form tag, Struts must be able to find (in
struts-config.xml) the action you specify in the action attribute, and that
action must have a name attribute
Have 2 radio buttons of ID and Name and an input field to enter criteria.
When the ID is selected the criteria the user entered should be numeric.
Should display the user with the appropriate message that only int
value is allowed.
When the Name is selected the criteria the user entered
Thanks for your help Joe, but I allready did everything you said. The action
I'm using works perfectly in a normal window... the problem occurs when I use
it in the popup window. I'm using struts 1.1. This is the struts-config code
snippet:
Form:
form-bean name=criteriosOfertaForm
Theres a ton of choice on which AJAX library to use, many of them very
good. However, since your working in Java specifically, and since you say
you are not all that familiar with JS, you may prefer a solution that will
(in most cases) require ZERO Javascript coding, and such a thing exists:
The @Result annotation should be at the class level, not the method level.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Sorry its not resolved..Can it be possible by using some Struts2 Tag.
Suggestion and Solutions are appreciated...
Dave Newton [EMAIL PROTECTED] wrote: --- manoj sinha wrote:
Oh Yes!! Label should reflect changes as per
Language Selection
list={'English','French','Italian'}
--- manoj sinha [EMAIL PROTECTED] wrote:
Sorry its not resolved. Can it be possible by using
some Struts2 Tag. Suggestion and Solutions are
appreciated...
I thought I gave you reasonable solution, and it's an
easier one than dynamically changing the labels via
Ajax, which I don't really want
Could anyone point me to a resource which explains how to validate a
list backed form using the validator framework.
Thanks,
Harsh.
Hello List,
i try figuring out how security will work with struts2. I have an EJB3
application - the frontend will be written using s2.
I added the RolesInterceptor to an action:
- code
interceptor-ref name=roles
param name=allowedRolesportalUser/param
Hello,
Whenever I get an error (of any nature) in a jsp I always get the same
exception. It is very dificult to find out whats causing the error.
Does anybody know how to dig the stack trace tiles produce one a
included jsp throws an error.
Example:
00:08:20,121 ERROR JspTilesRequestContext:67
Hi Dave?
Yeah that is my code but the thing is if the click the same link one
and wait the error does not occur , But if I click the link
consecutively fast , this error occurs.
I will take a deeper look into my code.
Thanks Dave.
Chandra
On 2/8/07, Dave Newton [EMAIL PROTECTED] wrote:
---
--- Uday Karrothi [EMAIL PROTECTED] wrote:
Hi Dave?
Hi?
You are probably dealing with a typical double-submit
issue.
Dave
Have a burning question?
Go to www.Answers.yahoo.com and get answers from real
You probably don't need to send it to an action, you just need to render
the HTML form for authentication. So, login.jsp would suffice. As far
as s2 is concerned, authentication is completely external. The role
interceptor just uses the HttpServletRequest to obtain the roles that
the
Hi,
I am trying to validate a form which has an arraylist of Address
objects. I would like some pointers on this or any references etc.
Harsh.
Dave Newton wrote:
Hrm. Did you try it? I didn't actually see an example
on the http://cwiki.apache.org/WW/submit.html page
that used s:submit.../'s 'method' attribute.
D'oh. I was looking at example 4 and mistook the s:form tag as a
s:submit tag. Glad it does what you want.
-Dale
Yariel:
Your struts config looks good. I can't guess why you'd have different
results in a popup vs. a regular page unless you are perhaps using different
modules or somehow have the webapp deployed under two contexts with slightly
different configurations. Have you done a full clean
Hi everybody,
I explain my problem. I am doing an application with struts and velocity
that permit to automatically generate my forms.
To make simple my form would be something like that:
form name=element action=$link.setAction(runJob)
#foreach ($element in $myBean.listofelements )
input
--- Pierre-Alain Branger [EMAIL PROTECTED] wrote:
I investigated on DynaActionForm but it does not
seem that I can do that with it.
You can't use an array in DynaActionForm?
Dave
Don't pick lemons.
See
I'm working to simplify the stack that I used to use in a WebWork
application. Here's what I currently have:
interceptors
!-- Interceptor to handle allowing only admins to certain
actions --
interceptor name=adminOnly class=adminInterceptor/
!--
Hi again,
Yes I have seen that it is possible to use an ArrayList in DynaActionForm.
Maybe you ll be able to enlight me:
- When I use an ArrayList all controls of the same name (input
type=text name=value) added to this list inclusding the empty ones,
isn'it
- Admitting it do, how can I retreive
--- Pierre-Alain Branger [EMAIL PROTECTED] wrote:
Yes I have seen that it is possible to use an
ArrayList in DynaActionForm.
[...]
input type=text name=value[index]
You may need to just add an index from your iteration
to the input tag.
http://struts.apache.org/1.2.9/faqs/indexedprops.html
Downloaded from site the struts-2.0.1-apps this morning. Extracted the
download, and deployed struts2-showcase-2.0.1.war to my local tomcat
5.5 webserver.
When hitting the app, I issue:
[http://localhost/struts2-showcase-2.0.1] and it must hit an
index.html and returns this:
Great! I'll test it and let you learn!
Thanks a lot,
Pierre
--- Pierre-Alain Branger [EMAIL PROTECTED] wrote:
Yes I have seen that it is possible to use an
ArrayList in DynaActionForm.
[...]
input type=text name=value[index]
You may need to just add an index from your iteration
to the
Thanks Frank -- I've been reading your posts on JWP with great interest
for quite a while, and I'll bet your book is another good resource.
The current project (or at least this piece of it) has to be finished by
tomorrow, so I may not be able to introduce Ajax just yet. However, I'm
definitely
On Thu, February 8, 2007 4:46 pm, Christopher Loschen wrote:
Thanks Frank -- I've been reading your posts on JWP with great interest
for quite a while, and I'll bet your book is another good resource.
*Of course* it is :) (what, you expected a different answer?!?) FYI, my
new book, Practical
Well, I have tried the following:
With the following velocity code:
#set( $i = 0 )
#foreach ($param in $dataApplication.paramsList )
$param.nameparam : $param.descparam
input type=hidden name=nameParam[$i] value=$param.nameparam
input type=text name=valueParam[$i]
#set( $i = $i +1 )
#end
--- Pierre-Alain Branger [EMAIL PROTECTED] wrote:
form-bean name=runJobForm
type=org.apache.struts.action.DynaActionForm
form-property
name=nameParam
type=java.util.ArrayList/
form-property name=nameParam
type=java.lang.String[]/ ?
Sorry; I really don't
unsubscribe
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I am thinking of disabling the linjk and the button once the user
presses the button or the link. The articles taht went through for
dobule submit issue need a whole of changes in my app. I am past that
change now.
Any other options to be suggessted.
Thanks Dave for your time.
regards,
Dave Newton wrote:
--- Laurie Harper [EMAIL PROTECTED] wrote:
What do I need to do to make @Result annotations on
my action methods work?
What doesn't work/what are the symptoms? I had it
working under 2.0.4 (w/ the 2.0.4 jars, anyway) until
it seemed I wouldn't be able to use it because of
mraible wrote:
Also, are there any performance reasons to have separate stacks for display
only (list) screens vs. forms (crud)?
I recently went through a series of performance monitoring and tuning
and found that standard interceptors that are NOT executed are logged as
taking 0ms. So,
Funny thing also, when I went to planet struts, their showcase wasn't
working either?
There was a problem with the account where PlanetStruts is installed,
and I need to reinstall everything. Right now, nothing there is
working, or even installed.
No ideas WRT to your 404. I'd probably try a
I can confirm these results based on my own webwork profiling
experience. I wouldn't worry too much about interceptors that you don't
use--the penalty is very minimal.
David H. DeWolf wrote:
mraible wrote:
Also, are there any performance reasons to have separate stacks for
display
only
Nate Drake wrote:
The @Result annotation should be at the class level, not the method level.
Doh! That was the problem. I could have sworn the examples I looked at
had it at the method level. Mea culpa!
Thanks,
L.
-
To
Hi Guys,
Please help me to solve this problem:
Scenario:
In my Jsp page I am getting an ArrayList Object that is having say 50
sub object. Now in this page I want to Implement the pager concept so
that I'll display only 10 records at a time and user will have the
option to navigate
use displaytags http://displaytag.sourceforge.net/11/
- Original Message -
From: Kandelwal Abhishek [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Friday, February 09, 2007 6:51 AM
Subject: Pager Tag in Struts1.1
Hi Guys,
Please help me to solve this
55 matches
Mail list logo