Joe Ess

Bartender
+ Follow
since Oct 29, 2001
Joe likes ...
Linux Mac OS X Windows
Forum Moderator
Joe Ess currently moderates these forums:
Cows and Likes
Cows
Total received
12
In last 30 days
0
Total given
0
Likes
Total received
317
Received in last 30 days
1
Total given
2
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
(keep public parts private until JForum day)
expand Rancher Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

Recent posts by Joe Ess

I think it is an error in the documentation.  The method appears in the class documentation:

5 days ago
If you are very new to Struts, it may be easier to take a step back and run through a tutorial so you understand what Struts is and how to use it. 
Struts is an implementation of the Front Controller Design Pattern.  The Controller fits into another pattern called Model-View-Controller.  What you shared with us is part of the "View", that is, the display portion of the application.  To actually do something, you need to configure Struts to delegate a request to an Action, which would perform some work, and a Model, which would be the data set that would be acted upon.
1 week ago
This post was originally posted as a reply to this topic, but the error messages are different, so I split it off into a new topic.
This is a very curious issue because it appears that the server is attempting to read /dev/null, which is basically a trash can.  I am curious to know exactly what you are doing to get this error. 
What version of Weblogic are you running?  What version of Java?
Is this server a new install or has it been up and running for a while?
Have you successfully deployed applications to this server in the past?
How are you starting Weblogic (i.e. do you have custom start up scripts?)
Is this exception produced when starting Weblogic or when deploying an application?
If when deploying, have you successfully deployed this application in the past?
The more details you give us, the more help we can give you.
1 week ago

Baz Edwards wrote:Personally I would consider Struts to be legacy



Struts 2.5 is under active development, so I wouldn't call it "legacy".  Struts certainly isn't as popular as it used to be.

Baz Edwards wrote:
If you use the latest Spring boot



Spring Boot is a totally different animal.  It is a stand-alone application server and framework in one.  Struts is more akin to Spring MVC alone.  If one just needs a front controller, Struts will work just fine.  Struts can also be configured to use Spring to inject code into Struts actions, so they aren't necessarily exclusive.
I actually prefer XML configuration files to annotations as it is easier to find the configuration information in one place, rather than hunting around in Java source code. 

As for Abhishek's question, no, you cannot configure one action tag to correspond to multiple methods.  The purpose of the action tag is to map a particular web request to a particular method, so that wouldn't make sense. 
If you are looking to avoid writing a ton of XML, look at the Convention Plugin.  It allows one to specify a method name in a particular way and the plugin does the work of the working out the mapping.  It also supports a bunch of annotations to configure the various options available in the action XML tag.
3 weeks ago

Lahouari Bendriss wrote:
The console reports this error: java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter



This error tells us that the web container either can't find Struts or one of its dependencies.

Lahouari Bendriss wrote:
When I fixed this by adding Struts 2 to be exported in /WEB-INF/lib tomcat failed to start with the error message Could not launch in profiling mode because no profilers are configured.



That sounds like you are attempting to start Tomcat through Eclipse using a profiler plugin like TPTP, but you haven't set up TPTP correctly.

Learning how to program while simultaneously learning how to use an IDE is a big learning curve.  I'd recommend simplifying things and working with a text editor and the command line to start.  Try the first 3 steps in the Tomcat manual, then, once you have that working, try adding Struts to that application.  Once you are comfortable with that, try it in an IDE.
1 month ago

Liutauras Vilda wrote:

Jan de Boer wrote:For me it is always the name of one certain secret lover I had.


Since passwords need to be changed, you must have a big database.



If you need to change your password, you just have another secret affair!
Seriously, I use a password manager (Password Safe) and I don't use "real" data for those questions.  Way too easy for someone to figure out those answers in the age of social media.
1 month ago
My boys said "She's cool", so you got that going for you!
BTW, nothing wrong with Ant.  I actually prefer explicit configuration over implicit  
1 month ago
I'm not familiar with PyCharm (I usually use a text editor and the command line) so I downloaded it and took a look.  The "venv" directory is the "virtual environment", which I assume is a virtual machine where PyCharm executes one's code see here.  The other directories, Include, Lib, Scripts and tcl, appear to mirror the directories in a Python install.  This makes sense that the virtual environment would contain a Python install. 
Since I don't use an IDE, I always put Python files in the same directory (you don't need a "src" directory because there's nothing to compile so there won't be a "build" dir).  If you right-click on a project name and click New -> File, it puts the file under "venv", which I assume is the root directory of the project.
There's a guided tour here which may help with your understanding of the GUI and get you off on the right foot.
1 month ago

Paul Clapham wrote:Not me. Too far above my risk tolerance level.



I concur.  Bitcoin has serious problems.  First off, the fees for doing transactions are skyrocketing .  While a $20 transaction fee might not be a big deal if one is moving a kilo of cocaine, for more mundane transactions, it is a serious impediment.  Also, transactions are not instantaneous. This means, with a wildly fluctuating value, by the time one receives their bitcoin, it may not be worth what they requested.  And with the rapidly increasing value, people are less likely to actually use the currency as currency (exchanging it rather than sitting on it).  In my own estimation, these issues make Bitcoin effectively worthless for its own purported function. 
As for bemoaning the fact that there are bitcoin millionaires and I'm not one of them, I've missed plenty of speculation opportunities (I was an early fanboy of Amazon - before one could safely transmit a credit card information across the internet! - and I sat out that IPO). I have no regrets because I've never had to lay awake at night wondering when the bubble was going to pop!  My portfolio is boring and profitable.
2 months ago
Have a look at the DatePicketTag documentation.  There are several promising options, like maxDate, which sets the maximum selectable date.
2 months ago
Do you mean what you do to learn python or what you do with python?
If it's the former, there's tutorials at the main Python site.  There's a free book I found very helpful: Think Python
If it's the latter, only you can answer that question!
2 months ago