Hi All,
I have encountered an issue when uploading files through SSL. I'm Using
Struts 1.2, FormFiles.and it works on Fire fox.
Any Idea..?
Is there any IE 6.0 Settings to work this..?
Thanks in Advance
Mano
Ok I understand.
What I'm missing is that when the form is displayed the Action is not
yet istantiated so no methods can be called. If you want to call a
method of that Action you must instantiate it with the action tag.
Thanks
Il giorno 10/nov/06, alle ore 00:15, Ted Husted ha scritto:
T
They shouldn't worry about what the default language is, that's my job. My
application is set up with English and French translations (since it's
targeted at Canada). But if someone from China comes to my site, I don't
want it to blow up and display nothing, it should default to some language,
i
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Affan,
[EMAIL PROTECTED] wrote:
> I have an application which contains a bunch of images for products whose
> filenames come from the database. Right now the images are stored inside
> the WAR file when deploying the application
Ugh.
> We don't ca
It's not that I think every application should defalt to English, it's that
I want the default language for MY application to be English. But to do
that I have to maintain two copies of the same file. That's bad design. It
also doesn't appear to understand the concept of layering. If I ask for
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Chris,
Chris Pratt wrote:
> Woa, that didn't work.
I didn't really expect it to... I would have expected you to get a bunch
of blank messages (since application_en.properties had nothing in it). I
don't think that resource bundles "chain" or anything
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Chris,
Chris Pratt wrote:
> The problem is JSTL is being helpful. Perhaps too helpful in this case.
> Basically it is looking for an exact match between ResourceBundle and your
> Locale settings.
> It will look for English first, but only find the def
Woa, that didn't work. According to a comment in the JSTL code, the Java
developers don't know what their doing and the JSTL guys decided that the
whole idea of a default resource bundle is non-portable. Not sure why, but
that means that in order for this to work properly in both Struts and JSTL
Maybe a taglib would be a better solution? Anyone else had to do this?
[EMAIL PROTECTED] wrote on 11/09/2006 10:31:49 AM:
> Hello,
>
> I have an application which contains a bunch of images for products
whose
> filenames come from the database. Right now the images are stored inside
> the WA
User evnafets over on the JSTL Forums at forum.java.sun.com tracked down the
cause of the problem. In his words:
The problem is JSTL is being helpful. Perhaps too helpful in this case.
Basically it is looking for an exact match between ResourceBundle and your
Locale settings.
It will look for En
Is there doco somewhere on the minimum requirements for S2?
e.g.:
servlet 2.1
jsp 1.0
jdk 1.2
jdbc 1.2
jee 2.3
etc?
--
http://www.multitask.com.au/people/dion/
Rule of Acquisition #91: Hear all, trust nothing.
The typical approach is to place an input method on the "Action that
is associated to the form". To display the method, you can refer to
"action_input" and then to submit the action you can refer to just
"action". If you want to avoid defining two action elements, you can
use wildcards.
Now, a
On Thu, 2006-11-09 at 15:33 -0600, Daniel Chacón Sánchez wrote:
> anyone??
>
> 2006/11/9, Daniel Chacón Sánchez <[EMAIL PROTECTED]>:
> >
> > If someone explain how to do this with a multiple select and with
> > checkboxs better for me :-)
> >
> > 2006/11/9, Daniel Chacón Sánchez <[EMAIL PROTECTED]
Generally, transactions are associated with database operations, where
multiple tables need to be updated, and if any update fails, then all
the updates should fail. Struts doesn't not provide a data access
layer, and so transaction management has been out of scope. Typically,
transactions will be
One strategy that might be worth pursuing is to forget the idea of
moving your JSP pages out of the webroot, but just ensuring that they
can't be accessed from the browser. This could be done by adding a
security constraint to your web.xml for the user "nobody" for "*.jsp".
If the browser only eve
On Thu, 2006-11-09 at 17:29 -0500, robin bajaj wrote:
> Hi there,
> Okay, just to fix the blank pag issues in IE, I just went back to square one
> and just applied your suggestion of using the following snippet in my jsp ,
> Now both IE and Firefox show simple contents without applying the
> sty
Here's a solution I thought of for the time being; if anyone else has any
better way of accomplishing this, or comments, please share them with me.
The following takes a putList containing items, as well as nested putLists
(maximum one level of nesting for this example, but it can be extended to
FYI, support for that taglib ceased a long time ago. It has since grown
up to something much bigger and better: AjaxParts Taglib (APT), a
component of Java Web Parts (JWP):
http://javawebparts.sourceforge.net
...and directly to the taglib:
http://javawebparts.sourceforge.net/javadocs/javawebpar
Hi there,
Okay, just to fix the blank pag issues in IE, I just went back to square one
and just applied your suggestion of using the following snippet in my jsp ,
Now both IE and Firefox show simple contents without applying the
stylesheets or javascript effects.
type="text/javascript">
You're getting blank pages or no styles because ${context_root} is not
a real variable, the string "${context_root}" may even be in your
generated HTML, which would be way wrong.
Actually, ${context_root} was a placeholder for the correct variable
that I didn't know the exact value of off the top
Hi Ed,
Thanks for the suggestion, I agree with you.
But when I changed my JSP Web-inf/jsp/non-tiles.jsp
to point to my .css and .js in your suggested way, I get weird behaviour in
the browsers.
In IE 6, I get a blank page *(yes a totally white blank page)
In Mozilla firefox 2.0 , I get simple co
Hi Guys,
In search of a perfect AJAX solutions for Struts 1.2.x , I just came across
this Struts HTML taglib mod. which does AJAX for you declaratively.
here's the site - http://struts.sourceforge.net/ajaxtags/index.html
Here's the goal (as mentioned on site)
This project has the go
What happens when the JSP is converted to HTML, it is sent to the
browser. The browser then tries to access the css and js files from
the webserver, but since the HTML points to web-inf, it won't serve
them.
One way to do it is to create an action mapping that is just defined
as a ForwardAction,
Well, let's think about this for a minute. If the browser can't get at your
images and css, how is it supposed to use them on the web page. And since
the web server is mapped to ensure anything with a .jsp extension is
processed before returning it to the browser, there's no way to get to that
s
Hi Everybody,
- SUMMARY -
Can anyone tell me as to how can I make my jsp lying in Web-inf/jsp/ folder
pick the stylesheet and javascript lying
in Web-inf/scripts and Web-inf/css ??
- DETAILS -
I have SSL enabled my web-app this morning using SSLext release 0 .
I am using Struts 1.2.x with Tile
anyone??
2006/11/9, Daniel Chacón Sánchez <[EMAIL PROTECTED]>:
If someone explain how to do this with a multiple select and with
checkboxs better for me :-)
2006/11/9, Daniel Chacón Sánchez <[EMAIL PROTECTED]>:
>
> hi all!
>
> I have a question, I'm using struts.
>
>
Yes, add the type=string to the tiles:put tags.
(*Chris*)
On 11/9/06, Eduardo Simioni <[EMAIL PROTECTED]> wrote:
Chris, I'm just supporting the "developers" team on this error, don't
know much about the project.
I know that nothing is being defined in the tiles definition file.
Page components
AJAX is very simple and does not need any special serverside support.
http://www.maxkiesler.com/index.php/weblog/comments/make_an_ajax_website_in_less_than_10_minutes/
-Original Message-
From: robin bajaj [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 09, 2006 4:04 PM
To: Struts Users
Hi Robin,
I haven't used AJAX with struts yet. It would be good if anyone can
point us to some articles. I heard people mention DOJO . Maybe we can
start with it.
Thanks
Prakash
-Original Message-
From: robin bajaj [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 09, 2006 4:04 PM
To:
Hi Guys,
sorry to jump in this thread.
I am trying to achieve this sort of AJAX functionality at Struts 1.2.x
level.
Is it possible? or Do I have to upgrade to Struts 2.x for AJAX support ?
Any good articles for this (preferrable Struts 1.2.x specific) ?
Appreciate your help in advance,
thanks,
Hi Brian,
I am trying to do exactly what you described here. Good to know it can
be done. I am reassured now in case I run into errors.
Thanks
Prakash
From: Brian Holzer [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 09, 2006 3:32 PM
To: struts-user
**DISCLAIMER**
This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the named addressee, please notify the sender immediately by e-mail if you have received this e-mai
Hi,
It was an error in my logic:iterate tag and the JSP was throwing
2006-11-09 14:11:25 ApplicationDispatcher[/ExtendedSupport]
Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException: Null attribute name at
org.apache.jasper.runtime.PageContextImpl.findAttribute(Pa
Chris, I'm just supporting the "developers" team on this error, don't
know much about the project.
I know that nothing is being defined in the tiles definition file.
Page components are being defined on the caller page, via , and the menu attribute is being defined programmatically.
The main prob
Hi, Niall,
Problem solved. That's cuz I was trying to forward to another customized
action. I had made this action as ForwardAction provided by Struts. It works
now. Thanks. Sorry I was a bit rush writing the previously email so that
forgot to put the version number.
Regards
Li
On 11/10/06, Ni
Hi,
I have an issue with Struts Tiles putList items. I can get all the items in
my jsp page fine, with the links and values for each menu item.
The problem is, when I try to nest a putList tag within another one, to
attempt to create subMenu functionality. I have no way of retrieving the
submenu
In your tiles definition, where you define the menu attribute, make sure
that it is marked type=string. You should have something similar to:
either in your tiles-defs.xml or using the JSP version in one of your
pages. If now, how are you defining the menu
Hi All! I have been recently trying to come up with at least top 5
justifieable reasons , why one should consider migrating from struts 1.3 (or
even 1.2.X) to struts 2,bascially , what are the gaining points that justify
migration headache? Not talking about more cutting edge architecture, IOC,
e
Hi all;
There is a requirement to display a message that are retrieved from the
backend system without the need to localize it tin the MessageResource
files.
That's the backend system will return a dynamic error message "ERROR 1 2 3"
and I just want to display this using the html:errors tags
Look at where you're directing the action to go to if an error occurs
- i.e. what have you specified as you're "input" for the action in
your struts-config.xml?
It looks like the error occured after validation failed and when it
tried to forward to whatever was specified in the "input" parameter.
I was reading some posts on dev list and realized that GetTag is
obsolete and going to be removed soon.
Well, the tag lib for tiles doesn't define attribute 'type' for get
nor insert tags. So I didn't understand Chris' suggestion.
If I change
for
it works well.
Here there's no doubt about the
Hi All,
Is JSTL and JSTL EL the library and expression language of choice in Struts 2?
I read about OGNL somewhere.What library does it use?
What are its advantages over JSTL?
regards
Rahul
I've done this sort of AJAX-y in the past...
You have 2 DIVs one that contains the form you want, then another DIV
that contains the data table. Then you create a Javascript global
variable that acts as a switch to indicate which div should be visible.
Then, instead of having your form post direct
A table of form elements mapped to the same property as other items on
the form may be a problem (even if disabled). Other then that I can't
think of an issue. Is there a specific problem?
Jeremiah
Prakash Inuganti -X (pinugant - Digital-X, Inc. at Cisco) wrote:
Hi,
I am trying to display en
Hi Prakash,
If you can display the value of the textarea at readonly, you can use
FormView.
This taglib is enable to manage state in your JSP for your form HTML
elements.
Eg : generate (at READ-WRITE
state)
and INPUT_VALUE (at READ_ONLY state). You manage state into action.
If you are interested
Thanks Laurie!
That was it. I had a busy box in a javascript on the page and the src property
of the images in there was set to '' (i.e. blank).
Thanks a lot.
-Rahul
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper
Sent: Wednesday, November 08, 2006 9
Make sure you define the menu attribute to by type=string, it seems to be
assuming that menu is type=page.
(*Chris*)
On 11/9/06, Antonio Petrelli <[EMAIL PROTECTED]> wrote:
Eduardo Simioni ha scritto:
> Hi all,
>
> I'm facing a problem with Tiles GetTag on recent Tomcat versions
> (couldn't fi
Hi all,
I met very wired problem. A have a DynaValidatorForm which is assigned to an
action. When I didnt put this form to validation.xml. It works fine. When I
put this into validation.xml in order to validate "Empty Entry Situation" It
throws exception:
javax.servlet.ServletException: Action[/
Hi,
I am trying to display entry and results on the same screen. The idea is
like this. I have a textarea where some values can be entered. On
submitting this data, the same form refreshes displaying the data in a
table. Can this be done? I create a bean with the values entered in
textarea and use
I saw a post on the mailing list archives regarding nested tiles. I see that
they have been added over the years, and wanted to know how to implement
them in the JSP page.
For example, if I have a subMenu in the Tiles, then how do I then get the
contents of the subMenu in the JSP page using eithe
If someone explain how to do this with a multiple select and with checkboxs
better for me :-)
2006/11/9, Daniel Chacón Sánchez <[EMAIL PROTECTED]>:
hi all!
I have a question, I'm using struts.
hi all!
I have a question, I'm using struts.
I have an object of pacients, I show them on a JSP, then I need to select some of them (by checkbox) and then submit the form. In the action i need to know which patients where selected. The object of patients is
Hello,
I have an application which contains a bunch of images for products whose
filenames come from the database. Right now the images are stored inside
the WAR file when deploying the application, which is fine but the problem
is that when they become part of the CVS code repository it become
Chris,
Thanks for your generosity. I'll give your suggestions a whirl.
Bob
On 11/9/06, Christopher Schultz <[EMAIL PROTECTED]> wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Robert,
Robert Harrison wrote:
> Here is a truncated version of makeparms.
>
>String separator = new St
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Robert,
Robert Harrison wrote:
> Here is a truncated version of makeparms.
>
>String separator = new String("&");
>StringBuffer parms = new StringBuffer();
>String desc = props.getString("credit.card.description");
>St
Hi
I would like to formally announce that ``JAVAWUG'' (Java Web User Group)
is holding the Twenty Third Birds-of-Feather at the
Skills Matter's London Office on Wednesday, 15th Novemeber 2006 from
18:30.
+-+--+
| TWO QUESTIONS | Open S
Eduardo Simioni ha scritto:
Hi all,
I'm facing a problem with Tiles GetTag on recent Tomcat versions
(couldn't find the exact version, but is the one packaged with Sun
Application Server EE 8).
I have (among others) a tag.
That "menu" can be present or not as it is programmatically inserted.
Chris,
Thanks for your suggestions/questions.
Here is a truncated version of makeparms.
private StringBuffer makeParms(UserVO userVO,
CreditCardForm creditCardForm, ResourceBundle props) {
// variables for cc vendor
String separator = new String("&");
StringBuffer parms = ne
On 11/9/06, Wesley Wannemacher <[EMAIL PROTECTED]> wrote:
Once again I am humbled by your mystical kung-fu. I looked at my
-validation.xml file, and sure enough, I had mystyped one of the form
field names.
Just a simple matter of "been there, did that" :)
Being new to Struts, now I'm sort of
Hello,
[Ted Husted wrote:]
>
> Valiation isn't passing. That's why "input" is being returned, and why
> the Action class is never invoked. If the messages are not displaying,
> the most likely cause is that a property is being validated that is
> not present on the page (so there is no where to d
Hi all,
I'm facing a problem with Tiles GetTag on recent Tomcat versions
(couldn't find the exact version, but is the one packaged with Sun
Application Server EE 8).
I have (among others) a tag.
That "menu" can be present or not as it is programmatically inserted.
If it's not present, the pag
Venkata Phani Kumar ha scritto:
Hi,
I have created a datasource which will bind to a jndi name. Now i want to use the same datasource in my struts application. For this i need to mention the same jndi name in my struts-config.xml.
can any body help me out how to mention the jndi name in st
;) I thought so.
So, all the following are true:
- you are testing this on your local machine (your browser is
hitting your own machine)
- you have enabled cookies on your machine (if not, make sure all
urls are rewritten correctly, before you click on them)
- you have a "global" forwar
I am using Struts 1.1.
Also, I might have typed in the wrong tag - it is supposed to be
My index.jsp just has the following line (and the declaration for the tag
library)
I have a menu containing links to forward the user to. e.g. one link
forwards to an action PopulateUserInfo.do Even though
Please reply with the entire index.jsp content and tell us what
version of Struts you are using. I assume 1.2.x, and so I'm not sure
what html:redirect is.
--
James Mitchell
678.910.8017
On Nov 9, 2006, at 6:36 AM, Rahul Patel wrote:
Hi All,
I have a very confusing issue at hand that
Hi All,
I have a very confusing issue at hand that I have been trying to solve for a
couple of days.
I have a Struts-based application where my index.jsp has only one line
Further, once the user logs in, he is forwarded to applications based on his
feature access. Though, for some reason, when
Hi,
I have created a datasource which will bind to a jndi name. Now i want to
use the same datasource in my struts application. For this i need to mention
the same jndi name in my struts-config.xml.
can any body help me out how to mention the jndi name in struts-config.xml
Thanks & Regards
Use Filters.
On every page a User visits make it visit a Filter.
Record the page when it is visited and store it in the DB.
That what when he logs in fetch this value and send User to this page.
Make sure you put your Filter Info in web.xml in the following manner:
myFilter
co
68 matches
Mail list logo