Please help me. I don't really understand this debug message: ReferenceError:
validateForm_createuser is not defined. Here is the code:
/createUser.jsp
and the validation xml is named: UserAction-createuser-validation.xml and is
as
Thanks Dave. I tried and I seem to get correct output when using
properties files but the problem occurs when I put an object containing
Chinese data on the value stack. The same code works fine if I bypass
the action and run it directly from a jsp.
Dave Newton wrote:
I am, but all the Chines
Hi well in webwork i use the clean(); method of the class ActionSupport i
think its the same in S2. Just make a reset() method in your action and call
the clean method..
/R
Tracy12 wrote:
>
> Hi,
>
> In struts 1.x. we had reset method in the action forms
> to do the final cleanup before the fo
Tomcat w/o the default servlet, though?
Ahh... you're right. It's a standard install with the default and jsp
servlets enabled. Sorry, I didn't look there.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comma
--- Manu Mahajan <[EMAIL PROTECTED]> wrote:
> Also I would like to know if anyone is using struts
> 2 to develop a site containing Chinese content
> because my entire application seem to be
> affected by this. Either I am missing something very
> trivial or no one has used struts2 in this context
--- Jeromy Evans wrote:
> I have plenty of S2 webapps that don't include a
> servlet in web.xml and haven't encountered this
> problem. Have you included a filter mapping
> instead?
Tomcat w/o the default servlet, though?
d.
___
Also I would like to know if anyone is using struts 2 to develop a site
containing Chinese content because my entire application seem to be
affected by this. Either I am missing something very trivial or no one
has used struts2 in this context.
Hello,everybody.
Recently,I wrote a simple JSP Web program basing on the Struts
architecture.It created a page for a user to input his name and password,and
after the user click the submit botton on the form,it can redirect to another
page and show the name and password that the use has input
I'm disappointed that I did not get any response. Anyway I have filed a
bug here
https://issues.apache.org/struts/browse/WW-1985
Manu Mahajan wrote:
Hello
I tried removing the s:iterate and s:property tags and shifted the
code to a scriptlet, I was still getting the same problem. But then I
thanks for your input.
I will evaluate it tomorrow morning.
By the way, what do you think of the idea of having a web-server in front of
an app-server
for login purposes. Isn't that unnecessary. I am sure our current
architecture is because the
way things evolved for this 5-6 year old webapp. B
I have plenty of S2 webapps that don't include a servlet in web.xml and
haven't encountered this problem. Have you included a filter mapping
instead?
web.xml:
http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://j
All of our security is LDAP-based, but we simply use the built-in
mechanisms that Websphere provides... you can easily tell it, in
conjunction with plain old J2EE security, to validate users against
LDAP. This works very similar to the steps you outline.
Now, on top of that we've build our ow
Hi,
In struts 1.x. we had reset method in the action forms
to do the final cleanup before the form data get
populated.
It helped quite well with occasions like check boxes.
Please let us know what is the same equivalent in
struts 2. How can we achieve the same.
Thanks,
__
Hi All,
I am working on a production web application written in Struts 1.2.x .
Recently we undertook an effort to redesign our login architecture.
Currently our architecture is that
1) user is presented with a login page served by IIS server (ASP pages)
2) user's provided username/password is va
I am able to submit, and I can see the results back. However, the
results are not inserted into the DIV and replacing the old contents.
It's inserted just before the old contents.
href="%{ajaxSubmit}" theme="ajax" notifyTopics="/updateOrSave"
targets="tasksDIV" />
The new resu
On 6/12/07, Scott Nesbitt <[EMAIL PROTECTED]> wrote:
I have this code:
It works fine if the user uses the drop-down or types
in a date in just the right format. However, we would
like the following to work better:
user input actual value desired
value
--
I want to scan files for virus after upload .Are there any open source java api
available .
Thanks
Miro
-
Get your own web address.
Have a HUGE year through Yahoo! Small Business.
Please start new threads for new topics.
--- Session A Mwamufiya wrote:
> [...] but have not been able to get it to work;
Providing symptoms would allow people to help you
better.
IIRC you're not using Maven (neither am I). Do you
have any Eclipse experience at all? Are you using
MyEclipse?
> C
Hi Dan,
Sorry that I don't have an answer for you, but rather a question: "are you
using Eclipse for your development?" is that where you use the breakpoints?
I've been trying to setup struts 2 to work with Eclipse, but have not been able
to get it to work; so instead, I code the files with a
Hello,
I am using Tomcat 5.5 as my servlet container. I have added the
org.apache.struts2.dispatcher.FilterDispatcher as a filter with
a url pattern of /*.
struts2
org.apache.struts2.dispatcher.FilterDispatcher
When following the HelloWorld example on the Strut's wiki
(h
Well, if your error page has an error status code, then you can use the
notifyTopics, something like
dojo.event.topic.subscribe("/topics", function(data, type, e){
if(type == "error") {
//do something
//to redirect
window.location ="google.com";
}
});
but i
--- chengas123 <[EMAIL PROTECTED]> wrote:
> However, now I'm having the problem that I can't
> figure out how to access the HTTP request headers
> from the interceptor.
Follow the yellow brick API...
What's the signature of Interceptor.intercept?
String intercept(ActionInvocation)
What's an
I've got a page with 2 s:div tags, and the 2nd is loaded by something
occurring in the 1st. What happens if an exception is thrown in this
process? Of course, the error page gets loaded into the 2nd div. This is
not an acceptable result. Is there any way around this? What I'd like to
happen i
nuwan chandrasoma-2 wrote:
>
> http://struts.apache.org/2.x/docs/how-can-we-access-the-httpservletrequest.html
>
Struts Documentation wrote:
>
> It is more difficult to test Actions with runtime dependencies on
> HttpServletRequest. Only implement ServletRequestAware as a last resort.
> If th
Keith Robertson wrote:
Hi,
I'm using Struts 2 and I'm trying to get the UI tag "label" to appear to
the
immediate left of a combobox that does not come from the Struts 2 tag
library. If I were using the a predefined Struts 2 tag like the layout would look like this...
+-
Actually:
Otherwise all the radio boxes have exactly the same name, and that
leaves me with a single choice in a large matrix of options, instead
of 1 choice per group of 4.
While I do end up writing the group of Responses to the DB, they all
have their default (null) values.
On 6/12/07, Dav
Hi.
I am using struts 1.3.8 along with struts menu 2.4.3. I want to show
the navigation to the user where he is in for the present page like
mainpage>review>edit... or thing of that sort that can show the user where
he is in. I want to know whether there is any struts inbulit thing for
this.
--- Paul <[EMAIL PROTECTED]> wrote:
> Straight-forward and standard and no relation to
> 'repositoryPassword'.
The repositoryPassword bean is for the jackrabbit (or
whatever), right? And no matter what the id of that
particular bean (the string) is it causes a problem?
What happens when you delet
--- Lally Singh <[EMAIL PROTECTED]> wrote:
> Well, I was simplifying a bit.
>
> it's actually survey.responseGroups[#i], where
> getResponseGroups() returns a List, each
of
> which has a getValue(Long) and setValue(Long).
>
> Hmm, setResponseGroups() wants a full List back,
> would that mess thin
Dave,
Yep that's precisely what I'm saying re: change the id attribute of the bean to
anything, the constructor-arg value will be used as a !method invocation. Yes,
numerous redeployments and double checking that old libraries have been removed.
I do have actions defined in my spring context fi
Well, I was simplifying a bit.
it's actually survey.responseGroups[#i], where getResponseGroups()
returns a List, each of which has a getValue(Long) and
setValue(Long).
Hmm, setResponseGroups() wants a full List back, would that mess things up?
On 6/12/07, Dave Newton <[EMAIL PROTECTED]> wrote:
--- Lally Singh <[EMAIL PROTECTED]> wrote:
>
>
>/>
>
>
>
> This doesn't do what I want, which is to have 1 set
> of radio buttons per item in groups, each bound to
> the value property of element i in groups.
How is "groups" defined in your Action and what do its
get/set look like? (An
--- Paul <[EMAIL PROTECTED]> wrote:
> Well thanks for the replies. Unfortunately I have no
> auto-wire configurations in my setup
I believe the default is by-name.
> no matter what I change the name of the bean to
> (repositoryPassword to randomPassword) the value of
> the constructor keeps gett
This sounds like it should be FAQ, but how do I bind a dynamically
generated form item?
E.g:
This doesn't do what I want, which is to have 1 set of radio buttons
per item in groups, each bound to the value property of element i in
groups.
Thanks in advance for your help,
-ls
--
H. Lal
Nope. I'm not so sure that's a good idea as you wouldn't have any way to
parse that date on the server (without knowing the right format).
Warning! bad advise ahead: You can always do something crazy like:
dojo.widget.byId("dp").setValue = function(dateObj) {
};
and then do your thing there, or
Dave,
Well thanks for the replies. Unfortunately I have no auto-wire configurations
in my setup nor do I have "repositoryPassword" property set anywhere else. I
have searched through the entire project and no matter what I change the name
of the bean to (repositoryPassword to randomPassword) th
I have this code:
It works fine if the user uses the drop-down or types
in a date in just the right format. However, we would
like the following to work better:
user input actual value desired
value
--
-
06-12-07 NaN-NaN
--- Scott Nesbitt <[EMAIL PROTECTED]> wrote:
> No, switching the order does not help.
Anything with debug turned on? Can we see your
topic-subscription snippets?
d.
> --- Musachy Barroso <[EMAIL PROTECTED]> wrote:
>
> > If you switch the order do they work? Not that it
> is
> > mandatory but ad
No, switching the order does not help.
I found a work-around for this, but it involves
another trip to the server so is not ideal. Oh well,
thanks anyway.
Scott
--- Musachy Barroso <[EMAIL PROTECTED]> wrote:
> If you switch the order do they work? Not that it is
> mandatory but adding a
> sem
--- yitzle <[EMAIL PROTECTED]> wrote:
> I put it in the subject and not in the body...
> I am not using the AJAX theme. That's why targets
> doesn't work.
The "targets" attribute "doesn't work" because it does
not do what you think it does, which is why I provided
the documentation link.
d.
--- Paul Saumets wrote:
> class="java.lang.String">
>
>
>
> For some reason the constructor value inside the
> "repositoryPassword" bean is the what always is
> being passed in the redirect-action as a Webwork
> bang ("!") method override?
Hmm.
My first guess would now be
On 6/12/07, Dave Newton <[EMAIL PROTECTED]> wrote:
--- yitzle <[EMAIL PROTECTED]> wrote:
> I want to create a URL/A that opens in a new window.
> In HTML I would do
> I tried making a
http://struts.apache.org/2.x/docs/a.html
What does the documentation for the "targets"
attribute say?
If you
--- Chris Pratt <[EMAIL PROTECTED]> wrote:
> Sorry, for some reason I was stuck on Struts 2.
It's 'cuz it's so much better :D
> I suspect it may have to do with setting the path or
> domain, but that's just a guess.
+1
d.
--- yitzle <[EMAIL PROTECTED]> wrote:
> I want to create a URL/A that opens in a new window.
> In HTML I would do
> I tried making a
http://struts.apache.org/2.x/docs/a.html
What does the documentation for the "targets"
attribute say?
If you're just trying to create a URL that will open
in a n
--- john lee <[EMAIL PROTECTED]> wrote:
> also check the cookie under c:\document and
> setting\username\cookie, but not there,
Where? My cookies, at least, are stored per-browser,
in various places. Check via the browser. Also check
browser settings to make sure cookies are allowed for
the URL
Is AJAX Configured?
If yes then this should work.
" target="_blank">
Animesh
On 6/12/07, yitzle <[EMAIL PROTECTED]> wrote:
I want to create a URL/A that opens in a new window.
In HTML I would do
I tried making a and targets="%{'_blank'}" but
no targets appear in the HTML.
Please help
Dave,
isolated the problem but not entirely sure what's causing it. Inside my spring
configuration files I have the following configured while I'm playing with
Jackrabbit JCR-170 integration:
Hi,
Why dont you load a jsp page after this action and have the below tag in the
page and do a bean write and see
Thanks,
Nuwan
- Original Message -
From: "Chris Pratt" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Tuesday, June 12, 2007 4:42 PM
Subject: Re: respo
Sorry, for some reason I was stuck on Struts 2. In IE's Internet Options,
on the Privacy tab, click the Advanced... button and check the "Override
automatic cookie handling" checkbox, then set both cookie types to Prompt.
After that, try again and you'll be able to see all the cookies that are
pa
I want to create a URL/A that opens in a new window.
In HTML I would do
I tried making a and targets="%{'_blank'}" but
no targets appear in the HTML.
Please help.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comma
the action is executing, checked.
also check the cookie under c:\document and setting\username\cookie, but not
there,
john
Dave Newton <[EMAIL PROTECTED]> wrote:
I'd check two things first:
1) Make sure the action is actually executing (via
breakpoint or logging)
2) where specifi
I was having this same issue today...
When I wrapped some display text in a struts html:radio tag the resulting
html for the radio input did not wrap the display text and the display text
did not become a "child" of the radio input, instead it became a sibling.
For radio inputs styled with displ
I'd check two things first:
1) Make sure the action is actually executing (via
breakpoint or logging)
2) where specifically are you checking to see if the
cookie (physically) exists?
d.
--- john lee <[EMAIL PROTECTED]> wrote:
>
>
> inside Struts(1.x) Action class, within method
>
>
Huh?!
--- Chris Pratt <[EMAIL PROTECTED]> wrote:
> Where'd you get the response? Does your action
> implement ServletResponseAware?
>
> On 6/12/07, john lee wrote:
> > inside Struts(1.x) Action class, within method
> >
> > public ActionForward(ActionMapping mapping,
> ActionForm form,
> >
i have an login.jsp first, then call action class, if success, then action
class forward to different jsp page.
my struts-configure.xml will be as the following:
I even tried both redirect="yes" option and "without" option as well, but
still not see the cooke generate.
Where'd you get the response? Does your action implement
ServletResponseAware?
(*Chris*)
On 6/12/07, john lee <[EMAIL PROTECTED]> wrote:
inside Struts(1.x) Action class, within method
public ActionForward(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServlet
Hi,
I'm using Struts 2 and I'm trying to get the UI tag "label" to appear to the
immediate left of a combobox that does not come from the Struts 2 tag
library. If I were using the a predefined Struts 2 tag like the layout would look like this...
+---
--- Paul <[EMAIL PROTECTED]> wrote:
> In my struts.xml file I have:
> name="struts.enable.DynamicMethodInvocation"
> value="false" />
>
> Where in the heck is this !pass DMI getting
> attached? I am completely baffled :)
If it used to work then I'd suggest you've changed
something in your code,
Let me add,
After doing some more research I've discovered that the ! ("bang") is for
DynamicMethodInvocation from Webwork.
In my struts.xml file I have:
Where in the heck is this !pass DMI getting attached? I am completely baffled :)
Any help greatly appreciated.
P
-Original Message
http://struts.apache.org/2.x/docs/how-can-we-access-the-httpservletrequest.html
- Original Message -
From: "chengas123" <[EMAIL PROTECTED]>
To:
Sent: Tuesday, June 12, 2007 2:23 PM
Subject: [S2] Accessing HTTP Header
Hi,
How do I access the request variable or HTTP request headers
inside Struts(1.x) Action class, within method
public ActionForward(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) throws Exception
i did the following:
...
Cookie me;
me=new Cookie("LoginID","xxx");
me.setMaxAge(30*2
inside Struts(1.x) Action class, within method
public ActionForward(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) throws Exception
i did the following:
...
Cookie me;
me=new Cookie("LoginID","xxx");
me.setMaxAge(30*24*60*6
Hi all,
I've had the following action result for the past couple weeks:
UserAction
All this did was after a form had been submitted and the data persisted, it was
to re-direct back to the user listing page (which is the default result from
the execute() method inside my UserAction class.)
I w
Hi,
How do I access the request variable or HTTP request headers? I want to do
something like the following in my action:
request.getHeader("Accept").toLowerCase().indexOf("vnd.wap")
I am trying to detect whether the user is using a wireless device such as a
Blackberry in my action to determine w
--- Anton Pussep <[EMAIL PROTECTED]> wrote:
> Sorry for the annoyance, I found the answer myself
> by trying a thing I never expected to work. I just
> encapsulated a param-tag with the submit-tag and it
> worked... Nice!
>
> Thanks and sorry for the unnecessary request,
Thank *you* for followi
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I've solved this today:
the problem was tomcat55_java_version variable (JAVA_VERSION environment
var)
by default it is set to 1.4+. when changed to 1.5 all my troubles went away.
Albertas Mickenas wrote:
> Hi all,
>
> i'm a Struts newbie. I'm try
Sorry for the annoyance, I found the answer myself by trying a thing I
never expected to work. I just encapsulated a param-tag with the
submit-tag and it worked... Nice!
Thanks and sorry for the unnecessary request,
Anton
Anton Pussep wrote:
> Hello,
>
> I am using method prefix in order to be a
If you switch the order do they work? Not that it is mandatory but adding a
semicolon at the end looks better :). You could also make them listen to a
common topic an publish that one to make them refresh, in any case it should
work they way you have it.
musachy
On 6/12/07, Scott Nesbitt <[EMAIL
Hello,
I am using method prefix in order to be able to forward the form content
to different methods in my action class. Now I need several buttons that
call all the same method, but a parameter shall tell the method what to
do (e.g. which entry to delete in an ArrayList). Is there a way to pass
a
Thanks a lot
PPDL.
On 6/12/07, Musachy Barroso <[EMAIL PROTECTED]> wrote:
This might get you started:
http://struts.apache.org/2.x/docs/template-loading.html
musachy
This might get you started:
http://struts.apache.org/2.x/docs/template-loading.html
musachy
On 6/12/07, Petit Pas De Lune <[EMAIL PROTECTED]> wrote:
Hello. (Musachy & Schneidh)
I'm sorry for this out of topics post.
I'm not familiar with Velocity and i would customize pager and add filter
fea
I have some code like this that is not working:
dojo.event.topic.subscribe("/refreshTopic",
function(data, type, e)
{
if ('load' == type)
{
dojo.event.topic.publish("/refreshCableHeadends")
dojo.event.topic.publish("/refreshTDGrid")
return;
}
}
Only th
Hello
I tried removing the s:iterate and s:property tags and shifted the code
to a scriptlet, I was still getting the same problem. But then I
disabled the struts/struts-cleanup filters from my web.xml and created a
standalone jsp to test the functionality and called it directly. To my
surpri
Basically trying to identify the permutations under which parameters get
mapped. My Action contains a bean private Foo foo and contains
getters/setters. Foo has a property bar. My web page is passing the
parameter Foo.bar and the Action is finding getFoo using Foo rather than
foo! Is this desi
Hi,
You can try:
Ezequiel.
-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Envoyé : mardi 12 juin 2007 04:22
À : user@struts.apache.org
Objet : Embedded problem
First, you can look through next jsp codes:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi all,
i'm a Struts newbie. I'm trying to start blank struts application on
Tomcat 5.5.23 and JDK diablo-jdk-1.5.0.07.01_3
While starting struts context (either set up by simple setup or by
installing blank-app war) i get this exception provided bel
Hi
I am having a really weird problem with data containing chinese
characters. I have something similar to the following code in a jsp.
This works fine otherwise but when 'translationText' contains Chinese
characters an incomplete jsp is painted.
Like say
Laurie Harper wrote:
L.
ObWhine: please don't post unrelated questions to an existing thread. Be
sure to start a new thread (with an appropriate subject) by sending a
fresh message to the list, rather than using Reply To.
Thanks for the reply.
I'm sorry for the wrong posting, it was not
Hello. (Musachy & Schneidh)
I'm sorry for this out of topics post.
I'm not familiar with Velocity and i would customize pager and add filter
feature to table tags.
But I don't know how to override packaged templates (shame). Is-it trivial ?
PPDL.
79 matches
Mail list logo