Off-topic: Java Web development research

2006-07-31 Thread Pillay, Kiren KN
Hello people,

I'm doing some research regarding Java Web development

1. How many projects do you get that start from scratch, ie design,
development, coding, testing etc.
2. How much is maintenance of existing applications. Also, do the
existing applications belong to you?
3. Also, how much time is spent coding your applications?
4. Also, is there any specific frameworks that you use
5. What are your biggest issues experienced in development?
6. Do you use EJB with your web applications.

Your feedback is much appreciated.

Regards
 
Kiren Pillay 
Analyst Developer
Corporate and Investment Banking Division, Johannesburg 


__

Standard Bank Disclaimer and Confidentiality Note

This e-mail, its attachments and any rights attaching hereto are, unless the 
context clearly indicates otherwise, the property of Standard Bank Group Limited
and/or its subsidiaries ("the Group"). It is confidential, private and intended 
for the addressee only. Should you not be the addressee and receive this e-mail 
by
mistake, kindly notify the sender, and delete this e-mail, immediately and do 
not disclose or use same in any manner whatsoever. Views and opinions
expressed in this e-mail are those of the sender unless clearly stated as those 
of the Group. The Group accepts no liability whatsoever for any loss or
damages whatsoever and howsoever incurred, or suffered, resulting, or arising, 
from the use of this email or its attachments. The Group does not warrant the 
integrity
of this e-mail nor that it is free of errors, viruses, interception or 
interference. Licensed divisions of the Standard Bank Group are authorised 
financial services providers
in terms of the Financial Advisory and Intermediary Services Act, No 37 of 2002 
(FAIS).
For information about the Standard Bank Group Limited visit our website 
http://www.standardbank.co.za
___


Re: how to call other tiles from baselayout

2006-07-31 Thread Antonio Petrelli

mosho ha scritto:

I have a problem. I am using tiles for my layout.
I have a baselayout.jsp where I am inserting all my header, body and footer
tags.

I want to insert another attribute called breadcrumbs which have some insert
statements. for example, 
my tile definition is:



  

  
  
  
  
 

Can i do this in my base layout:
 

  
  


Just to clear things, do you need to replace the "pageTitle" or your 
"breadcrumb" attribute? Anyway if you want to replace the "pageTitle" 
attribute you need to do this way:




 



HTH
Antonio


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



problem w.r.t javascript

2006-07-31 Thread Rauf Khan

Hi,

  Iam trying to validate a simple form which has a name, password & email
field. I have validated that name field(html:text) should contain only
characters, password field(html:text) contains only numbers & email
field(html:text) should contain proper email id.

 When i enter only numbers in name field, only characters in password field
& an invalid email id then only alert msg "please enter only characters" is
coming for name field & msg "pls enter only numbers for password field' *BUT
* no msg is coming for email field even though i have entered a wrong email
id. Also those two msgs are coming simultaneously but i want like this, i
mean to say when i click on submit button first only msg for name field
should show. Then again if i click submit button then msg for password field
should show & so on.

 Also suppose if i enter the proper name (only characs) , proper password
(only numbers) & if i enter the invalid email id then it will show the msg"
please enter a valid email address".

Iam sending the following code for reference :

Validation.xml
-


   
 
 

  mask
  ^[a-zA-Z]*$
   
 
 
 
   minlength
   5
 
 
 
  
maxlength
6
 


  


mask
^[0-9]*$

 
 
 
 
 



MessageResources.properties:
--
#- validations for compose.jsp --
ComposeForm.fname = Please enter the Name.
ComposeForm.password = Please enter the Password.
ComposeForm.email = Please enter the Email.
ComposeForm.OnlyNumbers = Please enter only numbers
ComposeForm.OnlyChars = Please enter only characters
ComposeForm.InvalidEmail = Please enter a valid Email address.
ComposeForm.OnlyNumbersChars = Please enter only numbers & characters
ComposeForm.fname.minlength = First Name cannot be less than  {1}
characters.
ComposeForm.fname.maxlength  = First Name cannot be greater than  {2}
characters.


Thanks in advance.

Regards
Rauf Khan


RE: Struts ComboBox Validation

2006-07-31 Thread Chetan Pandey
Hi Irwan:

Thanks for the reply. 

It did solve my problem but not for the Combo-box which takes ints.

Consider the following:



Choose Role
 




In which we have to set the property called attendeeVO.role which is an int.

Its initial values come from roleVector which holds a String and int pair of
values.

The String is displayed but only the int is returned.

I am Trying the following in my validation.xml :
 


However, even if a value other than "Choose Role" such as Hotel GM,  Hotel
Staff is chose I still get a Validation error message that Role is not
available.

Thanks.

Chetan Pandey


-Original Message-
From: Irwan Nurwandi [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 01, 2006 1:11 PM
To: Struts Users Mailing List
Subject: Re: Struts ComboBox Validation

>
> But the thing is, since the default value is "Choose Holidex" it considers
> it a String and doesn't validate.

it's should be
Choose Holidex

not this one ...
 

Regards
IN

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts ComboBox Validation

2006-07-31 Thread Irwan Nurwandi


But the thing is, since the default value is "Choose Holidex" it considers
it a String and doesn't validate.


it's should be
Choose Holidex

not this one ...
 

Regards
IN

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Struts ComboBox Validation

2006-07-31 Thread Chetan Pandey
I have the following Combobox in my Struts Application:

 

 

*





  

 





 

Where holidexCodeVector is a simple Vector of Strings where currently only
three values are stored: 

"IND"

"AUS"
"USA"

 

I want to validate holidexCode using validation.xml







 

But the thing is, since the default value is "Choose Holidex" it considers
it a String and doesn't validate.

 

So I end up getting "Choose Holidex" as a possible Value.

 

I want to stop this. I want control to proceed only when they have choses
"IND", "AUS" or "USA" only.

 

Thanks.

 

 

Chetan



RE: Proper Struts Tags

2006-07-31 Thread Patil, Sheetal
The stuffs I get is like you want multiple combobox
If it is so then u can codce like

<%String str="des"+count;%>

Trainee
S/W engg
Manager
Director


Now here if value of str is 3 then manager will be auto selected...

-Original Message-
From: Gareth Evans [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 31, 2006 7:44 PM
To: Struts Users Mailing List
Subject: Re: Proper Struts Tags

Try,

 ">

That should write the correct property name

Gareth

Thomas Joseph wrote:
> Basically, when we use the  
> But with your solution applied, I could get the html:select rendered, 
> but not have the pre-selection
> 
> Hope this would be clear
> 
> Thanks
> 
> Thomas Joseph
> - Original Message -
> 
>   From: Patil, Sheetal 
>   To: Struts Users Mailing List 
>   Sent: Monday, July 31, 2006 7:03 PM
>   Subject: RE: Proper Struts Tags
> 
> 
>   I wont get what u want to get?
>   Can u clear it 
>   -Original Message-
>   From: Thomas Joseph [mailto:[EMAIL PROTECTED] 
>   Sent: Monday, July 31, 2006 7:05 PM
>   To: Struts Users Mailing List
>   Subject: Re: Proper Struts Tags
> 
>   Thanks Sheetal, but I could not get the values autoselected for the
>   select
> 
> - Original Message -
> From: Patil, Sheetal
> 
> I also suffered from this problem so I write code like
> 
> <%String str="designation"+count;%>
> 
> 
> So it wroks fine
> 
> -Original Message-
> From: Thomas Joseph [mailto:[EMAIL PROTECTED]
> 
> Hi All,
> 
> I am using indexed properties for form beans and want something
like:
> <% int count = 0; %>
> 
> <%=employeeHashMap.get("name"+count)%> 
>  property="string(designation+<%=count%>"+)>
> 
> in proper struts tags.
> 
> The select tage, I am getting when rendered as  name="string(designation<%=count%>)">
> 
> instead of
> 
> ,  name="string(designation1)">, 
> 
> how can I get them right. Any help is appreciated.
> 
>   Thanks and Regards,
>   Thomas Joseph
> 
>   Kott Software Pvt. Ltd. | Vallamattom Estate | M.G.Road |
Cochin-682015
>   | India www.kottsoftware.com
>

>   
>   This email (including any attachments) is subject to copyright, the
>   information in it is confidential, and it is legally privileged. Use
of
>   this email or of any information in it other than by the addressee
is
>   unauthorized and unlawful. If you are not the intended recipient of
the
>   mail, kindly intimate the author of the mail and delete the same. 
>   
> --
> --
> 
> 

--
Gareth Evans

Software Developer

MSoft eSolutions Limited
Technology Centre
Inward Way
Rossmore Business Park
Ellesmere Port
Cheshire
CH65 3EN

-- 
Tel:+44 (0)870 0100 704
Fax:+44 (0)870 9010 705
E-Mail: [EMAIL PROTECTED]
Web:www.msoft.co.uk

--
Terms:
Please note that any prices quoted within this e-mail are subject to
VAT.
All program details and code described in this e-mail are subject to
copyright (c) of MSoft eSolutions Limited and remain the intellectual
property of MSoft eSolutions Limited.
Any proposal or pricing information contained within this e-mail are
subject to MSoft eSolutions' Terms and Conditions
--
Disclaimer:
This message is intended only for use of the addressee. If this message
was sent to you in error, please notify the sender and delete this
message. MSoft eSolutions Limited cannot accept responsibility for
viruses, so please scan attachments. Views expressed in this message do
not necessarily reflect those of MSoft eSolutions Limited who will not
necessarily be bound by its contents.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: DHTML and Struts

2006-07-31 Thread Frank W. Zammetti

Hi,

Have a look here:

http://struts.apache.org/1.x/userGuide/building_controller.html

Specifically, section 4.3.3 Map-backed ActionForms.

Frank

Puneet Lakhina wrote:

I have a set of text fields on a form. but the number of the text fields il
need is soemthing that depends on the user using the application.
So i have used DHTML to dynamically add a text field to the form. 
ofcourse i

have used normal html tags for the dynamically added text field.

But the problem is that this data never reaches my form bean. Is it not
possible to use dhtml in combination with struts??

thanks


--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM/Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Author of "Practical Ajax Projects With Java Technology"
 (2006, Apress, ISBN 1-59059-695-1)
Java Web Parts - http://javawebparts.sourceforge.net
 Supplying the wheel, so you don't have to reinvent it!

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DHTML and Struts

2006-07-31 Thread Puneet Lakhina

I have a set of text fields on a form. but the number of the text fields il
need is soemthing that depends on the user using the application.
So i have used DHTML to dynamically add a text field to the form. ofcourse i
have used normal html tags for the dynamically added text field.

But the problem is that this data never reaches my form bean. Is it not
possible to use dhtml in combination with struts??

thanks
--
Puneet


Re: how to read

2006-07-31 Thread Michael Jouravlev

On 7/31/06, temp temp <[EMAIL PROTECTED]> wrote:

How to read the following code ?

  boolean vIsForm = vWorkTypeId.equals(IFormflowWorkTypeIds.FORM);
String vWorkForwardName = MessageFormat.format("work={0}", new Object[] 
{vWorkAlias});
  String vForwardName = (aActionMapping.findForward(vWorkForwardName) 
== null)
  ? (vIsForm) ? "form" : "task"
  : vWorkForwardName;
  Thanks
  Miro


http://marc.theaimsgroup.com/?l=struts-user&m=114375163618830&w=2

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: how to read

2006-07-31 Thread Chris Cheshire

Miro, which part are you confused with? I am assuming the third line
as it uses nested tertiary operators (the ? : bit).

It could be written otherwise as:
String vForwardName = "";
if (aActionMapping.findForward(vWorkForwardName) == null) {
 if (visForm) {
   vForwardName = "form";
 }
 else {
   vForwardName = "task";
}
else {
 vForwardName = vWorkForwardName;
}

The ? : operator is used to specify what value to assign a variable
based upon a boolean condition.

ie

variable = condition ? value if true : value if false

This can be nested as above - it's more succint than using if/else
logic, but a little more obscure.

HTH

Chris

On 7/31/06, temp temp <[EMAIL PROTECTED]> wrote:

How to read the following code ?

  boolean vIsForm = vWorkTypeId.equals(IFormflowWorkTypeIds.FORM);
String vWorkForwardName = MessageFormat.format("work={0}", new Object[] 
{vWorkAlias});
  String vForwardName = (aActionMapping.findForward(vWorkForwardName) 
== null)
  ? (vIsForm) ? "form" : "task"
  : vWorkForwardName;
  Thanks
  Miro

 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



how to read

2006-07-31 Thread temp temp
How to read the following code ?
  
  boolean vIsForm = vWorkTypeId.equals(IFormflowWorkTypeIds.FORM);  
String vWorkForwardName = MessageFormat.format("work={0}", new Object[] 
{vWorkAlias});
  String vForwardName = (aActionMapping.findForward(vWorkForwardName) 
== null)
  ? (vIsForm) ? "form" : "task"
  : vWorkForwardName;
  Thanks
  Miro
  
 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

RE: Question regarding getRequestURI()

2006-07-31 Thread Adam Gordon
Very true.  Though, we use logging profusely throughout our application
which, albeit, indirectly, writes stuff to the disk (most certainly using
File objects) - I guess we must be draconian.  :-)

-Adam
 
PS-

I just peeked at File.getName(), It does the same thing:

--- SNIP ---

public String getName() {

  int index = path.lastIndexOf(separatorChar);
if (index < prefixLength) return path.substring(prefixLength);
return path.substring(index + 1);
}

--- SNIP ---

-Original Message-
From: Monkeyden [mailto:[EMAIL PROTECTED] 
Sent: Monday, 31 July 2006 12:13
To: Struts Users Mailing List
Subject: Re: Question regarding getRequestURI()

One could say that operating on File objects, directly, infringes on the
concept of a "container", depending on how draconian you are.

On 7/31/06, Adam Gordon <[EMAIL PROTECTED]> wrote:
>
> The File object also gives it to you and you don't have to mess with
> substrings and the "/" character.  I believe it's File.getName() - it
> returns everything after the last "/" character.  Of course, you do have
> to
> construct a new File object so I've no idea if it's more or less efficient
> than what Monkeyden suggested.
>
> -Adam



Struts form design question

2006-07-31 Thread Adam Gordon
Hi folks.

The more I think of this problem, the more I think that we will be unable to
use only Struts for this particular situation.

We have a table which we populate with a user's choice of custom
registration fields (name, email, phone, company, etc...).  Each row in this
table is essentially a button to remove the row, a text field to enter the
name of the field, and a checkbox to indicate whether or not that particular
field is required when a user registers.  At the bottom of the table is an
"Add Field" button which will insert a new row in the table. 

Right now, the "Add Field" and "Remove Row" buttons are implemented in
JavaScript because we don't want to edit the database every time the user
makes a change.  Additionally, we want the ability to "reset" the table back
to what the user had originally (the user's defaults can change over time,
and since they come from the database, this is why we don't want "live"
editing).

Initially creating the table isn't the problem, we can use DynaForms to
correctly create the table, the problem is how/can we read the values (the
rows of textfield/checkbox items) back when the user is finished editing
using Struts?  I don't think we can use DynaForms because the user can
change what was originally rendered...or am I misunderstanding DynaForms?

Thanks.

-Adam



how to call other tiles from baselayout

2006-07-31 Thread mosho


I have a problem. I am using tiles for my layout.
I have a baselayout.jsp where I am inserting all my header, body and footer
tags.

I want to insert another attribute called breadcrumbs which have some insert
statements. for example, 
my tile definition is:


  
  
  
  
  
 

Can i do this in my base layout:
 

  

Value of breadcrumbs is another jsp file:
  

Thanks

-- 
View this message in context: 
http://www.nabble.com/how-to-call-other-tiles-from-baselayout-tf2029501.html#a5582228
Sent from the Struts - User forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Ajax query

2006-07-31 Thread mcmoisei
I use Ajax transparently with Struts using AjaxAnywhere.

You app doesn't change and you don't violate the MVC pattern.
http://sourceforge.net/projects/ajaxanywhere

I don't remember if the examples provide a Struts example.

Check it out,
MC


 -- Original message --
From: "Patil, Sheetal" <[EMAIL PROTECTED]>
> hello friends,
> i have one query with Ajax. in struts we separate model-view-controller,
> even that's struts purpose. 
> but now a days i am using Ajax, and i seen most of the examples are
> producing html code or data to display and sending it to client.
> but i think this is violating M-V-C pattern as it is directly producing
> data and sending to client.
> so please tell me if my thinking is right or worst.
> thanks in advance
> Shital Patil
> 
> Sp
> 
>  
> 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: two form one jsp

2006-07-31 Thread Monkeyden

Your example WILL always point to the first form, since you use the index of
0 (zero).  You need to use 1 to point to the second form.  This works fine
for me:





function tellMe(){
   alert("Form 1: " + document.forms[0].form2Text.value);
   alert("Form 2: " + document.forms[1].form2Text.value);
}



   


   






On 7/31/06, Parvat Singh Ranawat <[EMAIL PROTECTED]> wrote:


Hi all,

I'm attempting to create a JSP that is made up of two forms.  Each
form needs a same  form bean and is processed by a same
action.  The catch is that the one form comes from Header (This will be
there for all the pages as part of left panel )

and second is coming from my jsp  and  problem occures while calling JAVA
SCRIPT

ie
1) if I use document. form[0]  then this always points to the first form
(which is there in Header)
2) if I use document.formName
then there is ambiguity which form to call.

so how to work in this situation


Thanks

Shakti




Re: Question regarding getRequestURI()

2006-07-31 Thread Monkeyden

One could say that operating on File objects, directly, infringes on the
concept of a "container", depending on how draconian you are.

On 7/31/06, Adam Gordon <[EMAIL PROTECTED]> wrote:


The File object also gives it to you and you don't have to mess with
substrings and the "/" character.  I believe it's File.getName() - it
returns everything after the last "/" character.  Of course, you do have
to
construct a new File object so I've no idea if it's more or less efficient
than what Monkeyden suggested.

-Adam

-Original Message-
From: Monkeyden [mailto:[EMAIL PROTECTED]
Sent: Friday, 28 July 2006 12:50
To: Struts Users Mailing List
Subject: Re: Question regarding getRequestURI()

Actually, the mapping parameter may give you something.  Try
mapping.getPath
()

On 7/28/06, Monkeyden <[EMAIL PROTECTED]> wrote:
>
>  You have to parse it.  Something like this:
>
> String requestUri = request.getRequestURI();
> String resourceName = requestUri.substring(requestUri.lastIndexOf("/"),
> requestURI.length-1);
>
>
>  On 7/28/06, mosho <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > Hi All,
> >
> > I am using struts 1.1 I need to get the process.do from the url.
> >
> > For example if I have
> > http://11.1.30.222:1001/testproject/process.do
> >
> > By using getRequestURI(), I can get /testproject/process.do but I just
> > need
> > process.do.
> > Is there any way to get this?
> >
> > Thanks
> > --
> > View this message in context:

http://www.nabble.com/Question-regarding-getRequestURI%28%29-tf2016924.html#
a5544941
> >
> > Sent from the Struts - User forum at Nabble.com .
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>




two form one jsp

2006-07-31 Thread Parvat Singh Ranawat

Hi all,

I'm attempting to create a JSP that is made up of two forms.  Each
form needs a same  form bean and is processed by a same
action.  The catch is that the one form comes from Header (This will be
there for all the pages as part of left panel )

and second is coming from my jsp  and  problem occures while calling JAVA
SCRIPT

ie
1) if I use document. form[0]  then this always points to the first form
(which is there in Header)
2) if I use document.formName
then there is ambiguity which form to call.

so how to work in this situation


Thanks

Shakti


RE: Reset Button

2006-07-31 Thread Lance
I had this issue too.
form.reset() resets fields in the form back to their original state when the
page loaded. Chances are the form's original state was populated. You may
want your reset button to call a method that sets all your fields to blank
instead of using form.reset()

-Original Message-
From: Puneet Lakhina [mailto:[EMAIL PROTECTED] 
Sent: 31 July 2006 06:06
To: Struts Users Mailing List
Subject: Reset Button

I have a simple form which has 4 fields a submit and a reset button. WHen
the form is initially loaded, everything works fine, and the reset button
actually sets the values to their default values according to the form bean.
But on a certain condition in my action i forward back to the form i.e.

mapping.findInputforward();

after this the reset button stops working. The values entered earlier are
not set to their defaults. Any ideas why it could be happening, or is it
something i have understood wrong.

THanks
-- 
Puneet



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Conditional Validation

2006-07-31 Thread Givler, Eric
Can you override the validate() method in your form that extends ValidatorForm, 
and then inside that do something like this?
 
public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) 
{
ActionErrors errors = null;
if ( request.getParameter("closeButton") == null ) {
   // close button not pressed - so validate
   errors= super.validate(mapping,request);
}
return errors;
} // validate()
   

-Original Message- 
From: Caroline Jen [mailto:[EMAIL PROTECTED] 
Sent: Sun 7/30/2006 12:44 AM 
To: user@struts.apache.org 
Cc: 
Subject: Conditional Validation



I am using the Struts validation.xml to check if
clients leave any of the required text fields in the
form blank.

I prepared two action mappings for this web page.  The
'validate'attribute is set to "false" for the first
action mapping because when I have the web page
displayed in the browserat the first time, I do not
want to perform the validation check.

The 'validate' attribute is set to "true" for the
second action mapping so that validation is performed
if clients click on the "Submit" button.

So far so good.

But, there is also a "Close" button in the web page.
If the 'Close' button is clicked, the previous web
page is supposed to be displayed.

Clients are not expected to fill out the form should
they choose to click on the 'Close' button.  What
should I do if I do not want to perform the validation
check if the 'Close' button is clicked? 



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Struts2 JSF integration question

2006-07-31 Thread Chris Waring

Thanks Don.  That clears things up for me some.  I'm going to take a little
closer look and see if it is possible to make the page lookup more flexible. 
If JSF is expecting the page to look this way, then it makes sense that it
may have to be this way.  I'll let you know if I find a way to make it work.

Thanks Again,
--Chris Waring
-- 
View this message in context: 
http://www.nabble.com/Struts2-JSF-integration-question-tf2027690.html#a5578029
Sent from the Struts - User forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts2 JSF integration question

2006-07-31 Thread Don Brown

Yeah, the JSP location could be made more flexible.  I originally
coded it that way to match how JSF would expect to find and handle the
JSP.  I don't remember, off hand, if other parts of the JSF controller
expects the JSP to be located as such.  If you patch the code and find
it works fine, please open a ticket and let me know.

Thanks,

Don

On 7/31/06, Chris Waring <[EMAIL PROTECTED]> wrote:


Ok, I did some debugging and I think I figured out what it is doing.  It
looks like it is using the namespace from the package definition plus the
name from the action definition plus the file suffix (jsp).  To come up with
"/jsf/employee/list.jsp".

I'm not sure that this is going to be flexible enough?  Shouldn't you be
able to define the location and name of whatever jsp that you want?  Why
should my action name have to match the name of my jsp?  What if I want to
have multiple actions that all navigate back to the same jsp?  It would look
like I can not do it at the moment.

Am I mistaken about how this is working?  Anyone else think that this needs
to be improved?

Thanks,
--Chris Waring
--
View this message in context: 
http://www.nabble.com/Struts2-JSF-integration-question-tf2027690.html#a5577746
Sent from the Struts - User forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts2 JSF integration question

2006-07-31 Thread Don Brown

Sure...first, the JSF interceptors trigger if there is a JSF result.
The result code from the action, even if it is a JSF action, is
treated like a normal Struts 2 result code, and therefore, subject to
the Struts 2 navigation.  When the page is rendered, the Action
instance is injected into the JSF context as if it was a backing bean
named "action".  Furthermore, the JSF result assumes the jsp file has
the same name as the action path, in a manner similar to normal JSF
pages.

The wiki page [1] covers this in a bit more detail.

HTH,

Don

[1] http://confluence.twdata.org/display/WW/JavaServer+Faces

On 7/31/06, Chris Waring <[EMAIL PROTECTED]> wrote:


I'm trying out the Struts2 JSF integration using the first snapshot build
that was out last week.  What I can't seem to figure out is how the showcase
example is forwarding to the correct jsp?  The action result does not have
any jsp listed and I don't see a faces-config.xml anywhere?  Can someone
clue me in to how this is working?

Thanks,
--Chris Waring
--
View this message in context: 
http://www.nabble.com/Struts2-JSF-integration-question-tf2027690.html#a5576311
Sent from the Struts - User forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts2 JSF integration question

2006-07-31 Thread Chris Waring

Ok, I did some debugging and I think I figured out what it is doing.  It
looks like it is using the namespace from the package definition plus the
name from the action definition plus the file suffix (jsp).  To come up with
"/jsf/employee/list.jsp".

I'm not sure that this is going to be flexible enough?  Shouldn't you be
able to define the location and name of whatever jsp that you want?  Why
should my action name have to match the name of my jsp?  What if I want to
have multiple actions that all navigate back to the same jsp?  It would look
like I can not do it at the moment.

Am I mistaken about how this is working?  Anyone else think that this needs
to be improved?

Thanks,
--Chris Waring
-- 
View this message in context: 
http://www.nabble.com/Struts2-JSF-integration-question-tf2027690.html#a5577746
Sent from the Struts - User forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Proper Struts Tags

2006-07-31 Thread Gareth Evans

Try,

 
">

That should write the correct property name

Gareth

Thomas Joseph wrote:

Basically, when we use the - Original Message - 

  From: Patil, Sheetal 
  To: Struts Users Mailing List 
  Sent: Monday, July 31, 2006 7:03 PM

  Subject: RE: Proper Struts Tags


  I wont get what u want to get?
  Can u clear it 
  -Original Message-
  From: Thomas Joseph [mailto:[EMAIL PROTECTED] 
  Sent: Monday, July 31, 2006 7:05 PM

  To: Struts Users Mailing List
  Subject: Re: Proper Struts Tags

  Thanks Sheetal, but I could not get the values autoselected for the
  select

- Original Message -
From: Patil, Sheetal 


I also suffered from this problem so I write code like

<%String str="designation"+count;%>


So it wroks fine

-Original Message-
From: Thomas Joseph [mailto:[EMAIL PROTECTED] 

Hi All, 


I am using indexed properties for form beans and want something like:
<% int count = 0; %>

<%=employeeHashMap.get("name"+count)%> 

property="string(designation+<%=count%>"+)>

in proper struts tags.

The select tage, I am getting when rendered as 

instead of 


, , 

how can I get them right. Any help is appreciated.

  Thanks and Regards,
  Thomas Joseph 


  Kott Software Pvt. Ltd. | Vallamattom Estate | M.G.Road | Cochin-682015
  | India www.kottsoftware.com
  
  
  This email (including any attachments) is subject to copyright, the
  information in it is confidential, and it is legally privileged. Use of
  this email or of any information in it other than by the addressee is
  unauthorized and unlawful. If you are not the intended recipient of the
  mail, kindly intimate the author of the mail and delete the same. 
  





--
Gareth Evans

Software Developer

MSoft eSolutions Limited
Technology Centre
Inward Way
Rossmore Business Park
Ellesmere Port
Cheshire
CH65 3EN

--
Tel:+44 (0)870 0100 704
Fax:+44 (0)870 9010 705
E-Mail: [EMAIL PROTECTED]
Web:www.msoft.co.uk

--
Terms:
Please note that any prices quoted within this e-mail are subject to VAT.
All program details and code described in this e-mail are subject to
copyright © of MSoft eSolutions Limited and remain the intellectual
property of MSoft eSolutions Limited.
Any proposal or pricing information contained within this e-mail are
subject to MSoft eSolutions' Terms and Conditions
--
Disclaimer:
This message is intended only for use of the addressee. If this message
was sent to you in error, please notify the sender and delete this
message. MSoft eSolutions Limited cannot accept responsibility for viruses,
so please scan attachments. Views expressed in this message do not
necessarily reflect those of MSoft eSolutions Limited who will not
necessarily be bound by its contents.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Struts2 JSF integration question

2006-07-31 Thread Chris Waring

I'm trying out the Struts2 JSF integration using the first snapshot build
that was out last week.  What I can't seem to figure out is how the showcase
example is forwarding to the correct jsp?  The action result does not have
any jsp listed and I don't see a faces-config.xml anywhere?  Can someone
clue me in to how this is working?

Thanks,
--Chris Waring
-- 
View this message in context: 
http://www.nabble.com/Struts2-JSF-integration-question-tf2027690.html#a5576311
Sent from the Struts - User forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Proper Struts Tags

2006-07-31 Thread Thomas Joseph
Basically, when we use the mailto:[EMAIL PROTECTED] 
  Sent: Monday, July 31, 2006 7:05 PM
  To: Struts Users Mailing List
  Subject: Re: Proper Struts Tags

  Thanks Sheetal, but I could not get the values autoselected for the
  select

- Original Message -
From: Patil, Sheetal 

I also suffered from this problem so I write code like

<%String str="designation"+count;%>


So it wroks fine

-Original Message-
From: Thomas Joseph [mailto:[EMAIL PROTECTED] 

Hi All, 

I am using indexed properties for form beans and want something like:
<% int count = 0; %>

<%=employeeHashMap.get("name"+count)%> 


in proper struts tags.

The select tage, I am getting when rendered as 

instead of 

, , 

how can I get them right. Any help is appreciated.

  Thanks and Regards,
  Thomas Joseph 

  Kott Software Pvt. Ltd. | Vallamattom Estate | M.G.Road | Cochin-682015
  | India www.kottsoftware.com
  
  
  This email (including any attachments) is subject to copyright, the
  information in it is confidential, and it is legally privileged. Use of
  this email or of any information in it other than by the addressee is
  unauthorized and unlawful. If you are not the intended recipient of the
  mail, kindly intimate the author of the mail and delete the same. 
  



Re: Question regarding getRequestURI()

2006-07-31 Thread mosho

Thanks for your replies.

This solution works for me, mapping.getpath(). 

 
-- 
View this message in context: 
http://www.nabble.com/Question-regarding-getRequestURI%28%29-tf2016924.html#a5576221
Sent from the Struts - User forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Question regarding getRequestURI()

2006-07-31 Thread Puneet Lakhina



String requestUri = request.getRequestURI();
String resourceName = requestUri.substring(requestUri.lastIndexOf("/"),
requestURI.length-1);



String resourceName = requestUri.substring(requestUri.lastIndexOf("/"),
requestURI.length()-1);

just in case you din notice

--
Puneet


RE: Question regarding getRequestURI()

2006-07-31 Thread Adam Gordon
The File object also gives it to you and you don't have to mess with
substrings and the "/" character.  I believe it's File.getName() - it
returns everything after the last "/" character.  Of course, you do have to
construct a new File object so I've no idea if it's more or less efficient
than what Monkeyden suggested.

-Adam
 
-Original Message-
From: Monkeyden [mailto:[EMAIL PROTECTED] 
Sent: Friday, 28 July 2006 12:50
To: Struts Users Mailing List
Subject: Re: Question regarding getRequestURI()

Actually, the mapping parameter may give you something.  Try mapping.getPath
()

On 7/28/06, Monkeyden <[EMAIL PROTECTED]> wrote:
>
>  You have to parse it.  Something like this:
>
> String requestUri = request.getRequestURI();
> String resourceName = requestUri.substring(requestUri.lastIndexOf("/"),
> requestURI.length-1);
>
>
>  On 7/28/06, mosho <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > Hi All,
> >
> > I am using struts 1.1 I need to get the process.do from the url.
> >
> > For example if I have
> > http://11.1.30.222:1001/testproject/process.do
> >
> > By using getRequestURI(), I can get /testproject/process.do but I just
> > need
> > process.do.
> > Is there any way to get this?
> >
> > Thanks
> > --
> > View this message in context:
http://www.nabble.com/Question-regarding-getRequestURI%28%29-tf2016924.html#
a5544941
> >
> > Sent from the Struts - User forum at Nabble.com .
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>


RE: Proper Struts Tags

2006-07-31 Thread Patil, Sheetal
I wont get what u want to get?
Can u clear it 
-Original Message-
From: Thomas Joseph [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 31, 2006 7:05 PM
To: Struts Users Mailing List
Subject: Re: Proper Struts Tags

Thanks Sheetal, but I could not get the values autoselected for the
select

  - Original Message -
  From: Patil, Sheetal 

  I also suffered from this problem so I write code like

  <%String str="designation"+count;%>
  

  So it wroks fine

  -Original Message-
  From: Thomas Joseph [mailto:[EMAIL PROTECTED] 

  Hi All, 

  I am using indexed properties for form beans and want something like:
  <% int count = 0; %>

  <%=employeeHashMap.get("name"+count)%> 
  

  in proper struts tags.

  The select tage, I am getting when rendered as 

  instead of 

  , , 

  how can I get them right. Any help is appreciated.

Thanks and Regards,
Thomas Joseph 

Kott Software Pvt. Ltd. | Vallamattom Estate | M.G.Road | Cochin-682015
| India www.kottsoftware.com


This email (including any attachments) is subject to copyright, the
information in it is confidential, and it is legally privileged. Use of
this email or of any information in it other than by the addressee is
unauthorized and unlawful. If you are not the intended recipient of the
mail, kindly intimate the author of the mail and delete the same. 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Proper Struts Tags

2006-07-31 Thread Thomas Joseph
Thanks Sheetal, but I could not get the values autoselected for the select

  - Original Message - 
  From: Patil, Sheetal 

  I also suffered from this problem so I write code like

  <%String str="designation"+count;%>
  

  So it wroks fine

  -Original Message-
  From: Thomas Joseph [mailto:[EMAIL PROTECTED] 

  Hi All, 

  I am using indexed properties for form beans and want something like:
  <% int count = 0; %>

  <%=employeeHashMap.get("name"+count)%> 
  

  in proper struts tags.

  The select tage, I am getting when rendered as 

  instead of 

  , , 

  how can I get them right. Any help is appreciated.

Thanks and Regards,
Thomas Joseph 

Kott Software Pvt. Ltd. | Vallamattom Estate | M.G.Road | Cochin-682015 | India 
www.kottsoftware.com 

This email (including any attachments) is subject to copyright, the information 
in it is confidential, and it is legally privileged. Use of this email or of 
any information in it other than by the addressee is unauthorized and unlawful. 
If you are not the intended recipient of the mail, kindly intimate the author 
of the mail and delete the same. 



RE: [OT]design help

2006-07-31 Thread fea jabi

can someone help me with this please? Thanks.



From: "fea jabi" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" 
To: user@struts.apache.org
Subject: [OT]design help
Date: Fri, 28 Jul 2006 13:09:46 -0400

have String array's which have values in them.

dbValues[]
newValues[]

Have an object Customer which has row obj in a table in jsp page. This row 
obj basically has

dbValues[0] , newValues[0] .. etc.

In Prepare Action.

Creating the list of Customer obj's that is put in the form-bean.

struts-config.
dynamic="true">

   
.


jsp:
the customers are shown in the jsp in a table.


I have to check if it's new customer then have to ask user if they want to 
put dbValues in the newValues. If the user presses 'yes' then have to put 
the dbValues in newValues and then create the rowObjects(i.e Customer 
Objects) and display them in jsp.


Not sure how to do this. Before asking the user if they want to replace 
newValues, the rowsObjects are created. somehow have to create new 
rowObjects again. Using LookupDispatchAction. when the user presses 'yes' 
how is the user values 'yes' will be passed as i am using 
LookupDispatchAction which method gets executed?


How to do this? Thanks.

_
On the road to retirement? Check out MSN Life Events for advice on how to 
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



_
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Proper Struts Tags

2006-07-31 Thread Patil, Sheetal
I also suffered from this problem so I write code like

<%String str="designation"+count;%>


So it wroks fine

-Original Message-
From: Thomas Joseph [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 31, 2006 6:34 PM
To: Struts Users Mailing List
Subject: Proper Struts Tags

Hi All, 

I am using indexed properties for form beans and want something like:
<% int count = 0; %>

<%=employeeHashMap.get("name"+count)%> 


in proper struts tags.

The select tage, I am getting when rendered as 

instead of 

, , 

how can I get them right. Any help is appreciated.


Thanks and Regards,
Thomas Joseph 

Kott Software Pvt. Ltd. | Vallamattom Estate | M.G.Road | Cochin-682015
| India www.kottsoftware.com


This email (including any attachments) is subject to copyright, the
information in it is confidential, and it is legally privileged. Use of
this email or of any information in it other than by the addressee is
unauthorized and unlawful. If you are not the intended recipient of the
mail, kindly intimate the author of the mail and delete the same. 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Proper Struts Tags

2006-07-31 Thread Thomas Joseph
Hi All, 

I am using indexed properties for form beans and want something like:
<% int count = 0; %>

<%=employeeHashMap.get("name"+count)%> 


in proper struts tags.

The select tage, I am getting when rendered as 

instead of 

, , 


how can I get them right. Any help is appreciated.


Thanks and Regards,
Thomas Joseph 

Kott Software Pvt. Ltd. | Vallamattom Estate | M.G.Road | Cochin-682015 | India 
www.kottsoftware.com 

This email (including any attachments) is subject to copyright, the information 
in it is confidential, and it is legally privileged. Use of this email or of 
any information in it other than by the addressee is unauthorized and unlawful. 
If you are not the intended recipient of the mail, kindly intimate the author 
of the mail and delete the same. 



AW: Problem with message property files in russian language

2006-07-31 Thread Martin Kindler
Hi Dmitry

as far as I know the Java properties files must be in ASCII code. (so much
to the Unicode support in Java :-)).
I had the same problem (well I tried to use UTF-8 in the properties file).
After changing to the \uxxx codes it worked.


Martin

> -Ursprüngliche Nachricht-
> Von: Dmitry Sivachenko [mailto:[EMAIL PROTECTED] 
> Gesendet: Montag, 31. Juli 2006 14:26
> An: user@struts.apache.org
> Betreff: Problem with message property files in russian language
> 
> 
> Hello!
> 
> I use tomcat 5.5 and struts 1.2.9.  I do all development 
> under Windows OS.
> 
> I am developing an application which outputs data in Russian 
> language (windows-1251 encoding).
> 
> Consider the following JSP excerpt:
> 
> <[EMAIL PROTECTED] contentType="text/html; charset=windows-1251"%>
> <%@ taglib uri="http://struts.apache.org/tags-html"; prefix="html" %>
> 
> 
> 
> Заголовок
> 
> 
> Текст
> 
> 
> 
> 
> 
> html:errors hash is filled in ActionForm's validate() 
> function in the following way:
> 
> errors.add("no.login.username", new 
> ActionMessage("no.login.username"));
> 
> Properties file contains messages written in Russian language 
> (windows-1251 encoding).
> 
> This JSP displays all hardcoded russian text correctly, but 
> all  messages have '?' instead of letters.
> 
> What am I doing wrong?
> 
> Thanks in advance!
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problem with message property files in russian language

2006-07-31 Thread Dmitry Sivachenko
Hello!

I use tomcat 5.5 and struts 1.2.9.  I do all development under Windows OS.

I am developing an application which outputs data in Russian language
(windows-1251 encoding).

Consider the following JSP excerpt:

<[EMAIL PROTECTED] contentType="text/html; charset=windows-1251"%>
<%@ taglib uri="http://struts.apache.org/tags-html"; prefix="html" %>



Заголовок


Текст





html:errors hash is filled in ActionForm's validate() function in the
following way:

errors.add("no.login.username", new ActionMessage("no.login.username"));

Properties file contains messages written in Russian language (windows-1251
encoding).

This JSP displays all hardcoded russian text correctly, but all 
messages have '?' instead of letters.

What am I doing wrong?

Thanks in advance!

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Session tracking correct approach

2006-07-31 Thread purushottam hegde

Hi Prerna,
If i am not wrong , this is not session tracking.
it is session validation.

1) this has a problem,

 It unnecessarily creates a session.
2)think it works but using browser back button might fail
3) think it works  but using browser back button might fail

4)Using filters (Cookies) - filters are not cookies.
  it is just like a controller svlt.


please correct me if i am wrong
Regards
PH
On 7/31/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:



Hi All,



I would like to know which is the best approach for session tracking in
struts among the following



1)   Writing your own ActionServlet class which will have the
following code



public class MyActionServlet extends ActionServlet{

   /* (non-Javadoc)

* @see
org.apache.struts.action.ActionServlet#doGet(javax.servlet.http.HttpServ
letRequest, javax.servlet.http.HttpServletResponse)

*/

   public void doGet(HttpServletRequest request,
HttpServletResponse response) throws IOException, ServletException {



   System.out.println(" Inside doGet Method of
MyActionServlet");

   String id = request.getRequestedSessionId();

   System.out.println(" The REQUEST SESSION ID IS
::"+id);

   HttpSession session=request.getSession(true);

   System.out.println(" Value of the new SESSION
OBJECT IS :;"+session.getId());

   System.out.println(" Is it a new session object
? :;"+session.isNew());



   if (!(id.matches(session.getId(

   {


System.out.println("");

   System.out.println("*SESSION TIME
OUT");


System.out.println("");

   }



   super.doGet(request,response);

   }



2)  Writing a base action and checking for session expiry in
that class



public class DisplayProfileAction extends Action



{

public ActionForward   execute(ActionMapping  mapping,

ActionForm form,

HttpServletRequest request,

   HttpServletResponse response) throws IOException,
ServletException

{



  HttpSession session= HttpSession
session=request.getSession(true);

  Boolean valid=session.getParameter("VALID");



  if (valid == null)

{


System.out.println("");

   System.out.println("*SESSION TIME
OUT");


System.out.println("");

   }

}

}



3)   Or using the following code. Any suggestion as to where should
this code be placed. In your own action servlet class or in BaseAction
class



   if (!request.isRequestedSessionIdValid())

   {


System.out.println("");


System.out.println("*SESSION TIME OUT");


System.out.println("");

   }

4)   Using filters (Cookies) to track session timeout which by using
filters will the performance of the system not get affected?



Thanks & Regards

Prerna








The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s) and
may contain proprietary, confidential or privileged information. If you are
not the intended recipient, you should not disseminate, distribute or copy
this e-mail. Please notify the sender immediately and destroy all copies of
this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient
should check this email and any attachments for the presence of viruses. The
company accepts no liability for any damage caused by any virus transmitted
by this email.

www.wipro.com



Session tracking correct approach

2006-07-31 Thread prerna.sawhney

Hi All,



I would like to know which is the best approach for session tracking in
struts among the following



1)   Writing your own ActionServlet class which will have the
following code



public class MyActionServlet extends ActionServlet{

/* (non-Javadoc)

 * @see
org.apache.struts.action.ActionServlet#doGet(javax.servlet.http.HttpServ
letRequest, javax.servlet.http.HttpServletResponse)

 */

public void doGet(HttpServletRequest request,
HttpServletResponse response) throws IOException, ServletException {

   

System.out.println(" Inside doGet Method of
MyActionServlet");

String id = request.getRequestedSessionId();

System.out.println(" The REQUEST SESSION ID IS
::"+id);

HttpSession session=request.getSession(true);

System.out.println(" Value of the new SESSION
OBJECT IS :;"+session.getId());

System.out.println(" Is it a new session object
? :;"+session.isNew());

   

if (!(id.matches(session.getId(

{


System.out.println("");

System.out.println("*SESSION TIME
OUT");


System.out.println("");

}

   

super.doGet(request,response);

}



2)  Writing a base action and checking for session expiry in
that class



public class DisplayProfileAction extends Action



{  

public ActionForward   execute(ActionMapping  mapping,

 ActionForm form,

 HttpServletRequest request,

HttpServletResponse response) throws IOException,
ServletException

{



   HttpSession session= HttpSession
session=request.getSession(true);

   Boolean valid=session.getParameter("VALID");



   if (valid == null)

{


System.out.println("");

System.out.println("*SESSION TIME
OUT");


System.out.println("");

}

}

}



3)   Or using the following code. Any suggestion as to where should
this code be placed. In your own action servlet class or in BaseAction
class



if (!request.isRequestedSessionIdValid())

{


System.out.println("");


System.out.println("*SESSION TIME OUT");


System.out.println("");

}

4)   Using filters (Cookies) to track session timeout which by using
filters will the performance of the system not get affected?



Thanks & Regards

Prerna








The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.

www.wipro.com

Re: Tiles validation and struts config input

2006-07-31 Thread Antonio Petrelli

Justin Chin ha scritto:
I am using Tiles 
...

Lets say I have two sets of users. UsersA, and UsersB.  The data gather
for both users are the same.  The look and feel is different.  So I want
to point to the same action mapping for the two sets.


Probably you are interested in Dimensions:
http://mutidimensions.sourceforge.net/

Ciao
Antonio


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Ajax query

2006-07-31 Thread Thomas Joseph
Hi,

I am not that very experienced in Ajax, but what I feel that It is up to you 
how you produce the HTML code that you are or are not violating the MVC.

If your action class produces html, it voilates, but if it can forward to a JSP 
that generates the bare HTML all that is required for that particuar AJAX 
request, it will not be voilating MVC.

Hope others will also agree with me.?

Thanks and Regards,
Thomas Joseph 

Kott Software Pvt. Ltd. | Vallamattom Estate | M.G.Road | Cochin-682015 | India 
www.kottsoftware.com 

This email (including any attachments) is subject to copyright, the information 
in it is confidential, and it is legally privileged. Use of this email or of 
any information in it other than by the addressee is unauthorized and unlawful. 
If you are not the intended recipient of the mail, kindly intimate the author 
of the mail and delete the same. 


  - Original Message - 
  From: Patil, Sheetal 
  To: Struts Users Mailing List 
  Sent: Monday, July 31, 2006 3:50 PM
  Subject: Ajax query


  hello friends,
  i have one query with Ajax. in struts we separate model-view-controller,
  even that's struts purpose. 
  but now a days i am using Ajax, and i seen most of the examples are
  producing html code or data to display and sending it to client.
  but i think this is violating M-V-C pattern as it is directly producing
  data and sending to client.
  so please tell me if my thinking is right or worst.
  thanks in advance
  Shital Patil

  Sp

   


Ajax query

2006-07-31 Thread Patil, Sheetal
hello friends,
i have one query with Ajax. in struts we separate model-view-controller,
even that's struts purpose. 
but now a days i am using Ajax, and i seen most of the examples are
producing html code or data to display and sending it to client.
but i think this is violating M-V-C pattern as it is directly producing
data and sending to client.
so please tell me if my thinking is right or worst.
thanks in advance
Shital Patil

Sp