RE: Struts - html:select options Question

2002-04-09 Thread Alvin Kutttikkat Antony



alvin kuttikkat antony
Internet und Virtuelle Hochshule
Directory
Universität München

Leopoldstr .3
80802 München
Germany

Office Tel + 49.89.21025979
Office Fax + 49.89.21025980


>>> [EMAIL PROTECTED] 04/09/02 12:59pm >>>
Hi,

Have you considered using the logic:iterate tag with a HTML 
inside.
Have a look at the example app provided with Struts. This uses the
iterate
tag. This might be a better option than  in your
situation.

Jon.

-Original Message-
From: Paladugu, Phani [mailto:[EMAIL PROTECTED]] 
Sent: 08 April 2002 19:28
To: '[EMAIL PROTECTED]' 
Subject: Struts - html:select options Question

Need help Users,

This question is pertaining to html:select tag.
I have a situation where I have to present a table of options where
each row
contains three columns of data
to the user. And there may be 100 such rows at any given time. 

Since there is no tag available to present the table directly in
struts, I
am using html:select tag by reformatting 
the three rows into a single row and using the html:select tag.

and the code looks as follows.


  
  

where list is a Vector that contains Strings in the form instance
gLMaintenanceForm.

It works fine and displays the resulting in display of one string per
each
item.
The only problem is it is squeezing out all the white spaces from the
string
that I present to the user.

For Example, If I want to Display "A  B   C"  as one
option
in the select list it only displays
"A B C" 

I even tried to use   instead of spaces like
"ABC"
it is displaying
"ABC"

If anyone knows the solution to this problem, Please help me out !!!

Thanks
Phani Paladugu


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:  

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Best way to write Export files

2002-02-13 Thread Alvin Kutttikkat Antony

Hi there,
 I have to write export files to an another server.The code I am  using is 
not seams to be working fine .Some times it rewrites on an existing file.I am giving 
my code sample here

 access = ACCESS_WRITE;
long time = System.currentTimeMillis();
long timeSpawned = time;
// this routine tries 30 seconds
// to open a file, if not successful
while(!isOpen && (((timeSpawned-time)/1000)<30))
{
timeSpawned = System.currentTimeMillis();
try
{
out = new BufferedWriter(new FileWriter(filename,true));
isOpen = true;
}
catch(IOException e)
{

}
}
}
if(isOpen)
{
String line = "";
for(int i=0; i


ReQ: Only one logged in session at a time for each user

2002-01-28 Thread Alvin Kutttikkat Antony

Hi there,
I am too interested on this.The suggestion is good.How can I get 
session object from the Id.I think one way is through HttpSessionContext class. I 
found this class has been deprecated.
any other way to achieve this
Alvin




 second time, that you invalidate the *old* session 
and let them continue with new one. I've seen that approach used 
on a large public web site.

Sean


On Sunday, January 27, 2002, at 08:01  PM, Antony Stace wrote:

> Hi
>
> I want the users in a Struts application to be only logged in 
> once at any one time.  What is the
> best way to go about this.  I was thinking that I can have have 
> some sort of record in (an application
> wide bean)/(a database record)/(the logon action) that keeps 
> track of who is logged on and when the log on process
> happens this record is checked, if the user is already logged 
> on then don't let them log on again.  The problem
> I can see with this is that this works fine if the user logs 
> out of the application through a logout
> action - the logout action can simply clear the record of the 
> user being logged in.  But if the users browser crashes, they 
> reboot
> the machine, they simply restart the browser then this record 
> will not be cleared and thus they will not be able to log in.
>  I cannot think of how I can
> implement a mechanism to ensure only one log in at a time.  The 
> thought of adding some sort of timeout value
> seems a little nasty, since I hate it when I go to a site and I 
> am told I am alread logged in, please try back in
> 10 minutes.
>
> Any ideas folks on how to handle this?
>
>
> --
>
>
> Cheers
>
> Tony
> -
>
>
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> --
> To unsubscribe, e-mail:    [EMAIL PROTECTED]>
> For additional commands, e-mail:  [EMAIL PROTECTED]>
>



_

Do You Yahoo!?

Get your free @yahoo.com address at http://mail.yahoo.com




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



alvin kuttikkat antony
Internet und Virtuelle Hochshule
Directory
Universität München

Leopoldstr .3
80802 München
Germany

Office Tel + 49.89.21025979
Office Fax + 49.89.21025980



A pure Java Question ―---Urgent ―--please help

2002-01-24 Thread Alvin Kutttikkat Antony

Hi there,
  we are working on a Directory Project. Yesterday we made 
it online.We  are using Novel E-directory as backend and JRun as Web 
server running on a linux server.
The real problem is the memory for the Ldap server is getting dumped with ldap requets 
.
My question is what extend I can trust on the Garbage Collection process.An
y one had came across  this problem before? Please share here

Thanks in advance
Alvin

alvin kuttikkat antony
Internet und Virtuelle Hochshule
Directory
Universität München

Leopoldstr .3
80802 München
Germany

Office Tel + 49.89.21025979
Office Fax + 49.89.21025980



Re: session id appearing

2002-01-16 Thread Alvin Kutttikkat Antony


You can call the HttpSession.Invalidate() method, if you are not using Session any more

Alvin



alvin kuttikkat antony
Internet und Virtuelle Hochshule
Directory
Universität München

Leopoldstr .3
80802 München
Germany

Office Tel + 49.89.21025979
Office Fax + 49.89.21025980

>>> [EMAIL PROTECTED] 01/16/02 02:12am >>>
Hi folks... 

I have a problem.  What should i do so that the session ids do not appear in
the hyperlinks or in the address bar when you execute a link or an action?
coz right now, here is what comes out on my address bar.

http://devbox/Project/logon.do;jsessionid=abdev995-3%3A3c44d1fc%3A8bc344f1fe
edf33a

I don't want the jsessionid to appear.

thanx in advance... 


regards,
henrik

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



Problem with Redirection

2001-12-11 Thread Alvin Kutttikkat Antony

Hello friends,
I have a problem redirection 
Some part of our project they are not using Struts but they have to use the Login.do 
for validation what happens then after a successfull login it redirects to
http://webinfo2.campus.lmu.de/timetabletab.jsp;LMUJavaSession=1372801008162065234?collectionID=7
this URL 
and the semicolon after the.jsp is not parsing and it pops an error
/timetabletab.jsp;LMUJavaSession=3424421008169744617:

allaire.jrun.JRunServletException: not found
How can I solve this 

More over we are not using this session ID
for validation, we are are using cookies, any way to turn off appending this 
LMUJAVASession parameter on the response?
 
Any help would be appreciated
Alvin 



alvin kuttikkat antony
Internet und Virtuelle Hochshule
Directory
Universität München

Leopoldstr .3
80802 München
Germany

Office Tel + 49.89.21025979
Office Fax + 49.89.21025980



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Producing alternating background colours in struts inatable

2001-12-06 Thread Alvin Kutttikkat Antony

this is very interesting.But is this checking wether the iteration bean  is present 
for an iteration 

greets 
Alvin

alvin kuttikkat antony
Internet und Virtuelle Hochshule
Directory
Universität München

Leopoldstr .3
80802 München
Germany

Office Tel + 49.89.21025979
Office Fax + 49.89.21025980


>>> [EMAIL PROTECTED] 12/06/01 10:06am >>>
Use RowTag :

http://husted.com/struts/resources/rowtag.zip 

- Original Message -
From: [EMAIL PROTECTED] 
Date: Thursday, December 6, 2001 5:55 am
Subject: Producing alternating background colours in struts in a table

> Hi
> 
> I have a list I am printing out and would like to alternate the 
> background colour between each item in the list between light blue and 
> light grey.  The list is not in a table at the moment, but if this is 
> the best way to go I can put it in a table.  What is the best way to 
> acheive this.  The list is currently getting generated in a 
>  tag.
> 
> Cheers
> 
> Antony
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: How do I set the value of a "value" tag in jsp file with abean value.

2001-12-04 Thread Alvin Kutttikkat Antony

Hello,
Why don't u try this way? but I have tryed this in property field and it is working! 





alvin kuttikkat antony
Internet und Virtuelle Hochshule
Directory
Universität München

Leopoldstr .3
80802 München
Germany

Office Tel + 49.89.21025979
Office Fax + 49.89.21025980


>>> [EMAIL PROTECTED] 12/04/01 01:49am >>>
Hi

I want to put a radio button in a form and have the value of the "value" 
field to come from a bean, only I don't know how to do this.  The 
incorrect way to writting this is

"
/>

Which will give problems, how can I set the value of the "value" field 
to a value in a bean?

Cheers

Tony






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Setting a attribute from a page having no html:form ?

2001-12-03 Thread Alvin Kutttikkat Antony

I am using a jsp page as template for manipulating the iteration for different user 
data objects, 
so I have to save   the color value each time  getting out from this page to avoid 
getting the same color for adjacent lines of a table.
For this I have setter and getter in the bean class and I tryed 




<%if(color.equals("#ececec");
color="";
  else
 color="#ececec";
  %>
   


but it is not working through

I tryed  also by




is there any way to use "pageContext" or by some way else?


any help would be appreciated  

alvin kuttikkat antony
Internet und Virtuelle Hochshule
Directory
Universität München

Leopoldstr .3
80802 München
Germany

Office Tel + 49.89.21025979
Office Fax + 49.89.21025980


>>> [EMAIL PROTECTED] 12/03/01 02:43pm >>>
Hi All,

Though I still have much existing material to read in the STRUTS mailing 
lists (thanks again for your help Jon!), I have come across three 
interesting solutions to dealing with automating or centralizing the 
translation of data from Action Forms (presentation layer) to Value Objects 
(business layer) and back again. Here are the three approaches:

Translation Pattern: 
http://www-106.ibm.com/developerworks/library/j-jsppatt/?dwzone=java&dwzone=ibm 

Using Property Editors: 
http://www.onjava.com/pub/a/onjava/2001/11/07/jsp12.html?page=2 

Using Code Generation: 
http://www.javaworld.com/javaworld/jw-11-2001/jw-1102-codegen.html 

The current one that I have seen referred to in the mailing lists is using 
Reflection (which still may easily solve this in most cases) or some type 
of mapper driven by XML setup info. Here are the mailing list threads that 
I have found on it so far:
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg18315.html 
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg18373.html 
(an answer from Ted related to msg18315)
http://archive.covalent.net/jakarta/struts-dev/2000/10/0135.xml 
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg05437.html 

Two other related patterns that I have found are the:
View Helper: 
http://developer.java.sun.com/developer/restricted/patterns/ViewHelper.html 
Dynamic Value Object: 
http://www.theserverside.com/patterns/thread.jsp?thread_id=2722 

I was curious what people thought of these solutions and what other 
solutions they had come up with.

This is an area that I really want to automate and that I really want to 
have a couple of solutions for (since it could generate a great deal of 
code that I REALLY don't want to have to rework if I find that the solution 
is no good).

Thanks for your thoughts and comments!
Allen


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




How to leave a Radio button selected by default?

2001-11-29 Thread Alvin Kutttikkat Antony

Thanks
Alvin



alvin kuttikkat antony
Internet und Virtuelle Hochshule
Directory
Universität München

Leopoldstr .3
80802 München
Germany

Office Tel + 49.89.21025979
Office Fax + 49.89.21025980



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Basic Question About custom Tags

2001-11-26 Thread Alvin Kutttikkat Antony

Is it possible to  use a Struts Tag inside my custom Tag ,for example I have to 
perform  Iteration in my custom tag!.

Any help?
Alvin

alvin kuttikkat antony
Internet und Virtuelle Hochshule
Directory
Universität München

Leopoldstr .3
80802 München
Germany

Office Tel + 49.89.21025979
Office Fax + 49.89.21025980


>>> [EMAIL PROTECTED] 11/23/01 12:01pm >>>
(-) create a tld
(-) put the tld in the classpath
(-) create a class for the tag
(-) put the tag definition in your jsp
(-) compile and run

have a look at (e.g.) struts-html.tld to get a grasp on this

hth,
tomK

> -Original Message-
> From: Alvin Kutttikkat Antony 
> [mailto:[EMAIL PROTECTED]] 
> Sent: vrijdag 23 november 2001 11:25
> To: [EMAIL PROTECTED] 
> Subject: Basic Question About custom Tags
> 
> 
> Hello All,
>   What are the steps to create a Application specific 
> custom Tag?
> 
> Plz help!
> 
> Thanks,
> Alvin
> 
> 
> 
> 
> alvin kuttikkat antony
> Internet und Virtuelle Hochshule
> Directory
> Universität München
> 
> Leopoldstr .3
> 80802 München
> Germany
> 
> Office Tel + 49.89.21025979
> Office Fax + 49.89.21025980
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:struts-user-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 

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



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




Basic Question About custom Tags

2001-11-23 Thread Alvin Kutttikkat Antony

Hello All,
  What are the steps to create a Application specific custom Tag?

Plz help!

Thanks,
Alvin




alvin kuttikkat antony
Internet und Virtuelle Hochshule
Directory
Universität München

Leopoldstr .3
80802 München
Germany

Office Tel + 49.89.21025979
Office Fax + 49.89.21025980



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Nested iteration tags

2001-11-13 Thread Alvin Kutttikkat Antony

can I use nested logic:Iteration tags ?

Any help would be appreciated
thx
Alvin

alvin kuttikkat antony
Internet und Virtuelle Hochshule
Directory
Universität München

Leopoldstr .3
80802 München
Germany

Office Tel + 49.89.21025979
Office Fax + 49.89.21025980



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: How to use the radio tag inside logic:iterate tag

2001-11-03 Thread Alvin Kutttikkat Antony

Hello dave
  It sounds better.Thank u.

alvin kuttikkat antony
Internet und Virtuelle Hochshule
Directory
Universität München

Leopoldstr .3
80802 München
Germany

Office Tel + 49.89.21025979
Office Fax + 49.89.21025980


>>> [EMAIL PROTECTED] 11/02/01 06:41pm >>>


See if this helps...

http://www.mail-archive.com/struts-user@jakarta.apache.org/msg16684.html 

Cheers,

Dave





"Alvin Kutttikkat Antony"
<[EMAIL PROTECTED]> on 11/02/2001 12:33:27
PM

Please respond to "Struts Users Mailing List"
  <[EMAIL PROTECTED]>

To:   "<" <[EMAIL PROTECTED]>
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  How to use the radio tag inside logic:iterate tag




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




How to use the radio tag inside logic:iterate tag

2001-11-02 Thread Alvin Kutttikkat Antony

I have a collection called workrelationships .I have to use radio buttons to select 
the preferred workrelationship.
here is the code for iteration





















I can't understand the use of 'Indexed' attribute in radio tag?
Could any one plz help me?
thanks
Alvin 


alvin kuttikkat antony
Internet und Virtuelle Hochshule
Directory
Universität München

Leopoldstr .3
80802 München
Germany

Office Tel + 49.89.21025979
Office Fax + 49.89.21025980



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




How to use the radio tag inside logic:iterate tag

2001-11-02 Thread Alvin Kutttikkat Antony

I have a collection called workrelationships .I have to use radio buttons to select 
the preferred workrelationship.
here is the code for iteration





















I can't understand the use of 'Indexed' attribute in radio tag?
Could any one plz help me?
thanks
Alvin 


alvin kuttikkat antony
Internet und Virtuelle Hochshule
Directory
Universität München

Leopoldstr .3
80802 München
Germany

Office Tel + 49.89.21025979
Office Fax + 49.89.21025980




BEGIN:VCARD
VERSION:2.1
X-GWTYPE:USER
FN:Alvin Kutttikkat Antony
EMAIL;WORK;PREF;NGW:aantony.RFE-MAIN.RFE
N:Antony;Alvin Kutttikkat
X-GWUSERID:aantony
END:VCARD




--
To unsubscribe, e-mail:   
For additional commands, e-mail: