Darren Hall ha scritto:
(Please disregard the earlier post with the same subject)
Greetings,
I'm using struts 1.2.9 with Tomcat 5.5 and Apache 2.2.
Here's my issue -
I'm looking to create a default error page for my application. One thing you
should know... my application is using til
HI friends
i am using validator framework for client side validations in my web
application
i added login page validations in validator.xml file , it working fine
the problem starts when i added another collegeForm fields,
if i added atleast one field like id
the server saying that no service
maybe we could do something like this in the JSP - the idea is taken
from the TextTag.java which knows to use the errorStyleClass when theres
an error.
...
<%@ page import="java.util.Iterator" %>
<%@ page import="org.apache.struts.Globals" %>
<%@ page import="org.apache.struts.taglib.TagUtils" %
I got the same thing.. but I figured out the mistake that I used perform( )
instead of execute( ) method. After replacing it with execute ( ) method, I
got the output. There is one more thing.. If you use ActionErrors validate (
) method, then you have to set the validate attribute to "true" right
I can't remember the last time I felt so embarrassed. With 30+ years of
writing code and get this.
The Application that I copied the page from had the code fragment
ERROR: Application resources not loaded -- check servlet container
logs for error messages.
Thanks
-Original M
Hi,
I feel the solution is:
In web.xml
404 // this is only for 404 page not found
/error400.do
In Struts-config.xml
-
In tiles-def.xml specify the defination with name "error400page"
--- --- - -- (a
Spoke too soon. The reworked pages/actions don't work...
Say I have 3 pages - page1, page2 and page3 with actions between them.
The action between page1 and page2 uses saveMessages to save a message on the
session for page3 to display (with property="page3-messages").
The next page shown - page2
If you aren't using log4j or some other fine grained logging
implementation for commons-logging I would *highly* suggest taking the
few minutes to set it up. It will prove invaluable in situations like this.
Adam
Darren Hall wrote:
I just went through this logging exercise with Struts.
Do you
I find all my request based filter-mapping is for *.do,index.jsp
(requests)
e.g. request comes in something.do (filter is invoked)
struts forward to tile --> includes various *.jsp (no filter mapping so
no filters invoked)
Are all your filter-mappings really needed for *.jsp (responses)?
-Or
I just went through this logging exercise with Struts.
Do you have any other logging configured for Struts other then the what
struts uses by default, Ray?
If you haven't incorporated log4j (or any other logging tool) for use with
struts. Struts will use the commons-logging libraries for output lo
Try using more verbose logging. If using log4j for instance, set the level for
org.apache.struts to debug, then watch the log file as the web application is
deployed. Make sure whatever file(s) you specified in the struts-config doc(s)
are available to the web applications context class loader.
Not sure if this will help you, but a quick google search turned up the
following:
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg21023.html
>From what I see in the struts blank example and the above post, the common
factor appears to be the mailto:[EMAIL PROTECTED]
Sent: Monday, Se
I'm assuming you are writing your own custom tag and rendering the link
inside the tag definition. If this is the case you may wish to have a
look at the org.apache.struts.taglib.TagUtils class. One of the
overloaded computeURL methods may provide the functionality you are after.
Adam
Dave Ke
I have checked all of the logs. I have built many Struts applications in
the past using previous versions of struts and Tomcat. If I knew what exact
Application resource the message is about, I could make some progress.
I thought it was MessageResources.properties because in the beginning I
didn
> If you are using Tomcat, have you looked in stderr and stdout files for
> today in that directory?
Sorry - "that directory" would be the $CATALINA_HOME/logs directory (if you
are using Tomcat).
Darren
-Original Message-
From: Darren Hall [mailto:[EMAIL PROTECTED]
Sent: Monday, Septemb
Bhay,
Before you spend much time on the current design, I suggest that you try
sending a page with dummy data to a browser that has 1000 rows and 10
columns. You might be able to demonstrate the lack of usability to the
customer and also uncover browser rendering issues with the design.
-Rich
Ray,
What application server are you using? Tomcat?
If you are using Tomcat, have you looked in stderr and stdout files for
today in that directory? (Not sure how much help I can be here, but I'm
starting simple. We may quickly run out of my depth.)
Darren
-Original Message-
From: Ray
On 9/11/06, Darren Hall <[EMAIL PROTECTED]> wrote:
So, should I use the datasource functionality provided in struts, or should
I "roll my own" database connection solution by creating a datasource
factory that can be used to retrieve connections?
I wouldn't do either. If you can, use Spring to
(Please disregard the earlier post with the same subject)
Greetings,
I'm using struts 1.2.9 with Tomcat 5.5 and Apache 2.2.
Here's my issue -
I'm looking to create a default error page for my application. One thing you
should know... my application is using tiles. In my web.xml file I've
(reposted. Was "DAO and getDataSource" - however that post was made by doing
a reply to another message and simply changing the subject. I didn't realize
that this was thread hijacking. Please accept my apologies, and disregard
the earlier post.)
Hopefully this will be a quick question.
I'
I haven't written a Struts application for over a year now and I am having
some trouble. I have an application configured with only a welcome page
taken from the Struts blank application. No matter what I do to display
this page I get the message
ERROR: Application resources not loaded -- Check
Hi,
I am trying to create a link on a page with the following URL
http://localhost:8080///list.do
This JSP code specifies the
Upload
produces this link
http://localhost:8080//upload/upload.do
But, this Java code in a Tag
out.print("Upload");
produces this link
http://localhost:8080///
I figured it out and fixed my code.
The options tag is responsible for rendering the selected attribute.
I kind of thought the select tag doEndTag would parse the evaluated
tag body and set the right one as selected. I suppose not as
efficient if you did it that way.
Thanks,
Shawn
On 9/11/06,
Lets assume that I have a 2-D array with the values. I display each cell using
a tile. So if a number has to be dispalyed, we have a numeric-tile. Similarly
We have a date-tile, we have a percent-tile etc. Using this approach, we
maintain consistency in the data dispaly, for e.g we dispaly only
What, specifically, is stopping you from making the data a 2 dimensional
array and using a c:foreach kind of JSP loop instead of trying a tiles
definition. It would help to explain what this uniformity is that you need
to replicate. Is it something you can lock down with a few site-wide
styles?
I tried to simplify the problem when I posted my question. Here is the actual
scenario.
Every piece of data displayed on my page is displayed using a tiles - thats
for uniformity across the application. There are around 1000 rows being
dispalyed, and each row has 10 columns (thus the figur
Have you considered looking at a template engine such as Velocity or
Freemarker? I'm sure it would have greater efficiency than reinvoking the
servlet and filter chains 10k times. And yes, I will hold back my urge to
ask why you are putting 10k items on any page in the first place.
Regards,
Davi
I have a html-el:select in a logic loop and the values are not being
retained after submtitting the form and returning with a validation
action error.
The html-el:text fields values are being retained and they are in the
exact same object.
Hi,
I have a jsp page in which tiles:insert is called 10,000 times. I have 7
servlet filters defined in the application. My problem is that for each
tiles:insert the entire filter chain is also invoked. This degrades my page
rendering. I replaced the tiles:insert with out.println - in thi
And see also
* http://cwiki.apache.org/WW/sitemesh.html
-T.
On 9/11/06, Don Brown <[EMAIL PROTECTED]> wrote:
Take a look at how the showcase example application uses sitemesh. If
you use Struts tags in the decorators you have to ensure the sitemesh
and struts filters are defined in a particul
Take a look at how the showcase example application uses sitemesh. If
you use Struts tags in the decorators you have to ensure the sitemesh
and struts filters are defined in a particular order, IIRC.
Don
On 9/11/06, sharad bhushan <[EMAIL PROTECTED]> wrote:
hi all,
i am having problems when u
hi all,
i am having problems when using sitemesh 2.2.1 and struts2.the problem is it
does not alow me to use struts tag libraries.and gives an error
java.lang.NullPointerException
org.apache.struts2.components.URL.end(URL.java:213)
org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(
You can't use JSP tags in scriptlets like that. For your example, just
remove the scriptlet, i.e. instead of
<%
String str="";
out.print(str);
%>
just write
If you need the value retrieved by the bean:message tag in some other
code within a scriptlet, you'll need
Hopefully this will be a quick question.
I'm using struts 1.2.9 and I need to implement a database connection for my
web application and wanted to use a standard DAO pattern. I noticed that
struts provides a mechanism for implementing datasource configuration in the
struts-config file and in my on
Hey everyone!
I'm having trouble with the 'titleKey' attribute resolving to the correct
translated title when the locale of my web app is something other than English.
I'm currently only using the 'titleKey' on a couple of and
elements, but when I change the locale, the text is always in
En
Have you tried form onsubmit instead on button onclick?
Obrigado,
David Pinho
DAN/DIS
-Original Message-
From: Sheetal Gupta [mailto:[EMAIL PROTECTED]
Sent: segunda-feira, 11 de Setembro de 2006 10:25
To: Struts Users Mailing List
Subject: Hi Need help .. on javascript & validation fra
On 9/11/06, Ted Husted <[EMAIL PROTECTED]> wrote:
The Spring bean can be instantiated as a singleton, and any change
made to the object via the property would be to the singleton
instance, and reflected anywhere else the object is referenced,
including another Action class.
I believe that ther
Greetings,
I'm using struts 1.2.9 with Tomcat 5.5 and Apache 2.2.
Here's my issue -
I'm looking to create a default error page for my application. One thing you
should know... my application is using tiles. In my web.xml file I've added
the following:
java.lang.Exception
flc.error
"
The Spring bean can be instantiated as a singleton, and any change
made to the object via the property would be to the singleton
instance, and reflected anywhere else the object is referenced,
including another Action class.
I believe that there may be notions of "session" in the Spring API,
but
I would do a couple of things here.
First, there is a version of Struts in the WebLogic core. In order to
ensure that your app uses the version of Struts you need to, you'll need
to specify "prefer-web-inf-classes" in your weblogic.xml (set to true).
Second, there is never any need to independen
It is already autowiring into my action.
I want to autowire out from of my action into spring so it can get
autowired in other actions after I set the value and don't want to
copy all the bean values from one object to another.
I realize I could autowire an enclosing bean and then set the value
b
Dear anurag shinde,
Your description suggests one of two things:
1. If you only have a java app server running (no web server like Apache
taking the initial requests and forwarding them on) then your problem sounds
like an incorrect or missing "*.do" servlet mapping in your 'live'
context/WEB-INF
Yes i have already try " instead of ' as value deliminator.
I also tried: key=\"test.hello\"
but it does not work too.
I have also set up resource bundle in strutsconfig. it works, when i use
tag out of scriplet.
David Grundberg <[EMAIL PROTECTED]>
09/11/2006 05:12 PM
Please respond to
"St
I would try using " instead of ' as value delimiter. (key="test.hello"
instead of key='test.hello') Have you set up the resource bundle in
strutsconfig?
[EMAIL PROTECTED] wrote:
Hi Everybody,
i have a struts application which gives multilanguage support.
And i want to a assign a property fil
Hi,
I am working with Tomcat
I installed the struts application.
I get these errors. I would appreciate if I can get some pointers to how
to solve this problem.
regards
-Perry
--
Hi Everybody,
i have a struts application which gives multilanguage support.
And i want to a assign a property file key value to a string in scriptlet.
Here is the example jsp:
.
.
.
<%
String str="";
out.print(str);
%>
.
.
When i want to print "str" value, there is no output show
On 9/11/06, Daniel Chacón Sánchez <[EMAIL PROTECTED]> wrote:
And I realized that the problem not was a Struts error, but the html error
cause an strtus double execution (that´s an error, in performance). So we
should make a list like the one that is on:
http://www.geocities.com/dustinmarx/SW/stru
We should do a list of the possible reasons for that problem, beacause I
think a lot of people have this type of error.
2006/9/11, Givler, Eric <[EMAIL PROTECTED]>:
I've had this happen when I had a Struts Action which was written to
return a PDF document. I found a note somewhere online that
On 9/11/06, Dave Kennedy <[EMAIL PROTECTED]> wrote:
I need to download a file from a server to client computer using Struts.
I've implemented StrutsFileDownload from the Struts Wiki, but this displays
the contents of the file
http://wiki.apache.org/struts/StrutsFileDownload
The answer is in the
Hi Dave,
Basically you have to set the content disposotion to "attachment"
eg..
//setting the content type to an arbitrary one, so to make browsers
//definitely download the file. Some browsers simply ignore download
//instruction and display the content once they know its cont
Find the discussion with this tittle "Double Execution of Struts Actions",
this may help you. You have to verify that you don´t have html errors on the
use of attributes that have the character ' # ' because that will cause the
double execution of an action,
for example ... The td don´t have an a
I've had this happen when I had a Struts Action which was written to return a
PDF document. I found a note somewhere online that says that IE (in some
versions) sends a second request for these.
-Original Message-
From: Daniel Chacón Sánchez [mailto:[EMAIL PROTECTED]
Sent: Monday, Septe
Yeah I use CSS it don´t know why the td had that attribute, thanks Frank now
I understand that was a common html error, jajaja you hate microsoft right?,
thanks a lot Frank
Ok the conclusion to this, when a double execution of an action occur, one
probably reason of that is the bad use of a html
Mr Kennedy
Did you get a chance to look at ServletOutputStreamWrapper class?
http://struts.apache.org/2.x/struts2-core/apidocs/index.html
Here is a q&d example that uses it
http://rifers.org:8088/browse/~raw,r=3183/rifers/jhighlight/trunk/src/com/uwyn/jhighlight/servlet/HighlightFilter.java
Any
give ur jsp code...
krishan rathi <[EMAIL PROTECTED]> wrote: Hi all
I am trying to use struts with netbeans 5.0 but having strange problems.
I have wrtten One ActionForm i.e EmployeeForm ,one action i.e AddEmpAction.
then in the struts-config.xml provided following entries:
mallik,
use java.lang.Integer for integer and java.util.GregorianCalendar for Time.
Regards,
Leo
Mallik <[EMAIL PROTECTED]> wrote:
Hi friends
i am using DynaActionForm and client side validations using Validator
fromework
i can specify java.lang.String for type of form field in struts-config
Hi,
What is the output on the console or messages on the log file?
Thanks,
Nuwan
On 9/11/06, krishan rathi <[EMAIL PROTECTED]> wrote:
Hi all
I am trying to use struts with netbeans 5.0 but having strange problems.
I have wrtten One ActionForm i.e EmployeeForm ,one action i.eAddEmpActio
Hi friends
i am using DynaActionForm and client side validations using Validator
fromework
i can specify java.lang.String for type of form field in struts-config.xml
like
but how to specify for numbers and time( time should be 24 hours format)
please give me any idea or send
thanks
Emilia Ipate <[EMAIL PROTECTED]> wrote: Hi!
It might sound stupid, but just check: Your execute method from Action is
actually called "excecute" instead of "execute".
-Original Message-
From: krishan rathi [mailto:[EMAIL PROTECTED]
Sent: Monday, September 11, 2006 1:33 PM
To:
Hi!
It might sound stupid, but just check: Your execute method from Action is
actually called "excecute" instead of "execute".
-Original Message-
From: krishan rathi [mailto:[EMAIL PROTECTED]
Sent: Monday, September 11, 2006 1:33 PM
To: Struts Users Mailing List
Subject: Constructor of
Try overriding "execute", not "excecute" :)
krishan rathi wrote:
hi all
Infact the constructor of Action is called but i am getting a blank screen and in the log file just getting the SOP in the constructor not even getting the Sop in the Exceute method.
plz help
Thanks
krishan ra
hi all
Infact the constructor of Action is called but i am getting a blank screen
and in the log file just getting the SOP in the constructor not even getting
the Sop in the Exceute method.
plz help
Thanks
krishan rathi <[EMAIL PROTECTED]> wrote:
Hi all
I am trying to use st
Hi all
I am trying to use struts with netbeans 5.0 but having strange problems.
I have wrtten One ActionForm i.e EmployeeForm ,one action i.e AddEmpAction.
then in the struts-config.xml provided following entries:
and using /addEmployee.jsp as wel
Hide (via Javascript) the submit button till the radio is not selected
Ciao
-Messaggio originale-
Da: Sheetal Gupta [mailto:[EMAIL PROTECTED]
Inviato: lunedì 11 settembre 2006 11.25
A: Struts Users Mailing List
Oggetto: Hi Need help .. on javascript & validation framework when used togeth
Hi,
I have a scenarion in which I have put a check (validation),
that a radio butoon must be selected, beforea form gets submit.
THis I have done using validation.xml.
Now i have another requirement,
that before pressing submit,
a confiramtion dialog box should be shown...
for which I have w
Thanks for your intrest,
Third party server means a live webserver where we are going to host our
application.
Here our jsp's are visible, which indicates that struts is working fine as
wrote:
What is the 'third pary live server' product so we can try to help
you. And
this 3rd party server map
Hi:
When user is in page 1, he is asked to enter an integer. Let us say he
entered 18
In the next page we show 18 Text-boxes:
This is easy to generate using the following:
But I don't understand what should go in the properties tags.
What Data Structure sho
Ok. Do this in your form bean:
private String[] prerequisiteCourseId = null;
I dont know why do you need the size(x) beforehand.
On 9/11/06, Chetan Pandey <[EMAIL PROTECTED]> wrote:
Ok. Let me try to explain.
In order to specify the property tag below:
I need a corresponding Field in my
I need to download a file from a server to client computer using Struts.
I've implemented StrutsFileDownload from the Struts Wiki, but this displays
the contents of the file
http://wiki.apache.org/struts/StrutsFileDownload
How can I save the file on the client drive instead of displaying the
con
69 matches
Mail list logo