tags:

views:

46

answers:

2

Hi,

I am using wicket application to initiate my Java method in my code. I have the url as follows

http://localhost:8080/web/resources/org.apache.wicket.Application/StartMethod

I want to add an extra option at the end client=cutomser1

http://localhost:8080/web/resources/org.apache.wicket.Application/StartMethod?client=customer1

As I want these use the same code but for different customers

So when I run this URL from command promte it should fetch the Customer1 into my Java code in this way.. String client = customer1

How can i implement this in Java. I mean I want to fetch this String name customer1

Thanks


+1  A: 

Wicket is strong in data binding and you should take advantage of that.

If you display in the browser data from Customer1, the Wicket knows that when you do requests from that page.

The translation of request parameters to variables happens behind the scene.

That is disconcerting at first but really powerful when used as intended.

I would suggest you select a good tutorial from the answer to this question and go through a couple of examples to see how things are done. This may take an afternoon but this will pay back for itself before the week is out.

Peter Tillemans
A: 

I think I am a bit too late, but still I will say that you can use PageParameters in your page and you should make the page bookmarkable.

virgium03