On our sites we are using taglibs-mailer which is very simple and sends mail using
tags embedded in a jsp. This makes it very simple to have the jsp render out some
dynamic bean information in to the page and have the contents of that page be mailed
as the mail body.
Chris
-Original
An alternative is to have an action form then has a number of nested
forms or maps in there for example an order.
An order contains and addressForm, login/register form, and a payment
card form. These are all hand reusable bit n pieces that can be reused.
if you nest this in an orderForm,
Hi,
Can anyone pls. let me know if there exists an open source freeware (not trial)
UML Tool in the web, which I can make use of, inside Eclipse (as a plug-in)?
Thanks and Regards
S Srikanth
Satyam Computer Services Limited
12 C P Ramaswamy Road
Alwarpet
Chennai 600018
Office
Hello,
yes there are some tools, like OMONDO or EclipseUML2. Have a look at this
plugin page:
http://www.eclipse-plugins.info/eclipse/plugins.jsp?category=UML
cu Micha
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Hi Guys,
I think the issue over here is, in such cases we need a new scope(workflow scope).The
existing scopes(request/session) do not suffice in such cases.
The session scope can be used but it may not be cleared.So there has to be a solution
at architecture level.And the struts workflow
See Omondo Eclipse UML maybe
http://www.omondo.com/download/index.jsp
I've already downloaded it, but I haven't tried it yet
=
KARMA Project - Development Team
__
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
Works for me.
Can it resolve that particular class (ie: youve imported it without error?).
Sometimes ive noticed that the hyperlink doesnt come up quickly and you
sometimes have to move the mouse around a bit too!
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent:
hi andrew,
The hyperlink itself does not show up for me. Otherwise, the alternative way
opens up the class file without errors.
My need is how to configure Eclipse to achieve this hyperlink (on ctrl + mouse
over) functionality.
Regards
S Srikanth
Satyam Computer Services Limited
12 C P
Hi all,
We are currently trying to split an existing Struts
application into sub-modules, but it seems it is not
as easy as it is usually said in the short articles we
have found about it.
So, I'll try to explain a bit more where we are and
what we have done until now.
1. File structure
Which eclipse version are you using? Afaik, the class opening hyperlink was
only introduced in 2.1, but in 2.0 you had to do it from the right click
menu.
Hmmm.
Under preferences screen - javaeditors 'hovers' tab theres a 'source'
option that seems to be it with a chackbox for enable disable,
putting an attribute in my request ... the jsp cant´t find it in there
request.setAttribute(Konstanten.ADRESSEN_RESULT_START_INDEX_KEY,
indexListWert);
return mapping.findForward(Konstanten.CONTINUE);
struts-config:
action path=/adressenExtDetail
hi andrew,
oh, i am using 2.0 eclipse. thanks for the feedback.
Regards
S Srikanth
Satyam Computer Services Limited
12 C P Ramaswamy Road
Alwarpet
Chennai 600018
Office +(91)-(44)-24983221 Extn 2767
More clues? it still doesn't work.
-Original Message-
From: Manish Singla [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 12, 2004 2:34 PM
To: Struts Users Mailing List
Subject: Re: Question on iterate
bean:write cannot support index as bean:write just writes as plain text.
See
I presume Konstanten.CONTINUE is continue and I see that forward will
default to a non-redirecting forward looking at your config, so thats not
the problem.
Whats in the JSP? You sure you got the attribute key correct there?
-Original Message-
From: Mlinar, Mario [mailto:[EMAIL
Just to be sure what is in the request my code at the beginning of the jsp
is:
%
java.util.Enumeration e2 = request.getAttributeNames();
while (e.hasMoreElements()) {
String tempString = (String) e2.nextElement();
% %= tempString %=%= request.getAttribute(tempString) %br
%
hi,
I have downloaded the .jar file of Omondo UML.
Please let me know how to configure this in Eclipse 2.0.
Regards
S Srikanth
Satyam Computer Services Limited
12 C P Ramaswamy Road
Alwarpet
Chennai 600018
Office +(91)-(44)-24983221 Extn 2767
snip
Using the solution with the Action shows no parameters
/snip
Attributes and Parameters are *not* the same thing.
Attributes are server side only (and can be any type of object), while
parameters are taken from the request itself and must be Strings.
If you want this value as a parameter
Here is a snippet of my log
org.apache.struts.action.mapping.instance=ActionConfig[path=/adressenView,pa
rameter=/gp_detail_adressen.jsp,scope=session,type=de.shs.partnerportal.adb.
ui.web.actions.AdressDetailActionorg.apache.struts.action.MODULE=org.apache.
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Not sure how tiles works internally, but I think like most JSP templating
solutions its does a lot of inclusions (similar to forwards). These are
server side so should preserve the request parameters. The included stuff
could modify attributes but I doubt they would modify the ones you set
(unless
Maybe you're setting your action to redirect=true in your struts-config?
(but if you're storing your form-bean in session - your action scope
attribute is session - this should be irrelevant)
Another maybe :), I think you have to put an action class between your JSP
and your tiles
I think that is a bit OffTopic
The eclipse.org website has also its support-structures.
hth
Alexander
PS: every now and then I ask myself whether the visit in the search-engines
should not be made mandatory...
The old RTFM might be changed to STFW (SearchTheFuckingWeb)
-Original
Hi,
I m using Tomcat5.0 and Struts1.1 and Informix 9.x as database
When i m trying to use DataSource of
org.apache.commons.dbcp.BasicDataSource in my struts application it
gives error
.I have mentioned in struts-config file also abt sdatasource like
username,password,drivername and
hello,
i am looking for a solution for the following problem:
in my database i have various BLOB items which represent images (gif or jpg). i would
like to create a struts action which returns this (by passing along a request
parameter to the action which is the imageid in the database. is it
Hi Ben,
I'm not sure if I understood you well, but I believe it's as simple as coding the
Action just like you said and inserting the corresponding URL to call it (I suppose it
would have to include the imageID as a parameter) inside, let's say, the src
attribute on an image tag.
HTH,
Freddy.
Your ImageAction could stream the result in the appropriate format itself.
When done, return null instead of an ActionForward to indicate to struts
that the Action has already handled writing the response.
Not sure what headers etc... need to be set though. If you search the
archive you can
hi freddy,
thanks for the response. that's not exactly what i mean however. what i want my action
to do is this:
- retrieve the imageid from the request params
- retrieve a byte array from the database corresponding to the image the imageid
relates to (so get the image blob from the db)
- set
Hi Friend's
I am trying to upload strut1.1 on the weblogic8.1
Any body guide me for the same?
-jignesh
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi ben
I assume you know how to get request parameters, construct query
strings and get a byte array from you db. Here's some code that will
stream an image. This should get you far enough to adapt to you needs.
if you use an action just return null instead of a forward, or just use
a
http://www.catb.org/~esr/faqs/smart-questions.html
-Original Message-
From: Jignesh Patel [mailto:[EMAIL PROTECTED]
Sent: Thursday, 12 February 2004 19:42
To: Struts Users Mailing List
Subject: Re: struts actions and content/type responses
Hi Friend's
I am trying to upload strut1.1 on
Hi:
Does anyone know an implementation of Map where keys are String and case
insensitive?
I want to do this:
map.put(propertyName, DATA);
And then, I should be able to get the value like this:
Object obj = map.get(PROPERTYNAME);
Or like this:
Object obj = map.get(propertyname); //or whatever.
Hi Friend's
I am trying to install strut1.1 on the weblogic8.1
Any body guide me for the same?
-jignesh
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
yes. here it is.
public CIMap extends HashMap
{
public Object get(String key)
{
return super.get(key.toLowerCase());
}
public Object put(String key, Object value)
{
super.put(key.toLowerCase(),value);
}
}
This was
Navjot,
I believe this is exactly what Guillermo CLEARLY stated he had already tried (and is
not efficient enough for him).
If you had taken a little bit longer and read carefully, then maybe you'd have noticed.
Regards,
Freddy.
-Mensaje original-
De: Navjot Singh [mailto:[EMAIL
Using struts 1.1 on Tomcat 4.1.29
I want to use the Javascript validation i.e. html:javascript/ but it goes
straight to the struts validation
Also all the javascript is written to the screen, unless in script tags -
which after reading the javadoc should not be needed.
Any ideas?
Hi,
In my application I have a feature to download a report in PDF format.
The contents come from an XML tree, together with an XSL-T to make the byte array for
the PDF file.
The content type for the httpServletOutputStream is as follows:
Hi,
I'm not sure about this, but I remember having the same problem a long time ago and I
believe it had something to do with the response's header(s). Sorry, can't remember
exactly what it was.
HTH,
Freddy.
-Mensaje original-
De: Hendrickx Wesley [mailto:[EMAIL PROTECTED]
Enviado
Make sure
1) that the entry in struts-config.xml matches the entry in validation.xml and that
both refer to the attribute value in html:javascript name=... /
2) that the validation.xml syntax is ok. Try testing a form entry with a construct
that you know works. Add each new field element
thank you mark, that worked a treat :-)
cheers,
Ben
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: 12 februari 2004 12:45
To: Struts Users Mailing List
Subject: Re: struts actions and content/type responses
OutputStream ou = response.getOutputStream();
java.net.URI
have a look at the posting
called struts actions and content/type responses
and see the randomaccessfile bit.. Not sure but I reckon that could be
the beef..also perhaps
response.setHeader(Cache-Control, no-cache);
On 12 Feb 2004, at 13:29, Villalba Arias, Fredy [BILBOMATICA] wrote:
Hi,
Hi,
I know this topic has been discussed before but I've looked at all the
previous posts and can't find anything to answer my problem
I have a struts app that is designed to use a database user with very
limited rights pre-login and then post login it is designed to use the
users own view.
I
At 12:29 PM + 2/12/04, Darren Massel wrote:
Using struts 1.1 on Tomcat 4.1.29
I want to use the Javascript validation i.e. html:javascript/ but it goes
straight to the struts validation
Also all the javascript is written to the screen, unless in script tags -
which after reading the javadoc
You could always try the built-in approach:
Map m = new TreeMap(String.CASE_INSENSITIVE_ORDER);
Obviously, you'll have to decide for yourself if it's efficient enough...
Quoting Villalba Arias, Fredy [BILBOMATICA] [EMAIL PROTECTED]:
Navjot,
I believe this is exactly what Guillermo CLEARLY
smime.p7m
Description: S/MIME encrypted message
Hi,
I have a problem with disabled form fields. I'm using a user entry form,
which fields can be edited by the current user based on his group
memberships. So a normal user without admin status cannot change the
uid, as this field is disabled.
My problem is, that after submitting the form,
This is probably even more off topic, but I've seen this mentioned before.
From what I can tell of their description of this workflow scope, it looks
like it may be helpful as far as ease of use goes, but it doesn't offer any
real technical benefit over the use of hidden form fields or sessions,
Hi,
I'm having a problem setting an initial value for a DynaValidatorForm. I have a date
field that is not required to be filled in. However, when I submit the form without a
value, I get a Date.valueOf exception thrown from SQLConverter.
If I submit a valid value or attempt to submit a
Yep. The browser doesnt submit a value for the field if its disabled.
If your using a request scoped actionform then you will either need to
reload its value from wherever or add an additional hidden field on the
form to submit the value. If its a session scoped form, just make sure that
you dont
Brian said:
Don't use getParameter() to try to get hidden form variables.
getParameter() looks for parameters appended to the request URL --
http://www.myhost.com/do/myAction?param1=1param2=2. getParameter() will
give you access to param1 and param2.
The only reason not to use getParamter to get
You can have a string that looks like a date and validator will still
validate it. To my knowledge there is no need to have the property of
type Date. same is true of other types also.
On 12 Feb 2004, at 14:36, Carl Walker wrote:
Hi,
I'm having a problem setting an initial value for a
i believe that disabled form elements return null.
I hate to say it, but you could have the uid stored as a hidden
variable in the case of the non admin user but still display a text
field with the value displayed.
On 12 Feb 2004, at 14:31, Arne Brutschy wrote:
Hi,
I have a problem with
The whole point is there is no concept of a Workflow scope in Servlet API and if you
want to share objects , you have to put them in session.And then clearing them is not
always easy, as you will never be clear when user may leave the workflow scope.And you
have to code for it in every action.
smime.p7m
Description: S/MIME encrypted message
Try using Javascript to re-enable the fields when the form is submitted,
this allows them to be passed through to the form as normal.
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: 12 February 2004 13:46
To: Struts Users Mailing List
Subject: Re: Getting data from a
Thanks for your reply. The problem I'm having is that the field is not required, so
specifying a string like '1970-01-01' for an initial value isn't desirable.
- Original Message -
From: Mark Lowe [EMAIL PROTECTED]
Date: Thursday, February 12, 2004 8:44 am
Subject: Re: validation.xml
Did you check that you are put-ing (into the Context) the correct object (the one you
expect to get afterwards?)?
Have you verified that the value you are put-ing (in case its the right one) is not
being (unexpectedly) overwritten?
Are you using (/importing) more than one class with that
html:text property=fooDate value= /
Personally I just use separate field for day / month / year and convert
to a date in my model. Drop down menus make inputing dates simpler.
On 12 Feb 2004, at 14:56, Carl Walker wrote:
Thanks for your reply. The problem I'm having is that the field is
While I found your solution interesting. But whether the session is
bloated or not is other folk's problem. The javadoc for HttpSession
says what its for, the other way is to persist out-side of the web tier
which is another subject. Sure you don't want to use session for
everything that would
I've satisfied both your suggestions the javascript text no longer appears.
but How do i activate the JS validation?
-Original Message-
From: Carl Walker [mailto:[EMAIL PROTECTED]
Sent: 12 February 2004 12:34
To: Struts Users Mailing List
Subject: Re: Javscript
Make sure
1) that the
They dont submit any parameter in the posted request. As a result, when
struts populates the form, iterating the list of request parameters and
calling the setters with the values it wont call the setter for that one.
The value in the actionform thus depends upon the logic in the forms reset
Put these sample elements in the JSP. Note the JavaScript embedded in the html:form
attribue.
html:javascript formName=ContractForm /
html:form action=/insertContract
onsubmit=return validateContractForm(this);
- Original Message -
From: Darren Massel [EMAIL PROTECTED]
Hi,
Your problem sounds like you are using a forward tag which might be like -
forward name=success path=/my_page.jsp /
Try this -
forward name=success path=/zip_inquiry.jsp redirect=true /
This should solve your repost problem.
This is very beautifully explained in Chuck Cavances
Cheers worked a dream.
-Original Message-
From: Carl Walker [mailto:[EMAIL PROTECTED]
Sent: 12 February 2004 14:31
To: Struts Users Mailing List
Subject: Re: RE: Javscript
Put these sample elements in the JSP. Note the JavaScript embedded in the
html:form attribue.
html:javascript
snip
And then he has no more worries as to getting a bloated session, as the
session gets trimmed of workflow objects as soon as user goes to any screen
which is not part of work flow.
/snip
Unless of course the user simply closes the window. :-(
If the user has multiple windows open all sharing
At 9:31 AM -0500 2/12/04, Carl Walker wrote:
Put these sample elements in the JSP. Note the JavaScript embedded
in the html:form attribue.
html:javascript formName=ContractForm /
html:form action=/insertContract
onsubmit=return validateContractForm(this);
And if you want to control
ok not quite a dream the date format is not validated although this
works with the struts validation.
any ideas?
-Original Message-
From: Darren Massel [mailto:[EMAIL PROTECTED]
Sent: 12 February 2004 14:42
To: 'Struts Users Mailing List'
Subject: RE: RE: Javscript
Cheers worked a
snip
Surely if performance is that much of an issue then java would be the
last technology you'd use.
/snip
What would you suggest for a high performing web application?
snip
If there are performance issue with
this and you haven't abused the use of session then IMO this is a
matter for the
Try these entries in validation.xml.
field property=dateOfPO depends=date
arg0 key=label.dateOfPO /
var
var-namedatePatternStrict/var-name
var-valueMM/dd//var-value
/var
/field
And in the resources file
errors.date=Use 'MM/dd/'
Hello all. Long time struts user here, newbie to hibernate. I found a link
on the hibernate.org site to a struts-hibernate example written by Ted
Husted. I thought this would be a great example for me since I really
learned a lot from the Struts in Action book.
Well the link was to
Hello ,
i have a problem with the html:button tag.
i have a string in my JSP, this is an action, now i have to use a button
to link to the action.
I tryed:
html:button property=send onclick=location.href='%=mystring%' /
but it does not work.
What is wrong ?
Thanks for help
Tomek
snip
If the user has multiple windows open all sharing a session and does
different things in different windows things get really fun.
/snip
If user has different windows in different windows, then only the latest windows
workflow is honoured.SO all other window will have lost thier workflow
Hi to you all,
An OT question (if it were not urgent, I wouldnt post it) hope not to get fired
for this. :-)
Given a web application with two Servlets classA and classB: how can I determine
classBs servlet-name (as specified inside the web.xml file) from classAs doGet
method?
I
On 12 Feb 2004, at 15:44, Andrew Hill wrote:
snip
Surely if performance is that much of an issue then java would be the
last technology you'd use.
/snip
What would you suggest for a high performing web application?
I agree, java does the job nicely but if you're gonna get your knickers
in a
Shirish,
I'm not knocking the workflow concept, my only point earlier was that
someone shouldn't think it provides any real difference from session storage
except that it will attempt to automatically clear the session when they
leave that workflow and they won't have to put that logic in.
It's
The performance is not the only issue with bloated sessions
Like in our current project, we are using WSAD4.0 and websphere does nto guareentee
that session will be transferred across in a clustered environment if the session size
is more than 4k..And we are having our depoyment in a
smime.p7m
Description: S/MIME encrypted message
So am I!
If you send me the stack trace, the source code where the put gets done and the
source code containing the get, I might spare some time to give it a look. The
action mapping would also help.
Can't promess anything. Don't expect and answer for today, ok? (have work to do) :)
Regards,
Hello,
I'm trying to use indexed propeties in my form bean
(ActionForm) to handle an array of text fields
generated dynamically. Initially, I used a String[] to
hold the text field values, and had a problem when
validation errors occured in my validate() method,
i.e, the values of the text fields
we'll i reckon we've exhausted the subject, and my experience on big
projects was when i was working with quite large teams and some really
good sys admin folks so we (servlet/jsp people) never had to worry too
much about all that clustering stuff. The same was true of the model
tier where
Hi,
I am trying to write a webapp with struts and tiles that is similar to the
portlet-technology. The tiles-documentation example provided with struts is very
helpful to create the main functionality (e.g. customizing the portal by moving the
tiles). But so far I haven`t figured out how to
If that code with the user2 variable works, it looks like the user code
should work unless there is another MDF_userBean class it is referencing.
Can you send the log file of the error you get running the action class you
included here? The log file I see is for the previous version of this
1 questions... I can't see where the mdfUser attribute is set. Where is it?
1 comment:
There is a line that gets my attention:
//import data.DTO.MDF_UserBean; (inside LoginEmdfCrPktAction.java)
Is it possible that for some reason you are trying to cast a data.DTO.MDF_UserBean to
List,
I'm a Struts newbie with a lot of general hours in Tomcat. I want to
advance my development with Struts 1.1 and Model 2.
In an applied Struts scenario I have performed the following:
Followed closely the suggestions for integrating Struts into an existing
web application. I did do one
In my business logic I return a java.util.List to my action. In this
action I run through the list and use the BeanUtils.copyProperties() to
convert the List elements into formbeans. The problem is that in the
business object the property actual is a Double and in the formBean
it is a
If you do not want to use a FormBean and your action solely calls a
success page, maybe you could use the Forward Action build into Struts.
Then it would do a forward directly to the JSP page.
Daniel Kalcevich
SCJP
Software Development Analyst I
Mercury Insurance Group - IT, Web Agency Systems
Well I am close :) I have a DynaValidatorActionForm that has a
property of an Array of custom ActionForm. I am able to validate the
properties of the internal Action form from the validator using the
indexedList property in the validation.xml. I am not sure how I can
convert the internal
A few dozen, yes. :)
Look at the java.text.NumberFormat class.
Larry
[EMAIL PROTECTED] 02/12/04 10:18 AM
In my business logic I return a java.util.List to my action. In this
action I run through the list and use the BeanUtils.copyProperties() to
convert the List elements into formbeans.
Hi
I've read some mails about multiple struts-config files, but still have some questions:
-what's the advantage of using multiple struts-config files in one application ? Is
it better for performance ?
-how can I call a forward or action in my second struts-config from within a jsp ?
-can I
The advantage (from what I have read and seen) is geared more towards
team development. Having multiple struts configuration files allows you
to modularize the areas of your app, so that people aren't stepping on
each others toes with new changes. Another advantage of multiple config
files is to
So you would suggest formating the number after it is copied into my
form bean? It is a string at this point.
Nathan Maves
Sun Microsystems
On Feb 12, 2004, at 10:28 AM, Larry Meadors wrote:
A few dozen, yes. :)
Look at the java.text.NumberFormat class.
Larry
[EMAIL PROTECTED] 02/12/04
If you use multiple struts-config files in a single module, the net
result is a module which is configured from the union of all the
files; Struts has no knowledge of which components were defined in
which files, so those questions are not relevant.
Note that if you use MODULES, by adding more
This is the answer to your third question:
Yes, you can forward an action in one struts-config from within another
struts-config...
All the mapping(from all config file) will be in put in a single
ActionMapping class at the start of the web server
Regards
VasudevRaoGupta
-Original
So you would suggest formating the number after it is copied into my
form bean? It is a string at this point.
Anything that's collected from the page has to be a string. If you're goihng
to display a number, not collect it, I'd leave it in numeric format in the
bean and use a JSTL tag to
How do i reset the values of a Dyna Validator form that is in the session?
So that when i link back to that form once it has been submitted the values
are blank.
In the Action
form.reset(..) and form.set(String, ) had no affect.
form-bean name=acoSummaryInitForm
How do i reset the values of a Dyna Validator form that is in the session?
So that when i link back to that form once it has been submitted the values
are blank.
In the Action
form.reset(..) and form.set(String, )
intial= in the form definition
...had no affect.
cheers.
hi,
perhaps you mean
request.getSession().removeAttribute(nameOfFormBean);
cheers,
-Original Message-
From: Darren Massel [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 12, 2004 7:08 PM
To: '[EMAIL PROTECTED]'
Subject: Dyna Validator Form values
How do i reset the values of a
Hi,
My error:
javax.servlet.jsp.JspException: No getter method available for property ids for bean
under name org.apache.struts.taglib.html.BEAN
at org.apache.struts.taglib.html.MultiboxTag.doEndTag(MultiboxTag.java:247)
I do have a getter in my form bean:
private String[] ids;
Daniel Kalcevich wrote:
If you do not want to use a FormBean and your action solely calls a
success page, maybe you could use the Forward Action build into Struts.
Then it would do a forward directly to the JSP page.
Daniel,
Thanks. So I edited my struts-config.xml:
Step 4. Update
Nice.. Are you on 1.1 or 1.2?
On 12 Feb 2004, at 18:22, Nathan Maves wrote:
Well I am close :) I have a DynaValidatorActionForm that has a
property of an Array of custom ActionForm. I am able to validate the
properties of the internal Action form from the validator using the
1.1 as far as I know. I could never find the page to download 1.2
Nathan Maves
Sun Microsystems
On Feb 12, 2004, at 11:24 AM, Mark Lowe wrote:
Nice.. Are you on 1.1 or 1.2?
On 12 Feb 2004, at 18:22, Nathan Maves wrote:
Well I am close :) I have a DynaValidatorActionForm that has a
From: Darren Massel [mailto:[EMAIL PROTECTED]
How do i reset the values of a Dyna Validator form that is
in the session?
The 'initialize' method is inherited from DynaActionForm:
http://jakarta.apache.org/struts/api/org/apache/struts/action/DynaActio
1 - 100 of 144 matches
Mail list logo