Lomboz plus struts

C

charles leviton

Hi,
Please feel free to redirect if this is the wrong forum!

I am using Eclipse IDE with Lomboz plugin to practise some Struts
exercises. I find that I am forced to add the Struts.Jar explicitly
to the lib directory under WEB-INF to make it work.
Is there some CLASSPATH or something like that I can tweak to avoid
having to do this?

Thanks
 
A

Adam Maass

charles leviton said:
Hi,
Please feel free to redirect if this is the wrong forum!

I am using Eclipse IDE with Lomboz plugin to practise some Struts
exercises. I find that I am forced to add the Struts.Jar explicitly
to the lib directory under WEB-INF to make it work.
Is there some CLASSPATH or something like that I can tweak to avoid
having to do this?

Thanks


That's what you're supposed to be doing with the struts .jar file.

You could put the .jar file in a more general place... but specifically
where would depend on the servlet container you're using.


-- Adam Maass
 
C

charles leviton

Adam Maass said:
Thanks


That's what you're supposed to be doing with the struts .jar file.

You could put the .jar file in a more general place... but specifically
where would depend on the servlet container you're using.


-- Adam Maass

Thanks Adam. I am using Tomcat 4.1.29. I was thinking along the
lines of modifying the properties of the project (where you would
normally configure Java Build Path etc). The Struts FAQ does say that
each application needs its own copy of the Struts classes.
Is there an alternative to manually importing the Struts jar files
into the lib subdirectory for each Lomboz J2EE project I create?
 
S

Sudsy

charles leviton wrote:
Thanks Adam. I am using Tomcat 4.1.29. I was thinking along the
lines of modifying the properties of the project (where you would
normally configure Java Build Path etc). The Struts FAQ does say that
each application needs its own copy of the Struts classes.
Is there an alternative to manually importing the Struts jar files
into the lib subdirectory for each Lomboz J2EE project I create?

I you use *nix then you can use symbolic links, i.e.
ln -s source destination
Saves disk space...
 
A

Adam Maass

charles leviton said:
Thanks Adam. I am using Tomcat 4.1.29. I was thinking along the
lines of modifying the properties of the project (where you would
normally configure Java Build Path etc). The Struts FAQ does say that
each application needs its own copy of the Struts classes.
Is there an alternative to manually importing the Struts jar files
into the lib subdirectory for each Lomboz J2EE project I create?

Eclipse has the notion of one project "containing" another. It's not
something I've played with (Eclipse has never been an IDE I've used on a
daily basis). But this seems to be a good place to start to get a generic
framework setup for different projects that contain common elements... such
as Struts.
 
S

Sudsy

Adam Maass wrote:
Eclipse has the notion of one project "containing" another. It's not
something I've played with (Eclipse has never been an IDE I've used on a
daily basis). But this seems to be a good place to start to get a generic
framework setup for different projects that contain common elements... such
as Struts.

Interesting that you should mention the idea. I've been doing just
that recently while writing an article on using Oracle sequence
primary keys with Eclipse/JBoss. Having a framework for the most
common combination (HTML pages, images, sounds, applets, servlets,
JSPs, Struts Actions and Forms, and EJBs) makes a lot of sense. I
haven't perfected mine just yet but I'm close. Making the xdoclet
and packaging build files generic enough is the challenge.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top