Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!

Bear Bibeault

Author and ninkuma
+ Follow
since Jan 10, 2002
Bear likes ...
IntelliJ IDE Java jQuery Mac Mac OS X
Author of:
Secrets of the JavaScript Ninja, 1st and 2nd editions,
jQuery in Action, 1st, 2nd and 3rd editions,
Ajax in Practice, and
Prototype and Scriptaculous in Action
Austin, TX
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt Green check
expand Greenhorn Scavenger Hunt Green check

Recent posts by Bear Bibeault

What kind of JavaScript? Embedded in HTML or JSP pages? Or stand-alone as with NodeJS? Or a SPA using React, Angular, or VueJS?

Some tools are better than others for each of these types of JavaScript.

Pete Letkeman wrote:

Bear Bibeault wrote:I've rappelled out of hovering helicopters and various cliffs.

What? Sounds like there is much more to the story here and this could be fun as well.

Jeanne Boyarsky wrote:Bear: Voluntarily or because the military made you? 

Military training.
1 day ago

Arun Singh Raaj wrote:
Actually we have an annotation @PathVariable in Spring framework that captures the variable passed in the url:

Yes, I understood that.

By default, HTML forms will submit values as request parameters (either on the URL or in the body depending upon the type of request), but not as path variables. That's why you need to do this the hard way.

If you don't know any JavaScript yet, you've got a long uphill climb coming...

I have idea of JQuery, JSP, JS so you can provide information about any of the three scripting languages how they generate such a url.

JSP is not client-side. It is a server-side templating mechanism. Please read this article to find out exactly how JSP works.

JavaScript (at least on an HTML page) runs in the browser (client side).

jQuery is a JavaScript library that makes doing things like event handling and making Ajax requests a lot easier than with plain JavaScript.

You might want to do a search to see if anyone has create a library that already does this for you. It seems like something that would be a common need.
Are you using jQuery or any other framework? If not, you should be using jQuery as it's going to make all of this much much easier.

What is the name (not id) of the form control that contains the value?
As this doesn't really have anything to do with it being in a JSP, I have moved this topic to the more appropriate location.

First, we need to know how you plan to submit the request. As a full-page reload, or as an Ajax request?

In either case, you'll want to capture the submit event for the form so you can get the value of the control and create a URL from it.
HTML has no way to take form inputs and construct a URL using form values as path elements in the URL. You'll need to get JavaScript involved.
Thanks for reporting back with your findings.

Have a cow.
4 days ago

Mano Ag wrote:
Still along way to go: JavaScript , Jave SE, Java EE

The Java ecosystem is just one of many possible back-end environments.

But yes, JavaScript is a must; in the front-end for certain, on the back-end optionally.

My advice would be to just start writing web apps. Nothing will tell you better where you need to shore up existing skills or learn new ones.
A book that uses a framework almost inevitably becomes about the framework.
React apps are typically written using ES6+, though nothing prevents them being written in ES5 (if you like wordiness) or even TypeScript.

Angular apps are typically written in TypeScript, but similarly they could be in ES as well.

I choose the language that the framework's general community uses as that's what tutorials, blogs, npm packages, and online questions are most likely to be using.

Babel, while essential in the toolchain, doesn't really factor into the choice.

Mary Yu wrote:I believe this is unique to Java.

None of this is unique to Java.
6 days ago
I've rappelled out of hovering helicopters and various cliffs. That was close enough for me.
6 days ago

Cezar Apulchro wrote:
The section in browse still whith the same problem, my td tag don't appear...

Don't tell us, show us. What is the source sent to the browser for the table?
6 days ago