RE: Detrmining which module from within JSP

2004-04-18 Thread Kunal H. Parikh
Hey All!

Just for the record,

(Incorrect)

^^



Along a similar note, how would one work out the name of the tile definition
being processed ? Any ideas ?


TIA,

Kunal

-Original Message-
From: Craig McClanahan [mailto:[EMAIL PROTECTED] 
Sent: Monday, 19 April 2004 16:03
To: Struts Users Mailing List
Subject: Re: Detrmining which module from within JSP

Kunal H. Parikh wrote:

>Hi All!
>
>Craig's suggestion works great!
>
>However, it appears to me that dot delimited request variable names don't
>work with the JSTL.
>
>Eg:
>
>
>
>The above prints nothing and therefore a .prefix also fails.
>
>Does anyone know if this is a JSTL bug, or is there something that needs to
>change in struts?
>
>Or is there something I am doing incorrectly?
>
>  
>
This isn't a bug, it's a feature :-).  Actually, this happens because 
the "." character is an operator in the EL syntax, so it can't be used 
literally in an expression.  Try something like this:

  The prefix is 

instead.  This works because the "." operator and the "[...]" bracket 
syntax are treated identically in the EL syntax, just as they are in 
JavaScript.  Therefore, you have to enclose the string constant that 
includes periods in quotes to make things work as you expect.

>TIA,
>
>Kunal
>
>  
>
Craig


-
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: Detrmining which module from within JSP

2004-04-18 Thread Craig McClanahan
Kunal H. Parikh wrote:

Hi All!

Craig's suggestion works great!

However, it appears to me that dot delimited request variable names don't
work with the JSTL.
Eg:


The above prints nothing and therefore a .prefix also fails.

Does anyone know if this is a JSTL bug, or is there something that needs to
change in struts?
Or is there something I am doing incorrectly?

 

This isn't a bug, it's a feature :-).  Actually, this happens because 
the "." character is an operator in the EL syntax, so it can't be used 
literally in an expression.  Try something like this:

 The prefix is 

instead.  This works because the "." operator and the "[...]" bracket 
syntax are treated identically in the EL syntax, just as they are in 
JavaScript.  Therefore, you have to enclose the string constant that 
includes periods in quotes to make things work as you expect.

TIA,

Kunal

 

Craig

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


RE: Detrmining which module from within JSP

2004-04-18 Thread Kunal H. Parikh
Hi All!

Craig's suggestion works great!

However, it appears to me that dot delimited request variable names don't
work with the JSTL.

Eg:



The above prints nothing and therefore a .prefix also fails.

Does anyone know if this is a JSTL bug, or is there something that needs to
change in struts?

Or is there something I am doing incorrectly?


TIA,

Kunal

-Original Message-
From: Craig McClanahan [mailto:[EMAIL PROTECTED] 
Sent: Sunday, 18 April 2004 10:17
To: Struts Users Mailing List
Subject: Re: Detrmining which module from within JSP

Josh Holtzman wrote:

>Hello,
>
> 
>
>Can anyone suggest a means to determine the current struts application
>module from within a JSP?
>
As long as you have correctly gone through an action first, the 
ModuleConfig object for the selected
module has been stored as a request attribute under the key 
"org.apache.struts.action.MODULE" (from Java code, you would use 
Globals.MODULE_KEY to reference this string).  So, you could say 
something like this in a JSP page:

  The current module prefix is
  

The Javadocs for org.apache.struts.Globals describe many other attribute 
names that Struts uses to store interesting things while processing a 
request.

>  
>
> 
>
>Would it be possible to use a Bean or Logic tag to make this determination?
>
> 
>
>Thanks again for any suggestions.
>
> 
>
>Regards,
>
> 
>
>Josh Holtzman
>
>  
>
Craig


-
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: [OT] Oracle JDev 10g Final (9.0.5.1 build 1605) is out!

2004-04-18 Thread Iwan Soenarto (IT)
Hi, I am trying to download Jdeveloper10g, but the link is broken. Any
other link I can try ? 
Thanks

Iwan S

-Original Message-
From: Amjad Shahrour [mailto:[EMAIL PROTECTED] 
Sent: Sunday, April 18, 2004 5:54 PM
To: 'Struts Users Mailing List'
Subject: RE: [OT] Oracle JDev 10g Final (9.0.5.1 build 1605) is out!

Just wanted to say my toughts about Jdeveloper10g.

Simply it is GREATE!!.  

And there is no other IDE that can even compete with it.
*It has everything that I need.
* extraordinary performace ( I cant believe its pure java ;) )
* very very very organized. 
* I feel very comfortable when I use it.
* this what IDEs should be.
* IMO it is far better than VS.net.

good work Jdeveloper10g team.

I am Looking forward a plugin that simplyfies the JSF development
(visually).

regards




Amjad Shahrour
Application Developer
Tel: +966.2.653.3334 ext 213
[EMAIL PROTECTED]
www.labbaik.com
 
 
 

-Original Message-
From: Duncan Mills [mailto:[EMAIL PROTECTED] 
Sent: Sunday, April 18, 2004 11:12 AM
To: Struts Users Mailing List
Subject: Re: [OT] Oracle JDev 10g Final (9.0.5.1 build 1605) is out!

Eric it's a pure Java App - you can run it on Mac, Linux or whatever - 
plenty of people did run the Preview on Mac without too many problems - 
if you have any problems or issues just post them on OTN.

Regards

Duncan Mills
Senior Principal Product Manager
Oracle Application Development Tools

[EMAIL PROTECTED]



Erik Price wrote:

>
> On Apr 14, 2004, at 4:24 AM, Christian Bollmeyer wrote:
>
>> Finally!
>>
>> http://otn.oracle.com/software/products/jdev/index.html (249MB)
>>
>> -- Chris
>
>
> No MacOSX version?
>
> >:(
>
>
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
___
Labbaik - The Integrated
Solution Provider for the Hospitality Industry


-
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: [OT] Oracle JDev 10g Final (9.0.5.1 build 1605) is out!

2004-04-18 Thread Vijay.Nair
Fantastic.tool...
Just one questionan ear created out of this will work on 9ias right?

-Original Message-
From: Amjad Shahrour [mailto:[EMAIL PROTECTED] 
Sent: Sunday, April 18, 2004 4:24 PM
To: 'Struts Users Mailing List'
Subject: RE: [OT] Oracle JDev 10g Final (9.0.5.1 build 1605) is out!

Just wanted to say my toughts about Jdeveloper10g.

Simply it is GREATE!!.  

And there is no other IDE that can even compete with it.
*It has everything that I need.
* extraordinary performace ( I cant believe its pure java ;) )
* very very very organized. 
* I feel very comfortable when I use it.
* this what IDEs should be.
* IMO it is far better than VS.net.

good work Jdeveloper10g team.

I am Looking forward a plugin that simplyfies the JSF development
(visually).

regards




Amjad Shahrour
Application Developer
Tel: +966.2.653.3334 ext 213
[EMAIL PROTECTED]
www.labbaik.com
 
 
 

-Original Message-
From: Duncan Mills [mailto:[EMAIL PROTECTED] 
Sent: Sunday, April 18, 2004 11:12 AM
To: Struts Users Mailing List
Subject: Re: [OT] Oracle JDev 10g Final (9.0.5.1 build 1605) is out!

Eric it's a pure Java App - you can run it on Mac, Linux or whatever - 
plenty of people did run the Preview on Mac without too many problems - 
if you have any problems or issues just post them on OTN.

Regards

Duncan Mills
Senior Principal Product Manager
Oracle Application Development Tools

[EMAIL PROTECTED]



Erik Price wrote:

>
> On Apr 14, 2004, at 4:24 AM, Christian Bollmeyer wrote:
>
>> Finally!
>>
>> http://otn.oracle.com/software/products/jdev/index.html (249MB)
>>
>> -- Chris
>
>
> No MacOSX version?
>
> >:(
>
>
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
___
Labbaik - The Integrated
Solution Provider for the Hospitality Industry


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




DISCLAIMER:
This message contains privileged and confidential information and is intended only for 
the individual named.If you are not the intended recipient you should not 
disseminate,distribute,store,print, copy or deliver this message.Please notify the 
sender immediately by e-mail if you have received this e-mail by mistake and delete 
this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or 
error-free as information could be intercepted,corrupted,lost,destroyed,arrive late or 
incomplete or contain viruses.The sender therefore does not accept liability for any 
errors or omissions in the contents of this message which arise as a result of e-mail 
transmission. If verification is required please request a hard-copy version.

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



RE: basic problem in java (likely is a CLASSPATH problems on Windows)

2004-04-18 Thread David Friedman
Ancient Chinese Secret (as the 70's/80's commercial goes):

In Windows environments (for me in NT 4.0 and XP Home edition),
you can't use "long" windows pathnames.  They must be of the
8.3 variety.  Do a "dir /x" in c:\ and see what is listed
for c:\jdk1.3.1.  I tried it on mine and it came up
with "C:\JDK13~1.1" as the 8.x path. so your path will probably
have to be fixed to look more like this:

C:\JDK13~1.1;C:\JDK13~1.1\LIB\tools.jar;C:\JDK13~1.1\lib\rt.jar; etc
Keep in mind the c:\Drivers\classes111.zip might not work because it has a
file name longer than 8.3.

This problem gave me headaches for JDK 1.X.X and Tomcat 4.1 (not for 5.0
since I'd already learned my lesson!).

Check out your paths using "dir /x" and see if fixing your classpath (you
may have to reboot, depending on where/how you set your classpath) to
standard 8.3 directory names works. Again, you might need to do the same for
the .jar files but I don't know for sure since I use Tomcat and Eclipse
making paths 'mostly' unimportant to me.

Regards,
David

-Original Message-
From: Max Cooper [mailto:[EMAIL PROTECTED]
Sent: Sunday, April 18, 2004 8:13 AM
To: Struts Users Mailing List
Subject: RE: basic problem in java


Post the contents of your jaba1.java file up to and including the
"import java.io.*;" line. You might have the import statement in the
wrong place.

-Max

On Sun, 2004-04-18 at 00:16, [EMAIL PROTECTED] wrote:
> My Classpath variable is set to :
>
C:\jdk1.3.1\bin;c:\jdk1.3.1\lib\tools.jar;c:\jdk1.3.1\lib\rt.jar;c:\Drivers\
classes111.zip;c:\Drivers\classes12.zip;c:\Drivers;c:\biren\java
>
> JDK is installed
>
> C:\jdk1.3.1
>
> can you please help me ??
>
> Birendar Singh Waldiya
>
>
>
> "David Friedman"
> <[EMAIL PROTECTED]>
>
> 17-04-04 08:54 PM
>  Please respond to
> "Struts Users Mailing List"
>  <[EMAIL PROTECTED]>
>To
> "Struts Users
> Mailing List"
> <[EMAIL PROTECTED]>
>cc
>
>   Subject
> RE: basic problem
> in java
>
>
>
>
>   What is your CLASSPATH variable set to and is java installed in
> c:\biren\java?
>
>  Regards,
>  David
>  -Original Message-
>  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>  Sent: Saturday, April 17, 2004 2:47 AM
>  To: Struts Users Mailing List
>  Subject: basic problem in java
>
>
>
>  Hi,
>   this may be  a slightly silly question for  people working on struts
> etc
> but im facing it and i dont have the clue why im getting it.. can
> anyone
> suggest me  why im getting proble..
>  while compiling a java program  my javac is unable to resolve the
> standard
> java classes  like  java.io.*   java.util.* ;
>
>
>  C:\biren\java>javac jaba1.java
>  jaba1.java:2: cannot resolve symbol
>  symbol  : class io
>  location: class java
>  import java.io.*;
>
>  whats  the problem  please help !
>  ^
>  Birendar Singh Waldiya
>
> ForwardSourceID:NT434E
>
>
> __
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--
Max Cooper <[EMAIL PROTECTED]>


-
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]



DispatchAction / DynaValidatorForm / Upload best practice

2004-04-18 Thread Stephane Bailliez
I'm fighting to find a clean solution to the following problem and hope that
the experts out there can provide

Context:

- File upload size limit set via the struts controller
- DynaValidatorForm with properties (id, dispatch, file)
- CRUD action create/read/update/delete via DispatchAction
   - create/update obviouslly use the form properties
   - read/delete only need a query parameter id
- object.jsp retrieve the current value (read) of the object and propose the
form to create/update the object
- validation xml set 'file'  to requiredwhen dispatch == select and dispatch
== create

object.jsp is something like this:

- object.jsp --

  


  










Not that in case of create/update success, it is forwarded to this page
again.

I imagine it is not correct at all considering my zero experience with
Struts, but I'd be glad if someone could give me an idea of how to do
something cleaner than this absoltely ugly code. My problem is mostly to
deal with the fact that I need to retrieve the id both in the request and
the form, but I'm not satisfied with the above.

Thanks a lot for any help.





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



Re: html:form

2004-04-18 Thread Christian Bollmeyer
On Sunday 18 April 2004 16:30, as as wrote:

Hi,

>Thanks for the reply. I am submitting both the forsm...

Probably, but where?

>so does only one submitted form end up in the request?

Yes.

>Here is my code briefly:
 
>  type="com.PrincipalForm" >   
>  
>     
>       ID #:
>     
>     
>     
>     
>     
>  
>   
> 

This form seems to be more or less ok. Don't know
why you chose  over  here, but
well.

>  type="com.TeachersForm">    name="teachers" property="teacher"> 
> 

Now check this part:

> 
>             
>             
>    " property="last" />
>    

Looks pretty mangled to me; wonder if this compiles
at all. IIRC you mentioned complaints about missing
getters. This part most certainly is the culprit.

> 
> 
> 
> 
> 
> 

You can have multiple forms in a page, but only one
of them can be submitted at a time. Therefore, one
usually provides an  with each form
declaration. You can achieve the same with JavaScript,
which you probably do here, but if you say something

document.forms[0].submit();
document.forms[1].submit();

the second line won't be executed anymore, for the
browser has already started a new request.

HTH,
-- Chris. 

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



Re: what should i do to set the session in the pageContext in a Action class?

2004-04-18 Thread Nathan Maves
You might want to read up a little more in the jstl spec.

When using jstl there is no need to specify the scope.  Just use  
something like



this will check if the login_user is null.  The tag will search through  
all the the scopes. (i.e.  page, request, session, application)

Hope this helps.

Nathan

On Apr 17, 2004, at 7:01 PM, Ricky Lee wrote:

hi, thanks for reading..

i have a problem about set the seesion(pageContext) in
the action class..
i know that set the seesion in the request, just like
request.getSession().setAttribute("login_username",userForm.getUsername 
());

and in the JSP page, we can use the code to get the
seesion:
<%=request.getSession().getAttribute("login_username")%>

but, i want to use the pageContext to set the session
so as to load the attribute in JSTL
...

if i use ...  it can't work...
because there isn't login_username in the session
pageContext.
if i use ..
it still cause a errorsyntax error...

i know in the custom taglib, we can use the the

 pageContext.setAttribute(String,Object,scope) the
scope can set to "session"
and in the JSP page, we can use the JSTL to get the
attribute..
but in the Action class , there isn't pageContext
object to set the session in the pageContext, just has
the request to set pageContext, what should i do to
set the session in the pageContext?
please help methanks!





__
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25¢
http://photos.yahoo.com/ph/print_splash
-
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 Application Security within the Controller Layer

2004-04-18 Thread Nathan Maves
What errorthat looks like the normal startup messages of tomcat to  
me.

Nathan
On Apr 18, 2004, at 6:15 AM, [EMAIL PROTECTED] wrote:
Hi All,
 I have installed  Tomcat server on my machine and tried to start it  
using    startup.bat  im getting following  error

 C:\Tomcat\catalina\src\bin>startup
Using CATALINA_BASE:   C:\Tomcat\catalina\src
Using CATALINA_HOME:   C:\Tomcat\catalina\src
Using CATALINA_TMPDIR: C:\Tomcat\catalina\src\temp
Using JAVA_HOME:       C:\jdk1.3.1_11
C:\Tomcat\catalina\src\bin>
can anyone help me !!this will be   very useful to me
thanks rgds
 Birendar Singh Waldiya
- 

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


Re: Struts, Business Logic, DAOs

2004-04-18 Thread Erik Price
On Apr 15, 2004, at 1:13 PM, Paul Barry wrote:

I doesn't seem like this logic belongs in the DAO either, because if 
you  don't want that kind of logic mixed in with code to get the data 
out of the database.  Does it belong in the business objects, maybe by 
expanding the Widget object like this?

public Widget {
  public int getId();
  public User getCreator();
  public boolean canDelete(UserBO);
}
No way.

And then canDelete would in turn call a DAO to check that?  Or would a 
separate layer be better, like this:

public WidgetLogic {
public boolean canDeleteWidget(User, Widget);
}
That's better, but... if you're going to create a class that's 
dedicated to supporting a specific function, why not just have the 
class that performs the function encapsulate the details?  The 
following might be considered an implementation of the Command design 
pattern, and does pretty much the same thing but with less steps:

public class DeleteWidgetCommand {
  DeleteWidgetCommand() { }  // no-arg constructor
  void deleteWidget(User u, Widget w);
}
You could also pass the User into the constructor, but one of the nice 
things about having a relatively stateless class like the above is it 
gives you flexibility for pooling/caching etc if that's something you 
end up needing.  The actual connection between DeleteWidgetCommand and 
your persistence layer can be set up in a static initializer or static 
initializer block, assuming you can share a DeleteWidgetCommand object 
between clients.

This is not very different from using a session bean, but it avoids all 
that needless complexity if you're not already using EJB.  (See 
.)  If 
your needs become more complex, you can refactor into a true service 
layer, which can keep the peanut butter out of your chocolate and the 
chocolate out of your peanut butter.

Just some ideas.  Good luck.



--
Erik Price


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


Re: EJB+STRUTS Architecture

2004-04-18 Thread Erik Price
On Apr 16, 2004, at 12:01 AM, Rajesh, Harikrishnan (H.) wrote:

Does some body throw me light on how to architect an application with
EJB+STRUTS for Websphere+Oracle environment. It would be very much of
help to me if anybody has some sample architecture or sample
application. If you have some sample app, please send the same to
[EMAIL PROTECTED]
There's two "Petstore" implementations at .  
One uses EJB, the other doesn't, but both also provide an example of 
using Xdoclet to generate some of the Java classes you may find 
yourself needing.



Erik





--
Erik Price


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


Re: html:form

2004-04-18 Thread as as
Thanks for the reply. I am submitting both the forsm...so does only one submitted form 
 
 
 
end up in the request?
Here is my code briefly:
 
 
 
  
 
 

  ID #:


 


 
  
 
  






   " property="last" />
   



 



Christian Bollmeyer <[EMAIL PROTECTED]> wrote:
On Saturday 17 April 2004 05:13, as as wrote:
> Hi
>
> Has anyone implemented two html:form in a same jsp..
>
> I wish to do this to implement two tables.each table displaying
> values in a row, of a bean...
>
> so there are two beans...
>
> for some reason, it gives me error saying it cnat find getter for my
> second bean...though I did add getters and setters for all attributes
> in my struts form class.
>
> thanks in advance for the help,
>
> Sam

Hi,

could well be I'm not fully understanding the exact problem again,
but generally, two in a single JSP page are no
problem. The one you submit ends up in the request, and
gets renderered to just a normal HTML form
tag in the end. On to the beans. I'm not sure what kind of
bean you mean here. If it's the form bean (and it's the same
table), try referring to it in your second via
the token you used for the first one. If we're talking about
two different beans here, you have to make sure both of
them are actually there and bear different token names.
In this case, you have to manually create the 'second'
instance and put it in request or whatever scope so that
it can be found.

HTH,
-- Chris.


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


-
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25¢

Re: A better exception-handling strategy?

2004-04-18 Thread Frank Burns
Craig,
Your suggestion planted a seed with me that has grown into a perfect
solution.
Thanks,
Frank.

- Original Message - 
From: "Craig McClanahan" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Sunday, April 18, 2004 1:42 AM
Subject: Re: A better exception-handling strategy?


> Frank Burns wrote:
>
> >I want to have a consistent display of exceptions that occur in my
> >Struts-based applciation.
> >
> >For exceptions that occur in my Action classes, I use the declarative
> >exception handling mechanism and forward to a set of "exception pages"
that
> >I have created. However, the declarative exception handling mechanism is
> >only applicable to Action classes.
> >
> >My problem is that I call some JSPs that utilize beans (via JSTL) that
have
> >getter methods which perform database access. These getter methods can
> >generate exceptions. When these exceptions occur I'd like to display one
of
> >the set of "exception pages" that I've created.
> >
> >The best solution I have thought of so far is to place JSTL "catch" tags
> >into the JSPs and when they catch exceptions I use a JSTL "redirect" tag
to
> >redirect to one of my "exception pages".
> >
> >It works. But is there a better strategy than this?
> >
> >
> You might want to experiment with the standard exception mapping
> facilities that web.xml supports, for use whenever an exception ripples
> all the way up to the servlet container.  For example, you can deal with
> any NPE that gets thrown with an entry like this:
>
>   
> java.lang.NullPointerException
> /error-page.jsp
>   
>
> >Thanks,
> >
> >Frank
> >
> >
> >
> Craig
>
>
> -
> 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: basic problem in java

2004-04-18 Thread birendar . waldiya

its simple program im  posting
it , actually everthing was working fine   but i tried to work with
a  program that  was ment for running sqlloader using my java
program.. suddenly what happen  kept me in puzzled situation.. after
which a simple program like foollowing wasnt compiling :(( 


the program is 




import  java.io.*;
public class  helloWorld
{
        public
static void main(String[] args) 
        {
         
      System.out.println("Hello World!");
         
      
        }
}


thanks for your attention 

Birendar Singh Waldiya






Max Cooper <[EMAIL PROTECTED]>

18-04-04 05:43 PM




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





To
Struts Users Mailing List
<[EMAIL PROTECTED]>


cc



Subject
RE: basic problem in java








Post the contents of your jaba1.java file up to and
including the
"import java.io.*;" line. You might have the import statement
in the
wrong place.

-Max

On Sun, 2004-04-18 at 00:16, [EMAIL PROTECTED] wrote:
> My Classpath variable is set to         :
> C:\jdk1.3.1\bin;c:\jdk1.3.1\lib\tools.jar;c:\jdk1.3.1\lib\rt.jar;c:\Drivers\classes111.zip;c:\Drivers\classes12.zip;c:\Drivers;c:\biren\java
> 
> JDK is installed  
> 
> C:\jdk1.3.1 
> 
> can you please help me ??
> 
> Birendar Singh Waldiya
> 
> 
> 
> "David Friedman"
> <[EMAIL PROTECTED]>
> 
> 17-04-04 08:54 PM
>          Please respond to
>     "Struts Users Mailing List"
>      <[EMAIL PROTECTED]>
>                To
> "Struts Users
> Mailing List"
> <[EMAIL PROTECTED]>
>                cc
> 
>           Subject
> RE: basic problem
> in java
> 
> 
> 
> 
>   What is your CLASSPATH variable set to and is java installed
in
> c:\biren\java?
> 
>  Regards,
>  David
>  -Original Message-
>  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>  Sent: Saturday, April 17, 2004 2:47 AM
>  To: Struts Users Mailing List
>  Subject: basic problem in java
> 
> 
> 
>  Hi,
>   this may be  a slightly silly question for  people
working on struts
> etc
> but im facing it and i dont have the clue why im getting it.. can
> anyone
> suggest me  why im getting proble..
>  while compiling a java program  my javac is unable to resolve
the
> standard
> java classes  like  java.io.*   java.util.* ;
> 
> 
>  C:\biren\java>javac jaba1.java
>  jaba1.java:2: cannot resolve symbol
>  symbol  : class io
>  location: class java
>  import java.io.*;
> 
>  whats  the problem  please help !
>              ^
>  Birendar Singh Waldiya
> 
> ForwardSourceID:NT434E    
> 
> 
> __
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
-- 
Max Cooper <[EMAIL PROTECTED]>


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


ForwardSourceID:NT43B6
   
DISCLAIMER: The information contained in this message is intended only and solely for 
the addressed individual or entity indicated in this message and for the exclusive use 
of the said addressed individual or entity indicated in this message (or responsible 
for delivery
of the message to such person) and may contain legally privileged and confidential 
information belonging to Tata Consultancy Services. It must not be printed, read, 
copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person 
other than the addressee. 
Unauthorized use, disclosure or copying is strictly prohibited and may constitute 
unlawful act and can possibly attract legal action, civil and/or criminal. The 
contents of this message need not necessarily reflect or endorse the views of Tata 
Consultancy Services on any subject matter.
Any action taken or omitted to be taken based on this message is entirely at your risk 
and neither the originator of this message nor Tata Consultancy Services takes any 
responsibility or liability towards the same. Opinions, conclusions and any other 
information contained in this message 
that do not relate to the official business of Tata Consultancy Services shall be 
understood as neither given nor endorsed by Tata Consultancy Services or any affiliate 
of Tata Consultancy Services. If you have received this message in error, you should 
destroy this message and may please notify the sender by e-mail. Thank you.


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

Re: Struts Application Security within the Controller Layer

2004-04-18 Thread birendar . waldiya

Hi All, 
 I have installed  Tomcat
server on my machine and tried to start it using    startup.bat
 im getting following  error 


C:\Tomcat\catalina\src\bin>startup
Using CATALINA_BASE:   C:\Tomcat\catalina\src
Using CATALINA_HOME:   C:\Tomcat\catalina\src
Using CATALINA_TMPDIR: C:\Tomcat\catalina\src\temp
Using JAVA_HOME:      
C:\jdk1.3.1_11
C:\Tomcat\catalina\src\bin>


can anyone help me !!this will be  
very useful to me 
thanks rgds 


Birendar Singh Waldiya
DISCLAIMER: The information contained in this message is intended only and solely for 
the addressed individual or entity indicated in this message and for the exclusive use 
of the said addressed individual or entity indicated in this message (or responsible 
for delivery
of the message to such person) and may contain legally privileged and confidential 
information belonging to Tata Consultancy Services. It must not be printed, read, 
copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person 
other than the addressee. 
Unauthorized use, disclosure or copying is strictly prohibited and may constitute 
unlawful act and can possibly attract legal action, civil and/or criminal. The 
contents of this message need not necessarily reflect or endorse the views of Tata 
Consultancy Services on any subject matter.
Any action taken or omitted to be taken based on this message is entirely at your risk 
and neither the originator of this message nor Tata Consultancy Services takes any 
responsibility or liability towards the same. Opinions, conclusions and any other 
information contained in this message 
that do not relate to the official business of Tata Consultancy Services shall be 
understood as neither given nor endorsed by Tata Consultancy Services or any affiliate 
of Tata Consultancy Services. If you have received this message in error, you should 
destroy this message and may please notify the sender by e-mail. Thank you.


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

RE: basic problem in java

2004-04-18 Thread Max Cooper
Post the contents of your jaba1.java file up to and including the
"import java.io.*;" line. You might have the import statement in the
wrong place.

-Max

On Sun, 2004-04-18 at 00:16, [EMAIL PROTECTED] wrote:
> My Classpath variable is set to :
> C:\jdk1.3.1\bin;c:\jdk1.3.1\lib\tools.jar;c:\jdk1.3.1\lib\rt.jar;c:\Drivers\classes111.zip;c:\Drivers\classes12.zip;c:\Drivers;c:\biren\java
> 
> JDK is installed  
> 
> C:\jdk1.3.1 
> 
> can you please help me ??
> 
> Birendar Singh Waldiya
> 
> 
> 
> "David Friedman"
> <[EMAIL PROTECTED]>
> 
> 17-04-04 08:54 PM
>  Please respond to
> "Struts Users Mailing List"
>  <[EMAIL PROTECTED]>
>To
> "Struts Users
> Mailing List"
> <[EMAIL PROTECTED]>
>cc
> 
>   Subject
> RE: basic problem
> in java
> 
> 
> 
> 
>   What is your CLASSPATH variable set to and is java installed in
> c:\biren\java?
> 
>  Regards,
>  David
>  -Original Message-
>  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>  Sent: Saturday, April 17, 2004 2:47 AM
>  To: Struts Users Mailing List
>  Subject: basic problem in java
> 
> 
> 
>  Hi,
>   this may be  a slightly silly question for  people working on struts
> etc
> but im facing it and i dont have the clue why im getting it.. can
> anyone
> suggest me  why im getting proble..
>  while compiling a java program  my javac is unable to resolve the
> standard
> java classes  like  java.io.*   java.util.* ;
> 
> 
>  C:\biren\java>javac jaba1.java
>  jaba1.java:2: cannot resolve symbol
>  symbol  : class io
>  location: class java
>  import java.io.*;
> 
>  whats  the problem  please help !
>  ^
>  Birendar Singh Waldiya
> 
> ForwardSourceID:NT434E
> 
> 
> __
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
-- 
Max Cooper <[EMAIL PROTECTED]>


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



Re: A better exception-handling strategy?

2004-04-18 Thread Irfandhy Franciscus
Hi Craig,

This is the first time I heard of the  tag. Is this a struts 
tag ?

So far I know that struts provide a neat exception handling, I seldom 
use this but perhaps youcan try it out Frank :


	


Cheer's,
e-null
Craig McClanahan wrote:


You might want to experiment with the standard exception mapping 
facilities that web.xml supports, for use whenever an exception ripples 
all the way up to the servlet container.  For example, you can deal with 
any NPE that gets thrown with an entry like this:

 
   java.lang.NullPointerException
   /error-page.jsp
 
Thanks,

Frank

 

Craig


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


RE: [OT] Oracle JDev 10g Final (9.0.5.1 build 1605) is out!

2004-04-18 Thread Amjad Shahrour
Just wanted to say my toughts about Jdeveloper10g.

Simply it is GREATE!!.  

And there is no other IDE that can even compete with it.
*It has everything that I need.
* extraordinary performace ( I cant believe its pure java ;) )
* very very very organized. 
* I feel very comfortable when I use it.
* this what IDEs should be.
* IMO it is far better than VS.net.

good work Jdeveloper10g team.

I am Looking forward a plugin that simplyfies the JSF development
(visually).

regards




Amjad Shahrour
Application Developer
Tel: +966.2.653.3334 ext 213
[EMAIL PROTECTED]
www.labbaik.com
 
 
 

-Original Message-
From: Duncan Mills [mailto:[EMAIL PROTECTED] 
Sent: Sunday, April 18, 2004 11:12 AM
To: Struts Users Mailing List
Subject: Re: [OT] Oracle JDev 10g Final (9.0.5.1 build 1605) is out!

Eric it's a pure Java App - you can run it on Mac, Linux or whatever - 
plenty of people did run the Preview on Mac without too many problems - 
if you have any problems or issues just post them on OTN.

Regards

Duncan Mills
Senior Principal Product Manager
Oracle Application Development Tools

[EMAIL PROTECTED]



Erik Price wrote:

>
> On Apr 14, 2004, at 4:24 AM, Christian Bollmeyer wrote:
>
>> Finally!
>>
>> http://otn.oracle.com/software/products/jdev/index.html (249MB)
>>
>> -- Chris
>
>
> No MacOSX version?
>
> >:(
>
>
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
___Labbaik - The Integrated Solution Provider for the Hospitality 
Industry


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



Re: [OT] Oracle JDev 10g Final (9.0.5.1 build 1605) is out!

2004-04-18 Thread Duncan Mills
Eric it's a pure Java App - you can run it on Mac, Linux or whatever - 
plenty of people did run the Preview on Mac without too many problems - 
if you have any problems or issues just post them on OTN.

Regards

Duncan Mills
Senior Principal Product Manager
Oracle Application Development Tools
[EMAIL PROTECTED]



Erik Price wrote:

On Apr 14, 2004, at 4:24 AM, Christian Bollmeyer wrote:

Finally!

http://otn.oracle.com/software/products/jdev/index.html (249MB)

-- Chris


No MacOSX version?

>:(




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


RE: basic problem in java

2004-04-18 Thread birendar . waldiya

My Classpath variable is set to  
      :
C:\jdk1.3.1\bin;c:\jdk1.3.1\lib\tools.jar;c:\jdk1.3.1\lib\rt.jar;c:\Drivers\classes111.zip;c:\Drivers\classes12.zip;c:\Drivers;c:\biren\java

JDK is installed  

C:\jdk1.3.1 

can you please help me ??

Birendar Singh Waldiya






"David Friedman"
<[EMAIL PROTECTED]> 
17-04-04 08:54 PM




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





To
"Struts Users Mailing
List" <[EMAIL PROTECTED]>


cc



Subject
RE: basic problem in java








  What is your CLASSPATH variable set to and
is java installed in
c:\biren\java?

  Regards,
  David
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: Saturday, April 17, 2004 2:47 AM
  To: Struts Users Mailing List
  Subject: basic problem in java



  Hi,
   this may be  a slightly silly question for  people working
on struts etc
but im facing it and i dont have the clue why im getting it.. can anyone
suggest me  why im getting proble..
  while compiling a java program  my javac is unable to resolve
the standard
java classes  like  java.io.*   java.util.* ;


  C:\biren\java>javac jaba1.java
  jaba1.java:2: cannot resolve symbol
  symbol  : class io
  location: class java
  import java.io.*;

  whats  the problem  please help !
              ^
  Birendar Singh Waldiya

ForwardSourceID:NT434E
   
DISCLAIMER: The information contained in this message is intended only and solely for 
the addressed individual or entity indicated in this message and for the exclusive use 
of the said addressed individual or entity indicated in this message (or responsible 
for delivery
of the message to such person) and may contain legally privileged and confidential 
information belonging to Tata Consultancy Services. It must not be printed, read, 
copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person 
other than the addressee. 
Unauthorized use, disclosure or copying is strictly prohibited and may constitute 
unlawful act and can possibly attract legal action, civil and/or criminal. The 
contents of this message need not necessarily reflect or endorse the views of Tata 
Consultancy Services on any subject matter.
Any action taken or omitted to be taken based on this message is entirely at your risk 
and neither the originator of this message nor Tata Consultancy Services takes any 
responsibility or liability towards the same. Opinions, conclusions and any other 
information contained in this message 
that do not relate to the official business of Tata Consultancy Services shall be 
understood as neither given nor endorsed by Tata Consultancy Services or any affiliate 
of Tata Consultancy Services. If you have received this message in error, you should 
destroy this message and may please notify the sender by e-mail. Thank you.


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