Hi srinivas,
Here is code i think is the solution. I worked with it
successfully. Try it.
window.opener.document.all.state.value =
eval(document.ResultsBody.stateField.value);
window.opener.focus();
self.close();
I think this will do.
all the best.
--- Srinivas Rao <[EMAIL PROTECTED]> wrot
Hi srinivas,
Here is code i think is the solution. I worked with it
successfully. Try it.
if (window.opener & !window.opener.closed)
{
window.opener.document.all.state.value =
eval(document.ResultsBody.stateField.value);
window.opener.focus();
self.close();
}
I think this will do.
all the best.
Hi All,
I had posted this question, but got now answer. Please give me
some hints on this.
I am getting javascript error when I click on submit to validate
my form.
It's a simple login page with username and password.
here is the code for login.jsp
<%@ taglib uri=
Hi guys,
I am facing samll problem , it's a simple one but i don't know what is the wrong i am
doing ...
Please help me..
My problem is ...
I have parent window and child window (ie popup window)..If i entered
the value into text field to popup window then the value come to the parent window if
I have the value of a variable defined in JSP#1 (JSP#1
is not a form):
All the variables, which are defined in JSP#1, are
forwarded to JSP#2.
JSP#2 is a form. But, the variable 'id' is not used
in JSP#2.
JSP#2 has a submit button and then, an action servlet
takes over the control. All t
Thanks a lot for sharing that, James.
I'll try it.
Another thing, I was curious, why there's no such
"positiveInteger" and "positiveDouble" in Standard Built In Validations,
because I think it's pretty much needed.
So how do you people usually implement that positiveInteger/positiveDOuble?
In pre
John, I apologize -- it' late and I am tired but I was having a little
trouble following your post ... however, if you have a map-backed form
(property) that you want to expose to JSTL you will need to expose the
Map itself in a getter.
Map getValuesMap() { return values; }
Then you can access
Zoran
You will find a decent open source poll component (expresso 5.5/struts
based 1.1) at www.jcorporate.com. I suggest getting the code out of cvs
as we have a new release which will coming out shortly.
Our forums onsite have the polling component integrated. Pretty nice for
the collaborative d
Hi,
thank you very much !!!
It works, after I did everything you guys said ...
I'm just not clear the reason why DOCTYPE & " Remove the doctype declaration:
>
> "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd";>
>
>
> and try the following for the root element:
>
> http://java.sun.com/xml/ns/j
I have to drop a user poll into our struts web application. Can anybody
recommend any existing code which I can use.
I don't need all the bells and whistles, just a basic poll with an admin
utility.
Zoran
-
To unsubscribe, e-ma
Hi all,
Any help on the following problem would be most appreciated.
What i am trying to do is produce a report of data in tabular form with filters that
will reduce the report set. There can be 100's of different reports but by passing in
a report id to a database the query, filters, columns a
within my validation.xml?
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Thursday, July 01, 2004 11:21 AM
To: Struts Users Mailing List
Subject: Re: Validation: How do I do a field check for NotEqual? (!=)
Assuming a String datatype: if (!myString.equals(you
nevermind, i figured it out. It's all about the fourth parameter of
addCallMethod(). I just passed it
new Class[] {Integer.class}
and it worked.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [E
If the field is on
the same form as the then the only way to populate is to
use JavaScript. You can do this using an onchange listener on the
html:select control. This is not a Struts thing but a JavaScript thing.
Sonam Belbase wrote:
I have the following:
Please select a name:
Your
I have the following:
Please select a name:
Your Id will be :
The collection AvailableNamesList contains objects that have two fields
- name and id. When
a user selects a name from the dropdown, its corresponding id should be
displayed in the
box.
How do I get it to look at the obje
You cannot embed tags as attribute values in other tags.
Assuming you are using Struts-EL tag library AND the container you
are using supports JSTL 1.1, then you can try the following:
This code is not tested.
robert
> -Original Message-
> From: Caroline Jen [mailto:[EMAIL PROTECT
To do something like that, you would have to use JSTL functions because the
DOT notation you have written is interpreted as:
attachBean.getAttachMimeType().getStartsWith(<--- error
So, each DOT is referencing a property of the JavaBean. I would recommend
checking out Sun's JSP/JSTL documentation
Caroline ...
I don't think I am being overly critical in saying that I think you need
to do a little reading ... I suggest the JSP and JSTL tutorials. You
cannot freely mix tags in tags with methods etc. ... blah blah blah
http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JSPIntro.html#wp100465
C
It seems that I have problems to get JSTL tags
right
error message:
74: tag = 'if' / attribute = 'test': An error occurred
while parsing custom action attribute "test" with
value
"${attachBean.attachMimeType.startsWith('image/')}":
Encountered "(", expected one of ["}", ".", ">", "gt
Sure ... just create the ActionErrors in your Action, save them using
saveErrors(), then return the InputForward()
public class SaveDataAction extends Action {
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request,
use the method saveErrors(ActionErrors);
In you Action:
ActionErrors errors = new ActionErrors();
// validation
errors.add("property", new ActionError("key"));
saveErrors(errors);
Henrique Viecili
- Original Message -
From: [EMAIL PROTECTED]
To: Struts Users Mailing List
Sent
Caroline as Geeta stated you cannot have tags within scriplet --
everything in between <% %> is taken literally -- it is expected to be
Java code.
That being said, you can accomplish what you need using the
tag *before* the scriptlet -- bean:define unlike the JSTL
tags creates a scripting var
Currently constrained to Struts 1.0.
Due to the nature of my application,
I am unable to use an ActionForm to hold my form data (I am pulling it
directly from the request parameter map in the action). As a result,
I have to perform my validation in the action, and I'm wondering if there
is some
I think the problem is that you are mixing java code illegally with jstl. For example,
when you say
try{
something;
}
catch etc. the "something" better be java code..
hth,
Geeta
-
To unsubscribe, e-mail: [EMAIL PROTECTE
Yes, I have:
<%@ taglib uri="/tags/struts-html-el" prefix="html" %>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c" %>
on the top of my page.
--- Can Zheng <[EMAIL PROTECTED]> wrote:
> Hi,
>
> did you add the taglib declarations for the prefix
> "c"
>
>
> On Thu, 1 Jul 2004 11:30:48 -0700 (PDT),
Hi,
did you add the taglib declarations for the prefix "c"
On Thu, 1 Jul 2004 11:30:48 -0700 (PDT), Caroline Jen
<[EMAIL PROTECTED]> wrote:
>
> My JSP worked well when I used JSP expressions,
> scriptlets, I tried to use JSTL instead and
> encountered some compilation problems. I am una
Thanks, this worked just fine! Well, with some syntax changes, like
putting the String declaration in a scriptlet tag and fetching the "model"
object from the session first, but the general idea was right on.
Thanks man.
- Keith
Geeta Ramani <[EMAIL PROTECTED]> wrote on 07/01/2004 02:17:03
Hi,
As you are using a 2.4 version, add this to your element
and you have el processing activated.
*.jsp
false
false
On Fri, 2 Jul 2004 01:37:39 +0800, Ding Lei <[EMAIL PROTECTED]> wrote:
>
> Hi Mark,
>Thank you very much for your
how about this
"
>
-Ram
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 01, 2004 1:26 PM
To: [EMAIL PROTECTED]
Subject: Scriptlet Params in form
Hey everyone,
I'm trying to send a parameter with the form submission. What I've been
trying is:
My JSP worked well when I used JSP expressions,
scriptlets, I tried to use JSTL instead and
encountered some compilation problems. I am unable to
see my mistakes and need help:
Problme #1:
[code]
int offset = 0;
try
{
}
catch ( Exception e )
{
// do nothing
}
[/code]
The above co
Hey Keith:
Try instead:
String ss = "/MRA/ModelEdit.do?action=edit¤tModelNum=" + model.getModelNum();
Regards,
Geeta
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 01, 2004 2:26 PM
> To: [EMAIL PROTECTED]
> Subject: Scriptlet Params in f
Hey everyone,
I'm trying to send a parameter with the form submission. What I've been
trying is:
I seem to remember getting something similar to work before, but this
isn't working. The rendered HTML is:
Does anyone know a way of doing this?
Thanks!
- Keith
Assuming a String datatype: if
(!myString.equals(yourString)) {System.out.println("Not equal.};
Dennis
[EMAIL PROTECTED]
07/01/2004 02:15 PM
Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>
To
[EMAIL PROTECTED]
cc
Subject
Validation: How do I do a
field check
I am having trouble getting a field check for a NOTEQUAL. How would I
implement that?
---
> Thanks...
> Mick Knutson
>
> 525 Market Street, SF, CA 94103
> (415) 222-1020
> [EMAIL PROTECTED]
> MAC A0103-223
---
-
To unsubscri
Anyone have any experience with the Nitrox Struts editor for Eclipse? If
so, is it worth the money?
best,
John
John McGrath
[EMAIL PROTECTED]
508 289 3781 (w)
508 274 4698 (m)
Not in plain struts tags it wasn't , before jstl and el were on the
screen
paramId="id"
page="/myaction.do"
>
its just now jstl is around you can brew a strange mix. You can achieve
what you want with JSTL and you'd probably be better doing that.
I just saw a demo of it here at JavaOne and it does look nice and very
powerful. Probably the best I've seen.
Worth the price though? Don't know.
Eric
John McGrath wrote:
Anyone have any experience with the Nitrox Struts editor for Eclipse? If
so, is it worth the money?
best,
John
_
Remove the doctype declaration:
http://java.sun.com/j2ee/dtds/web-app_2_3.dtd";>
and try the following for the root element:
http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.x
You could try removing
And hope that works, otherwise I haven't had much to do with 2.4
web.xml 's as xdoclet only support 2.3 and under..
Mark
On 1 Jul 2004, at 19:37, Ding Lei wrote:
Hi Mark,
Thank you very much for your fast reply.
I was told that there are much differences b
That is so wierd, they don't sell it outside the USA on their website so
I had to order it by email.
I just got my licence key one second before your email ...
Personally I think it's a really good product and that's why I'm buying it.
--b
John McGrath wrote:
Anyone have any experience with the N
Anyone have any experience with the Nitrox Struts editor for Eclipse? If
so, is it worth the money?
best,
John
John McGrath
[EMAIL PROTECTED]
508 289 3781 (w)
508 274 4698 (m)
Cheers Mark,
You were correct, it is now working. Here is the correct code
snip=
=snip
I can't help but think that the workings of this tag are a little
convoluted.
--b
Mark Lowe wrote:
opps..
You need to access a method in you ForRentalProperty class if there's
a ge
Hi Mark,
Thank you very much for your fast reply.
I was told that there are much differences between 2.4 and 2.3,
and I would like to use 2.4
> the 2.4 spec has a way of doing this in the web.xml
Would you please tell me how to do this?
>
> What does the rest ofit look like?
>
T
opps..
You need to access a method in you ForRentalProperty class if there's a
getId() method then add paramProperty="id"
On 1 Jul 2004, at 19:17, Mark Lowe wrote:
Seeing as you're using jstl, there's more that one way but you might
">
or perhaps
But i haven't used the htm-el lib in
Okay the web.xml seems to be having trouble deciding if its 2.3 or 2.4.
Try making it one or the other..
If you use 2.3 you'll need the
<%@ page isELIgnored="false" %>
in your jsps
the 2.4 spec has a way of doing this in the web.xml
What does the rest ofit look like?
On 1 Jul 2004, at 19:21, Ding L
Seeing as you're using jstl, there's more that one way but you might
">
or perhaps
But i haven't used the htm-el lib in a while so could be wrong.
Mark
On 24 Jun 2004, at 19:06, Bryan Hunt wrote:
Good evening list users.
I have been trying to get html-el to work with JSTL in order to c
Hi,
I am using JBoss3.2.4, i.e. Tomcat 5.
here's my web.xml:
http://java.sun.com/j2ee/dtds/web-app_2_3.dtd";>
http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
version="2.4">
action
org.apache.struts.action.ActionServlet
Good evening list users.
I have been trying to get html-el to work with JSTL in order to create a
hyperlink. I am
getting the following error message
[ServletException in:/client/basket.jsp] Cannot find bean
[EMAIL PROTECTED] in any scope'
Here is the code.
snip=
I've have no experience of this problem however given that its a EL
processing problem then like the next man said check your web.xml and
see what servlet spec it is.
As JBoss ships with tomcat then it could well be a tomcat issue rather
than a JBoss one.
I know that 3.2.5 ships with tomcat 5
Hello,
I'v searched all the recent 800 messages, and found no
similiar messages ..
Would any one of you kindly tell me what might causes the problem?
Thank you!
Ding Lei
On Thu, Jul 01, 2004 at 12:25:50PM -0400, Robert Taylor wrote:
> There was a recent thread on this behavior
There was a recent thread on this behavior although
I cannot recall the resolution.
Please search the mail archives.
Also, make sure you have the appropriate .tld and .jar files
in place. Make sure you web.xml file corresponds to the
containers supported Servlet spec. Make sure you have
importe
Hi all,
I am using JBoss 3.2.4 with Struts 1.1
All the actions are able to work correctly, but JSP pages
shows the tag itself instead of it's content, for ex:
The browser shows:
${CardControl.cardType}
instead of the actual content. I am sure that the JSP pages
are correct, since seve
Hello
I am still waiting for a solution. Is this a known issue? It looks like this is
happening only in case of list backed action forms...Pls help
Thank-you,
Manoj Mathew
-Original Message-
From: Mathew, Manoj
Sent: Wednesday, June 30, 2004 8:48 AM
To: Struts
Subject: Request carr
Shove any parameters from your map in to the queryString using jstl
var queryString = "?";
would give you :
var queryString = "?foo=bar&cheese=yummy";
(thats assuming each value in mapOfParams was a url param in the form "name=value"
otherwise you would get queryString = "?foo&cheese"; i
If you were looking for the "struts" solution then in your action, or
tiles controller where ever before you are forwarded to the jsp..
I gave you the "struts" solution.
On 1 Jul 2004, at 14:36, John Antonakos wrote:
theList.toArray()
u mean where ? where should i put this ?
I found a solution m
For JSTL 1.0 & JSP 1.2, the general idea would be:
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
<%@ taglib prefix="x" uri="http://java.sun.com/jstl/xml"; %>
Check out the JSTL spec for more details. You can also find some info here:
http://www-106.ibm.com/developerworks/java
Thank you for your reply.
The only thing that is missing from this are the map of attributes that
I was originally appending to the html:link. Is it a case of - you can
have one or the other?
Cheers,
Chris
> -Original Message-
> From: McCormack, Chris [mailto:[EMAIL PROTECTED]
> Sent:
Dont think its possilbe unless you use a bit of javascript.
As its lunchtime I have knocked out a bit of a solution in javascript (not tested).
var queryString = "?";
var count = 0;
function appendToUrl(newValue){
queryString +="&"+count+"="+newValue;
}
function doLink(
Hi,
I have a JSP page that has a list of hml:links, each with a map of
attributes appended e.g.:
chart
(where attributes is a map).
On the same page, I have a html:select e.g.:
DHTML
Java
When a user clicks on the link, I would like to append the currently
se
Weird. Looks like xerces is trying to fetch the DTDs from their remote
location. Try saving the validator XML DTDs locally and use their path
as the doctype system URI in the validator XML files.
I may be wrong, but this has to do with what you have configured your
default xerces behavior to be
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi Friends,
i get a connecton error when i start the struts application which uses
validation module . The error message which i get is given below.
ERROR org.apache.struts.validator.ValidatorPlugIn - Connection reset by peer: connect
java.net.SocketException: Connection reset by pe
theList.toArray()
u mean where ? where should i put this ?
I found a solution myself, to combine the 2 fields and pass an a4 param which
is actually the combined a1,a2.
But i was searching for a Struts solution, not a Java one.
John
- Original Message -
From: "Mark Lowe" <[EMAIL PROTEC
If theList is a List that cast it to an array
theList.toArray()
On 1 Jul 2004, at 14:01, John Antonakos wrote:
i had something like this:
,
property="a2"/>">
i changed it and now i have something like this:
As you see i
Thanks
- Original Message -
From: "Henrique VIECILI" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, July 01, 2004 5:35 PM
Subject: Re: Upload multiple files at once
'change' google would be a great job that should not be done!!!
you can SEARCH goo
i had something like this:
,">
i changed it and now i have something like this:
As you see i loose one information, the ',a2' information.
Is there a way to solve this problem ?
I need to have html:select instead of s
To isolate this problem, you should remove Struts from the equation and them perform
the tests. For example create a simple web application with a servlet and access it
concurrently and see what happens.
robert
> -Original Message-
> From: Mathieu Grimault [mailto:[EMAIL PROTECTED]
> Se
'change' google would be a great job that should not be done!!!
you can SEARCH google (or i could simply use the verb 'to google')
Henrique Viecili
- Original Message -
From: Henrique VIECILI
To: Struts Users Mailing List
Sent: Thursday, July 01, 2004 8:46 AM
Subject: Re: Upl
Hi Deepak,
You should create a field in your ActionForm of type FormFile[]. But, i´m not
sure, still there is a bug in struts when you upload multiple files and you have to
change the code, if you change google you will find it!
Henrique Viecili
- Original Message -
From: Deepa
Hello everyone !
Did someone had a problem with simultaneous action ? My webapp is working well with on
user or more when action are not simultaneous. In this case i get request.getSession()
return Null for the first or the second access (not sure). I cannot determine if it's
a struts or java
Have you looked into using the JSTL XML core and transform tag libraries?
I haven't used them yet, but they have tags which allow you
to parse and transform.
robert
> -Original Message-
> From: Kransen, J. [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 01, 2004 4:47 AM
> To: 'Struts Us
Thanks.
Is there any other way ?
- Original Message -
From: "Lionel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 01, 2004 3:15 PM
Subject: Re: Upload multiple files at once
> Deepak wrote:
> > Hi,
> > Is there a way to upload multiple files at once ?
>
> Zip th
Hi guys,
I am facing samll problem , it's a simple one but i don't know what is the wrong i am
doing ...
Please help me..
My problem is ...
I have parent window and child window (ie popup window)..If i entered
the value into text field to popup window then the value come to the parent window i
James
Thank you for that, just what we needed.
Thanks
Christopher Marsh-Bourdon
"James Mitchell" <[EMAIL PROTECTED]>
01/07/2004 10:37
Please respond to "Struts Users Mailing List"
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
cc:
Subject:Re: big
Deepak wrote:
> Hi,
> Is there a way to upload multiple files at once ?
Zip them before.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I would not recommend using Modules unless you have a specific need for
them. And from what you both describe, you don't need Modules.
You are better off splitting up the validation.xml and struts-config.xml
into smaller, more managable peices. By activity or use case.
(from web.xml)
...
...
Thanks a lot Fulco...
I did this and its working now...
To display multiple messages in JSP, now I need to use both..
Regards,
Viral
-Original Message-
From: Fulco [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 01, 2004 2:32 PM
To: Struts Users Mailing List
Subject: Re: Multiple Ap
Depending where your error messages are located (in
ApplicationResources1 or ApplicationResources2), you should specify the
"bundle" to use:
Omitting the bundle will result (by default) of looking for the
defined without the key="" attribute. The
bundle attribute must be the same as one of y
Thanks Susan for the reference ...
In my jsp, I am using tag to display all error messages.
Now I have moved the ApplicationResources to struts-config.xml file for
having multiple ApplicationResources.properties files as below,
Now its giving below error message,
500 Internal Server Er
Hello,
I have a .jsp that outputs a XML file. I have another .jsp in which I want
to parse the XML file using an XSL file. So in the latter .jsp I want to do
something like this:
<%
String xslFile = getServletContext().getRealPath("/xml/risc2cvs.xsl");
TransformerFactory tFactory = TransformerF
hi robert!
that's really nicely written code.
I'm not completely sure, why it does what i think it does though:
you limit, which methods should get called in the struts-config, right?
(by specifying a list of the allowed buttonnames in the mapping)
then you check if there is a [buttonname].x in
Hi,
I would suggest you take a close look to Struts Modules. Isolating
specific parts of your application into modules has the following
advantages:
- reduces size of validation.xml and struts-config.xml files, as each
module as its own set of files; althrough validation and resources can
be s
I'm in the same boat, up until now we've developed small Struts
applications (about 20 different sets of input/view forms). Now we are
going to migrate an application which we wrote in our own framework to
Struts. This contains about 300 separate input/view forms (a lot will be
reduced down d
Hi all,
Struts-validator, or I guess it has become common-validator (?) is very cool,
a lot of thanks for making life easier.
Because there are lots of entities in application that I'm developing, more than 80,
the validation.xml file will be so big, roughly more than two thousands line.
For such
Apologies for adding to the irrelevant thread...
Michael McGrady wrote:
I will check it out, but the present Netscape is so much better than
anything I have used before I am sticking with it a bit.
Mozilla and Netscape are actually the same browsers; Mozilla started
when Netscape open-sourced
86 matches
Mail list logo