yeap, that's something in a way i thought of as 'dirty fix' for a framework. As i am
looking into struts for 2-3 days only i am surprised to find such an elementary
functionallity not implemented? Should be interessting for plenty of people having
more
than 2-3 pages nested in not linear way?
Thanks it worked fine.
Erez
-Original Message-
From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 7:59 PM
To: 'Struts Users Mailing List'
Subject: RE: current year in JSP
The problem is that something like that (determining current date)
should be
done
Greetings Mohan. Thanks for replying.
The reasons why I mentioned the listener approach because I am also loading
the user profile upon successful login. You are correct in that the mixing of
servlet listeners and Struts forms is not a good idea.
Your ServletContextListener approach seems
I have noticed that this list alone has more postings then the
all the Sun mailing postings put together ?
Why do you think that is the case ?
From: James Mitchell [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject:
test=${yourFormName.yourProperty ne 0}
-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 06, 2003 9:29 AM
To: Struts Users Mailing List
Subject: changing to JSTL
Can anyone give a quick snippet to show how to replace the
logic:equal
tag with
The name of the host would presumably be available from the actionform, or
some bean in your action. Then you would create an ActionError like this:
new ActionError(errors.required,hostName);
I'm not sure I understand why the host name, which seems to be a variable
would be represented as a
Thanks for that.
So what would be the best way of displaying such data on a JSP page?
Would logic iterate be ok for such large amounts of data?
-Original Message-
From: Mehta, Chirag (IT)
Sent: 07 August 2003 09:49
To: [EMAIL PROTECTED]
Subject: Returning a result set
Hello,
I am
I am trying to upload a file using html:file which is received as a
FormFile, the problem is I need to find out this files absolute path. Hwo
can I retrieve this information?
Thanks
Daniel
-
To unsubscribe, e-mail: [EMAIL
Hi Rohit,
Could u please be more elaborate on your given solution. I am still not
able to get through the solution.
Anurag Garg
-Original Message-
From: Rohit Aeron [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 07, 2003 2:37 PM
To: Struts Users Mailing List
Subject: RE:
have a look at www.ibatis.com
The db-layer is a pretty good counterpart to struts and very well documented.
It's worth to look at (I'm not sponsered by ibatis)
cheers Reinhard
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Must all files for a given Tiles definition be located in the same
folder? I am extending one layout where the base file is located in
/WEB-INF/jsp and the added file is located in /WEB-INF/jsp/proptype
No, this shouldn't be a problem. I do the same thing--the only difference
is that you
Though this is not directly related to STRUTS, I was wondering if someone
has come across something like below that can be integrated with STRUTS.
Is anyone aware of any generic component for Domain Value LookUp. Domain
Values might be based on one or more contexts. e.g
list of states is
field property=volume(fieldname)...
in the validations file,
here fieldname is dynamic and appended by 0,1,2,3,4
since there would be multiple entries of say phone
% for (int i=0;i5;i++;) { %
html:text property=volume(phone%=i%) value=/
% } %
my actual fieldname is phone
but on jsp it would be
Has anybody come up with any validations for map-backed fields
field property=???
depends=required
arg0 key=/
/field
what should go in ???
for
% for (int i=0;i5;i++;) { %
html:text property=volume(key%=i%) value=/
% } %
Thanks
Panchasheel
-Original Message-
From: Cordingley,
I believe on the apache site there is a full mbox archive or something
like that.
-Original Message-
From: Filip Polsakiewicz [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 11:01 AM
To: Struts Users Mailinglist
Subject: [OT] Retrieve all messages ever sent to this list
Hi,
Yeah, we found this too. When using WebLogic 6.1 our reset functions set all values to
null, which then left them blank on the JSP. When upgrading to WebLogic 7.0 then
suddenly were all output as null and not a blank field. Upon investigation this is
the way it should be done and was a bug
Wow. I like this EL, but I'm not sure it's a good thing unless they ban
%scripting% in jsps. :)
Alex Shneyderman wrote:
test=${yourFormName.yourProperty ne 0}
-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 06, 2003 9:29 AM
To: Struts Users Mailing
Hi,
I have a few submit buttons to which I wish to apply a style. I tried the
following but I could not get the desired blue coloured buttons.
html:submit property = LOGIN style=BORDER-RIGHT: #98c8e8 1px solid;
BORDER-TOP: #98c8e8 1px solid; BORDER-LEFT: #98c8e8 1px solid;
BORDER-BOTTOM: #98c8e8
hi,
u don't have to declare any classes .. the framework pick it up from
the classpath
logic:iterate name="tayloringForm" property="openFailures"
id="openFailureDescriptor"
type="tayloring.OpenFailureDescriptor"
is absolutelycorrect
Do Struts works with Tomcat 4.1.27 ?
Yes. I just saved my webapps struts-*WHATEVER* applications (and my tomcat-users.xml
ids/passwords), erased my tomcat-4.1.24, installed 4.1.27, and started the new one in
under 5 minutes time. My application, the struts example application, and a few
I think there is a trick you can perform with regard to this:
2) Or is it possible in action read the value of the var named
datePattern in validation for particular form??
You can call your validate method in your Form.validate() initial when you populate
the form. If the date format
its only the original file's location that i require, i can't find any
mention of how to aquire this in any online articles.
-Original Message-
From: Dan Tran [mailto:[EMAIL PROTECTED]
Sent: 06 August 2003 16:24
To: Struts Users Mailing List
Subject: Re: uploadfile path
Folow the Struts
Any idea on the performance (turn-around-time) improvement achieved by
using OSCache ? A rough range might do.
Thanks
Sreekant G.
TCS AMBATTUR
This mail was scanned by Interscan Virus Wall of Mailserver at Cathedral Road TCS
Chennai
On Tuesday 05 August 2003 13:46,
[EMAIL PROTECTED] wrote:
Hi! This is the ezmlm program. I'm managing the
[EMAIL PROTECTED] mailing list.
I'm working for my owner, who can be reached
at [EMAIL PROTECTED]
To confirm that you would like
[EMAIL PROTECTED]
removed from the struts-user
It looks like you're just trying to make sue that the password field is
filled in right? If so, all you need to use is the 'required' validation.
Just replace requiredif with required, and get rid of the var section. This
will make sure a password was entered.
Is this what you want to do?
-
I hope I am not the first one to push the limit :) because I don't think
selection boxes are that rare :)
-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 06, 2003 9:16 PM
To: 'Struts Users Mailing List'
Subject: RE: RE: validating a html:select
Hi Seshadhri
Then you must be getting javascript error .just look at the bottom left corner of
explorer see what does it say .. Just mail me that error so that I can will tell you
more ...
Regards
Rohit
-Original Message-
From: Seshadhri Srinivasan [mailto:[EMAIL PROTECTED]
Sent:
You may be right - might have to use the .index property instead.
-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 06, 2003 9:19 AM
To: Struts Users Mailing List
Subject: Re: [OFF TOPIC] JavaScript + select tag question
I believe that
It is/was a known bug for WL 6.1 sp2. If you like more
info on it, do a google search for CR064391.
A patch was realeased for this bug
(CR064391_610sp2.jar) and it is fixed as of sp3. But
we cannot upgrade or install patched, for a number of
reasons.
So, if you use WL 6.1 sp2 without patches,
I have a web site at http://www.pobox.com/~encyclopaedia_wot. It contains 100's of
pages of HTML of mostly text. I'd like to migrate this to JSPs and use Templates/Tiles
because:
1) I want to better standardize the layout
2) I want the content writer to not have to worry about anything but
I guees if you want to assign the meaning to your form based on the
context where you placed it, it might make some sence.
Todor, you can probably create another action and extend it from your
original action, where you would override getKeyMethodMap (). This will
probably the least amount of
Yes David, it would work but it was not what Struts had in mind. I
regard your solution as trick, a way around but not something I want to
follow as development guidelines.
Erez
-Original Message-
From: David G. Friedman [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 06, 2003 11:54
Hi,
I think you are using the old one. Please use
commons-fileupload.jar that comes with the 1.1
version.
Alok
--- bhanu sistla [EMAIL PROTECTED] wrote:
HI
I am using structs upload.war but i am not able to
deploy it. i am getting following error.
java.lang.NoSuchMethodError
at
This is definitely what I would do.
And just to be more clear, I would copy that action mapping into as many new
ones as you need. Just change the name and input page, then you should be
all set.
Also, if you don't specify the input page correctly, you can't return to
that page if there are
I have a scriptlet in my JSP which I wish to rewrite using JSTL and tags
and to get rid of the java code. How can I perform this?
%
for (int i = 30; i 90; i++) {
%
html:option
Hello All,
I have created a page where i submit the data for saving it in the database.
I have some hidden variables defined in the same page. After saving the data
when my control comes in the action class I do mapping.findForward to the
other page. The new page also contains some hidden
Hi All,
Which class in the Framework initializes the ActionForms specified in
the XML Config files..
When we declare an ActionForm for an Action, the Framework will
automatically sets the values in the from submitted using the form and calls
the validate() method . But which class in
Hi,
I would like to know how the Framework extracts the Path from the URL so
that it can instantiate the corresponding Action Class for which the path
specified in the config file ..
Which class of the Framework takes care of this ??
Thanks in Advance
Sateesh
THIS E-MAIL MESSAGE ALONG
Hi,
I am trying to use the cancel button in Struts 1.1. It is not
working
The isCancelled(request) is always returnning false
Can anyone help me?
Natalie
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
It's not only limited to String[]. For me, it's more like a map. (Got to go
home, too late now.:)
--- In ValidatorUtil.java ---
public static String getValueAsString(Object bean, String property) {
Object value = null;
try {
value = PropertyUtils.getProperty(bean,
I would suggest you use nested beans
Regards
Rohit
-Original Message-
From: Riaan Oberholzer [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 07, 2003 7:14 PM
To: [EMAIL PROTECTED]
Subject: Can I do multiple updates/inserts with one struts form?
I have a dynamic table with a list of
From: Kris Schneider [EMAIL PROTECTED]
I guess my previous example wasn't clearly formatted, but it certainly
wasn't
supposed to illustrate executing a query from a JSP. Here's a modified
example:
Java (e.g. an action):
--
import javax.servlet.jsp.jstl.sql.Result;
import
Can anyone confirm this ?
actionpath=/tiles-admin/reload
type=org.apache.struts.tiles.actions.ReloadDefinitionsAction/
actionpath=/tiles-admin/view
type=org.apache.struts.tiles.actions.ViewDefinitionsAction/
Kind regards,
Marcel Overdijk
Pushing the limit, eh:).
How hard is it to write your own two line JavaScript. Besides, since it's a
select box(not a combo), all the options are assumed to be valid from the
beginning, why there is an invalid option there:).
-Original Message-
From: Erez Efrati [mailto:[EMAIL
Put an alert() in your validateRequired(). Maybe it's not getting called since
it's a radio field...
-Original Message-
From: Erez Efrati [mailto:[EMAIL PROTECTED]
Sent: August 7, 2003 11:06 AM
To: 'Struts Users Mailing List'
Subject: Not getting javascript Popup on html:radio buttons
Thats my code
html:form method=POST action=/files
bean:define id=processName name=filesForm property=processName
type=fully-qualified-class-type-name /
bean:define id=folder name=filesForm property=folder
type=fully-qualified-class-type-name /
html:hidden property=folder/
html:hidden
Return an ActionError with a message parameterized to include the names of
the entities, then on the JSP, render that errors collection.
-Original Message-
From: Alawadhi, Mona [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 2:08 PM
To: 'Struts Users Mailing List'
Subject: Delete
I am using the bean:write tag and for date fields
(java.util.Date), I get the (rather ugly) full:
Wed Aug 06 12:08:07 CEST 2003
I have tried to do:
DateFormdat df = DateFormat.getDateTimeInstance();
SimpleDateFormat sdf = (SimpleDateFormat)df;
sdf.applyPattern(-MM-dd hh:mm);
But it gets
It's really hard to tell without knowing what kind of struts-based web
application you are designing.
You might want to find out what service components you will lookup and/or
create, and how often are these operations. Struts handles action dispatch
pretty well.
(On a side note, I am not
You can limit it with using style=width:size_in_px.
For example:
html:select property=contry style=width:200px
/html:select
However, some old browser versions, such as Netscape 4.5, do no support this
style.
Silverio Wagner Silva(Secorp) [EMAIL PROTECTED] wrote in message
Hi,
I m using tiles, but i would like to kwnow
if it's possible to refresh only one page of the tiles layout.
Thus, the browser should load only the data page(body) which has
changed,
And not all,footer, header, menu bar, etc...
Is it possible to do with STRUTS, like the HTML frameset do?
How
Hi,
I have a Action form which contains an arraylist the array list adds beans which
are called IpAddress(two String properties).I am able to display in the jsp page but
when I submit this form it is unable to populate to the action form.
b class=txtMedium
StrutsDoc 0.3.1 has been released and can be found here:
http://sourceforge.net/project/showfiles.php?group_id=49385
This release fixes a few minor bugs and includes a Spanish translation
of the user guide.
The strutsdoc for the struts-example application has been updated and
can be found at:
Zille,
following would be the rough steps that you'd have to do for accessing from a normal
java class...
1. set the jdbc.drivers property of the system to the full path name of the driver
2. Call the getConnection method of the DriverManager class by passing the URL of the
database
however if
I don't think you can specify different action for different options in html:select.
But I can suggest ,if you are using javascript you can manipulate it on the basis of
options.
Regards
Rohit
-Original Message-
From: Todor Sergueev Petkov [mailto:[EMAIL PROTECTED]
Sent: Wednesday,
Hi,
I have a HashMap in my ActionForm bean.I am unable to populate with the form in the
jsp page.
can anyone help me regarding this.
logic:notEmpty name=editAdvancedForm property=ip
b class=txtMedium id=largebean:message bundle=content
key=title.ipaddresses//b
Hi;
If I want to initialize an ActionForm from a session bean, what's the correct way.
Looking at it it seems to me that I want to tie the session bean to the session.
However, reset passes a ServletRequest instead of a HttpServletRequest so there is no
way to get the session to do a
If your doing Struts you gotta have a character encoding filter servlet.
Try googling it.
- vineet
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import
I don't think it is the formbean that is checked for isString() it is the
data members of the formbean. Since it is http I guess there is only 2
choices: String and String[] and so the test determines how the validation
for a value is to be done.
Kinda goes back to that old question posted
No major problems - but I was worried I was going down a road that was going
to be impossible - I figured it was better to ask first.
thanks - dave
- Original Message -
From: Stephen Brown [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Thursday, August 07,
Would you like us to write the rest of your application as well?
Hunter and Crawford, Java Servlet Programming, 2d ed. (O'Reilly 2002).
Mark
-Original Message-
From: Pierre Houdagba [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 07, 2003 6:59 PM
To: 'Struts Users Mailing List'
Hi Shane,
I guess it is so they can have one servlet method per HTTP method
The spec includes doGet(), doPost(), doPut(), doDelete(), doHead(),
doOptions(), doTrave()
HTTP/1.0 has doGet, doPut, doHead. HTTP/1.1 adds the others.
--
Jason Lea
Bailey, Shane C. wrote:
Jason,
That makes since
Hello group,
I have tree menu running in applet in one of my applications. Currently i am in the
process of evaluating whether to continue with tree menu in applet or to develop tree
menu using jsp, struts etc.? what are the pros and cons between these two options.
Also i am looking for some
Anyone know of a non-scriplet way to do what this jsp snippet is doing?
c:set var=editPage value=${config.editPage}/
% String editPage = (String) pageContext.getAttribute(editPage); %
tiles:insert page=%=editPage%/
Can someone with a bit of in-depth Struts experience comment
on the risks of upgrading a project from Struts 1.0 to Struts 1.1?
Should my project work without any modifications? Are there any
issues I need to be aware of (changes in behavior and the like)?
I just did this. I had a slight
Hi Dave,
you should look at indexed or nested tags with the iterate tag.
hth
Adam
David Thielen wrote:
Hi;
I have a jsp page where I want to display N items where I get the N items from the database. I need to have an edit field with each item. Whats the best way to do this in struts?
thanks -
66 matches
Mail list logo