i do apologise for not stating clearly my problem. my pop-up window has
to display form which i had declared in my struts-config.xml file
!-- Display Email Friend --
action path=/util/showEmailFriend
type=com.client.web.actions.EmailFriendAction name=emailForm
scope=request
Try to add this to your digester initilization :
digester.addCallMethod(loginerr/errnum, setErrnum,0);
digester.addCallMethod(loginerr/errdesc, setErrdesc,0);
It will tell the digester to call the setErrnum() method of the object on
top of its stack (the instance of ErrResp), passing it the
Hi,
See intermixed.
Cedric
Nathan Coast wrote:
Hi,
I'm trying to develop a basic portal app using tiles. Each user may have
selected different components that they want to display in different
locations. At the moment the I'm thinking of implementing this by
dynamically
Is there a standard way of reversing the Digester code
(taking an object
tree and generating XML) - do we need a regurgitater :)
I don't know about a standard way to revers digester code. Could be
interesting.
ATM just doing some ugly dom building and generating xml from that.
Just tell the designer that all links must go through the Struts tags
(say, to maintain the session and relative path), and that the links
must use the logical forwards. If you provide a good list of the
forwards, and the forwards relate to something else from the design
phase (like a flow chart
Nathan Coast wrote:
...
I've found the code I needed in
org.apache.struts.tiles.xmlDefinition.XmlParser - I cut the code from here
as its private - could be a case for making method public? I think I favour
storing the preferences (definitions) as XML over serializing the objects.
Hello everybody
I have a .war archive of my application using STRUTS and a .jar
archive usig EJB and i want to deploy my application under WEblogic.
Do u know how to assemble these elemnts please for Weblogic?
Thanks for help
Ahmed ALAMI
Stagiaire
8, rue Gustave Hertz - 33600 Pessac
Hi Ted,
I'll try to update the TODO list, since many
items there are actually being tested, are already done, or just
obsolete.
bit off topic from the original post but seeing as your talking about the
todo list I spoted this on the list:
PropertyEditor Support. Add support for
I can't look at this myself right now, but if we can get some positive
feedback here from them's that's been wanting property editor support,
I'll commit the changes to the Commons package.
Nathan Coast wrote:
Hi Ted,
I'll try to update the TODO list, since many
items there are
Ted
Well the designer is MOI and the developer also.
I would have thought that some thing a long the line of the following would also work
logic:notPresent name=SUBSCRIPTION_LIST
logic:redirect page = /SelectSubscription.do?action=List /
/logic:notPresent
A custom tag that takes care
Yes. Present does work, and I have used it myself. But a tag that took
multiple arguments does sound convient. I was just thinking of couching
the tag in terms of what the page expects from a contractual point of
view. This way, it becomes quality-control, best-practice,
design-by-contract
Can anyone help me with this please?
I have an Action class which populates a java.util.Vector. Each element of
the Vector (v) will contain a 'Row' object. This 'Row' object itself
contains an array of 'Column' objects. Each 'Column' object holds the name
and value from a database column.
Hi. Maybe it's a simple problem, but i have it.
I have the following data structure:
one Vector where each entry holds a String[] (String-array) of the same
size .
Problem: How do I correctly use logic:iterate with nested bean:write?
I imagined somewhat like that:
logic:iterate
Hello,
I want to build a web application using struts framework. I have downloaded
everything i need from struts-homepage. But i am new to tomcat server. My
question is :
- to which directory should i copy the sample application on tomcat (I am
using a stand alone tomcat)
- sorry for this
Copy the .war into the webapp directory.
Regards
-Original Message-
From: Tamiru Alaba Dagnachew [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 05, 2001 1:58 PM
To: '[EMAIL PROTECTED]'
Subject: Want to build web application using struts framework
Hello,
I want to build a web
Hi. Maybe it's a simple problem, but i have it.
I have the following data structure:
one Vector where each entry holds a String[] (String-array) of the same
size .
Problem: How do I correctly use logic:iterate with nested bean:write?
I imagined somewhat like that:
logic:iterate
Thanks for your suggestion P-F, that did the trick, but I did have to add
the special class:
public void setErrnum(String errnum) {
this.errnum = Integer.parseInt(errnum);
}
...into my bean since it looks like addCallMethod doesn't do any
'reflection' on the bean, it calls the
you have to define the type inside the iterate tag.
name=ActionFormName type=String []
Again your bean:write property does not look ok. It will look for
getPropertyName from Action Form named inside iterate tag.
From: Heinz [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
I have a question about struts working with applets... I am using JBuilder
and Tomcat with struts and it has been a classpath pain so far, and now that
I have added an applet, it is even more of a pain. Now my jsp pages that
have the applet on them are not finding the applet when I go to the jsp
Hello,
Does anyone have any sample code to take the contents of an uploaded file
and add it as an attachment to an email message? Basically, I'm trying to
load the contents of the FormFile object directtly to a mimeBodyPart object
without writing the data to a temporary file first.
Thanks
What version of Weblogic are you using? 5.1 or 6.1?
-- Original Message --
Hello everybody
I have a .war archive of my application using STRUTS and a .jar
archive usig EJB and i want to deploy my application under WEblogic.
Do u know how to assemble these elemnts please for Weblogic?
What I'm trying to do is to check on my form-login page (which everyone will
enter the application through) if they are using http, and if so, switch them
to https.
I can do this with the following javascript - I was just wondering if there is
anyway in the web.xml or other files that you can
I have searched for example on how to use these tags and I have come up
empty. Can some one point to some great documentation
with real world examples on how to use these tags.
If not here is my scenario. I am passing a Vector to a JSP page and
inside
that vector is a number of beans.
Does template tag requires to work with session?
My web application has lots of pages that are purely
publication that no session is required.
If I add %@ page session=false %
then template content will disappear.
If I remove %@ page session=false % which is
default to %@ page session=true %
Hi Malcolm,
Yes, you can use the vector in the iterate tag. I have a parameterList vector
in my form bean, which I iterate through (if you're adding it to the request,
you'll have to grab it using jsp:useBean I think). I then display the values
from the parameter bean in columns for that
Shawn,
Hi. I have just posted a reply to earlier note which should cover this too, and
provides an example. I also posted some full example code in an earlier post:
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg12084.html
Note, this uses indexed attribute in the nightly
Where do I get hold of the messages tag? I've looked in my struts-html.tld
file but it isn't there? Which version is it located in?
Thanks
Brian McClung
-Original Message-
From: David Winterfeldt [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 04, 2001 1:01 PM
To: [EMAIL PROTECTED]
I think you can use a factory for this. Have a look in
ActionServlet.initApplication() for more detail... And do not forget to have
a good WE ;-))
- Original Message -
From: McClung, Brian [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 05, 2001 5:52 PM
Subject: RE: How to
Day Corp.'s 'Communiqué JSP Debugger' is a remote java/jsp debugger for
Tomcat. it's based on jpda 1.0 (java platform debugger architecture),
which is the official debugging support for the java 2 platform.
some features
-
- source-level JSP-debugging - any server, any time
- the
Hi,
I like to put values of an array in about 20 input fields.
I can do this with indexed properties (property=element[i] but after
submitting this form I get a beanutil error.
What 's wrong?
Is there an example with indexed properties available?
Communiqué JSP Debugger 1.0 is available now for *free* downloading via
Day's Developer Network site at
http://www.day.com/devnet.
I actually tried it. Too bad it's Windows only (but in return, you get the
fancy MFC-style UI). It worked well with Tomcat 4.0.1-dev (and 4.1-dev,
which is
Well.. I think what I was looking for and what might help Brian is:
This queues two error messages, one for the username field and another for
the password field. To print all the messages together, simply place the
error tag anywhere in your JSP.
body bgcolor=white
html:errors/
Or, you can
I don't know how recent this is (no date I could see), but there's an
article covering MVC and Struts in the Java Developer's Journal:
http://www.sys-con.com/java/article.cfm?id=1175
http://www.sys-con.com/java/articleprint.cfm?id=1175 (printer-friendly)
This might be helpful for those just
Hi Ajay,
Thanks a lot for your interest in helping me out.
I did more or less the same things that you mentioned in your mail. I had not
added the context ...
to the server.xml file as I thought that the tomcat will do it itself. This
morning after going through your mail, I did
add the context
Title: how to get multiple value from action class
Hi,
who can help me out on how to deal with multiple selected value from jsp in action class, how to define this property, I thought I can define it as Vector, sounds don't make sense, how bean form to handle this senario
html:select
It turned out that I was using an old version of struts that did not include
the Messages tag in the struts-html.tld. I was able to pull the latest
release down and that helped to get the messages piece working.
Thanks for the help!
Brian McClung
-Original Message-
From: Minh Tran
Thanks Michael. MimeBodyPart has a constructor that takes InputStream as a
param, so it worked out great.
-Original Message-
From: SCHACHTER,MICHAEL (HP-NewJersey,ex2) [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 05, 2001 11:35 AM
To: '[EMAIL PROTECTED]'
Subject: RE: FormFile to
Hello All,
I am trying to write a filter that gets executed on every request going into
my web application and primarily before anything struts/tiles related as it
sets up the environment for the factory stuff that can load views based on a
custom factory. Mine happens to be based on User-Agent
Title: how to get multiple value from action class
I think you must use an Array of Strings in a
FormBean instead of a Vector.
I'mnot sure what issues comes using a
Vector.
Also, as I understand, all the fields in a FormBean
must be of type String. Is this correct?
Regards.
Luis
You don't need a comma.
^\w{1000}$
David
--- prakhar [EMAIL PROTECTED] wrote:
If we just want to validate length, can't we use {
,1000}
Prakhar
- Original Message -
From: Matt Raible [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 04, 2001 4:33 PM
Subject:
I downloaded the Struts 1.0 release and copy the struts-example.war to
my WebLogic applications directory. When I tried to run index.jsp at
that example package, I got the following compiler errors.
symbol : method setScope (java.lang.String)
location: class
I am assuming you are starting Tomcat using \bin\startup.bat. Right? This
should set the classpath properly. I wonder why you are having ClassNotFound
problem because this User.class does exist in the og\apache\struts\webapp\example
package.
Worse comes to worst, you can explode the war file
Yep, just posted link to it earlier...see
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg12084.html
hth,
Dave
Torsten Trzeciak [EMAIL PROTECTED] on 10/05/2001
01:22:20 PM
Please respond to [EMAIL PROTECTED]
To: struts struts [EMAIL PROTECTED]
cc:(bcc: David
I have tried the following code and am getting rather strange
behaviour.
filename = Download.qif;
inResponse.setContentType(text/plain);
inResponse.setHeader(Content-disposition,
attachment;filename=\ + filename + \);
inResponse.addHeader(Content-description, My
On Netscape everything works as expected if I set the MIME type to
application/rtf but still doesn't work on Internet Explorer 5.0. This
leads me to think it is the selection of my MIME type. Basically I am
trying to download plain text.
I only get one prompt box on Netscape by the way.
Any
3 issues
1) Maybe the build is bad, but I had to recompile
ActionForm and put it in my applications classes directoryto get rif of
the "Cannot find ActionMappings ActionMappings or ActionFormBeans collection"
while using Weblogic 5.1 sp10
2)When I forward from a jsp page outside of the
cqjd == cqjd [EMAIL PROTECTED] writes:
cqjd Day Corp.'s 'Communiqué JSP Debugger' is a remote java/jsp debugger for
cqjd Tomcat. it's based on jpda 1.0 (java platform debugger architecture),
cqjd which is the official debugging support for the java 2 platform.
cqjd some
That problem only happens with the nightly build.
The following steps worked for me:
1. add Xerces 1.4.3 to the classpath (before the weblogic JAR's !)
2. Modify the method getParser() of Digester.java:
public SAXParser getParser() {
// Return the parser we already created (if any)
48 matches
Mail list logo