Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

<c:url param passes null always

 
Abdul Wahab
Ranch Hand
Posts: 49
Eclipse IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am finding difficult to pass parameter value from one jsp to another in my struts application. Below are my code


Whenever i click the link . It Shows contactno always null

http://localhost:8080/Elclass/Prf/insertprfArticle.do?contractno=&action=insertArticle.

Can you please point out where i am wrong?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65223
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
DO you mean null, or empty? They're not the same thing.

In your URL, the value of the parameter is empty.
 
Abdul Wahab
Ranch Hand
Posts: 49
Eclipse IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi bear,
Sorry. It shows empty. Contract No value is set using Agent dropdown list. Below are the code for reference
 
Abdul Wahab
Ranch Hand
Posts: 49
Eclipse IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
I tried passing other values still it shows empty. Only constant values (hard coded vales) are accepting.
Guess there might be some issues with my form bean or struts config file. i have attache by form bean and


struts config file

Here /saveprf action to save Prf.jsp. /Prf/insertprfArticle action to call PrfArticle.jsp . To call this page i am using <c:url>
 
Abdul Wahab
Ranch Hand
Posts: 49
Eclipse IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
Still confused why the value shows empty . any help on this will be great
 
Abdul Wahab
Ranch Hand
Posts: 49
Eclipse IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
Still unable to find the solution. i created a seperate action (i am using Dispatch action here), to load the form and when i
reloaded the form the url parameter values are passed from one page to another. seems strange
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic