every user can select his
language at logon.
Can anybody help me doing this?
At the moment i have created some .properties-files and .jsp-files using
them.
Greetings,
Manuel Lenz
e-mail: [EMAIL PROTECTED]
web: www.viessmann.com
in the Session?
If the user selects maybe EN the right Resource-File (
ApplicationResources_en.properties) must be load.
Has anybody an idea which code I need in the LogonAction-Class?
Manuel Lenz
e-mail: [EMAIL PROTECTED]
web: www.viessmann.com
?
Manuel Lenz
e-mail: [EMAIL PROTECTED]
web: www.viessmann.com
|-+---
| | |
| | |
| | |
| |[EMAIL PROTECTED]|
| |26.03.2003 09:39
));
}
else
{
System.out.println(LoginAction: Default language
is selected!);
}
See you,
Manuel Lenz
You geht directly the value from the Form-Bean with this code:
value=%=banfForm.getLieferdatum()%
Maybe there exists a struts-tag to get the value too.
Mit freundlichen Gruessen
i.A. Manuel Lenz
e-mail: [EMAIL PROTECTED]
web: www.viessmann.com
Why don´t you sort your table with java-code?
We prefer to use java instead of javascript!
And you can decide on which layer the table is sorted...
Greetings,
i.A. Manuel Lenz
Viessmann Werke GmbH Co KG
35107 Allendorf
e-mail: [EMAIL PROTECTED]
web: www.viessmann.com
=../ep/actions/BestellverfolgungAction
/forward
/action
Greetings,
i.A. Manuel Lenz
Viessmann Werke GmbH Co KG
35107 Allendorf
e-mail: [EMAIL PROTECTED]
web: www.viessmann.com
-
To unsubscribe
Hi,
we use Mozilla as default browser and I also had some problems with
session-handling.
It is important that you set all the Mozilla-Cache-Options to 0
(Edit/Prefereces)!
Mit freundlichen Gruessen
i.A. Manuel Lenz
Viessmann Werke GmbH Co KG
35107 Allendorf
e-mail: [EMAIL PROTECTED]
web
Mayby this is an bug in your mozilla version.
Update your Mozilla Browser to an version 1.x (newest 1.3).
|-+--
| | |
| | |
| | |
| |Johan
-Original Message-
From: Manuel Lenz [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 05, 2003 12:20 PM
To: Struts Users Mailing List
Subject: Submitting value with Graphical Buttons
Hi to all,
I still have problems with submitting values by clicking graphical buttons.
By using javascript
()
{
document.formname.submit();
}
i am not too sure if i am tellng u something u dont know but i guess this
shud work.
tc
-Original Message-
From: Manuel Lenz [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 05, 2003 12:20 PM
To: Struts Users Mailing List
Subject: Submitting value
Message-
ML From: Manuel Lenz [mailto:[EMAIL PROTECTED]
ML Sent: Thursday, June 05, 2003 12:20 PM
ML To: Struts Users Mailing List
ML Subject: Submitting value with Graphical Buttons
ML Hi to all,
ML I still have problems with submitting values by clicking graphical
buttons.
ML By using javascript
:
fnSubmitForm()
{
document.formname.submit();
}
i am not too sure if i am tellng u something u dont know but i guess this
shud work.
tc
-Original Message-
From: Manuel Lenz [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 05, 2003 12:20 PM
To: Struts Users
Hi to all,
I still have problems with submitting values by clicking graphical buttons.
By using javascript there must be an function named on click which
sets a value into a FormBean by pressing a graphical button.
To get a forwarding page a submit must be initialized too. A link to this
The reset-method is called if you are submitting from a jsp-page.
You must check the browser request, if a value exists.
If a value is missing, the user has unchecked the box, so you can set the
record to false.
Cheers,
Manuel
|-+
| |
Hi Kristine,
first you have to initialize the checkbox variable with on.
If a user sets a checkboy to false, there is no string posted in the
http-submit.
You can check up submit for your parameter and set the variable to false if
the parameter is missing.
Example:
HttpServletRequest request)
Hi to all,
I have a connection to a Backend System that gives Error Messages to my
FormBeans.
But in the Error-Definiton of my FormBeans, I can only select Messages form
the RessourceProperties-Files.
How can I save my Backend-Messages in the Error Object?
Greetings,
Manuel
can I fill the errors-Object with these values.
Greetings,
Manuel Lenz
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi to all,
I have an existing servlet which must be called in some cases.
The serverlet nets a param which can be add to the request from the
browser.
How can I call an existing Servlet from a struts-action-class?
I hope someone can help me,
best regards,
Manuel
Hi to all,
I´d like to call an existing servlet which is saved into the JavaSource -
Folder.
If the servlet is called, it gets a individuell value from the
ActionForm-Bean.
How can I do that?
Greetings,
Manuel
-
To
put any arguments you need
(that would've been passed from the browser) into request scope before
calling the servlet?
Hue.
-Original Message-
From: Manuel Lenz [mailto:[EMAIL PROTECTED]
Sent: 27 August 2003 15:36
To: Struts Users Mailing List
Subject: Forwarding to existing Servlet
Hi to all,
I´d like to forward to an jsp-page which will be opened in a new window.
How can I manage that in struts-config.xml ?
I can´t use javascript to open the new window because the user is pressing
a struts-submit button and not a normal link.
Hope anybody can help me,
bye,
Manuel Lenz
|
|
Manuel, can't you just use the target attribute in the form tag to do this?
robert
-Original Message-
From: Manuel Lenz [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 18, 2003
-Ursprüngliche Nachricht-
Von: Manuel Lenz [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 18. September 2003 12:02
An: Struts Users Mailing List
Betreff: Forwarding openNewWindow
Hi to all,
I´d like to forward to an jsp-page which will be opened in a new window.
How can I manage that in struts
Hi to all,
I do have a silly problem:
I call an ActionClass over a link BanfAction.do,
but I get always forwarded to the jsp-Site which should be called after
succes in the ActionClass.
How is it possible to get to an jsp-Site, even though I called an
ActionClass.
My struts-config.xml shall be
Hi,
my forwarding-Problem does still exist and I have an idea whats going on...
Instead of doing a GET for the path=FooAction.do my web-application tries
to do a POST from the beforegoing ActionClass.
How can I solve this problem?
Why is my application doing a POST instead of a GET?
Manuel
|
|
Is this for an ActionForward that you return from an action?
If so make sure that redirecting=false for the forward.
-Original Message-
From: Manuel Lenz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 24 September 2003 18:59
To: Struts Users Mailing List
Subject: Error in RequestProcessor
Hi,
my forwarding-Problem
Hi to all,
this might be a simple question, but I didn´t find any good hints in the
internet.
I will do a logout szenario in my struts-web-application.
I just did this:
- Calling an ActionClass which creates a new LoginForm-Object
- Replacing the existing LoginForm-Object in the session
But
:
HttpSession.invalidate()
Read the man pages here:
http://java.sun.com/j2ee/sdk_1.3/techdocs/api/
-Original Message-
From: Manuel Lenz [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 8:56 AM
To: Struts Users Mailing List
Subject: Logout Szenario
Hi to all,
this might
I create DB-Inserts from my struts application.
But If an user types in the sign ' any dynamicly created inserts fail.
This ist because of the sql-syntax which divides the string which will be
saved with '.
For example: insert into table test (name, number) values ('mr burns',
How do preparedStatements handle single quotes and other injection
attacks?
I changed my db-connection from a normal statement-conding into prepared
statements.
But the error ist still the same.
Here ist my test-coding:
Connection conn = null;
PreparedStatement prepare = null;
values for mischieveous chars like single
quotes etc.
-Original Message-
From: Manuel Lenz [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 28, 2003 4:33 PM
To: Struts Users Mailing List
Subject: Antwort: [OT] Re: far reaching db question
How do preparedStatements handle single quotes
= ? WHERE key = ? ;
con = ds.getConnection();
ps = conn.prepareStatement(sql);
ps.setString(1, newColumValue);
ps.setInt(2, recordId);
ps.executeQuery(sql);
from:Manuel Lenz [EMAIL PROTECTED]
date:Tue, 28 Oct 2003 12:07:42
to: [EMAIL PROTECTED]
subject: Re: Antwort: RE
Hi to all,
how can I get a localized message from a ressource bundle which ist placed
into the alt-tag of an html-field?
The struts-tag to get a ressource-bundle message is not defined for
alt-tag.
Example:
html:checkbox property=wareneingang alt=bean:message key=label.test
//
Greetings,
Hi Mohan,
first you have to select your country codes from database.
You can put these values for example into a vector-object.
From this object you can create a scroll down menu where the user selects
his country.
Example:
The name of this vector is: vorschlagForm.getV_ekg().
html:select
to alt-tag
|
|
On Wed, 19 Nov 2003, Manuel Lenz wrote:
Hi to all,
how can I get
|
|
On Thu, 20 Nov 2003, Manuel Lenz wrote:
What Do you mean with altKey attribute?
You would know what I mean If you had:
- Looked at the user guide
or
- Looked at the TLD
or
- Looked at the source
Basically, you can use altKey to display an i18n'd alt tag
I solved the problem this way:
1. Writing a servlet for a new page
DisplayFile.java
2. Calling the servlet in ActionClass
DisplayFile df = new DisplayFile();
df.doGet(request, response);
forward = null;
If you want to prove the value of a checkbox,
you have to check the request.
If the request doesn´t contain a value with the name of
the checkbox, you have to erase the value of your checkbox-variable in
FormBean.
Hope to help you,
Manuel
|-+
| |
Hi,
what does happen when the refresh button is pressed?
You can test anyway if the user has pressed submit or refresh button.
And you can add an if-expression which adds a row only if submit button is
pressed.
Manuel
Sorry,
code is ok.
Do you have a better exception message?
Have you tried to debug jsp-site?
Cheers,
Manuel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi to all,
it is simple to get Data from the strutsRessourceBundle with the jspTag.
But I need to get ResourceData inside a java-Part of the jsp-page and
inside an ActionClass.
For example
%
if (loginForm.getUsername.equalsIgnoreCase( ResourceData )
{
Hi to all,
I´d like to call an ActionClass from a javascript-link which opens a new
window.
Here is my code:
Javascript in jsp-Site:
function OpenSite(sitename, winName,features)
{
window.open(sitename, winName, features);
}
Link in jsp-Site:
a href=#
Hi to all,
I still have the same problem and didn´t find any hint in the list archive.
I want to call an ActionClass from a Link.
This code should be run (I copied it from an archive topic):
a class=leftnav
href=javascript:window.open('InfoAction.do','windowName', 'status=no')
But if I
-
From: Manuel Lenz [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 22, 2004 9:54 AM
To: Struts Users Mailing List
Subject: Urgent: Call ActionClass from link
Hi to all,
I still have the same problem and didn´t find any hint in the list
archive.
I want to call an ActionClass from a Link
Hi you,
I do have a silly problem with style sheets-linking.
I have a css-File in the folder /theme/formats.css.
I access this file from a jsp-page of the folder /help/info.jsp with this
link:
LINK href=../theme/formats.css rel=stylesheet type=text/css
This works, if I call the jsp-Page
= request.getContextPath();
%
LINK href=%=context_path%/theme/formats.css rel=stylesheet
type=text/css
Regards,
Frank
-Ursprungliche Nachricht-
Von: Manuel Lenz [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 27. Januar 2004 09:15
An: Struts Users Mailing List
Betreff: WebGroups css
Hi
Hi to all,
my struts-webApplication is used by almost 80 people.
After 1-2 weeks my application doesn´t react anymore,
if I do call an ActionClass which will connect to an oracle database.
So I guess I do have a problem with the database connection.
My database config shows that:
But why are only 5 suspended connections left?
So I might have 15 free connection resources?
What is a good value for maxDatabaseCount?
Hi Claudia,
why don´t you put the list in a Struts FormBean?
You can get the list from the form bean easily, if you use the
UseBean-Tag in your jsp-Site.
Greetings,
Manuel
Thanks for your tip.
Where do I get more Infos about the parameters you have set (any good web
adress)?
Am I able to set all of this parameters (I use Oracle DB) or is this
dependend on the driver?
ConnectionPooling must be implemented within the dbDriver?
Do I have to devide statements and
51 matches
Mail list logo