From: Kris Schneider <[EMAIL PROTECTED]>
Didn't like the JSTL Result suggestion, I guess ;-). As a JavaBean,
Well personally I have no preference, just want something that works
efficiently and cleanly :)
The example you have had the query in the jsp, wheras I'm trying to stay
away from anything
Try
onclick="javascript:validate();"
regards
Rohit
-Original Message-
From: Seshadhri Srinivasan [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 07, 2003 11:20 AM
To: 'Struts Users Mailing List'
Subject: RE: How to add Java Script to a JSP page with struts tags
Hi,
I have created a
- Original Message -
From: "Khalid K." <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, August 04, 2003 4:26 PM
Subject: Select Box and validation (plz help :)) (repost)
> Any suggestion? please??? :)
>
>
> I am submitting a form using "onchange" java
Howdy,
There are definitely a number of funky things in your code example. I'm not
exactly sure what you're trying to do since your onchange attribute is
calling a JavaScript function called "projectChange" which I don't see
anywhere, but here are a couple of things to look out for:
1. I don't
http://www.catb.org/~esr/faqs/smart-questions.html
-Original Message-
From: Sridhar Kotagiri [mailto:[EMAIL PROTECTED]
Sent: Friday, 8 August 2003 00:16
To: Struts Users Mailing List
Subject: Struts ProblemUrgent
Hi,
I have a HashMap in my ActionForm bean.I am able to display
You could think of it as a business logic function and do it (the
date/String conversion)in the middle tier and pass it to the view already to
go. It seems like the date format would be the same if you were printing it
to a JSP page or a Swing GUI. If you ever had to support two or more front
e
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 - da
> 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 sligh
Anyone know of a non-scriplet way to do what this jsp snippet is doing?
<% String editPage = (String) pageContext.getAttribute("editPage"); %>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
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 e
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 ab
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'
Subje
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
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 here
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 javax.servlet.Servle
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 getAttribu
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.
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, Aug
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 i
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:
h
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.
You can limit it with using style="width:".
For example:
However, some old browser versions, such as Netscape 4.5, do no support this
style.
"Silverio Wagner Silva(Secorp)" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> People,
>
> Is there any way to limit
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 sure
I am using the 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 ignored
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
Thats my code
I changed it as suggested and this was the error I got
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 51 in the jsp file: /files.jsp
Generated servlet error:
[javac] Compiling 1 source file
/usr/local/tomcat-imageshed/wor
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 buttons
I have a f
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 PROTECTED
Can anyone confirm this ?
Kind regards,
Marcel Overdijk
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
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 en
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, proper
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 comm
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
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 variable
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 the
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++) {
%>
<%=2003-i%>
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 valid
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
>
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 AM
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 wor
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 conten
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, y
hi,
expresso may hit the target.
--
Laurent
- Original Message -
From: "Mehdi Bizhani" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 06, 2003 8:15 AM
Subject: Model and Business in Struts
>
> Hi,
>
> Please introduce me a Struts-compatible and complete framewor
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 + tag question
I believe that document.forms[0].ele
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: Th
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 box
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?
- Keit
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 str
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
-
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
> 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
til
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 forma
hi,
u don't have to declare any classes .. the framework pick it up from
the classpath
is absolutely correct & should work for u...
BTW, FYI my brother-in-law is working in ur company
-- nagi
---Origin
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.
LOGIN
Please suggest what I should do to get blue coloured buttons.
I also have the following *.css file with me.
.edit {
FONT-WEIGHT: bold;
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 Mail
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 (we
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,
Has anybody come up with any validations for map-backed fields
what should go in ???
for
<% for (int i=0;i<5;i++;) { %>
<% } %>
Thanks
Panchasheel
-Original Message-
From: Cordingley, Charles [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 1:24 PM
To: '[EMAIL PROTECTED]
<% } %>
my actual fieldname is phone
but on jsp it would be
value(phone0),value(phone1),value(phone2),value(phone3),value(phone4)
if it was a single phone then its fine mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 06, 2003 5:52 AM
To: 'Struts Users Mailing List'
Subject: RE: Using Struts Va
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 sing
> 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
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 add
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: Redire
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 PROTEC
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 de
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 k
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
> tag with the
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
70 matches
Mail list logo