using same field name for data posting and getting data using array in action is not working FF

2007-07-01 Thread dhilip mandava
hi i have station form and in the same form i have station addresses , these are adding dynamically, depending on necessity.i mean , station may contains multiple address, in the same form. when i submitting the form stationAddress as filed name, i am getting array out index problem in Fire F

[OT] Re: Problem in JSP. help me pls

2007-07-01 Thread Jeromy Evans
Guys, please read a classpath tutorial. There's a decent one here: http://www.kevinboone.com/classpath.html The following section is especially relevant that I've copied from that page for you: JARs on the classpath The java compiler and run-time can search for classes not only in s

Re: Problem in JSP. help me pls

2007-07-01 Thread bindhu
hi, i hv done what u said n now my calsspath is CLASSPATH=C:\Program Files\Java\jre1.6.0_01\lib\* still i face the error. bindhu wrote: > > hai, > > when trying to open my jsp page in browser i get this error. can > anyone plas help me. > type Exception report > > message > > descr

Re: Problem in JSP. help me pls

2007-07-01 Thread gundakiran
Hi.. Remove servlet-api and struts lib and apache tomcat libe jar files from the classpath... bindhu wrote: > > hi, > > thank u . i removed what u said > > so now my classpath looks like this > > CLASSPATH=C:\Program > Files\Java\jdk1.6.0_01\lib\servlet-api.jar;C:\struts1.3.8\l > ib\*;C:\

Re: Problem in JSP. help me pls

2007-07-01 Thread Li
try to clean up all in your classpath make sure your JAVA_HOME and CATALINA_HOME is available. On 7/2/07, bindhu <[EMAIL PROTECTED]> wrote: hi, thank u . i removed what u said so now my classpath looks like this CLASSPATH=C:\Program Files\Java\jdk1.6.0_01\lib\servlet-api.jar;C:\struts1.3.

Re: Problem in JSP. help me pls

2007-07-01 Thread bindhu
hi, thank u . i removed what u said so now my classpath looks like this CLASSPATH=C:\Program Files\Java\jdk1.6.0_01\lib\servlet-api.jar;C:\struts1.3.8\l ib\*;C:\apache-tomcat-6.0.13\lib\*;C:\Program Files\Java\jre1.6.0_01\lib\* but i face the same problem. i dont use any IDE right now. bi

Re: Problem in JSP. help me pls

2007-07-01 Thread Li
Hi bindu, you dont have to put your tomcat\lib, and your jre\lib onto your classpath, when tomcat load up your JSP, its classloader will checkout libs that are needed ... also, it is a very bad idea to export same jar from different location ... Clean up your classpath, it should work. Regards

Why this inconsistency

2007-07-01 Thread tom tom
Hi, I have the following iterator above expression get evaluated correctly but in the same iterator I got the following but this doesnt get evaluated, Why these two are handled differently, why cant we make it consistent.? The below one works when I make is %{studId} bu

Re: Problem in JSP. help me pls

2007-07-01 Thread gundakiran
If you see your classpath, you have two different versions of servlet-api.jar.. and moreover in the systems classpath, I suggest not to keep any tomcat or any specific jar files except your JDK/JRE jar files.. and whe n you deploy your web-app and if you have all jars included in your web-inf/lib

Re: Has anyone tried this in S2 - THIS LOOKS A BUG

2007-07-01 Thread tom tom
Thanks, As I mentioned earlier, I need to have id, because I got if statements and logic inside, it is not merely diplaying the value. This bug needs to be fixed. Till then be carefull --- Adam Ruggles <[EMAIL PROTECTED]> wrote: > Have you tried this? > > > Value of the arry is > >

Re: Problem in JSP. help me pls

2007-07-01 Thread bindhu
hi kiran, thank u for ut reply. i have all the dependencies in my WEB-INF\lib directory. struts-trmplate, struts-logic, struts-form, struts-bean, struts. still i face thsi same error. and my class path is as follows CLASSPATH=C:\apache-tomcat-6.0.13\lib\servlet-api.jar;C:\Program Files\Java

Re: Problem in JSP. help me pls

2007-07-01 Thread gundakiran
Hai Bindhu, This org.apache.struts.taglib.html.FormTag is in struts core jar file.. Check if this jar and all its dependents exist in your web-inf/lib.. Kiran bindhu wrote: > > hai, > > when trying to open my jsp page in browser i get this error. can > anyone plas help me. > type Except

Re: Problem in JSP. help me pls

2007-07-01 Thread Li
check your struts jar file see if the tag handler classes there ... On 7/2/07, bindhu <[EMAIL PROTECTED]> wrote: hai, when trying to open my jsp page in browser i get this error. can anyone plas help me. type Exception report message description The server encountered an internal error

Re: Problem in JSP. help me pls

2007-07-01 Thread Session A Mwamufiya
Hi, I'm still a newbie here, but I've encountered this type of errors before. From my limited experience, it seems to me that you are missing a .jar file in your WEB-INF/lib directory. The servlet filter can't find the FormTag class when a request is passed. Make sure you have the correspond

Problem in JSP. help me pls

2007-07-01 Thread bindhu
hai, when trying to open my jsp page in browser i get this error. can anyone plas help me. type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: javax.servlet.Ser

Re: Has anyone tried this in S2 - THIS LOOKS A BUG

2007-07-01 Thread Adam Ruggles
Have you tried this? Value of the arry is tom tom wrote: I did further investigation, I think this is a bug, I think this is a very scary bug. You dont need three iterators, I could reproduce this very easily, In your action class have the following, String[] testArray = new Stri

Re: Has anyone tried this in S2 - THIS LOOKS A BUG

2007-07-01 Thread Dave Newton
What? [n] accessing the stack at the given level: [0] is the root, [1] is the previously-pushed item, etc. <%-- inner it. value --%> <%-- outer it. value --%> (AFAIK, anyway; can't test at the moment.) d. --- tom tom <[EMAIL PROTECTED]> wrote: > index is variable, without intro

Re: Has anyone tried this in S2 - THIS LOOKS A BUG

2007-07-01 Thread tom tom
index is variable, without introducting a scriptlet with int i=0 and the have i++, Is there any other inbuild way? Thanks --- Dave Newton <[EMAIL PROTECTED]> wrote: > --- tom tom <[EMAIL PROTECTED]> wrote: > > What did you mean by > > > > "is an issue iff you're using an id" > > > > What else

Re: Has anyone tried this in S2 - THIS LOOKS A BUG

2007-07-01 Thread Dave Newton
--- tom tom <[EMAIL PROTECTED]> wrote: > What did you mean by > > "is an issue iff you're using an id" > > What else can I use to get the value inside an > Iterator? Stack notation, like [0].foo etc. It's a kludgy workaround for this situation but it should work. d. _

Re: Has anyone tried this in S2 - THIS LOOKS A BUG

2007-07-01 Thread tom tom
Hi, What did you mean by "is an issue iff you're using an id" What else can I use to get the value inside an Iterator? Thanks --- Dave Newton <[EMAIL PROTECTED]> wrote: > --- tom tom <[EMAIL PROTECTED]> wrote: > > WHAT it prints is following Issue is for the 4th > > index also it prints test

Re: Has anyone tried this in S2 - THIS LOOKS A BUG

2007-07-01 Thread tom tom
Yes this definitely is a bug to me, How can I make a JIRA issue for this, what is the URL, I Dont think we can go to production with this issue, Is there a way to get a patch for this, Should we have to wait for the next release ? Thanks, --- Dave Newton <[EMAIL PROTECTED]> wrote: > --- t

Re: Has anyone tried this in S2 - THIS LOOKS A BUG

2007-07-01 Thread Dave Newton
--- tom tom <[EMAIL PROTECTED]> wrote: > WHAT it prints is following Issue is for the 4th > index also it prints test, it should print empty > > Value of the arry is test0 > Value of the arry is test1 > Value of the arry is test2 > Value of the arry is test > Value of the arry is test I agree; t

Re: Has anyone tried this in S2 - THIS LOOKS A BUG

2007-07-01 Thread tom tom
I did further investigation, I think this is a bug, I think this is a very scary bug. You dont need three iterators, I could reproduce this very easily, In your action class have the following, String[] testArray = new String[5]; testArray[0]="test0"; tes

Re: Struts 2.0 form bean

2007-07-01 Thread tom tom
Before anything try model driven interface if you are not doing any portlet developments. Thanks, --- [EMAIL PROTECTED] wrote: > Hi All, > > As there is no concept of Action form beans in > struts 2.0 we have to define > the field attributes in the Action class. > > I am using the same action c

Dynamically rendering image - Servlet/Action

2007-07-01 Thread Stjepan Brbot
Hi, I have one classic HttpServlet for dynamically rendering an image from given (database retrieved) data. Actually this servlet takes data from session (previously retrieved from database and put inside session) and renders the image. Since this is not Action but classis servlet it is mapped

Re: [S2] Session Invalidation through SessionAware interface

2007-07-01 Thread Srinivas.N.
Wouldn't it be cleaner if (1) the setSession(Map session) signature of SessionAware was changed to setSession(SessionMap session) and (2) the implementation of the invalidate method on internally took care of dealing with already timed out sessions? (if one really wanted to know if the session

Re: [S2] Session Invalidation through SessionAware interface

2007-07-01 Thread Ray Clough
Please go ahead. > - Original Message - > From: "Dave Newton" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" > Subject: Re: [S2] Session Invalidation through SessionAware interface > Date: Sun, 1 Jul 2007 10:47:18 -0700 (PDT) > > > --- Ray Clough <[EMAIL PROTECTED]> wrote: > > Th

Re: [S2] Session Invalidation through SessionAware interface

2007-07-01 Thread Dave Newton
--- Ray Clough <[EMAIL PROTECTED]> wrote: > Then to invalidate the Session, I do this [code] Oh, I had no idea! If you have wiki karma maybe add a FAQ entry, otherwise with your permission I'll do it. d. __

Re: [S2] Session Invalidation through SessionAware interface

2007-07-01 Thread Ray Clough
I use the "SessionAware" interface to retrieve a Map of the session. Then to invalidate the Session, I do this: if (session instanceof org.apache.struts2.dispatcher.SessionMap) { // it is possible that the session will have timed-out between the