I want
xxx
Is there a way out to select a default value at design time? (I hate
javascript!!... lol. )
Amitava Basak
ASE
Tata Consultancy Services Limited
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com
Notice: The information contained in this e-mail message and/or attachments
Martin,
If you're using tiles already, be sure to check out a tiles controller. It
can insert pieces (putList) into your tile however you wish it, i.e. if the
path is /members, if you set a (session?) cookie, etc. A tutorial on the
capabilities of Tiles Controllers by Cedric Dumoulin which I wro
Thanks for the links David.
The app is already using Tiles extensively and as a result I need something
that integrates well with this framework.
I've had a quick read of the SiteMesh and Xkins sites and plan to download
and compare the two later today.
Will post back any findings.
Regards
Mar
--Venkat
Thats the trick. If you set null to false, than *if* a error message is not
found, the struts framework prints the language and the key, that is not found.
So it says: You have an error here. So you have an other mistake. It is good
practice to set null to false in all ressurce bundl
Martin,
Have you looked at any of these?
a) Tiles
http://struts.apache.org
b) SiteMesh:
http://www.opensymphony.com/sitemesh
c) XKins:
http://xkins.sourceforge.net/
Regards,
David
-Original Message-
From: Martin Ravell [mailto:[EMAIL PROTECTED]
Sent: Monday, June
Yes, I want to use Beans.
Do you mean that I can use servlets, JSP and taglibs without J2EE?
Le 13 juin 2005 à 16:42, Dave Newton a écrit :
Pierre Thibault wrote:
There are talking about Tomcat but not about JBoss. I'll continue
with JBoss because I want to access J2EE.
I think you mi
On 6/13/05, Laurie Harper <[EMAIL PROTECTED]> wrote:
> I'd like to replace URLs like this:
>
> /Sections/Subsections/?section=Section1&subsection=SubSection1
>
> with URLs like this:
>
> /Sections/Section1/Subsections/Subsection1
>
> An action mapping like this will match that URL:
>
>
Sorry about the typo, I was referring to HttpServletRequest below. -Van
On 6/13/05, Van <[EMAIL PROTECTED]> wrote:
> On 6/13/05, Laurie Harper <[EMAIL PROTECTED]> wrote:
> > I'd like to replace URLs like this:
> >
> > /Sections/Subsections/?section=Section1&subsection=SubSection1
> >
> > with U
I didn't get any response to this last time so I'm asking again... :-)
I'd like to replace URLs like this:
/Sections/Subsections/?section=Section1&subsection=SubSection1
with URLs like this:
/Sections/Section1/Subsections/Subsection1
An action mapping like this will match that URL:
T
What you're missing is the next line of code which performs the test.
The define just makes the resource bundle available. As long as you have
at least one message resource bundle defined in struts-config.xml the
line you quote won't fail.
L.
Nitish Kumar wrote:
I dont understand some thi
Chris Loschen wrote:
As I understand it, this would return the error only if there are no
messages at all in the application resource, which is not at all likely
in this context. We're testing whether a particular application resource
(that is, a particular key-value pair in the application resou
I have a requirement to build a 'Themes' (think 'skins') capability into the
UI of my Struts app and would just like to poll the list for ideas on the
best way to approach such a mechanism. Multiple customers use the same app
but they need to be presented with a view that meets their specific
requi
Yes, I agree Javascript is at times a necessary evil.
My current strategy is to rely on it as little as possible and only in
situations where is does not form a structural part of the app. If someone
is using a browser without Javascript support or with it turned off I need
to have the app still
Thanks a lot, I'll take a loot at this ORB.
Nico.
Leon Rosenberg a écrit :
Do you hold the data inmemory or in a file system?
In later case you'll be just fine with mounting a common share, like NFS
or SMB.
In first case you'd need a software synchronization inbetween, which is
typically so
It was discussed, but I could not find a bug in Bugzilla. Yep,
choosing between an exception and blank screen, I would prefer an
exception with forward name.
Michael.
On 6/13/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
> Yeah, that seemed a little too easy :)
>
> I would think it should thr
You can, I believe, have fully-qualified URLs in forward paths... One
thing you might be able to do is have mappings something like:
Then, in your Action, do something like this:
boolean isSecure = true;
if (isSecure) {
ActionForward af = mapping.findForward("secured_forward");
ActionForw
Yeah, that seemed a little too easy :)
I would think it should throw an exception... Any Struts devs out there
have an opinion? I know someone (I forget who, sorry!) just mentioned
they added a warning that didn't make it into 1.2.7... A warning is
good, but I would personally think an except
I am using the following code in an Action
ActionMessages messages = new ActionMessages();
messages.add(ActionMessages.GLOBAL_MESSAGE,new
ActionMessage("errors.maxbookingsreached"));
saveMessages(request,messages);
And the following in the page this is forwarding to, but t
Tony Smith wrote:
I want the text and textarea have the same widths. But
it is not true with the above code when displayed in
the browser.
How can I fix it?
CSS?
This isn't a Struts issue, but HTML.
Dave
-
To un
Hi I am designing a page like:
I want the text and textarea have the same widths. But
it is not true with the above code when displayed in
the browser.
How can I fix it?
Thanks,
__
Yahoo! Mail
Stay connected, organized, and protected. T
On 6/13/05, Paul Goepfert <[EMAIL PROTECTED]> wrote:
> ok here is what I am talking about. I have a form that takes in first
> name, last name, street address, city, state and zipcode. When I press
> on the button to enter that information into a database. I want the
> page to reload with clear
Hi,
Does simple with no property specified works for you ?
Cause I get a similar problem - using same Java code in JSP display the
fields with errors, but does nothing.
Thanks.
Vincent.
Song Wang wrote:
Hello everyone,
I cannot display , but if I add
<%
ActionErrors ae = ( ActionErrors)
ok here is what I am talking about. I have a form that takes in first
name, last name, street address, city, state and zipcode. When I press
on the button to enter that information into a database. I want the
page to reload with clear input fields.
-Paul
Michael Jouravlev wrote:
What d
On 6/13/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
> But again, I'm not certain this type of problem will be caught because I'm
> not even sure an exception is thrown in such a case. If it isn't that
> strikes me as a bug. Anyone else know for sure?
>
I don't think it does throw an except
What do you mean "clear out" and what do you mean by "reload"? If you
need a stateful component to obtain user data, and to be able to to
redisplay the page with error messages, and to store intermediate
data, and to correctly process Refresh and Back buttons, you might
want to take a look at the c
Pierre Thibault wrote:
There are talking about Tomcat but not about JBoss. I'll continue
with JBoss because I want to access J2EE.
I think you might be confused about what "J2EE" is. If you need EJBs,
then yeah, JBoss would be one way to go. If you don't, there's a lot of
other parts of J2E
Le 13 juin 2005 à 08:00, [EMAIL PROTECTED] a écrit :
Pierre,
Struts is no longer a sub-project of Jakarta but is now on its own.
Struts is alive and kicking: http://struts.apache.org/
Happy to hear that.
You can look at section 6 [this might help]:
http://struts.apache.org/userGuide/index
I recently checked in a change that would log a warning if
mapping.findForward was called with a forward name that wasn't
recognized. This change didn't make it to the 1.2.7 release, but is
available from nightly builds. Apart from that, it wouldn't be too
hard to customize/extend your Struts ins
You can configure a global exception handler, although I'm not 100% sure
it will catch this type of problem.
You can find the documentation online in the usual place, but it basically
amounts to this in struts-config:
As the rather long text indicates, key is required, but at least in
I figured it out. It was a stupid mistake, the mappings didn't match
between my struts-config and my Action Class. By the way, the Dispacher
looks like a better way to handle actions. I don't suppose anyone
would know where I would call the reset method to clear out the form onn
a reload?
Yep you need to use http://sslext.sourceforge.net/
-Original Message-
From: Dan Tenenbaum [mailto:[EMAIL PROTECTED]
Sent: 13 June 2005 20:45
To: user@struts.apache.org
Subject: Switching between http and https in struts-config
Hi, I'm new to the list.
I'm working on a webapp where some
My codebase has a lot of lines like this in struts actions:
return mapping.findForward("foo");
If I make a typo and it turns out that "foo" is not a valid forward
according to the struts config file, when I hit the action in the
browser, I get a blank page. Not my designated error page.
Is there
Hi, I'm new to the list.
I'm working on a webapp where some of the pages should be accessed
through HTTPS and others through HTTP.
For example, login and registration need to be secure, but once the
registration is done and we go to the user home page, we can go back
to the nonsecure site.
All p
Sorry for the disturbance... trying to troubleshoot a posting issue...
this will be the only such post to this list from me. Sorry again!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECT
On Mon, June 13, 2005 2:41 pm, Dave Newton said:
> Have you put in logging statements to make sure that the action
> parameter is what you expect it to be when you hit your action?
Dave is right... throw some println's in that Action and make sure your
getting there in the first place. The code l
Hi Manfred,
I have given null="false" for my main module struts config file and still
the error message is not displayed
instead it is just dipaying like below
en.us.error.user.user_name.required. (It is just displaying property
but not value)
Thank you very much
--Venkat
Hi
found this site
http://readyset.tigris.org/
very good site for templates
ashish
--- Leon Rosenberg <[EMAIL PROTECTED]> wrote:
> Try http://www-306.ibm.com/software/rational/ and
> search / try for RUP.
>
> Regards
> Leon
>
> > -Ursprüngliche Nachricht-
> > Von: Ashish Kulkarni
> [
Try http://www-306.ibm.com/software/rational/ and search / try for RUP.
Regards
Leon
> -Ursprüngliche Nachricht-
> Von: Ashish Kulkarni [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 13. Juni 2005 20:08
> An: user@struts.apache.org
> Betreff: [OT]Templates of various documents
>
> Hi
>
Try http://www-306.ibm.com/software/rational/ and search / try for RUP.
Regards
Leon
> -Ursprüngliche Nachricht-
> Von: Ashish Kulkarni [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 13. Juni 2005 20:08
> An: user@struts.apache.org
> Betreff: [OT]Templates of various documents
>
> Hi
>
You don't need to have forwards named "success" or "failure"; I'm not
sure how this part of the thread got started. If they don't make sense
for your app obviously you can call them whatever you want.
Although I'd shy away from 'Fred' ;)
Dave
Martin Gainty wrote:
This is straight from BEA
Paul Goepfert wrote:
[...] try
{
session = request.getSession();
action = request.getParameter("action");
if(action.equals("enterInfo"))
{
return (mapping.findForward("enter"));
}
else if(action.
Fez,
Perhaps I am missing something simple, but couldn't your sendValue()
function just get the .selectedIndex of the multiBox, then you can
iterate through the 's s and get the one your need?
This seems to be more a question of some JS engineering, at least that
is the simplest way in my mind.
This is straight from BEA doc
"An object of this type is returned from an action methods in a
PageFlowController to determine the next URI to be displayed.
It is constructed on the name of a forward defined by the @jpf:forward tag,
and resolves to the URI specified in that forward"
The name o
Song,
I was having a similar problem using WSAD 5.0.0. Client side
validation using the Validator component worked, but server side
validation did not. Since WSAD included Struts 1.1(beta 2), I decided
to update struts to the newest version. This seemed to correct the
problem. If you need furt
Here is my MenuAction.java
package actions;
import org.apache.struts.action.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.util.Arrays.*;
import java.io.*;
import forms.*;
import beans.InfoBean;
import logic.DB;
public class MenuAction extends Action
{
public ActionFor
Hello everyone,
I cannot display , but if I add
<%
ActionErrors ae = ( ActionErrors) request.getAttribute( Action.ERROR_KEY);
boolean err = false;
if( ae != null) {
Iterator iter = ae.properties();
while(iter.hasNext()){
System.out.println((String)iter.next());
Hi
I remmember having a website which had templates of
various documents, like project requirement document,
or project proposal or design specifications etc
does any one know this website or similar kind of
website
I have to do some project proposals and need some
standar template documents
Ashi
Venkat
I think you don't have to deal with suffixes (like sub) because struts
itsselfs concatinate the module in the key, stored into the session. I
have a little example written for my struts book (only in german) that
deals with multiple struts config files. You may download it under
http:
Hi all,
I found a rather lengthy discussion of how to modify the default "Browse"
button that comes with the tag on another struts list, but the
discussion ended with no solution posted. I am currently trying to implement
File Upload on a multi-lingual application (based on User profile, not
bro
Hi. I prefer to use radio button instead of checkbox because I select only
one item from the search result.
In the search jsp.
And there is a button in order to close the windows and return the value to
the main jsp:
Of course... the functions are inside a .js:
var idProveedor = null
aehm... dont trust what you see in the system.out. What you see depends
on what encoding your console actually drives, and that would be
probably something different from what java does (typically iso-8589-1)
regards
leon
On Mon, 2005-06-13 at 11:44 -0400, Franck wrote:
> Hi,
>
> in my webapp,
As I understand it, this would return the error only if there are no
messages at all in the application resource, which is not at all likely
in this context. We're testing whether a particular application resource
(that is, a particular key-value pair in the application resource file)
is empty, not
Hi there,
Try to use the following before you write anything to response:
response.setContentType("text/html; charset=UTF-8");
Make sure you use this before any call - response.getWriter();
Cheers
Sujan
-Original Message-
From: Franck [mailto:[EMAIL PROTECTED]
Sent: Monday, June 13, 20
Hi,
in my webapp, I have the following tag :
paramProperty="fullName">folder
In some case, "fullName" has special chars
In the result source I can see :
folder
The URL seems to be correctly UTF-8 encoded
In the "folder.do" Action, if I SysOut the "folder" parameter, I just can
see some o
Hi Manfred,
Thank you very much for responding immediately. I ended up multiple
struts config files successfully. But the thing is when I tried to use separate
resources for each struts config file using bundle parametre, It seems not to
be working.
Here is my struts configurations
HttpSession is the same everywhere: in plain servlet/JSP, in Struts or in JBoss.
On 6/13/05, marc <[EMAIL PROTECTED]> wrote:
> How do I easy and smart make a bean and put it in the client's session,
> when the client logs on. So no mather where the client is, I can access
> the bean.
> Like a bean
Thank you for all your help.
I finnaly solved it. I had misundestod the servlet login method. Once
read 5 times more I got.
But again thank you for all your help.
Best regards
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
How do I easy and smart make a bean and put it in the client's session,
when the client logs on. So no mather where the client is, I can access
the bean.
Like a bean that holes name, adr, age and so on.
I use jaas, jboss and the servelt sercurity when I logon.
---
Hi Manfred,
Thank you very much for responding immediately. I ended up multiple
struts config files successfully. But the thing is when I tried to use separate
resources for each struts config file using bundle parametre, It seems not to
be working.
Here is my struts configurations
Hi All,
I have a form which has two fields.One is a string array and
another field which determines the size of the first field. i have
indexed methods to populate the string array.
i need to initialize the string[] based on the size(another form
field) when the indexed method gets invoke
Has anybody any advice on this at all...?
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 13 June 2005 11:33
To: user@struts.apache.org
Subject: Sending value from popup to parent window
Hi,
I am a bit stuck on implementing the following so all help is
a
Thanks Martin,
I solved my problem.
Erol
Martin Gainty <[EMAIL PROTECTED]> wrote:
Erol-
a comprehensive tutorial including how to setup struts-config.xml
validation.xml as well as code can be viewed at
http://www.oracle.com/technology/oramag/oracle/04-jan/o14dev_struts.html
HTH,
Martin-
I wish to write out some values of a Hashtable using the nested tags.
I have read the documentation and know I have to refer to either the key or
the value property to access the underlying data but get the following
message when accessing the JSP/Form bean combination detailed below.
Error 500:
Struts Workflow Extension is not part of Struts. You need to consult
its author. Also, there are alternatives to it, like Struts Flow
http://struts.sourceforge.net/struts-flow or Easy Wizard
http://www.superinterface.com/easywizard.htm. The last project is
written by me, and is in the process of re
On Mon, June 13, 2005 12:54 am, Paul Goepfert said:
> Well I just created a test jsp file to see if I got to the page. I
> didn't. I just want to be sure about one thing. I am soppose to have
> multiple actions in my struts config? One for each page? Right?
How your app is configured is compl
Yes it can with multiple module support.
http://struts.apache.org/userGuide/configuration.html#dd_config_modules
Manfred
Venkat Reddy Valluri wrote:
Hi
Can struts-1.1 support multiple configurations and multiple resources. Can
some body please throw some light on this. I need it very urg
Hi
Can struts-1.1 support multiple configurations and multiple resources. Can
some body please throw some light on this. I need it very urgent
Thanks in advance
--Venkat
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addit
Do you hold the data inmemory or in a file system?
In later case you'll be just fine with mounting a common share, like NFS
or SMB.
In first case you'd need a software synchronization inbetween, which is
typically solved by a publisher/subscriber pattern. You can use MDB
(message-driven beans, th
Oracle is the only aproved database (clusterable or not). This is the
reason I was looking for a "rsync"-linke solution.
Nico.
delbd a écrit :
Le Lundi 13 Juin 2005 14:27, Nicolas De Loof a écrit :
Our customer defines architecture restriction for it's applications. One
of them is that
Le Lundi 13 Juin 2005 14:27, Nicolas De Loof a écrit :
> Our customer defines architecture restriction for it's applications. One
> of them is that the (only) usable database is Oracle. As we don't use a
> database for the app, adding orcale only to get DB replication may be
> difficult to explain
Our customer defines architecture restriction for it's applications. One
of them is that the (only) usable database is Oracle. As we don't use a
database for the app, adding orcale only to get DB replication may be
difficult to explain (and will add a significant cost)
delbd a écrit :
Just
Pierre,
Struts is no longer a sub-project of Jakarta but is now on its own.
Struts is alive and kicking: http://struts.apache.org/
You can look at section 6 [this might help]:
http://struts.apache.org/userGuide/index.html
As for JBoss... the last time I used it (can't exactly remember when)...
Just my two cents
I'll suggest storing the datas on a central database (which could be clustered
amongst your servers)
Le Lundi 13 Juin 2005 14:06, Nicolas De Loof a écrit :
> Hi all,
>
> this mail is totaly of topic, so sory sory sory...
> ... but there is so much java masters on this list !
>
Hi all,
this mail is totaly of topic, so sory sory sory...
... but there is so much java masters on this list !
I have to replicate some datas between two servers running my app (with
a load balancer, but not using a cluster mode). We are going to build a
home-made solution, and I wonder if a
Hi!
I'am a newbie in STRUTS WORKFLOW EXTENSION. I installed the Demo
Application and everything works fine. But the following situation seems
to lead to a bug in the workflow extension:
a) Start the wizard and insert the first operand
b) Click the next-button and go to the second page
c) Now pres
Hi,
I am a bit stuck on implementing the following so all help is
appreciated.
I open up a search page as a pop up window. The user implements the
search options and is returned a number of rows. The user then selects
one of these rows using a check box which I have defined as a multibox
in my
I wish to write out some values of a Hashtable using the nested tags.
I have read the documentation and know I have to refer to either the key or
the value property to access the underlying data but get the following
message when accessing the JSP/Form bean combination detailed below.
Error 500:
77 matches
Mail list logo