Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need Help:Code running file with IDE but Gives Exception while running from build

 
Kaustubh G Sharma
Ranch Hand
Posts: 1283
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Getting below exception while running code below...didn't get it...it is working fine wtih IDE but when I try to run from it build it is showing below exception on page load please help me out...

:JAVA CODE :



::Exception::

 
Mohamed Sanaulla
Saloon Keeper
Posts: 3159
33
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like you are entering a "" qouted value in the JSP/html
 
Kaustubh G Sharma
Ranch Hand
Posts: 1283
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yup on my JSP i m getting value through a expression like showing below may be this is generating problem ..how to fix it bro?

 
Mohamed Sanaulla
Saloon Keeper
Posts: 3159
33
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You would have to escape the extra strings:

You can try using value='<% %> '
 
Kaustubh G Sharma
Ranch Hand
Posts: 1283
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Giving error :

= symbol expected....?
 
Mohamed Sanaulla
Saloon Keeper
Posts: 3159
33
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I meant-
 
Kaustubh G Sharma
Ranch Hand
Posts: 1283
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
mohamed sanaullah wrote:You would have to escape the extra strings:

You can try using value='<% %> '


Sorry forget to put it in a ' ' symbol ...Actually from it this problem is solved ..but it creates an another problem from me...

My scenario is:

When ever a user login sucessfully in the system, a unique UID is associated with him .. Now when this user goes for a search ..
it show the cases created by him plus cases by other.. Now my job is to show error when he opens other's cases and cases open sucessfully when he open cases created by him for that I used the below logic on my JSP(I am lil weak with JSP side)...





it says when user UID is equal to the UID of the person who login then is how the view button which opens the case otherwise the button which shows error will be visible...

Please help me out ...
 
Kaustubh G Sharma
Ranch Hand
Posts: 1283
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
mohamed sanaullah wrote:I meant-


wooooooooooo hurry

it is working da....

Thanks man ...
Really appritiate your help ...
 
Mohamed Sanaulla
Saloon Keeper
Posts: 3159
33
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Great that you got it working.
 
Kaustubh G Sharma
Ranch Hand
Posts: 1283
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
finally I am
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic